import{h as n,u as a}from"./index-CYriLmQo.js";const d=[{title:"容器编码",align:"center",dataIndex:"containerCode"},{title:"物料编码",align:"center",dataIndex:"sku"},{title:"批次",align:"center",dataIndex:"batchNo"},{title:"货品名称",align:"center",dataIndex:"goodsName"},{title:"物料类型",align:"center",dataIndex:"goodsType"},{title:"数量",align:"center",dataIndex:"qty"},{title:"接收数量",align:"center",dataIndex:"qtyReceipt"},{title:"分配数量",align:"center",dataIndex:"qtyAllocated"},{title:"自动库虚拟库区",align:"center",dataIndex:"autoAreaCode_dictText"},{title:"单位",align:"center",dataIndex:"unit_dictText"},{title:"状态",align:"center",dataIndex:"goodsStatus_dictText"},{title:"上次盘点时间",align:"center",dataIndex:"lastCheckedTime"},{title:"预留字段1",align:"center",dataIndex:"extendStrOne"},{title:"预留字段2",align:"center",dataIndex:"extendStrTwo"},{title:"预留时间1",align:"center",dataIndex:"extendDateOne"},{title:"预留时间2",align:"center",dataIndex:"extendDateTwo"}],s=[{label:"容器编码",field:"containerCode",component:"Input"},{label:"物料编码",field:"sku",component:"Input"},{label:"批次",field:"batchNo",component:"Input"},{label:"货品名称",field:"goodsName",component:"Input"},{label:"物料类型",field:"goodsType",component:"Input"},{label:"数量",field:"qty",component:"InputNumber"},{label:"接收数量",field:"qtyReceipt",component:"InputNumber"},{label:"分配数量",field:"qtyAllocated",component:"InputNumber"},{label:"自动库虚拟库区",field:"autoAreaCode",component:"JDictSelectTag",componentProps:{dictCode:"ware_code"}},{label:"单位",field:"unit",component:"JDictSelectTag",componentProps:{dictCode:"wms_stock_unit"}},{label:"状态",field:"goodsStatus",component:"JDictSelectTag",componentProps:{dictCode:"wms_container_status"}},{label:"上次盘点时间",field:"lastCheckedTime",component:"RangePicker",componentProps:{valueType:"Date",showTime:!0}}],l=[{label:"容器编码",field:"containerCode",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入容器编码!"}]},{label:"物料编码",field:"sku",component:"Input"},{label:"批次",field:"batchNo",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入批次!"}]},{label:"货品名称",field:"goodsName",component:"Input"},{label:"物料类型",field:"goodsType",component:"Input"},{label:"数量",field:"qty",component:"InputNumber",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入数量!"}]},{label:"接收数量",field:"qtyReceipt",component:"InputNumber",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入接收数量!"}]},{label:"分配数量",field:"qtyAllocated",component:"InputNumber"},{label:"自动库虚拟库区",field:"autoAreaCode",component:"JDictSelectTag",componentProps:{dictCode:"ware_code"}},{label:"单位",field:"unit",component:"JDictSelectTag",componentProps:{dictCode:"wms_stock_unit"}},{label:"状态",field:"goodsStatus",component:"JDictSelectTag",componentProps:{dictCode:"wms_container_status"}},{label:"上次盘点时间",field:"lastCheckedTime",component:"DatePicker",componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss"}},{label:"预留字段1",field:"extendStrOne",component:"Input"},{label:"预留字段2",field:"extendStrTwo",component:"Input"},{label:"预留时间1",field:"extendDateOne",component:"DatePicker",componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss"}},{label:"预留时间2",field:"extendDateTwo",component:"DatePicker",componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss"}},{label:"",field:"id",component:"Input",show:!1}],c={containerCode:{title:"容器编码",order:0,view:"text",type:"string"},sku:{title:"物料编码",order:1,view:"text",type:"string"},batchNo:{title:"批次",order:2,view:"text",type:"string"},goodsName:{title:"货品名称",order:3,view:"text",type:"string"},goodsType:{title:"物料类型",order:4,view:"text",type:"string"},qty:{title:"数量",order:5,view:"number",type:"number"},qtyReceipt:{title:"接收数量",order:6,view:"number",type:"number"},qtyAllocated:{title:"分配数量",order:7,view:"number",type:"number"},autoAreaCode:{title:"自动库虚拟库区",order:8,view:"text",type:"string"},unit:{title:"单位",order:9,view:"text",type:"string"},goodsStatus:{title:"状态",order:10,view:"text",type:"string"},lastCheckedTime:{title:"上次盘点时间",order:11,view:"datetime",type:"string"},extendStrOne:{title:"预留字段1",order:12,view:"text",type:"string"},extendStrTwo:{title:"预留字段2",order:13,view:"text",type:"string"},extendDateOne:{title:"预留时间1",order:14,view:"datetime",type:"string"},extendDateTwo:{title:"预留时间2",order:15,view:"datetime",type:"string"}};function m(e){return l}const{createConfirm:r}=a();const p="/wms/wmsContainerGoods/exportXls",u="/wms/wmsContainerGoods/importExcel",w=e=>n.get({url:"/wms/wmsContainerGoods/list",params:e}),g=(e,t)=>n.delete({url:"/wms/wmsContainerGoods/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),x=(e,t)=>{r({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>n.delete({url:"/wms/wmsContainerGoods/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},b=(e,t)=>{let o=t?"/wms/wmsContainerGoods/edit":"/wms/wmsContainerGoods/add";return n.post({url:o,params:e})};export{p as a,c as b,d as c,g as d,x as e,b as f,u as g,l as h,m as i,w as l,s};
