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/hook-9077ee2f.js
import{be as i}from"./message-2472a54a.js";import{upLoadFileUri as S}from"./worksheet-0e646cc3.js";import{Y as A,Z as L}from"./index-912f0f0b.js";import{A as l,r as a,o as T}from"./runtime-core.esm-bundler-6128546f.js";import"./utils-2ab4f76a.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";function N(){const d={Authorization:A(L().accessToken)},m=l({total:0,pageSize:20,currentPage:1,background:!0}),p=a([]),_=[{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"}],r=l({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=()=>{Object.assign(r,{id:0,part_name:"",vendor:"",desc:"",spec:"",availability:"",ro_hs:"",is_datasheet:"",category:"",top_category:"",data_file:[],data_file_id:0,prices:[],ext_url:""})},f=a([]),h=a([]),y=a([]),g=a([]),b=a([]),w=t=>{},x=a("新建物料"),W=(t,e,n)=>{i(e.name+"上传失败",{type:"error"})},k=(t,e,n,s)=>{var o;if(parseInt(t.success)==1){const c=(o=t==null?void 0:t.data)==null?void 0:o.id;if(!c){i(e.name+"文件上传成功,保存失败",{type:"error"});return}e.id=c,i(e.name+"文件上传成功",{type:"success"})}else i(e.name+"文件上传成功,但解析失败,请确定是否符合格式",{type:"error"})},v=t=>{t.url&&window.open(t.url)},F=(t,e,n)=>{var s;if(parseInt(t.success)==1){const o=(s=t==null?void 0:t.data)==null?void 0:s.id;if(!o){i(e.name+"文件上传成功,保存失败",{type:"error"});return}e.id=o,r.data_file_id=o,i(e.name+"文件上传成功",{type:"success"})}else i(e.name+"文件上传成功,但解析失败,请确定是否符合格式",{type:"error"})},I=[{label:"idx",type:"index",width:70},{label:"qty",slot:"duration"},{label:"Price(CNY)",slot:"price"},{label:"Action",fixed:"right",minWidth:50,slot:"operation"}];return T(()=>{}),{price_columns:I,norm_list:y,workshop_list:h,product_list:f,uploadWshFileSuccess:F,uploadFileDownload:v,uploadFileFailed:W,uploadFileSuccess:k,upLoadFileUri:S,upLoadFileUriHeader:d,wsh_title:x,resetWshForm:u,priority_list:g,stg_tpl_list:b,loadStages:w,stage_form:r,pagination:m,dataList:p,columns:_}}export{N as WshFormInfo};