From 8f7e6826d51a25c7b368c210dbb321d423d24a85 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期一, 10 十一月 2025 17:24:12 +0800
Subject: [PATCH] 1
---
项目代码/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx | 129 +++++++++----------------------------------
1 files changed, 27 insertions(+), 102 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx"
index 6a2415c..f175400 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx"
@@ -50,7 +50,7 @@
// });
this.boxButtons.push({
name: '鍏朵粬鍑哄簱', //鎸夐挳鍚嶇О
- icon: 'el-icon-document', //鎸夐挳鍥炬爣:缁勪欢绀轰緥->鍥炬爣
+ //icon: 'el-icon-document', //鎸夐挳鍥炬爣:缁勪欢绀轰緥->鍥炬爣
//primary銆乻uccess銆亀arning銆乪rror銆乮nfo銆乼ext銆乨anger
type: 'primary',
plain: true,
@@ -81,7 +81,7 @@
})
this.boxButtons.push({
name: '璋冩嫧鍑哄簱', //鎸夐挳鍚嶇О
- icon: 'el-icon-document', //鎸夐挳鍥炬爣:缁勪欢绀轰緥->鍥炬爣
+ //icon: 'el-icon-document', //鎸夐挳鍥炬爣:缁勪欢绀轰緥->鍥炬爣
//primary銆乻uccess銆亀arning銆乪rror銆乮nfo銆乼ext銆乨anger
type: 'danger',
plain: true,
@@ -110,61 +110,6 @@
})
}
})
- // this.detailOptions.buttons.unshift({
- // name: '璋冩嫧鍑哄簱',
- // icon: '',
- // type: 'primary',
- // onClick: function (e) {
- // let row = this.$refs.table.getSelected() //鑾峰彇閫変腑鐨勮
- // if (row <= 0) {
- // //濡傛灉娌℃湁閫変腑琛�
- // this.$Message.error('璇烽�夋嫨涓�琛屾暟鎹�')
- // return
- // }
- // let taskNum = row[0].taskNum
- // this.http.post(`/api/Task/CompleteTaskAsync?taskNum=${taskNum}`, {}, "姝e湪瀹屾垚浠诲姟").then((res) => {
- // //绀轰緥锛氳皟鐢ㄥ悗鍙版帴鍙�
- // if (res.status) {
- // this.$Message.success(res.message)
- // } else {
- // this.$Message.error(res.message) //閿欒鎻愮ず
- // }
- // })
- // }
- // });
- // this.columns.push({
- // field: '鎿嶄綔',
- // title: '鎿嶄綔',
- // width: 90,
- // fixed: 'right',
- // align: 'center',
- // type:'jsx',
- // formatter: (row) => {
- // //return '<i style="cursor: pointer;color: #2d8cf0;"class="el-icon-view">鐩樼偣鍑哄簱</i>'
- // return [{
- // name:"btn1",
- // type:"primary"
- // },{
- // name:"btn1",
- // type:"success"
- // }]
- // },
- // click: (row,formatter) => {
- // console.log(formatter);
- // this.http
- // .post(`/api/Task/OutBoundTaskAsync?palletCode=${row.palletCode}`, {}, '姝e湪鐢熸垚浠诲姟')
- // .then((res) => {
- // //绀轰緥锛氳皟鐢ㄥ悗鍙版帴鍙�
- // if (res.status) {
- // this.$Message.success(row.palletCode + '鍑哄簱鎴愬姛')
- // this.refresh()
- // } else {
- // this.$Message.error(res.message) //閿欒鎻愮ず
- // this.refresh()
- // }
- // })
- // }
- // })
this.columns.push({
title: '鎿嶄綔',
field: '鎿嶄綔',
@@ -173,62 +118,36 @@
render: (h, { row, column, index }) => {
return (
<div>
- <el-button onClick={($e) => { }} type="primary">
+ <el-button
+ onClick={($e) => {
+ ;(row.remark = '鍏朵粬鍑哄簱'), this.linkData(row)
+ }}
+ type="primary"
+ >
鍏朵粬鍑哄簱
</el-button>
- <el-button onClick={($e) => {
-
- }} type="success" >
+ <el-button
+ onClick={($e) => {
+ ;(row.remark = '璋冩嫧鍑哄簱'), this.linkData(row)
+ }}
+ type="success"
+ >
璋冩嫧鍑哄簱
</el-button>
- <el-button onClick={($e) => {
- // this.http
- // .post(`/api/Task/OutBoundTaskAsync?palletCode=${row.palletCode}`, {}, '姝e湪鐢熸垚浠诲姟')
- // .then((res) => {
- // //绀轰緥锛氳皟鐢ㄥ悗鍙版帴鍙�
- // if (res.status) {
- // this.$Message.success(row.palletCode + '鍑哄簱鎴愬姛')
- // this.refresh()
- // } else {
- // this.$Message.error(res.message) //閿欒鎻愮ず
- // this.refresh()
- // }
- // })
- this.$refs.gridBody.open(row.palletCode);
- }} type="warning">
+ <el-button
+ onClick={($e) => {
+ this.$refs.gridBody.open(row.palletCode)
+ }}
+ type="warning"
+ >
鐩樼偣鍑哄簱
</el-button>
</div>
)
}
})
- // this.columns.push({
- // title: "鎿嶄綔",
- // field: "鎿嶄綔",
- // width: 150,
- // align: "left", // 'center',
- // render: (h, { row, column, index }) => {
- // return (
- // <div>
- // <el-button
- // onClick={($e) => {
- // // this.$refs.table.load();
- // // console.log(this.$refs.table);
- // this.$refs.gridHeader.open(row);
- // }}
- // type="primary"
- // plain
- // style="height:26px; padding: 10px !important;"
- // >
- // 鎵撳嵃
- // </el-button>
- // </div>
- // );
- // },
- // });
-
//绀轰緥锛氳缃慨鏀规柊寤恒�佺紪杈戝脊鍑烘瀛楁鏍囩鐨勯暱搴�
this.boxOptions.labelWidth = 150
this.buttons.forEach((btn) => {
@@ -236,7 +155,11 @@
btn.hidden = true
}
})
-
+ this.boxButtons.forEach((btn) => {
+ if (btn.name == '淇� 瀛�') {
+ btn.hidden = true
+ }
+ })
this.columns.forEach((column) => {
if (column.field == 'floor') {
const floorMap = {
@@ -302,6 +225,7 @@
modelOpenAfter(row) {
const isAdd = this.currentAction == 'Add' //鍒ゆ柇鏄惁涓烘柊寤烘搷浣�
//闅愯棌鏄庣粏琛ㄦ寜閽�
+ // boxButtons
this.detailOptions.buttons.forEach((btn) => {
if (btn.name == '娣诲姞琛�') {
btn.hidden = true
@@ -309,6 +233,7 @@
//btn.readonly=true;
}
})
+
const isDel = this.currentAction == 'Add' //鍒ゆ柇鏄惁涓烘柊寤烘搷浣�
//闅愯棌鏄庣粏琛ㄦ寜閽�
this.detailOptions.buttons.forEach((btn) => {
--
Gitblit v1.9.3