| | |
| | | sortName: "id", |
| | | }); |
| | | const editFormFields = ref({ |
| | | deviceCode: "", |
| | | deviceName: "", |
| | | deviceType: "", |
| | | deviceStatus: "", |
| | | deviceIp: "", |
| | | devicePort: "", |
| | | devicePlcType: "", |
| | | deviceRemark: "", |
| | | palletCode: "", |
| | | locationCode: "", |
| | | stockStatus: "", |
| | | palletType: "", |
| | | warehouseId: "", |
| | | roadway: "", |
| | | |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | | {field:'palletCode',title:'æçç¼å·',type:'string'}, |
| | | {field:'locationCode',title:'è´§ä½ç¼å·',type:'string'}, |
| | | {field: "stockStatus",title:'åºåç¶æ',type:'select',dataKey:'stockStatusEmun',data:[]} |
| | | ] |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | palletCode: "", |
| | | locationCode: "", |
| | | roadway: "", |
| | | warehouseId: "", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "æçç¼å·", field: "palletCode" }, |
| | | { title: "è´§ä½ç¼å·", field: "locationCode" }, |
| | | { title: "æçç¼å·", field: "palletCode" ,type:'like'}, |
| | | { title: "è´§ä½ç¼å·", field: "locationCode",type:'like' }, |
| | | { title: "å··éç¼å·", field: "roadway",type:'string' }, |
| | | { title: "ä»åº", field: "warehouseId",type:'select', dataKey: "warehousetype", data: [] } |
| | | ], |
| | | ]); |
| | | const columns = ref([ |
| | |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | },{ |
| | | field: "warehouseId", |
| | | title: "ä»åºç¼å·", |
| | | type: "int", |
| | | width: 80, |
| | | align: "left", |
| | | bind: { key: "warehouseEnum", data: [] }, |
| | | }, |
| | | { |
| | | field: "palletCode", |
| | | title: "æçç¼å·", |
| | |
| | | width: 90, |
| | | align: "left", |
| | | },{ |
| | | field: "roadway", |
| | | title: "å··éå·", |
| | | type: "string", |
| | | width: 70, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "locationCode", |
| | | title: "è´§ä½ç¼å·", |
| | | type: "string", |
| | |
| | | title: "æçç±»å", |
| | | type: "string", |
| | | width: 150, |
| | | align: "left", |
| | | align: "center", |
| | | sort:true, |
| | | bind: { key: "palltype", data: [] }, |
| | | formatter: (row) => { |
| | | if (row.warehouseId === 2) { |
| | | return "æå"; |
| | | } else { |
| | | return row.palletType == 1 ? "叿" : "æ¾å¸æ"; |
| | | } |
| | | } |
| | | },{ |
| | | field: "stockStatus", |
| | | title: "åºåç¶æ", |