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/hookPartList-7ddb7b30.js
import{getPartSort as Me,getPartList as Ie,getPartKeepDetailByPart as We,transferLocaBykeep as J,getSelectVolume as Ae,editModalityByKeep as Ve,autostockPartQty as xe,getCustomerList as ze,editBelongByKeep as Ke,addKeepByPart as Ee}from"./po-320602ea.js";import{b7 as n}from"./message-2472a54a.js";import{r as a,A as i,o as Re}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"./vue-router-a383d220.js";import"./utils-2ab4f76a.js";function Ze(){const L=a([]),j=a([]),O=a([]),u=a([]),m=a([]),p=a([]),B=a([]),M=a([]),I=a([]),W=a([]),A=a(""),V=a([]),_=a([]),f=a([]),N=a(!1),x=a(!1),b=a(!1),h=a(!1),v=a(!1),w=a(!1),k=a(!1),y=a(!1),D=a(!1),q=a(!1),Q=a(!1),F=a(!1),c=a(!1),d=a(1),G=a(!1),z=i({}),H=i({}),U=i({}),X=i({}),Y=i({}),Z=i({}),$=i({}),ee=i({}),te=i({}),t=i({part_id:"",loca_code:"",owner:0,modality_qty:"",modality_id:"",quantity:"",comment:"",radio:0,disabled:!0,print_url:"",bar_code:""}),o=i({owner:0,real_quantity:"",localCode:"",new_modality_id:"",modality_qty:"",disabled:!0,radio:0}),ae=i({page:1,resault:"",search_key:""}),S=i({sort_id:"",category:""}),l=i({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),oe=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号列",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"物料ID",prop:"part_id",minWidth:100,hide:({checkList:e})=>!e.includes("物料ID")},{label:"物料编码",prop:"name",minWidth:100,hide:({checkList:e})=>!e.includes("物料编码")},{label:"型号规格",prop:"standard_model",minWidth:100,hide:({checkList:e})=>!e.includes("型号规格")},{label:"供应商",prop:"comp_name",minWidth:150,hide:({checkList:e})=>!e.includes("供应商")},{label:"物料类别",prop:"sort_name",minWidth:120,hide:({checkList:e})=>!e.includes("元件类别")},{label:"元件类别",slot:"category",minWidth:120,hide:({checkList:e})=>!e.includes("元件类别")},{label:"可用数量",prop:"ours_amount_in_stock",minWidth:120,hide:({checkList:e})=>!e.includes("可用数量")},{label:"实际数量",prop:"real_amount_in_stock",minWidth:120,hide:({checkList:e})=>!e.includes("实际数量")},{label:"操作",fixed:"right",width:250,slot:"operation",hide:({checkList:e})=>!e.includes("操作")}],ne=["物料ID","物料编码","型号规格","供应商","元件类别","可用数量","实际数量","操作"],ie=a([{id:1,name:"电阻",name_k:"Resistor"},{id:2,name:"电容",name_k:"Capacitor"},{id:3,name:"二极管",name_k:"Diode"},{id:4,name:"晶体",name_k:"Transistor"},{id:5,name:"发光二极管",name_k:"LEDs"},{id:6,name:"连接",name_k:"Connector"},{id:7,name:"跳线",name_k:"Jumper"},{id:8,name:"电子芯片",name_k:"IC"},{id:9,name:"电感器",name_k:"Inductor"},{id:10,name:"转换器",name_k:"Switch"},{id:11,name:"其他",name_k:"Misc"}]);function re(){K()}function K(){g()}async function se(){const{data:e}=await Me(Object.assign(z,{}));V.value=e}function le(e){l.pageSize=e,g()}function ce(e){l.currentPage=e,g()}async function g(){c.value=!0;const{data:e}=await Ie(Object.assign(ae,{page:l.currentPage,resault:l.pageSize,search_key:A,sort_id:S.sort_id,category:S.category}));j.value=e.data,l.total=e.total,c.value=!1}function de(e){}function ue(e){x.value=!0,t.part_id=e.part_id,s(e.part_id)}async function s(e){c.value=!0;const{data:r}=await We(Object.assign(H,{part_id:e}));r.result=="1"&&(r.data.keep_info.forEach((P,C)=>{r.data.keep_info[C].add_date=P.add_date.substring(0,10),r.data.keep_info[C].qc_date=P.qc_date.substring(0,10)}),L.value=r.data.keep_info,O.value=r.data.part_info,t.print_url=r.data.print_url,c.value=!1)}const me=({row:e,column:r,rowIndex:P,columnIndex:C})=>r.property=="customer_id"||r.property=="customer_ours_amount_in_stock"||r.property=="customer_real_amount_in_stock"?{rowspan:1,colspan:1}:e.seq_seq_id>0?{rowspan:0,colspan:0}:{rowspan:e.counter,colspan:1};function pe(e){u.value=[],u.value.push(e),v.value=!0,t.loca_code=""}function _e(e){p.value=[],p.value.push(e),q.value=!0,t.modality_id="",t.modality_qty="",E()}async function fe(){const{data:e}=await J(Object.assign(U,{part_keep_id:u.value[0].part_keep_id,loca_code:t.loca_code,param:"loca_num"}));e.result==1&&(s(t.part_id),v.value=!1,n({type:"success",message:e.msg})),e.result<0&&n({type:"error",message:e.msg})}function ye(e){y.value=e}function ge(e){D.value=e}async function E(){const{data:e}=await Ae(Object.assign(X,{}));B.value=e,M.value=e}async function be(){if(y.value==!0&&(t.modality_id=""),y.value==!0&&t.modality_qty==""){n({type:"error",message:"请输入卷数量"});return}const{data:e}=await Ve(Object.assign(Y,{part_keep_id:p.value[0].part_keep_id,modality_id:t.modality_id,modality_qty:t.modality_qty}));e.result==1&&(s(t.part_id),q.value=!1),e.result<0&&n({type:"error",message:e.msg})}function he(e){m.value=[],m.value.push(e),k.value=!0,t.quantity="",t.comment=""}function ve(e){_.value=[],_.value.push(e),h.value=!0,R()}async function we(){if(t.quantity==""){n({type:"error",message:"请输入盘点数量"});return}if(t.comment==""){n({type:"error",message:"请输入盘点理由"});return}const{data:e}=await xe(Object.assign(Z,{local_info:"",part_keep_id_get:m.value[0].part_keep_id,quantity:t.quantity,comment:t.comment}));e.result==1&&(s(t.part_id),k.value=!1),e.result<0&&n({type:"error",message:e.msg})}async function R(){const{data:e}=await ze(Object.assign(z,{page:1,resault:100}));I.value=e.data,W.value=e.data}async function ke(){if(t.radio==1&&(t.owner=="0"||t.owner=="")){n({type:"error",message:"请选择客户"});return}const{data:e}=await Ke(Object.assign($,{part_keep_id:_.value[0].part_keep_id,owner:t.owner}));e.result==1&&(s(t.part_id),h.value=!1),e.result<0&&n({type:"error",message:e.msg})}function T(e){e==0?(t.disabled=!0,t.owner="0"):e==1&&(t.disabled=!1,t.owner="")}function De(e){o.radio=e,e==0?(o.disabled=!0,o.owner="0"):e==1&&(o.disabled=!1)}function qe(){window.open(t.print_url+"&part_id="+t.part_id)}function Se(){w.value=!0,E(),R()}async function Pe(){if(o.radio==1&&(o.owner=="0"||o.owner=="")){n({type:"error",message:"请选择客户"});return}if(D.value==!0?o.new_modality_id="":o.modality_qty="",D.value==!0&&o.modality_qty==""){n({type:"error",message:"请输入卷数量"});return}const{data:e}=await Ee(Object.assign(ee,{part_id:t.part_id,owner:o.owner,real_quantity:o.real_quantity,localCode:o.localCode,new_modality_id:o.new_modality_id,modality_qty:o.modality_qty}));e.result==1&&(s(t.part_id),w.value=!1),e.result<0&&n({type:"error",message:e.msg})}function Ce(){d.value=1}function Le(){d.value=0}function je(e){e==!0?d.value=0:e==!1&&(d.value=1)}function Oe(e){f.value=[],f.value.push(e),b.value=!0,t.bar_code=""}async function Be(){const{data:e}=await J(Object.assign(te,{part_keep_id:f.value[0].part_keep_id,bar_code:t.bar_code,param:"batch_num"}));e.result==1&&(s(t.part_id),b.value=!1,n({type:"success",message:e.msg})),e.result<0&&n({type:"error",message:e.msg})}return Re(()=>{g(),se()}),{PartList:j,search_key:A,small:N,disabled:F,background:Q,handleSizeChange:le,handleCurrentChange:ce,columns:oe,selectList:ne,loading:c,pagination:l,partAddModel:S,partSortData:V,partTypeData:ie,btnSearchPart:K,changeSearch_key:re,handleSelectionChange:de,btnPartDetailDialog:ue,partDetailDialog:x,partDetailData:L,PartInfo:O,objectSpanMethod:me,relocationDialog:v,btnRelocationDialog:pe,relocationData:u,btnNewLocaCode:fe,editDatat:t,btnStorageVolume:_e,storageVolume:p,storageVolumeDialog:q,volumeDataList:B,btnStorage:be,btnChecked:ye,btnChecked1:ge,checked:y,coilDialog:k,coilData:m,btnCoilDialog:he,btnCoil:we,affiliationDialog:h,affiliationData:_,btnAffiliation:ve,customerList:I,btnAffiliat:ke,changeRadio:T,changeRadio:T,btnPrint:qe,addModality:Se,addModalityDialog:w,btnModalitysubbmit:Pe,changeRadio1:De,customerList1:W,volumeDataList1:M,modality:o,btnShowDefault:Ce,btnShowAll:Le,show:d,showValue:G,onSwitch:je,btnBatch:Oe,batchDialog:b,batchData:f,btnBatchSubmit:Be}}export{Ze as useEqu};