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/hookFormula-09fbad49.js
import{CBMList as be,uploadCBMConfirm as ve,addEditCBMWeb as xe,BookingTextConfigWeb as Se,deleteCompanyWeb as ke,deleteCBMWeb as De}from"./po-34b1a012.js";import{d as O,u as we}from"./vue-router-a383d220.js";import{o as A}from"./index-81e4a901.js";import{b7 as r}from"./message-2472a54a.js";import{r as i,A as s,o as Ee}from"./runtime-core.esm-bundler-6128546f.js";import"./index-48edda51.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 Je(){O(),we(),O();const B=i(),_=i(!1),W=i(!1),T=i(!1),f=i(!1),z=i(!1),v=i(!1),y=i(!1),x=i(!1),L=i(""),S=i([]),l=i([]),k=i([]),n=i([]),D=i([]),N=s({}),a=s({tableIndex:0,note:"",name:"",formula:"",source:"",concoct:"",effect:"",Usage:"",attention:"",id:"",category:"",symptom_str_arr:"",symptom_name_arr:""}),w=s({}),I=s({}),U=s({}),j=s({}),M=s({}),J=s({}),m=s({time:"",part_no:"",number:"",file_path:"",is_order1:"",radio:1,file_size:""}),P=i([{id:1,value:"Y",text:"有教材"},{id:2,value:"N",text:"否教材"}]),E=i([{id:1,value:"name",text:"名称"},{id:2,value:"formula",text:"配方"},{id:3,value:"category",text:"类别"},{id:4,value:"source",text:"出处"},{id:5,value:"concoct",text:"炮制"},{id:6,value:"effect",text:"功效"},{id:7,value:"Usage",text:"使用方法"},{id:8,value:"attention",text:"注意"}]),u=s({total:0,pageSize:10,currentPage:1,background:!0,pageSizes:[10,25,50,100]}),p=s({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",type:"",role:"",clinic_id:"",filter_info:"",placeholder:""}),R=[{type:"selection",width:55,align:"left",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:"category",minWidth:100,slot:"category",hide:({checkList:e})=>!e.includes("类别")},{label:"配方",prop:"formula",minWidth:100,hide:({checkList:e})=>!e.includes("配方")},{label:"出处",prop:"source_name",minWidth:100,hide:({checkList:e})=>!e.includes("出处")},{label:"炮制",prop:"concoct",minWidth:100,hide:({checkList:e})=>!e.includes("炮制")},{label:"功效",prop:"effect",minWidth:150,slot:"effect",hide:({checkList:e})=>!e.includes("功效")},{label:"使用方法",prop:"Usage",minWidth:120,hide:({checkList:e})=>!e.includes("使用方法")},{label:"注意",prop:"attention",minWidth:120,hide:({checkList:e})=>!e.includes("注意")},{label:"操作",fixed:"right",width:160,slot:"operation",hide:({checkList:e})=>!e.includes("操作")}],q=["名称","类别","配方","出处","炮制","功效","使用方法","注意","操作"];function F(){d()}function H(e){u.pageSize=e,d()}function K(e){u.currentPage=e,d()}async function d(){_.value=!0;const{data:e}=await be(Object.assign(N,{pageSize:u.pageSize,page:u.currentPage,search_fielter:p.filter_info,search_key:p.searchKey}));e.code==0&&(S.value=e.data,u.total=e.total),_.value=!1}const V=(e,t)=>{};function Y(e){Object.keys(e).map(t=>{w[t]=e[t]})}async function G(e){const{data:t}=await ke(Object.assign(U,{company_id:e.id}));t.code==1?(d(),r({type:"success",message:t.msg})):r({type:"error",message:t.msg})}const Q=e=>{A.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{G(e)}).catch(()=>{r({type:"info",message:"Canceled"})})};function X(e){E.value.forEach((t,o)=>{e==t.value&&(p.placeholder=t.text)})}function Z(e,t,o){y.value=!0,l.value=e.data.match_field_data,n.value=e.data.arr,m.file_path=e.data.file_path,k.value=e.data.field_show,m.part_no=t.name,m.file_size=e.data.file_size,n.value.forEach((c,h)=>{c.check=!1,c.is_selected==1&&(c.check=!0)})}function $(){}function ee(e){n.value.forEach((t,o)=>{e?(t.is_selected=1,t.check=!0):(t.is_selected=0,t.check=!1)})}function te(e,t){e?t.is_selected=1:t.is_selected=0}async function ae(){const{data:e}=await ve(Object.assign(I,{arr:n,match_field_data:l,file_path:m.file_path}));e.code==0?(y.value=!1,d(),r({type:"success",message:e.msg})):r({type:"error",message:e.msg})}function oe(){}function ie(e){a.id=e.id,a.name=e.name,a.formula=e.formula,a.source=Number(e.source),a.concoct=e.concoct,a.effect=e.effect,a.Usage=e.Usage,a.attention=e.attention,a.category=e.category,C();const t=[],o=[];e.symptom_str_arr.forEach((c,h)=>{t.push(c.name),o.push(c.id)}),a.symptom_name_arr=t.toString(),a.symptom_str_arr=o.toString(),f.value=!0}async function ne(e){const{data:t}=await xe(Object.assign(j,{id:a.id,name:a.name,formula:a.formula,source:a.source,concoct:a.concoct,effect:a.symptom_str_arr,Usage:a.Usage,attention:a.attention,category:a.category}));t.code==0?(f.value=!1,d(),r({type:"success",message:t.msg})):r({type:"error",message:t.msg})}function ce(){a.id="",a.name="",a.formula="",a.source="",a.concoct="",a.effect="",a.Usage="",a.attention="",a.category="",a.symptom_str_arr="",C(),a.symptom_name_arr="",f.value=!0}async function se(e){const{data:t}=await De(Object.assign(M,{id:e.id}));t.code==0?(d(),r({type:"success",message:t.msg})):r({type:"error",message:t.msg})}const re=e=>{A.confirm("你确定删除吗",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{se(e)}).catch(()=>{r({type:"info",message:"已取消"})})};function le(){let e={};n.value.length>0&&(e=JSON.parse(JSON.stringify(n.value[0])),e.id=n.value.length+1,e.check=!1,e.is_selected=0,e.detail.forEach((t,o)=>{t.value=""})),n.value.push(e)}function de(){const e={id:l.value.length+1,value:""},t={value:"",id:l.value.length+1};l.value.push(e);const o=JSON.parse(JSON.stringify(n.value));o.forEach(c=>c.detail.push(t)),n.value=JSON.parse(JSON.stringify(o))}function ue(e){const t=l.value.findIndex(o=>o.id===e.id);t!==-1&&l.value.splice(t,1),l.value.forEach((o,c)=>{o.id=c+1}),n.value.forEach((o,c)=>{const h=o.detail.findIndex(b=>b.id===e.id);h!==-1&&o.detail.splice(h,1),o.detail.forEach((b,ye)=>{b.id=ye+1})})}function me(e){const t=n.value.findIndex(o=>o.id===e.id);t!==-1&&n.value.splice(t,1),n.value.forEach((o,c)=>{o.id=c+1})}const g=s({name:"",id:"",symptom_str_arr:""});function fe(){g.symptom_str_arr=a.symptom_str_arr,x.value=!0}function pe(){a.symptom_name_arr=g.name,a.symptom_str_arr=g.id}function ge(){v.value=!0}const he=s({name:"",id:""});function _e(){}async function C(){const{data:e}=await Se(Object.assign(J,{lower:1}));e.code==0&&(D.value=e.data)}return Ee(()=>{d()}),{searchDetail:p,btnSearchPart:F,loading:_,small:z,selectList:q,columns:R,pagination:u,handleSizeChange:H,handleCurrentChange:K,PartList:S,order_date:L,deliverDialog:W,selectClick:V,itemArr:a,addLocationDialog:T,locationArr:w,EditLocation:Y,btnDellocation:Q,singleTableRef:B,searchItem:E,btnSearchField:X,importDialog:y,uploadSlotFile:Z,selectImport:$,match_field_data:l,field_showValue:k,match_field_dataArr:n,coatingRequireT:ee,coatingRequire:te,btnConfirm:ae,importBomData:m,btnImport:oe,onEdit:ie,editDialog:f,btnEditConfirm:ne,btnAdd:ce,btnDelete:re,categoryType:P,btnHang:le,btnLie:de,btnDelLie:ue,btnDelHang:me,symptomDialog:x,eventIsNum:pe,symptomData:g,btnSymptom:fe,btnSource:ge,textbookDialog:v,eventTextbook:_e,textbookData:he,parentData:D}}export{Je as useEqu};