From 63e1ee997a5318e628b992f969bdac2fec6dbf14 Mon Sep 17 00:00:00 2001
From: yangpeixing <yangpeixing@hnkhzn.com>
Date: 星期四, 04 十二月 2025 14:39:00 +0800
Subject: [PATCH] 1
---
项目代码/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx | 214 +++++++++++++++++++++++------------------------------
1 files changed, 92 insertions(+), 122 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 09f277c..96924f4 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"
@@ -48,55 +48,106 @@
// })
// }
// });
- this.boxButtons.push({
- name: '鍏朵粬鍑哄簱', //鎸夐挳鍚嶇О
- icon: 'el-icon-document', //鎸夐挳鍥炬爣:缁勪欢绀轰緥->鍥炬爣
- //primary銆乻uccess銆亀arning銆乪rror銆乮nfo銆乼ext銆乨anger
- type: 'primary',
- plain: true,
- onClick: function () {
- this.$confirm('鏄惁鍏朵粬鍑哄簱', '璀﹀憡', {
- confirmButtonText: '纭畾',
- cancelButtonText: '鍙栨秷',
- type: 'warning',
- center: true
- }).then(() => {
- this.http
- .post(
- `/api/Task/OtherOutBoundTaskAsync`,
- this.$refs.detail.rowData,
- '姝e湪鐢熸垚鍑哄簱浠诲姟'
- )
- .then((res) => {
- if (res.status) {
- this.$Message.success(res.message)
- this.boxModel = false
- this.refresh()
- } else {
- this.$Message.error(res.message) //閿欒鎻愮ず
- }
- })
- })
+ var DoubleTrayBtn = this.buttons.find(x => x.value == "DoubleTray");
+ if (DoubleTrayBtn != null) {
+ DoubleTrayBtn.onClick = () => {
+ let rows = this.$refs.table.getSelected();
+ if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!");
+ if (rows.length > 1) return this.$error("璇烽�夋嫨鏁版嵁!");
+ this.http.post(`/api/Task/OutBoundTaskAsync?palletCode=${rows[0].palletCode}&remark=${""}&doubleTray=${1}`, {}, '鏁版嵁澶勭悊涓�...')
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.refresh();
+ } else {
+ return this.$error(x.message);
+ }
+ });
}
- })
+ }
+
this.boxButtons.push({
- name: '璋冩嫧鍑哄簱', //鎸夐挳鍚嶇О
- icon: 'el-icon-document', //鎸夐挳鍥炬爣:缁勪欢绀轰緥->鍥炬爣
- //primary銆乻uccess銆亀arning銆乪rror銆乮nfo銆乼ext銆乨anger
+ name: '纭畾鍑哄簱', //鎸夐挳鍚嶇О
type: 'danger',
+ icon: 'el-icon-check',
+ disabled: false,
plain: true,
onClick: function () {
- this.$confirm('鏄惁璋冩嫧鍑哄簱', '璀﹀憡', {
+ if (this.editFormFields.remark == '鍏朵粬鍑哄簱') {
+ this.$confirm('鏄惁鍏朵粬鍑哄簱', '璀﹀憡', {
+ confirmButtonText: '纭畾',
+ cancelButtonText: '鍙栨秷',
+ type: 'warning',
+ center: true,
+ customClass: 'large-text-confirm'
+ }).then(() => {
+ this.http
+ .post(
+ `/api/Task/OtherOutBoundTaskAsync`,
+ this.$refs.detail.rowData,
+ '姝e湪鐢熸垚鍑哄簱浠诲姟'
+ )
+ .then((res) => {
+ if (res.status) {
+ this.$Message.success(res.message)
+ this.boxModel = false
+ this.refresh()
+ } else {
+ this.$Message.error(res.message) //閿欒鎻愮ず
+ }
+ })
+ })
+ } else {
+ this.$confirm('鏄惁璋冩嫧鍑哄簱', '璀﹀憡', {
+ confirmButtonText: '纭畾',
+ cancelButtonText: '鍙栨秷',
+ type: 'warning',
+ center: true,
+ customClass: 'large-text-confirm'
+ }).then(() => {
+ this.http
+ .post(
+ `/api/Task/HandAllocateOutBoundTaskAsync`,
+ this.$refs.detail.rowData,
+ '姝e湪鐢熸垚鍑哄簱浠诲姟'
+ )
+ .then((res) => {
+ if (res.status) {
+ this.$Message.success(res.message)
+ this.boxModel = false
+ this.refresh()
+ } else {
+ this.$Message.error(res.message) //閿欒鎻愮ず
+ }
+ })
+ })
+ }
+ }
+ })
+ this.boxButtons.push({
+ name: '鎵撳嵃浜岀淮鐮�', //鎸夐挳鍚嶇О
+ type: 'primary',
+ icon: 'el-icon-check',
+ disabled: false,
+ plain: true,
+ onClick: function () {
+ let rows = this.$refs.detail.getSelected()
+ if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!");
+ let orderNos = rows.map(x => {
+ return x.orderNo
+ })
+ this.$confirm('鏄惁鎵撳嵃鍗曟嵁', '璀﹀憡', {
confirmButtonText: '纭畾',
cancelButtonText: '鍙栨秷',
type: 'warning',
- center: true
+ center: true,
+ customClass: 'large-text-confirm'
}).then(() => {
this.http
.post(
- `/api/Task/HandAllocateOutBoundTaskAsync`,
- this.$refs.detail.rowData,
- '姝e湪鐢熸垚鍑哄簱浠诲姟'
+ `/api/StockInfo/PrintOrder`,
+ orderNos,
+ '姝e湪鎵撳嵃'
)
.then((res) => {
if (res.status) {
@@ -110,61 +161,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: '鎿嶄綔',
@@ -175,7 +171,7 @@
<div>
<el-button
onClick={($e) => {
- ;(row.remark = '鍏朵粬鍑哄簱'), this.linkData(row)
+ ; (row.remark = '鍏朵粬鍑哄簱'), this.linkDataNew(row, '鍏朵粬鍑哄簱')
}}
type="primary"
>
@@ -184,7 +180,7 @@
<el-button
onClick={($e) => {
- ;(row.remark = '璋冩嫧鍑哄簱'), this.linkData(row)
+ ; (row.remark = '璋冩嫧鍑哄簱'), this.linkDataNew(row, '璋冩嫧鍑哄簱')
}}
type="success"
>
@@ -203,32 +199,6 @@
)
}
})
-
- // 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) => {
@@ -281,7 +251,7 @@
onInited() {
//妗嗘灦鍒濆鍖栭厤缃悗
//濡傛灉瑕侀厤缃槑缁嗚〃,鍦ㄦ鏂规硶鎿嶄綔
- this.detailOptions.columns.forEach((column) => {})
+ this.detailOptions.columns.forEach((column) => { })
},
searchBefore(param) {
//鐣岄潰鏌ヨ鍓�,鍙互缁檖aram.wheres娣诲姞鏌ヨ鍙傛暟
--
Gitblit v1.9.3