File: /var/www/html/public/static/js/hook-legacy-ae99b48a.js
System.register(["./message-legacy-10af7c73.js","./worksheet-legacy-5ffe0f90.js","./index-legacy-f36f0e15.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,l){"use strict";var i,r,s,a,o,n,t;return{setters:[e=>{i=e.be},e=>{r=e.upLoadFileUri},e=>{s=e.Y,a=e.Z},e=>{o=e.A,n=e.r,t=e.o},null,null,null,null,null,null],execute:function(){e("WshFormInfo",(function(){const e={Authorization:s(a().accessToken)},l=o({total:0,pageSize:20,currentPage:1,background:!0}),d=n([]),u=o({}),c=n([]),m=n([]),p=n([]),f=n(""),h=n("新建"),_=n(null),y=o({line_name:"",data:[],columns:[],form_fields:[],form_rules:[],uri:""}),g=n([]);return t((()=>{})),{selectItemRefs:g,onLoadOptions:async function(e){if(!_.value)return!1;const{data:l}=await _.value.loadOptions({});for(var i in y.line_name=l?.child?.model?.tname?l?.child?.model?.tname:"",y.columns=l?.child?.fields?l?.child?.fields:[],y.form_fields=l?.child?.options?.form_fields?l?.child?.options?.form_fields:[],y.form_rules=l?.child?.form_rules?l?.child?.form_rules:[],y.uri=l?.child?.uri?l?.child?.uri:"",y.form_fields)g.value[i]=[];e&&e()},form_inner_fields:c,api_call:_,cur_model_name:f,uploadWshFileSuccess:(e,l,r)=>{if(1==parseInt(e.success)){const r=e?.data?.id;if(!r)return void i(l.name+"文件上传成功,保存失败",{type:"error"});l.id=r,i(l.name+"文件上传成功",{type:"success"})}else i(l.name+"文件上传成功,但解析失败,请确定是否符合格式",{type:"error"})},uploadFileDownload:e=>{e.url&&window.open(e.url)},uploadFileFailed:(e,l,r)=>{i(l.name+"上传失败",{type:"error"})},uploadFileSuccess:(e,l,r,s)=>{if(1==parseInt(e.success)){const r=e?.data?.id;if(!r)return void i(l.name+"文件上传成功,保存失败",{type:"error"});l.id=r,i(l.name+"文件上传成功",{type:"success"})}else i(l.name+"文件上传成功,但解析失败,请确定是否符合格式",{type:"error"})},upLoadFileUri:r,upLoadFileUriHeader:e,wsh_title:h,resetWshForm:()=>{for(var e of(Object.assign(u,{}),c.value))u[e.prop]=e.default;u.id=0,u.child=[]},priority_list:m,stg_tpl_list:p,wsh_form:u,pagination:l,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"}]}}))}}}));