From 8d02151e2958c98b4fc05501c40a990a2ea3a1d9 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Tue, 3 Sep 2024 16:28:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=97=E7=BD=91=E6=99=BA=E6=85=A7=E5=B7=A5?= =?UTF-8?q?=E7=A8=8B=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/claimAndRefund/receive.js | 9 +++++++- .../picking/outbound-nw/index.vue | 22 ++++++++++++++----- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/src/api/claimAndRefund/receive.js b/src/api/claimAndRefund/receive.js index b57fbcd..365c61f 100644 --- a/src/api/claimAndRefund/receive.js +++ b/src/api/claimAndRefund/receive.js @@ -308,7 +308,14 @@ export function getCostBearingApi() { }) } - +// 推送智慧工程 +export function pushSmartEngineeringApi(data) { + return request({ + url: '/material/base/tm_task/pushToIntelligentProject', + method: 'post', + data, + }) +} diff --git a/src/views/claimAndreturn/picking/outbound-nw/index.vue b/src/views/claimAndreturn/picking/outbound-nw/index.vue index 902933b..62ea88c 100644 --- a/src/views/claimAndreturn/picking/outbound-nw/index.vue +++ b/src/views/claimAndreturn/picking/outbound-nw/index.vue @@ -558,8 +558,8 @@ - + + @@ -572,6 +572,7 @@ import { getDetailsByTypeId, submitOut, submitNumOut, + pushSmartEngineeringApi, } from '@/api/claimAndRefund/receive.js' import { getTypeList } from '@/api/store/warehousing' import { equipmentTypeTree } from '@/api/store/tools' @@ -821,7 +822,6 @@ export default { this.maCodeList = selection.map((item) => item.maId) }, selectable(row) { - console.log(row) if (row.maStatus == '在库') { return true } else { @@ -892,9 +892,19 @@ export default { ) }, // 推送智慧工地 - handlePush() { - console.log('🚀 ~ handlePush ~ :') - this.$refs.dialogPush.openDialog(true) + async handlePush() { + // console.log('🚀 ~ handlePush ~ :') + // this.$refs.dialogPush.openDialog(true) + + if (this.selectList.length < 1) { + this.$message.error('请选择需要推送的数据!') + return + } + + const res = await pushSmartEngineeringApi(this.selectList) + console.log(res, '请求结果') + + console.log(this.selectList, 'this.selectList') }, handleSelect(val) { console.log('🚀 ~ handleSelect ~ :', val)