From be0856c1bf533ed6001ff786908ae98e4b853eb5 Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期四, 09 一月 2025 10:09:02 +0800 Subject: [PATCH] 1 --- 代码管理/WMS/WIDESEA_WMSClient/src/views/record/locationStatusChangeRecord.vue | 372 +++++++++++++++++++++++++++------------------------- 1 files changed, 194 insertions(+), 178 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/record/locationStatusChangeRecord.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/record/locationStatusChangeRecord.vue" index 8eff3c6..a22ee58 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/record/locationStatusChangeRecord.vue" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/record/locationStatusChangeRecord.vue" @@ -1,191 +1,207 @@ <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/record/locationStatusChangeRecord.js"; - import { ref, defineComponent } from "vue"; - export default defineComponent({ - setup() { - const table = ref({ - key: "id", - footer: "Foots", - cnName: "璐т綅鐘舵�佸彉鍔ㄨ褰�", - name: "locationStatusChangeRecord", - url: "/LocationStatusChangeRecord/", - sortName: "id", - }); - const editFormFields = ref({ - deviceCode: "", - deviceName: "", - deviceType: "", - deviceStatus: "", - deviceIp: "", - devicePort: "", - devicePlcType: "", - deviceRemark: "", - }); - const editFormOptions = ref([ - - ]); - const searchFormFields = ref({ - locationCode: "", - orderNo: "", - taskNum: "", - }); - const searchFormOptions = ref([ - [ - { title: "璐т綅鍙�", field: "locationCode" }, - { title: "鍗曟嵁缂栧彿", field: "orderNo" }, - { title: "浠诲姟鍙�", field: "taskNum" }, - ], - [ - { title: "鍙樺姩鍓嶈揣浣嶇姸鎬�", field: "beforeStatus" ,type: "selectList",dataKey: "locationStatusEnum",data: [],}, - { title: "鍙樺姩鍚庤揣浣嶇姸鎬�", field: "afterStatus" ,type: "selectList",dataKey: "locationStatusEnum",data: [],}, - { title: "鍙樺姩绫诲瀷", field: "changeType" ,type: "selectList",dataKey: "stockChangeType",data: [],}, - ], - ]); - const columns = ref([ +import extend from "@/extension/record/locationStatusChangeRecord.js"; +import { ref, defineComponent } from "vue"; +export default defineComponent({ + setup() { + const table = ref({ + key: "id", + footer: "Foots", + cnName: "璐т綅鐘舵�佸彉鍔ㄨ褰�", + name: "locationStatusChangeRecord", + url: "/LocationStatusChangeRecord/", + sortName: "id", + }); + const editFormFields = ref({ + deviceCode: "", + deviceName: "", + deviceType: "", + deviceStatus: "", + deviceIp: "", + devicePort: "", + devicePlcType: "", + deviceRemark: "", + }); + const editFormOptions = ref([]); + const searchFormFields = ref({ + locationCode: "", + orderNo: "", + taskNum: "", + }); + const searchFormOptions = ref([ + [ + { title: "璐т綅鍙�", field: "locationCode" }, + { title: "鍗曟嵁缂栧彿", field: "orderNo" }, + { title: "浠诲姟鍙�", field: "taskNum" }, + ], + [ { - field: "id", - title: "Id", - type: "int", - width: 90, - hidden: true, - readonly: true, - require: true, - align: "left", - }, - { - field: "locationId", - title: "璐т綅涓婚敭", - type: "string", - width: 90, - align: "left", - }, - { - field: "taskNum", - title: "浠诲姟鍙�", - type: "string", - width: 90, - align: "left", - }, - { - field: "locationCode", - title: "璐т綅缂栧彿", - type: "string", - width: 150, - align: "left", - }, - { - field: "beforeStatus", title: "鍙樺姩鍓嶈揣浣嶇姸鎬�", - type: "string", - width: 150, - align: "left", - bind: { key: "locationStatusEnum", data: [] }, + field: "beforeStatus", + type: "selectList", + dataKey: "locationStatusEnum", + data: [], }, { - field: "afterStatus", title: "鍙樺姩鍚庤揣浣嶇姸鎬�", - type: "decimal", - width: 150, - align: "left", - bind: { key: "locationStatusEnum", data: [] }, + field: "afterStatus", + type: "selectList", + dataKey: "locationStatusEnum", + data: [], }, { - field: "changeType", title: "鍙樺姩绫诲瀷", - type: "string", - width: 90, - align: "left", - bind: { key: "stockChangeType", data: [] }, + field: "changeType", + type: "selectList", + dataKey: "locationChangeType", + data: [], }, - { - field: "orderId", - title: "鍗曟嵁涓婚敭", - type: "string", - width: 90, - align: "left", - }, - { - field: "orderNo", - title: "鍗曟嵁缂栧彿", - type: "int", - width: 120, - align: "left", - }, - { - field: "orderDetailId", - title: "鍗曟嵁鏄庣粏涓婚敭", - type: "string", - width: 200, - align: "left", - }, - { - 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> + ], + ]); + const columns = ref([ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "locationId", + title: "璐т綅涓婚敭", + type: "string", + width: 90, + align: "left", + }, + { + field: "taskNum", + title: "浠诲姟鍙�", + type: "string", + width: 90, + align: "left", + }, + { + field: "locationCode", + title: "璐т綅缂栧彿", + type: "string", + width: 150, + align: "left", + }, + { + field: "beforeStatus", + title: "鍙樺姩鍓嶈揣浣嶇姸鎬�", + type: "string", + width: 150, + align: "left", + bind: { key: "locationStatusEnum", data: [] }, + }, + { + field: "afterStatus", + title: "鍙樺姩鍚庤揣浣嶇姸鎬�", + type: "decimal", + width: 150, + align: "left", + bind: { key: "locationStatusEnum", data: [] }, + }, + { + field: "changeType", + title: "鍙樺姩绫诲瀷", + type: "string", + width: 90, + align: "left", + bind: { key: "locationChangeType", data: [] }, + }, + { + field: "orderId", + title: "鍗曟嵁涓婚敭", + type: "string", + width: 90, + align: "left", + }, + { + field: "orderNo", + title: "鍗曟嵁缂栧彿", + type: "int", + width: 120, + align: "left", + }, + { + field: "orderDetailId", + title: "鍗曟嵁鏄庣粏涓婚敭", + type: "string", + width: 200, + align: "left", + }, + { + 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