From e1dd1dc9ba7135e3d64a65587d6c1be2c3e18c5a Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期三, 25 六月 2025 11:01:22 +0800 Subject: [PATCH] 提交最新优化代码 --- 代码管理/WMS/WIDESEA_WMSClient/src/extension/inbound/takeStockOrder.js | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 46 insertions(+), 1 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/takeStockOrder.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/takeStockOrder.js" index 6292426..a29e28c 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/takeStockOrder.js" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/takeStockOrder.js" @@ -17,7 +17,52 @@ methods: { //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄� onInit() { - + this.columns.push({ + title: '鎿嶄綔', + field: '鎿嶄綔', + width: 120, + align: 'center', + render: (h, { row, column, index }) => { + if ( row.takeStockStatus == 2 ) { + return ( + <div> + <el-button + onClick={($e) => { + this.$confirm("纭鍏抽棴鐩樼偣鍗�" + row.orderNo + "鍚�?", "璀﹀憡", { + confirmButtonText: "纭畾", + cancelButtonText: "鍙栨秷", + type: "warning", + center: true, + }).then(() => { + this.http + .post("api/TakeStockOrder/DisEnableTakeOrder?id=" + row.id, null, "鏁版嵁澶勭悊涓�") + .then((x) => { + if (!x.status) return this.$message.error(x.message); + this.$message.success("鐩樼偣鍏抽棴鎴愬姛!"); + this.refresh(); + }); + }); + }} + type="warning" + plain + size="small" + style="height:26px; padding: 10px !important;" + > + 鍏抽棴鐩樼偣 + </el-button> + </div> + ) + } + } + + }); + this.columns.forEach(x=>{ + //璁剧疆title鍒楀浐瀹� + if (x.field=='鎿嶄綔') { + x.fixed = 'right'; + // x.align="center"//璁剧疆鏂囨湰灞呬腑 + } + }) }, onInited() { //妗嗘灦鍒濆鍖栭厤缃悗 -- Gitblit v1.9.3