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)