From 96b1afcbf80cd6b12c1108b61ba2cef1345b1398 Mon Sep 17 00:00:00 2001 From: xxyy <cathay_xy@163.com> Date: 星期三, 12 二月 2025 17:33:20 +0800 Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/HuaYiZhongHeng/BaiBuLiKu --- Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxing.vue | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxing.vue b/Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxing.vue index 3abe3b4..b4c1850 100644 --- a/Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxing.vue +++ b/Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxing.vue @@ -28,6 +28,7 @@ { field: 'createDate', title: '鍒涘缓鏃堕棿', type: 'int', sort: true, width: 100, hidden: true, align: 'left' }, ], detailColumns: [ + { title: "鐢佃姱搴忓垪鍙�", field: "serialNumber", type: "text" }, { title: "鐗╂枡缂栧彿", field: "materielCode", type: "text" }, { title: "鐗╂枡鍚嶇О", field: "materielName", type: "text" }, { title: "搴撳瓨鐘舵��", field: "status", type: "text" }, @@ -60,17 +61,31 @@ } }; }, + methods: { onInit() { this.dropdownItems.unshift({ - name: '鎸夐挳', //鎸夐挳鍚嶇О + name: '鍒犻櫎', //鎸夐挳鍚嶇О icon: 'el-icon-document', //鎸夐挳鍥炬爣vue2鐗堟湰瑙乮view鏂囨。icon锛寁ue3鐗堟湰瑙乪lement ui鏂囨。icon(娉ㄦ剰涓嶆槸element puls鏂囨。) type: 'primary', //鎸夐挳鏍峰紡vue2鐗堟湰瑙乮view鏂囨。button锛寁ue3鐗堟湰瑙乪lement ui鏂囨。button value: '321', //鎸夐挳鍊� onClick: function () { - this.$Message.success('鐐瑰嚮浜嗘寜閽�'); + let rows = this.table.columns; + if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!"); + if (rows.length > 1) return this.$error("鍙兘閫夋嫨涓�鏉℃暟鎹�!"); + this.http + .post("api/DtBoxing/Delete?locationID=" + rows[0].palletCode, "", "鏁版嵁澶勭悊涓�...") + .then((x) => { + if (x.status) { + this.$Message.success('鎴愬姛.'); + this.refresh(); + } else { + return this.$error(x.message); + } + }); } }); + }, }, created() { -- Gitblit v1.9.3