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-legacy-386b8b6a.js
System.register(["./po-legacy-3a05f0ff.js","./message-legacy-10af7c73.js","./runtime-core.esm-bundler-legacy-c5df00b7.js","./index-legacy-dd4862fc.js","./preload-helper-legacy-f8638e03.js","./vue-i18n.runtime.esm-bundler-legacy-720876b1.js","./index-legacy-c9e20962.js","./_commonjsHelpers-legacy-5498c249.js","./vue-router-legacy-a12307c3.js","./utils-legacy-c0023c33.js"],(function(e,a){"use strict";var t,i,n,o,l,r,s,d,c,u,_,p,m,y;return{setters:[e=>{t=e.getPartSort,i=e.getPartList,n=e.getPartKeepDetailByPart,o=e.transferLocaBykeep,l=e.getSelectVolume,r=e.editModalityByKeep,s=e.autostockPartQty,d=e.getCustomerList,c=e.editBelongByKeep,u=e.addKeepByPart},e=>{_=e.b7},e=>{p=e.r,m=e.A,y=e.o},null,null,null,null,null,null,null],execute:function(){e("useEqu",(function(){const e=p([]),a=p([]),g=p([]),h=p([]),b=p([]),v=p([]),f=p([]),k=p([]),w=p([]),D=p([]),j=p(""),q=p([]),L=p([]),S=p([]),C=p(!1),P=p(!1),O=p(!1),B=p(!1),I=p(!1),W=p(!1),x=p(!1),M=p(!1),z=p(!1),A=p(!1),R=p(!1),V=p(!1),K=p(!1),E=p(1),T=p(!1),H=m({}),J=m({}),N=m({}),Q=m({}),F=m({}),G=m({}),U=m({}),X=m({}),Y=m({}),Z=m({part_id:"",loca_code:"",owner:0,modality_qty:"",modality_id:"",quantity:"",comment:"",radio:0,disabled:!0,print_url:"",bar_code:""}),$=m({owner:0,real_quantity:"",localCode:"",new_modality_id:"",modality_qty:"",disabled:!0,radio:0}),ee=m({page:1,resault:"",search_key:""}),ae=m({sort_id:"",category:""}),te=m({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),ie=p([{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 ne(){oe()}async function oe(){K.value=!0;const{data:e}=await i(Object.assign(ee,{page:te.currentPage,resault:te.pageSize,search_key:j,sort_id:ae.sort_id,category:ae.category}));a.value=e.data,te.total=e.total,K.value=!1}async function le(a){K.value=!0;const{data:t}=await n(Object.assign(J,{part_id:a}));"1"==t.result&&(t.data.keep_info.forEach(((e,a)=>{t.data.keep_info[a].add_date=e.add_date.substring(0,10),t.data.keep_info[a].qc_date=e.qc_date.substring(0,10)})),e.value=t.data.keep_info,g.value=t.data.part_info,Z.print_url=t.data.print_url,K.value=!1)}async function re(){const{data:e}=await l(Object.assign(Q,{}));f.value=e,k.value=e}async function se(){const{data:e}=await d(Object.assign(H,{page:1,resault:100}));w.value=e.data,D.value=e.data}function de(e){0==e?(Z.disabled=!0,Z.owner="0"):1==e&&(Z.disabled=!1,Z.owner="")}return y((()=>{oe(),async function(){const{data:e}=await t(Object.assign(H,{}));q.value=e}()})),{PartList:a,search_key:j,small:C,disabled:V,background:R,handleSizeChange:function(e){te.pageSize=e,oe()},handleCurrentChange:function(e){te.currentPage=e,oe()},columns:[{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("操作")}],selectList:["物料ID","物料编码","型号规格","供应商","元件类别","可用数量","实际数量","操作"],loading:K,pagination:te,partAddModel:ae,partSortData:q,partTypeData:ie,btnSearchPart:ne,changeSearch_key:function(){ne()},handleSelectionChange:function(e){},btnPartDetailDialog:function(e){P.value=!0,Z.part_id=e.part_id,le(e.part_id)},partDetailDialog:P,partDetailData:e,PartInfo:g,objectSpanMethod:({row:e,column:a,rowIndex:t,columnIndex:i})=>"customer_id"==a.property||"customer_ours_amount_in_stock"==a.property||"customer_real_amount_in_stock"==a.property?{rowspan:1,colspan:1}:e.seq_seq_id>0?{rowspan:0,colspan:0}:{rowspan:e.counter,colspan:1},relocationDialog:I,btnRelocationDialog:function(e){h.value=[],h.value.push(e),I.value=!0,Z.loca_code=""},relocationData:h,btnNewLocaCode:async function(){const{data:e}=await o(Object.assign(N,{part_keep_id:h.value[0].part_keep_id,loca_code:Z.loca_code,param:"loca_num"}));1==e.result&&(le(Z.part_id),I.value=!1,_({type:"success",message:e.msg})),e.result<0&&_({type:"error",message:e.msg})},editDatat:Z,btnStorageVolume:function(e){v.value=[],v.value.push(e),A.value=!0,Z.modality_id="",Z.modality_qty="",re()},storageVolume:v,storageVolumeDialog:A,volumeDataList:f,btnStorage:async function(){if(1==M.value&&(Z.modality_id=""),1==M.value&&""==Z.modality_qty)return void _({type:"error",message:"请输入卷数量"});const{data:e}=await r(Object.assign(F,{part_keep_id:v.value[0].part_keep_id,modality_id:Z.modality_id,modality_qty:Z.modality_qty}));1==e.result&&(le(Z.part_id),A.value=!1),e.result<0&&_({type:"error",message:e.msg})},btnChecked:function(e){M.value=e},btnChecked1:function(e){z.value=e},checked:M,coilDialog:x,coilData:b,btnCoilDialog:function(e){b.value=[],b.value.push(e),x.value=!0,Z.quantity="",Z.comment=""},btnCoil:async function(){if(""==Z.quantity)return void _({type:"error",message:"请输入盘点数量"});if(""==Z.comment)return void _({type:"error",message:"请输入盘点理由"});const{data:e}=await s(Object.assign(G,{local_info:"",part_keep_id_get:b.value[0].part_keep_id,quantity:Z.quantity,comment:Z.comment}));1==e.result&&(le(Z.part_id),x.value=!1),e.result<0&&_({type:"error",message:e.msg})},affiliationDialog:B,affiliationData:L,btnAffiliation:function(e){L.value=[],L.value.push(e),B.value=!0,se()},customerList:w,btnAffiliat:async function(){if(1==Z.radio&&("0"==Z.owner||""==Z.owner))return void _({type:"error",message:"请选择客户"});const{data:e}=await c(Object.assign(U,{part_keep_id:L.value[0].part_keep_id,owner:Z.owner}));1==e.result&&(le(Z.part_id),B.value=!1),e.result<0&&_({type:"error",message:e.msg})},changeRadio:de,changeRadio:de,btnPrint:function(){window.open(Z.print_url+"&part_id="+Z.part_id)},addModality:function(){W.value=!0,re(),se()},addModalityDialog:W,btnModalitysubbmit:async function(){if(1==$.radio&&("0"==$.owner||""==$.owner))return void _({type:"error",message:"请选择客户"});if(1==z.value?$.new_modality_id="":$.modality_qty="",1==z.value&&""==$.modality_qty)return void _({type:"error",message:"请输入卷数量"});const{data:e}=await u(Object.assign(X,{part_id:Z.part_id,owner:$.owner,real_quantity:$.real_quantity,localCode:$.localCode,new_modality_id:$.new_modality_id,modality_qty:$.modality_qty}));1==e.result&&(le(Z.part_id),W.value=!1),e.result<0&&_({type:"error",message:e.msg})},changeRadio1:function(e){$.radio=e,0==e?($.disabled=!0,$.owner="0"):1==e&&($.disabled=!1)},customerList1:D,volumeDataList1:k,modality:$,btnShowDefault:function(){E.value=1},btnShowAll:function(){E.value=0},show:E,showValue:T,onSwitch:function(e){1==e?E.value=0:0==e&&(E.value=1)},btnBatch:function(e){S.value=[],S.value.push(e),O.value=!0,Z.bar_code=""},batchDialog:O,batchData:S,btnBatchSubmit:async function(){const{data:e}=await o(Object.assign(Y,{part_keep_id:S.value[0].part_keep_id,bar_code:Z.bar_code,param:"batch_num"}));1==e.result&&(le(Z.part_id),O.value=!1,_({type:"success",message:e.msg})),e.result<0&&_({type:"error",message:e.msg})}}}))}}}));