From 06b647e188eeb603654571bcb2c54c3c856b3a12 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 16 Jul 2024 16:34:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=80=80=E6=96=99=E6=8E=A5?= =?UTF-8?q?=E6=94=B6=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/api/claimAndRefund/return.js | 8 ++ .../claimAndreturn/return/auditing/index.vue | 82 ++++++------------- .../return/receive/component/handlePage.vue | 36 ++++++-- 3 files changed, 65 insertions(+), 61 deletions(-) diff --git a/sgzb-ui/src/api/claimAndRefund/return.js b/sgzb-ui/src/api/claimAndRefund/return.js index 80f9074e..1ca6f767 100644 --- a/sgzb-ui/src/api/claimAndRefund/return.js +++ b/sgzb-ui/src/api/claimAndRefund/return.js @@ -43,6 +43,14 @@ export function getViewByExamine(query) { params: query }) } +// 审批页面 详情查看或编辑 +export function getViewByExamineNewApi(query) { + return request({ + url: '/material/backApply/materialReturnNoteByExamine', + method: 'get', + params: query + }) +} // 详情查看或编辑 diff --git a/sgzb-ui/src/views/claimAndreturn/return/auditing/index.vue b/sgzb-ui/src/views/claimAndreturn/return/auditing/index.vue index 5b2a88af..329e1887 100644 --- a/sgzb-ui/src/views/claimAndreturn/return/auditing/index.vue +++ b/sgzb-ui/src/views/claimAndreturn/return/auditing/index.vue @@ -235,7 +235,7 @@ @@ -424,7 +424,7 @@ - + - - - - + @pagination="getDialogList" + /> -->
{ - this.loadingList = res.rows + + // getViewByExamine(params).then((res) => { + // this.loadingList = res.rows + // this.loadingList.forEach((item) => { + // if (!item.num) { + // item.num = item.preNum + // } + // }) + // this.loadingTotal = res.total + // }) + getViewByExamineNewApi(params).then((res) => { + this.loadingList = res.data this.loadingList.forEach((item) => { if (!item.num) { item.num = item.preNum @@ -960,10 +930,10 @@ export default { taskId: item.taskId, agreementId: item.agreementId, badId: item.badId, - pageNum: this.dialogQueryParams.pageNum, - pageSize: this.dialogQueryParams.pageSize, + // pageNum: this.dialogQueryParams.pageNum, + // pageSize: this.dialogQueryParams.pageSize, } - getViewByExamine(params).then((res) => { + getViewByExamineNewApi(params).then((res) => { backApplyList.push({ id: item.id, backApplyDetails: res.rows, diff --git a/sgzb-ui/src/views/claimAndreturn/return/receive/component/handlePage.vue b/sgzb-ui/src/views/claimAndreturn/return/receive/component/handlePage.vue index b2d56319..e56354ad 100644 --- a/sgzb-ui/src/views/claimAndreturn/return/receive/component/handlePage.vue +++ b/sgzb-ui/src/views/claimAndreturn/return/receive/component/handlePage.vue @@ -81,8 +81,12 @@ - - + + { this.deviceList = response.data.rows - console.log(this.deviceList, ' this.deviceList') + console.log( + this.deviceList, + 'this.deviceList设备列表=====================', + ) // this.deviceList.forEach(item => { // console.log(item.num, 'item.num') @@ -883,8 +892,6 @@ export default { // } // }) - console.log(this.deviceList, 'deviceList') - this.total = response.data.total this.loading = false }) @@ -912,6 +919,18 @@ export default { // parentId: this.queryParams.id, // } // const res1 = await getRecord(param1) + + if (this.selChangeList.length < 1) { + this.$message.error('请勾选需要退料的数据!') + return + } + + let typeId = '' + this.selChangeList.map((e) => { + typeId += e.modelId + ',' + }) + + // if (true) return const { data: res } = await endBackBeforeQueryApi({ id: this.queryParams.id, }) @@ -926,6 +945,7 @@ export default { createBy: this.createBy, parentId: this.queryParams.id, taskId: this.queryParams.taskId, + typeId, } endBack(param).then((response) => { if (response.code == 200) { @@ -1431,6 +1451,12 @@ export default { } }) }, + + // 列表复选框选择事件 + returnSelChange(list) { + this.selChangeList = list + console.log(list, '复选框选中的数据!') + }, }, watch: { innerVisible: {