File: /var/www/html/public/static/js/hook-legacy-da68e9cc.js
System.register(["./message-legacy-10af7c73.js","./worksheet-legacy-31e0a137.js","./index-legacy-f612e930.js","./runtime-core.esm-bundler-legacy-c5df00b7.js","./utils-legacy-c0023c33.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"],(function(e,t){"use strict";var i,a,l,r,s,o,n;return{setters:[e=>{i=e.be},e=>{a=e.upLoadFileUri},e=>{l=e.Y,r=e.Z},e=>{s=e.A,o=e.r,n=e.o},null,null,null,null,null,null],execute:function(){e("WshFormInfo",(function(){const e={Authorization:l(r().accessToken)},t=s({total:0,pageSize:20,currentPage:1,background:!0}),d=o([]),c=s({id:0,part_name:"",vendor:"",desc:"",spec:"",availability:"",ro_hs:"",is_datasheet:"",category:"",top_category:"",data_file_id:0,data_file:[],prices:[],ext_url:""}),u=o([]),p=o([]),m=o([]),y=o([]),_=o([]),g=o("新建物料");return n((()=>{})),{price_columns:[{label:"idx",type:"index",width:70},{label:"qty",slot:"duration"},{label:"Price(CNY)",slot:"price"},{label:"Action",fixed:"right",minWidth:50,slot:"operation"}],norm_list:m,workshop_list:p,product_list:u,uploadWshFileSuccess:(e,t,a)=>{if(1==parseInt(e.success)){const a=e?.data?.id;if(!a)return void i(t.name+"文件上传成功,保存失败",{type:"error"});t.id=a,c.data_file_id=a,i(t.name+"文件上传成功",{type:"success"})}else i(t.name+"文件上传成功,但解析失败,请确定是否符合格式",{type:"error"})},uploadFileDownload:e=>{e.url&&window.open(e.url)},uploadFileFailed:(e,t,a)=>{i(t.name+"上传失败",{type:"error"})},uploadFileSuccess:(e,t,a,l)=>{if(1==parseInt(e.success)){const a=e?.data?.id;if(!a)return void i(t.name+"文件上传成功,保存失败",{type:"error"});t.id=a,i(t.name+"文件上传成功",{type:"success"})}else i(t.name+"文件上传成功,但解析失败,请确定是否符合格式",{type:"error"})},upLoadFileUri:a,upLoadFileUriHeader:e,wsh_title:g,resetWshForm:()=>{Object.assign(c,{id:0,part_name:"",vendor:"",desc:"",spec:"",availability:"",ro_hs:"",is_datasheet:"",category:"",top_category:"",data_file:[],data_file_id:0,prices:[],ext_url:""})},priority_list:y,stg_tpl_list:_,loadStages:e=>{},stage_form:c,pagination:t,dataList:d,columns:[{label:"序号",type:"index",width:70},{label:"工序ID",prop:"id",minWidth:100},{label:"工序名称",prop:"name",minWidth:120},{label:"参数",minWidth:150,slot:"params"},{label:"附件",fixed:"right",minWidth:250,slot:"operation"}]}}))}}}));