HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.2.20
System: Linux 825a8fd6cf8c 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User: apache (48)
PHP: 8.2.20
Disabled: NONE
Upload Files
File: /var/www/html/public/static/js/hookSymptom-39c666c7.js
import{symptomListWeb as q,AddEditSymptomWeb as N,deleteSymptomWeb as F}from"./po-320602ea.js";import{d as y,u as G}from"./vue-router-a383d220.js";import{b7 as d}from"./message-2472a54a.js";import{o as H}from"./index-81e4a901.js";import{r as i,A as o,w as J,o as Q}from"./runtime-core.esm-bundler-6128546f.js";import"./index-2cac3668.js";import"./preload-helper-78dc9057.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./utils-2ab4f76a.js";import"./focus-trap-53f1c6ab.js";import"./error-78e43d3e.js";function de(f,s){y(),G(),y();const b=i(),u=i(!1),_=i(!1),D=i(!1),w=i(!1),l=i(!1),S=i(""),m=i([]),k=i([]),A=o({}),t=o({tableIndex:0,note:"",description:"",name:"",id:"",is_select:""}),g=o({}),E=o({}),x=o({}),c=o({total:0,pageSize:10,currentPage:1,background:!0,pageSizes:[10,25,50,100]}),p=o({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",type:"",role:"",clinic_id:""}),P=[{type:"selection",width:55,align:"left",slot:"selection1",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号")},{label:"症状",prop:"name",minWidth:100,hide:({checkList:e})=>!e.includes("症状")},{label:"明细",prop:"description",minWidth:100,hide:({checkList:e})=>!e.includes("明细")},{label:"操作",fixed:"right",width:160,slot:"operation",hide:({checkList:e})=>!e.includes("操作")}],v=["勾选列","序号","症状","明细","操作"];function z(){n()}function C(e){c.pageSize=e,n()}function L(e){c.currentPage=e,n()}async function n(){s.str&&(t.is_select=1),u.value=!0;const{data:e}=await q(Object.assign(A,{search_key:p.searchKey,pageSize:c.pageSize,page:c.currentPage}));e.code==0&&(m.value=e.data,c.total=e.total,s.symptomData.symptom_str_arr&&s.symptomData.symptom_str_arr.split(",").forEach((r,V)=>{m.value.forEach((h,U)=>{r==h.id&&(h.check=!0)})})),u.value=!1}const W=(e,a)=>{k.value=e};function j(){const e=[],a=[];m.value.forEach((r,V)=>{r.check&&(e.push(r.id),a.push(r.name))}),s.symptomData.id=e.toString(),s.symptomData.name=a.toString(),f("update:symptomDialog",!1),f("eventIsNum")}function O(e){Object.keys(e).map(a=>{g[a]=e[a]})}function B(){t.id="",t.name="",t.description="",l.value=!0}async function K(){const{data:e}=await N(Object.assign(E,{id:t.id,name:t.name,description:t.description}));e.code==0?(l.value=!1,n(),d({type:"success",message:e.msg})):d({type:"error",message:e.msg})}function M(){p.searchKey="",n()}function R(e){t.id=e.id,t.name=e.name,t.description=e.description,l.value=!0}async function T(e){const{data:a}=await F(Object.assign(x,{symptom_id:e.id}));a.code==0?(n(),d({type:"success",message:a.msg})):d({type:"error",message:a.msg})}const I=e=>{H.confirm("你确定删除该条吗",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{T(e)}).catch(()=>{d({type:"info",message:"已取消"})})};return J(s.symptomData,(e,a)=>{n()}),Q(()=>{n()}),{searchDetail:p,btnSearchPart:z,loading:u,small:w,selectList:v,columns:P,pagination:c,handleSizeChange:C,handleCurrentChange:L,PartList:m,order_date:S,deliverDialog:_,selectClick:W,itemArr:t,addLocationDialog:D,locationArr:g,EditLocation:O,singleTableRef:b,btnAdd:B,btnAddConfirm:K,addDialog:l,itemArr:t,btnSearchPartAll:M,btnEdit:R,btnDelete:I,btnConfirm:j}}export{de as useEqu};