From c827fe7b0c5b3b444d76ba0d96a2649c764630dd Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期四, 14 十一月 2024 16:36:08 +0800 Subject: [PATCH] 修改WCS、WMS出入库逻辑 --- 项目代码/WMS/WIDESEA_WMSClient/src/views/stock/stockInfo.vue | 346 ++++++++++++++++++++++++++++++--------------------------- 1 files changed, 184 insertions(+), 162 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/stock/stockInfo.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/stock/stockInfo.vue" index 0adaf93..0cbeebf 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/stock/stockInfo.vue" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/stock/stockInfo.vue" @@ -1,187 +1,209 @@ <template> - <view-grid - ref="grid" - :columns="columns" - :detail="detail" - :editFormFields="editFormFields" - :editFormOptions="editFormOptions" - :searchFormFields="searchFormFields" - :searchFormOptions="searchFormOptions" - :table="table" - :extend="extend" - > - </view-grid> - </template> + <view-grid + ref="grid" + :columns="columns" + :detail="detail" + :editFormFields="editFormFields" + :editFormOptions="editFormOptions" + :searchFormFields="searchFormFields" + :searchFormOptions="searchFormOptions" + :table="table" + :extend="extend" + > + </view-grid> +</template> <script> - import extend from "@/extension/stock/stockInfo.js"; - import { ref, defineComponent } from "vue"; - export default defineComponent({ - setup() { - const table = ref({ - key: "id", - footer: "Foots", - cnName: "搴撳瓨淇℃伅", - name: "stockInfo", - url: "/StockInfo/", - sortName: "id", - }); - const editFormFields = ref({ - deviceCode: "", - deviceName: "", - deviceType: "", - deviceStatus: "", - deviceIp: "", - devicePort: "", - devicePlcType: "", - deviceRemark: "", - }); - const editFormOptions = ref([ - [ - { - title: "璁惧缂栧彿", - required: true, - field: "deviceCode", - type: "string", - }, - { - title: "璁惧鍚嶇О", - required: true, - field: "deviceName", - type: "string", - }, - { - title: "璁惧绫诲瀷", - required: true, - field: "deviceType", - type: "string", - }, - { - title: "璁惧鐘舵��", - required: true, - field: "deviceStatus", - type: "string", - }, - ], - [ - { title: "璁惧IP", required: true, field: "deviceIp", type: "string" }, - { - title: "璁惧绔彛", - required: true, - field: "devicePort", - type: "string", - }, - { - title: "PLC绫诲瀷", - required: true, - field: "devicePlcType", - type: "string", - }, - { - title: "澶囨敞", - field: "deviceRemark", - type: "string", - }, - ], - ]); - const searchFormFields = ref({ - deviceCode: "", - deviceType: "", - deviceStatus: "", - }); - const searchFormOptions = ref([ - [ - { title: "璁惧缂栧彿", field: "deviceCode" }, - { title: "璁惧绫诲瀷", field: "deviceType" }, - { title: "璁惧鐘舵��", field: "deviceStatus" }, - ], - ]); - const columns = ref([ +import extend from "@/extension/stock/stockInfo.js"; +import { ref, defineComponent } from "vue"; +export default defineComponent({ + setup() { + const table = ref({ + key: "id", + footer: "Foots", + cnName: "搴撳瓨淇℃伅", + name: "stockInfo", + url: "/StockInfo/", + sortName: "id", + }); + const editFormFields = ref({ + deviceCode: "", + deviceName: "", + deviceType: "", + deviceStatus: "", + deviceIp: "", + devicePort: "", + devicePlcType: "", + deviceRemark: "", + }); + const editFormOptions = ref([ + [ { - field: "id", - title: "Id", - type: "int", - width: 90, - hidden: true, - readonly: true, - require: true, - align: "left", - }, - { - field: "palletCode", - title: "鎵樼洏缂栧彿", + title: "璁惧缂栧彿", + required: true, + field: "deviceCode", type: "string", - width: 90, - align: "left", }, { - field: "locationCode", - title: "璐т綅缂栧彿", + title: "璁惧鍚嶇О", + required: true, + field: "deviceName", type: "string", - width: 150, - align: "left", }, { - field: "isFull", - title: "鏄惁婊$洏", + title: "璁惧绫诲瀷", + required: true, + field: "deviceType", type: "string", - width: 150, - align: "left", - bind: { key: "yesno", data: [] }, }, { - field: "creater", - title: "鍒涘缓浜�", + title: "璁惧鐘舵��", + required: true, + field: "deviceStatus", type: "string", - width: 90, - align: "left", }, + ], + [ + { title: "璁惧IP", required: true, field: "deviceIp", type: "string" }, { - field: "createDate", - title: "鍒涘缓鏃堕棿", - type: "datetime", - width: 160, - align: "left", - }, - { - field: "modifier", - title: "淇敼浜�", + title: "璁惧绔彛", + required: true, + field: "devicePort", type: "string", - width: 100, - align: "left", }, { - field: "modifyDate", - title: "淇敼鏃堕棿", - type: "datetime", - width: 160, - align: "left", + title: "PLC绫诲瀷", + required: true, + field: "devicePlcType", + type: "string", }, { - field: "remark", title: "澶囨敞", + field: "deviceRemark", type: "string", - width: 100, - align: "left", }, - ]); - const detail = ref({ - cnName: "#detailCnName", - table: "", - columns: [], - sortName: "", - }); - return { - table, - extend, - editFormFields, - editFormOptions, - searchFormFields, - searchFormOptions, - columns, - detail, - }; - }, - }); - </script> + ], + ]); + const searchFormFields = ref({ + deviceCode: "", + deviceType: "", + deviceStatus: "", + }); + const searchFormOptions = ref([ + [ + { title: "鎵樼洏缂栧彿", field: "palletCode" }, + { title: "璐т綅缂栧彿", field: "locationCode" }, + { + title: "搴撳瓨鐘舵��", + field: "stockStatus", + type: "select", + dataKey: "stockStatusEmun", + data: [], + }, + ], + ]); + const columns = ref([ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "serialNumber", + title: "鍏ュ簱搴忓彿", + type: "string", + width: 90, + align: "left", + sort: "true", + }, + { + field: "palletCode", + title: "鎵樼洏缂栧彿", + type: "string", + width: 90, + align: "left", + }, + { + field: "locationCode", + title: "璐т綅缂栧彿", + type: "string", + width: 150, + align: "left", + }, + { + field: "stockStatus", + title: "搴撳瓨鐘舵��", + type: "string", + width: 120, + align: "left", + bind: { key: "stockStatusEmun", data: [] }, + }, + // { + // field: "isFull", + // title: "鏄惁婊$洏", + // type: "string", + // width: 150, + // align: "left", + // bind: { key: "yesno", data: [] }, + // }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, + ]); + const detail = ref({ + cnName: "#detailCnName", + table: "", + columns: [], + sortName: "", + }); + return { + table, + extend, + editFormFields, + editFormOptions, + searchFormFields, + searchFormOptions, + columns, + detail, + }; + }, +}); +</script> \ No newline at end of file -- Gitblit v1.9.3