From 06eb604f71605c47f015b88b1620b72b6f69df8c Mon Sep 17 00:00:00 2001 From: helongyang <647556386@qq.com> Date: 星期一, 22 九月 2025 05:20:41 +0800 Subject: [PATCH] 功能增加,代码优化 --- 代码管理/WMS/WIDESEA_WMSClient/src/views/stock/stockInfo.vue | 93 +++++++++++++++++++++++++++++++++------------- 1 files changed, 66 insertions(+), 27 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/stockInfo.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/stockInfo.vue" index de7233b..f4d0f57 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/stockInfo.vue" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/stockInfo.vue" @@ -38,9 +38,27 @@ }); const editFormOptions = ref([ [ - {field:'palletCode',title:'鎵樼洏缂栧彿',type:'string'}, - {field:'locationCode',title:'璐т綅缂栧彿',type:'string'}, - {field:'isFull',title:'鏄惁婊$洏',type:'select',dataKey:"yesno",data:[]}, + { title: "鎵樼洏缂栧彿", field: "palletCode", type :"string"}, + { title: "璐т綅缂栧彿", field: "locationCode",type:"string",readonly: true, }, + { title: "鎵�灞炰粨搴�", field: "warehouseId",type: "select",dataKey: "warehouses",data: [],readonly: true,}, + {title: "搴撳瓨鏄庣粏鐘舵��",field: "stockStatus",type: "select",dataKey:"stockStatusEmun", data: [],readonly: true,}, + + ], + [ + { title: "鎵樼洏绫诲瀷", field: "palletType", type :"select",dataKey:"locationTypeEnum",data:[]}, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + readonly: true, + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + readonly: true, + }, + ] ]); const searchFormFields = ref({ @@ -49,8 +67,10 @@ }); const searchFormOptions = ref([ [ - { title: "鎵樼洏缂栧彿", field: "palletCode" }, - { title: "璐т綅缂栧彿", field: "locationCode" }, + { title: "鎵樼洏缂栧彿", field: "palletCode", type :"like"}, + { title: "璐т綅缂栧彿", field: "locationCode",type:"like" }, + { title: "鎵�灞炰粨搴�", field: "warehouseId",type: "select",dataKey: "warehouses",data: [],}, + {title: "搴撳瓨鏄庣粏鐘舵��",field: "status",type: "select",dataKey:"stockStatusEmun", data: []}, ], ]); const columns = ref([ @@ -65,12 +85,27 @@ align: "left", }, { + field: "id", + title: "搴撳瓨涓婚敭", + type: "string", + width: 90, + align: "left", + }, + { field: "palletCode", title: "鎵樼洏缂栧彿", type: "string", width: 90, align: "left", }, + { + field: "palletType", + title: "鎵樼洏绫诲瀷", + type: "select", + width: 120, + align: "left", + bind: { key: "locationTypeEnum", data: [] }, + }, { field: "locationCode", title: "璐т綅缂栧彿", @@ -79,12 +114,28 @@ align: "left", }, { - field: "isFull", - title: "鏄惁婊$洏", - type: "string", - width: 150, + 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: "warehouseId", + title: "浠撳簱", + type: "select", + width: 100, align: "left", - bind: { key: "yesno", data: [] }, + bind: { key: "warehouses", data: [] }, }, { field: "creater", @@ -120,26 +171,14 @@ type: "string", width: 100, align: "left", + hidden:true }, ]); const detail = ref({ - cnName: "鍘嗗彶搴撳瓨淇℃伅", - table: "StockInfo_Hty", - columns: [ - {field:'id',title:'涓婚敭',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'}, - {field:'palletCode',title:'鎵樼洏缂栧彿',type:'string',width:110,require:true,align:'left',sort:true}, - {field:'locationCode',title:'璐т綅缂栧彿',type:'string',width:110,align:'left'}, - {field:'isFull',title:'鏄惁婊$洏',type:'bool',width:110,require:true,align:'left'}, - {field:'stockStatus',title:'搴撳瓨鐘舵��',type:'int',width:110,require:true,align:'left'}, - {field:'remark',title:'澶囨敞',type:'string',width:220,align:'left'}, - {field:'sourceId',title:'婧愪富閿�',type:'int',width:110,require:true,align:'left'}, - {field:'operateType',title:'澶囨敞',type:'string',width:110,require:true,align:'left'}, - {field:'creater',title:'鍒涘缓浜�',type:'string',width:110,require:true,align:'left'}, - {field:'createDate',title:'鍒涘缓鏃堕棿',type:'datetime',width:150,require:true,align:'left',sort:true}, - {field:'modifier',title:'淇敼浜�',type:'string',width:100,align:'left'}, - {field:'modifyDate',title:'淇敼鏃ユ湡',type:'datetime',width:150,align:'left',sort:true} - ], - sortName: "id", + cnName: "#detailCnName", + table: "", + columns: [], + sortName: "", }); return { table, -- Gitblit v1.9.3