| | |
| | | locationCode: "", |
| | | locationName: "", |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { |
| | | title: "托盘编号", |
| | | required: true, |
| | | field: "palletCode", |
| | | type: "string", |
| | | }, |
| | | { |
| | | title: "货位编号", |
| | | required: true, |
| | | field: "locationCode", |
| | | type: "string", |
| | | }, |
| | | { |
| | | title: "货位名称", |
| | | required: true, |
| | | field: "locationName", |
| | | type: "string", |
| | | }, |
| | | ], |
| | | ]); |
| | | const editFormOptions = ref([]); |
| | | const searchFormFields = ref({ |
| | | palletCode: "", |
| | | locationCode: "", |
| | | // locationCode: "", |
| | | materielCode: "", |
| | | batchNo: "", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "托盘编号", field: "palletCode" }, |
| | | { title: "货位编号", field: "locationCode" }, |
| | | { title: "托盘编号", field: "palletCode", type: "like" }, |
| | | { title: "货位编号", field: "locationCode", type: "like" }, |
| | | { |
| | | title: "货位状态", |
| | | field: "locationStatus", |
| | | type: "selectList", |
| | | dataKey: "locationStatusEnum", |
| | | data: [], |
| | | }, |
| | | { |
| | | title: "库存状态", |
| | | field: "stockStatus", |
| | | type: "select", |
| | | dataKey: "stockStatusEmun", |
| | | data: [], |
| | | }, |
| | | ], |
| | | [ |
| | | { title: "物料编号", field: "materielCode", type: "like" }, |
| | | { title: "批次号", field: "batchNo", type: "like" }, |
| | | { |
| | | title: "所属仓库", |
| | | field: "warehouseId", |
| | | type: "select", |
| | | dataKey: "warehouses", |
| | | data: [], |
| | | }, |
| | | { title: "库存创建时间", field: "createDate", type: "datetime" }, |
| | | ], |
| | | ]); |
| | | const columns = ref([ |
| | |
| | | field: "locationCode", |
| | | title: "货位编号", |
| | | type: "string", |
| | | width: 180, |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "locationName", |
| | | title: "货位名称", |
| | | type: "string", |
| | | width: 220, |
| | | width: 270, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "warehouseId", |
| | | title: "所属仓库", |
| | | type: "string", |
| | | width: 80, |
| | | align: "left", |
| | | bind: { key: "warehouses", data: [] }, |
| | | }, |
| | | { |
| | | field: "roadwayNo", |
| | | title: "巷道编号", |
| | | type: "decimal", |
| | | width: 90, |
| | | width: 100, |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "materielCode", |
| | | title: "所含物料编号", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "batchNo", |
| | | title: "所含物料批次", |
| | | type: "string", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "sumStock", |
| | | title: "总库存", |
| | | type: "string", |
| | | width: 140, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | align: "left", |
| | | bind: { key: "stockStatusEmun", data: [] }, |
| | | }, |
| | | |
| | | { |
| | | field: "locationType", |
| | | title: "货位类型", |
| | | type: "string", |
| | | width: 120, |
| | | width: 100, |
| | | align: "left", |
| | | bind:{key: "locationTypeEnum", data: []} |
| | | bind: { key: "locationTypeEnum", data: [] }, |
| | | }, |
| | | { |
| | | field: "locationStatus", |
| | | title: "货位状态", |
| | | type: "string", |
| | | width: 200, |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "locationStatusEnum", data: [] }, |
| | | }, |
| | |
| | | field: "enalbeStatus", |
| | | title: "禁用状态", |
| | | type: "string", |
| | | width: 180, |
| | | width: 80, |
| | | align: "left", |
| | | bind: { key: "enableStatusEnum", data: [] }, |
| | | }, |
| | | { |
| | | field: "isFull", |
| | | title: "是否满盘", |
| | | type: "string", |
| | | width: 150, |
| | | align: "left", |
| | | hidden: true, |
| | | bind: { key: "yesno", data: [] }, |
| | | }, |
| | | { |
| | | field: "creater", |
| | |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | ]); |
| | | const detail = ref({ |
| | |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "stockId", |
| | | title: "库存信息主键", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | sort:true, |
| | | }, |
| | | { |
| | | field: "materielCode", |
| | | title: "物料编号", |
| | | type: "string", |
| | | width: 150, |
| | | align: "left", |
| | | sort:true, |
| | | // sort:true, |
| | | }, |
| | | { |
| | | field: "materielName", |
| | |
| | | type: "string", |
| | | width: 150, |
| | | align: "left", |
| | | sort:true, |
| | | // sort:true, |
| | | }, |
| | | { |
| | | field: "batchNo", |
| | | title: "物料批次", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | // sort:true, |
| | | }, |
| | | { |
| | | field: "orderNo", |
| | | title: "单据编号", |
| | | type: "decimal", |
| | | width: 90, |
| | | align: "left", |
| | | sort:true, |
| | | }, |
| | | { |
| | | field: "batchNo", |
| | | title: "批次号", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | sort:true, |
| | | }, |
| | | { |
| | | field: "serialNumber", |
| | | title: "序列号", |
| | | type: "int", |
| | | width: 120, |
| | | align: "left", |
| | | sort:true, |
| | | }, |
| | | { |
| | | field: "stockQuantity", |
| | | title: "库存数量", |
| | | type: "string", |
| | | width: 200, |
| | | align: "left", |
| | | sort:true, |
| | | }, |
| | | { |
| | | field: "outboundQuantity", |
| | | title: "出库数量", |
| | | type: "string", |
| | | width: 180, |
| | | align: "left", |
| | | sort:true, |
| | | }, |
| | | { |
| | | field: "supplierBatch", |
| | | title: "供应商批次", |
| | | type: "string", |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "stockQuantity", |
| | | title: "物料数量", |
| | | type: "string", |
| | | width: 80, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "status", |
| | |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | sort:true, |
| | | bind: { key: "stockStatusEmun", data: [] }, |
| | | }, |
| | | { |
| | | field: "creater", |
| | |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | sort:true, |
| | | // sort:true, |
| | | }, |
| | | { |
| | | field: "createDate", |
| | |
| | | type: "datetime", |
| | | width: 160, |
| | | align: "left", |
| | | sort:true, |
| | | sort: true, |
| | | }, |
| | | { |
| | | field: "modifier", |
| | |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | sort:true, |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "modifyDate", |
| | |
| | | type: "datetime", |
| | | width: 160, |
| | | align: "left", |
| | | sort:true, |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "remark", |
| | |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | sort:true, |
| | | hidden: true, |
| | | }, |
| | | ], |
| | | sortName: "id", |