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