| | |
| | | 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" }, |
| | | ], |
| | | [ |
| | | { |
| | | title:"䏿¸¸ç³»ç»", |
| | | field:"system", |
| | | type:"select", |
| | | data: [ |
| | | { key: "SMOM", value: "SMOM" }, |
| | | { key: "ERP", value: "ERP" }, |
| | | ] |
| | | } |
| | | ] |
| | | ]); |
| | | 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", |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "system", |
| | | title: "䏿¸¸ç³»ç»", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | // hidden: true, |
| | | }, |
| | | { |
| | | field: "stockStatus", |
| | | title: "åºåç¶æ", |
| | |
| | | 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", |