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-91489075.js
import{CBMList as Oe,uploadCBMConfirm as We,addEditCBMWeb as Be,BookingTextConfigWeb as Ne,GbcAssignWeb as Le,yuyueFDF as Te,deleteCompanyWeb as ze,deleteCBMWeb as Ie}from"./po-53124e2d.js";import{d as T,u as je}from"./vue-router-a383d220.js";import{o as z}from"./index-81e4a901.js";import{b7 as l}from"./message-2472a54a.js";import{r as o,A as s,w as Ue,o as Me}from"./runtime-core.esm-bundler-6128546f.js";import"./index-912f0f0b.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 $e(D,f){T(),je(),T();const I=o(),x=o(!1),j=o(!1),U=o(!1),y=o(!1),M=o(!1),k=o(!1),w=o(!1),E=o(!1),S=o(!1),A=o(!1),J=o(""),g=o([]),C=o([]),h=o([]),r=o([]),O=o([]),c=o([]),W=o([]),P=s({}),a=s({tableIndex:0,note:"",name:"",formula:"",source:"",concoct:"",effect:"",Usage:"",attention:"",id:"",category:"",symptom_str_arr:"",symptom_name_arr:"",video_view:"",video_name:"",is_select:""}),B=s({}),G=s({}),R=s({}),F=s({}),V=s({}),q=s({}),H=s({}),p=s({time:"",part_no:"",number:"",file_path:"",is_order1:"",radio:1,file_size:""}),K=o([{id:1,value:"Y",text:"有教材"},{id:2,value:"N",text:"否教材"}]),N=o([{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:"注意"}]),m=s({total:0,pageSize:10,currentPage:1,background:!0,pageSizes:[10,25,50,100]}),b=s({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",type:"",role:"",clinic_id:"",filter_info:"",placeholder:""}),Y=[{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:"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:300,slot:"concoct",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 X(){d()}function Z(e){m.pageSize=e,d()}function $(e){m.currentPage=e,d()}async function d(){f.str&&(a.is_select=1),x.value=!0;const{data:e}=await Oe(Object.assign(P,{pageSize:m.pageSize,page:m.currentPage,search_fielter:b.filter_info,search_key:b.searchKey}));e.code==0&&(g.value=e.data,m.total=e.total,f.chmData.id&&g.value.forEach((t,i)=>{t.checked=!1,f.chmData.id==t.id&&(t.checked=!0)})),x.value=!1}const ee=(e,t)=>{h.value=e};function te(e){Object.keys(e).map(t=>{B[t]=e[t]})}async function ae(e){const{data:t}=await ze(Object.assign(R,{company_id:e.id}));t.code==1?(d(),l({type:"success",message:t.msg})):l({type:"error",message:t.msg})}const ie=e=>{z.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{ae(e)}).catch(()=>{l({type:"info",message:"Canceled"})})};function oe(e){N.value.forEach((t,i)=>{e==t.value&&(b.placeholder=t.text)})}function ne(e,t,i){w.value=!0,r.value=e.data.match_field_data,c.value=e.data.arr,p.file_path=e.data.file_path,O.value=e.data.field_show,p.part_no=t.name,p.file_size=e.data.file_size,c.value.forEach((n,u)=>{n.check=!1,n.is_selected==1&&(n.check=!0)})}function ce(){}function se(e){c.value.forEach((t,i)=>{e?(t.is_selected=1,t.check=!0):(t.is_selected=0,t.check=!1)})}function le(e,t){e?t.is_selected=1:t.is_selected=0}async function re(){const{data:e}=await We(Object.assign(G,{arr:c,match_field_data:r,file_path:p.file_path}));e.code==0?(w.value=!1,d(),l({type:"success",message:e.msg})):l({type:"error",message:e.msg})}function de(){}function ue(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,L();const t=[],i=[];e.symptom_str_arr.forEach((n,u)=>{t.push(n.name),i.push(n.id)}),a.symptom_name_arr=t.toString(),a.symptom_str_arr=i.toString(),y.value=!0}async function fe(e){const{data:t}=await Be(Object.assign(F,{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?(y.value=!1,d(),l({type:"success",message:t.msg})):l({type:"error",message:t.msg})}function me(){a.id="",a.name="",a.formula="",a.source="",a.concoct="",a.effect="",a.Usage="",a.attention="",a.category="",a.symptom_str_arr="",L(),a.symptom_name_arr="",y.value=!0}async function ge(e){const{data:t}=await Ie(Object.assign(V,{id:e.id}));t.code==0?(d(),l({type:"success",message:t.msg})):l({type:"error",message:t.msg})}const he=e=>{z.confirm("你确定删除吗",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{ge(e)}).catch(()=>{l({type:"info",message:"已取消"})})};function pe(){let e={};c.value.length>0&&(e=JSON.parse(JSON.stringify(c.value[0])),e.id=c.value.length+1,e.check=!1,e.is_selected=0,e.detail.forEach((t,i)=>{t.value=""})),c.value.push(e)}function _e(){const e={id:r.value.length+1,value:""},t={value:"",id:r.value.length+1};r.value.push(e);const i=JSON.parse(JSON.stringify(c.value));i.forEach(n=>n.detail.push(t)),c.value=JSON.parse(JSON.stringify(i))}function ye(e){const t=r.value.findIndex(i=>i.id===e.id);t!==-1&&r.value.splice(t,1),r.value.forEach((i,n)=>{i.id=n+1}),c.value.forEach((i,n)=>{const u=i.detail.findIndex(_=>_.id===e.id);u!==-1&&i.detail.splice(u,1),i.detail.forEach((_,Ce)=>{_.id=Ce+1})})}function be(e){const t=c.value.findIndex(i=>i.id===e.id);t!==-1&&c.value.splice(t,1),c.value.forEach((i,n)=>{i.id=n+1})}const v=s({name:"",id:"",symptom_str_arr:""});function ve(){v.symptom_str_arr=a.symptom_str_arr,E.value=!0}function xe(){a.symptom_name_arr=v.name,a.symptom_str_arr=v.id}function we(){k.value=!0}const De=s({name:"",id:""});function ke(){}async function L(){const{data:e}=await Ne(Object.assign(q,{lower:1}));e.code==0&&(W.value=e.data)}async function Ee(e){if(h.value=[],g.value.forEach((u,_)=>{u.checked&&h.value.push(u)}),h.value.length==0){l({type:"error",message:"请选择复选框"});return}let t="";const i=[];h.value.forEach((u,_)=>{i.push(u.id)}),t=i.toString();const{data:n}=await Le(Object.assign(H,{gbc_id_arr:t,export:e}));n.code==0?(e=="N"&&(C.value=n.data,S.value=!0),e=="Y"&&(window.open(Te+n.first_name.replace("var/www/html/public","")),l({type:"success",message:n.msg}))):l({type:"error",message:n.msg})}function Se(e){a.video_name=e.value,a.video_view=e.viedo,A.value=!0}function Ae(e,t){g.value.forEach((i,n)=>{i.checked=!1,t.id==i.id&&(i.checked=!0,f.chmData.id=i.id,f.chmData.name=i.name)}),D("update:chmDialog",!1),D("eventIsNum")}return Ue(f.chmData,(e,t)=>{d()}),Me(()=>{d()}),{searchDetail:b,btnSearchPart:X,loading:x,small:M,selectList:Q,columns:Y,pagination:m,handleSizeChange:Z,handleCurrentChange:$,PartList:g,order_date:J,deliverDialog:j,selectClick:ee,itemArr:a,addLocationDialog:U,locationArr:B,EditLocation:te,btnDellocation:ie,singleTableRef:I,searchItem:N,btnSearchField:oe,importDialog:w,uploadSlotFile:ne,selectImport:ce,match_field_data:r,field_showValue:O,match_field_dataArr:c,coatingRequireT:se,coatingRequire:le,btnConfirm:re,importBomData:p,btnImport:de,onEdit:ue,editDialog:y,btnEditConfirm:fe,btnAdd:me,btnDelete:he,categoryType:K,btnHang:pe,btnLie:_e,btnDelLie:ye,btnDelHang:be,symptomDialog:E,eventIsNum:xe,symptomData:v,btnSymptom:ve,btnSource:we,textbookDialog:k,eventTextbook:ke,textbookData:De,parentData:W,GbcAssignDialog:S,btnGbcAssign:Ee,GbcAssignList:C,btnVideo:Se,videoDialog:A,btnChecked:Ae}}export{$e as useEqu};