From 94da496a424726778aca11a0efc3358202dc8b17 Mon Sep 17 00:00:00 2001 From: 肖洋 <cathay_xy@163.com> Date: 星期二, 11 二月 2025 14:33:54 +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 | 33 ++++++++++++++++++++++++--------- 1 files changed, 24 insertions(+), 9 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 e1e9cf8..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: '鎸夐挳', //鎸夐挳鍚嶇О - // 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('鐐瑰嚮浜嗘寜閽�'); - // } - // }); + this.dropdownItems.unshift({ + 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 () { + 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