2 lines
10 KiB
Java
2 lines
10 KiB
Java
var y=Object.defineProperty;var f=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var g=(t,l,o)=>l in t?y(t,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[l]=o,b=(t,l)=>{for(var o in l||(l={}))M.call(l,o)&&g(t,o,l[o]);if(f)for(var o of f(l))S.call(l,o)&&g(t,o,l[o]);return t};var h=(t,l,o)=>new Promise((a,r)=>{var p=n=>{try{s(o.next(n))}catch(c){r(c)}},d=n=>{try{s(o.throw(n))}catch(c){r(c)}},s=n=>n.done?a(n.value):Promise.resolve(n.value).then(p,d);s((o=o.apply(t,l)).next())});import{B as v}from"./index-BDvqZ5j4.js";import{B as N}from"./BasicForm-ClUSoD_-.js";import"./helper-DcLcf4v6.js";import{u as C}from"./useForm-D61zovon.js";import{s as F}from"./MesXslRawMaterialEntry.api-B6SjsYRW.js";import{a as D}from"./useModal-DaJ3Bflg.js";import{e as R,y as k,A as J,B as A,c as B,u as i,z as Y,f as O,r as w}from"./vue-vendor-DNhG1Cve.js";import{au as W}from"./index-X7Y8jykP.js";const q=[{title:"条码",align:"center",dataIndex:"barcode",width:200},{title:"批次号",align:"center",dataIndex:"batchNo",width:180},{title:"入场时间",align:"center",dataIndex:"entryTime",width:160,customRender:({text:t})=>t?t.length>19?t.substring(0,19):t:""},{title:"榜单号",align:"center",dataIndex:"billNo",width:160},{title:"物料名称",align:"center",dataIndex:"materialName",width:140,ellipsis:!0},{title:"供料客户",align:"center",dataIndex:"supplyCustomer",width:140,ellipsis:!0},{title:"供应商名称",align:"center",dataIndex:"supplierName",width:140,ellipsis:!0},{title:"厂家物料名称",align:"center",dataIndex:"manufacturerMaterialName",width:140,ellipsis:!0},{title:"保质期",align:"center",dataIndex:"shelfLife",width:100},{title:"总重(KG)",align:"center",dataIndex:"totalWeight",width:100},{title:"托盘及皮重(合计)",align:"center",dataIndex:"palletTareTotal",width:120},{title:"总份数",align:"center",dataIndex:"totalPortions",width:80},{title:"每份总重(KG)",align:"center",dataIndex:"portionWeight",width:110},{title:"包装物皮重",align:"center",dataIndex:"portionPackagingTare",width:110,ellipsis:!0},{title:"托盘重量",align:"center",dataIndex:"portionPalletWeight",width:100,ellipsis:!0},{title:"每份包数",align:"center",dataIndex:"portionPackages",width:80},{title:"检测结果",align:"center",dataIndex:"testResult_dictText",width:90},{title:"检测状态",align:"center",dataIndex:"testStatus_dictText",width:90},{title:"打印标记",align:"center",dataIndex:"printFlag_dictText",width:90},{title:"入库结存",align:"center",dataIndex:"stockBalance_dictText",width:90},{title:"库位",align:"center",dataIndex:"warehouseLocation",width:100},{title:"卸货人",align:"center",dataIndex:"unloadOperator",width:90},{title:"是否特采",align:"center",dataIndex:"isSpecialAdoption_dictText",width:80},{title:"特采操作人",align:"center",dataIndex:"specialAdoptionOperator",width:100},{title:"特采时间",align:"center",dataIndex:"specialAdoptionTime",width:160,customRender:({text:t})=>t?t.length>19?t.substring(0,19):t:""},{title:"特采原因",align:"center",dataIndex:"specialAdoptionReason",width:160,ellipsis:!0},{title:"状态",align:"center",dataIndex:"status_dictText",width:80},{title:"备注",align:"center",dataIndex:"remark",width:160,ellipsis:!0},{title:"创建时间",align:"center",dataIndex:"createTime",width:160,customRender:({text:t})=>t?t.length>19?t.substring(0,19):t:""}],Z=[{label:"条码",field:"barcode",component:"JInput",colProps:{span:6}},{label:"批次号",field:"batchNo",component:"JInput",colProps:{span:6}},{label:"榜单号",field:"billNo",component:"JInput",colProps:{span:6}},{label:"物料名称",field:"materialName",component:"JInput",colProps:{span:6}},{label:"供应商名称",field:"supplierName",component:"JInput",colProps:{span:6}},{label:"检测结果",field:"testResult",component:"JDictSelectTag",componentProps:{dictCode:"xslmes_test_result"},colProps:{span:6}},{label:"检测状态",field:"testStatus",component:"JDictSelectTag",componentProps:{dictCode:"xslmes_test_status"},colProps:{span:6}},{label:"是否特采",field:"isSpecialAdoption",component:"JDictSelectTag",componentProps:{dictCode:"yn"},colProps:{span:6}},{label:"状态",field:"status",component:"JDictSelectTag",componentProps:{dictCode:"xslmes_entry_status"},colProps:{span:6}},{label:"入场时间",field:"entryTime",component:"RangePicker",componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss"},colProps:{span:8}}],L=[{label:"",field:"id",component:"Input",show:!1},{label:"",field:"weightRecordId",component:"Input",show:!1},{label:"",field:"materialId",component:"Input",show:!1},{label:"",field:"supplierId",component:"Input",show:!1},{label:"条码",field:"barcode",component:"Input",componentProps:{placeholder:"请输入条码"}},{label:"批次号",field:"batchNo",component:"Input",componentProps:{placeholder:"请输入批次号"}},{label:"入场时间",field:"entryTime",component:"DatePicker",componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss",placeholder:"请选择入场时间"}},{label:"榜单号",field:"billNo",component:"Input",componentProps:{placeholder:"请输入榜单号"}},{label:"物料名称",field:"materialName",component:"Input",componentProps:{placeholder:"请输入物料名称"}},{label:"供料客户",field:"supplyCustomer",component:"Input",componentProps:{placeholder:"请输入供料客户"}},{label:"供应商名称",field:"supplierName",component:"Input",componentProps:{placeholder:"请输入供应商名称"}},{label:"厂家物料名称",field:"manufacturerMaterialName",component:"Input",componentProps:{placeholder:"请输入厂家物料名称"}},{label:"保质期",field:"shelfLife",component:"Input",componentProps:{placeholder:"请输入保质期"}},{label:"总重(KG)",field:"totalWeight",component:"InputNumber",componentProps:{min:0,precision:2,placeholder:"请输入总重",style:{width:"100%"}}},{label:"托盘及皮重(合计)",field:"palletTareTotal",component:"InputNumber",componentProps:{disabled:!0,precision:3,style:{width:"100%"}}},{label:"总份数",field:"totalPortions",component:"Input",componentProps:{placeholder:"请输入总份数(多行明细用 / 拼接)",style:{width:"100%"}}},{label:"每份总重(KG)",field:"portionWeight",component:"Input",componentProps:{placeholder:"请输入每份总重(多行明细用 / 拼接)",style:{width:"100%"}}},{label:"包装物皮重",field:"portionPackagingTare",component:"Input",componentProps:{disabled:!0,placeholder:"拆码明细拼接(/ 分隔)"}},{label:"托盘重量",field:"portionPalletWeight",component:"Input",componentProps:{disabled:!0,placeholder:"拆码明细拼接(/ 分隔)"}},{label:"每份包数",field:"portionPackages",component:"Input",componentProps:{placeholder:"请输入每份包数(多行明细用 / 拼接)",style:{width:"100%"}}},{label:"检测结果",field:"testResult",component:"JDictSelectTag",componentProps:{dictCode:"xslmes_test_result",placeholder:"请选择检测结果"}},{label:"检测状态",field:"testStatus",component:"JDictSelectTag",componentProps:{dictCode:"xslmes_test_status",placeholder:"请选择检测状态"}},{label:"打印标记",field:"printFlag",component:"JDictSelectTag",componentProps:{dictCode:"xslmes_print_flag",placeholder:"请选择"}},{label:"入库结存",field:"stockBalance",component:"JDictSelectTag",componentProps:{dictCode:"yn",placeholder:"请选择"}},{label:"库位",field:"warehouseLocation",component:"Input",componentProps:{placeholder:"请输入库位"}},{label:"卸货人",field:"unloadOperator",component:"Input",componentProps:{placeholder:"请输入卸货人"}},{label:"是否特采",field:"isSpecialAdoption",component:"JDictSelectTag",componentProps:{dictCode:"yn",placeholder:"请选择"}},{label:"特采操作人",field:"specialAdoptionOperator",component:"Input",componentProps:{placeholder:"请输入特采操作人"}},{label:"特采时间",field:"specialAdoptionTime",component:"DatePicker",componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss",placeholder:"请选择特采时间"}},{label:"特采原因",field:"specialAdoptionReason",component:"InputTextArea",componentProps:{rows:3,placeholder:"请输入特采原因"},colProps:{span:24}},{label:"状态",field:"status",component:"JDictSelectTag",componentProps:{dictCode:"xslmes_entry_status",placeholder:"请选择状态"}},{label:"备注",field:"remark",component:"InputTextArea",componentProps:{rows:3,placeholder:"请输入备注"},colProps:{span:24}}],ee={barcode:{title:"条码",order:0,view:"text"},batchNo:{title:"批次号",order:1,view:"text"},entryTime:{title:"入场时间",order:2,view:"datetime"},billNo:{title:"榜单号",order:3,view:"text"},materialName:{title:"物料名称",order:4,view:"text"},supplierName:{title:"供应商名称",order:5,view:"text"},totalWeight:{title:"总重(KG)",order:6,view:"number"},palletTareTotal:{title:"托盘及皮重(合计)",order:7,view:"number"},testStatus:{title:"检测状态",order:8,view:"list",dictCode:"xslmes_test_status"},isSpecialAdoption:{title:"是否特采",order:9,view:"list",dictCode:"yn"},status:{title:"状态",order:10,view:"list",dictCode:"xslmes_entry_status"}},G=R({__name:"MesXslRawMaterialEntryModal",emits:["register","success"],setup(t,{emit:l}){const o=l,a=w(!0),r=w(!1),[p,{setProps:d,resetFields:s,setFieldsValue:n,validate:c,scrollToField:I}]=C({labelWidth:120,schemas:L,showActionButtonGroup:!1,baseColProps:{span:12}}),[P,{setModalProps:m,closeModal:x}]=D(e=>h(null,null,function*(){yield s(),m({confirmLoading:!1,showCancelBtn:!!(e!=null&&e.showFooter),showOkBtn:!!(e!=null&&e.showFooter)}),a.value=!!(e!=null&&e.isUpdate),r.value=!(e!=null&&e.showFooter),i(a)&&(yield n(b({},e.record))),d({disabled:!(e!=null&&e.showFooter)})})),_=B(()=>i(a)?i(r)?"详情":"编辑":"新增");function T(){return h(this,null,function*(){try{const e=yield c();m({confirmLoading:!0}),yield F(e,i(a)),x(),o("success")}catch(e){if(e!=null&&e.errorFields){const u=e.errorFields[0];u&&I(u.name,{behavior:"smooth",block:"center"})}return Promise.reject(e)}finally{m({confirmLoading:!1})}})}return(e,u)=>(Y(),k(i(v),A(e.$attrs,{onRegister:i(P),destroyOnClose:"",title:_.value,width:1100,onOk:T}),{default:J(()=>[O(i(N),{onRegister:i(p),name:"MesXslRawMaterialEntryForm"},null,8,["onRegister"])]),_:1},16,["onRegister","title"]))}}),H=W(G,[["__scopeId","data-v-755913fd"]]),te=Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"}));export{H as M,ee as a,te as b,q as c,Z as s};
|