From 9e113d0ee0f3b59e13834d00c79e312d66aff353 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 6 Jun 2024 14:20:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E8=B7=B3=E8=BD=AC=EF=BC=8C=E9=A2=86=E6=96=99=E9=A9=B3?= =?UTF-8?q?=E5=9B=9E=E7=AD=89bug=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../picking/apply/component/AddPicking.vue | 20 +- .../picking/apply/component/home.vue | 13 +- .../claimAndreturn/picking/apply/index.vue | 5 +- .../picking/auditing/component/home1.vue | 6 +- .../cost/csotSettlement/costApplyList.vue | 407 +++++++++--------- sgzb-ui/src/views/index.vue | 16 +- .../partsAcceptance/component/home.vue | 2 +- .../newPurchase/serviceCenter/index.vue | 2 +- .../warehousing/newParts/index.vue | 2 +- 9 files changed, 248 insertions(+), 225 deletions(-) diff --git a/sgzb-ui/src/views/claimAndreturn/picking/apply/component/AddPicking.vue b/sgzb-ui/src/views/claimAndreturn/picking/apply/component/AddPicking.vue index 26e182a4..75ad6077 100644 --- a/sgzb-ui/src/views/claimAndreturn/picking/apply/component/AddPicking.vue +++ b/sgzb-ui/src/views/claimAndreturn/picking/apply/component/AddPicking.vue @@ -254,6 +254,12 @@ export default { viewTaskId: { type: [String, Number], }, + rejectTaskStatus: { + type: [String, Number], + default: () => { + return null + }, + }, }, data() { const validatePhone = (rule, value, callback) => { @@ -694,17 +700,16 @@ export default { this.queryParams.leaseApplyDetails, ) }) + // 当领料任务被驳回后重新提交时,判断当前状态,如为100 则表示为内部驳回 需要增加参数 souceByRefuse为1 + if (this.rejectTaskStatus == 100) { + this.queryParams.souceByRefuse = 1 + } const params = { ...this.queryParams, taskId: this.taskId, leaseApplyInfoList: this.leaseApplyInfoList, } - console.log( - '驳回提交--------------保存', - params, - '参数----------', - ) res = await editLeaseApply(params) } else { // console.log(this.queryParams) @@ -717,11 +722,6 @@ export default { return } res = await submitLeaseApply(this.queryParams) - console.log( - '正常申请提交--------------保存', - this.queryParams, - '参数--------------', - ) } if (res.code == 200) { this.$message({ diff --git a/sgzb-ui/src/views/claimAndreturn/picking/apply/component/home.vue b/sgzb-ui/src/views/claimAndreturn/picking/apply/component/home.vue index 9e297ea7..fef698c2 100644 --- a/sgzb-ui/src/views/claimAndreturn/picking/apply/component/home.vue +++ b/sgzb-ui/src/views/claimAndreturn/picking/apply/component/home.vue @@ -496,7 +496,7 @@ export default { // isBack: true, // }, // }) - this.$emit('editPicking', row.taskId) + this.$emit('editPicking', row.taskId, row.taskStatus) }, /** 删除按钮操作 */ async handleDelete(row) { @@ -534,6 +534,17 @@ export default { }) }, }, + watch: { + $route: { + handler(to) { + if (to.query.keyWord) { + this.queryParams.keyWord = to.query.keyWord + } + }, + deep: true, + immediate: true, + }, + }, } diff --git a/sgzb-ui/src/views/index.vue b/sgzb-ui/src/views/index.vue index be52fcbd..8b3c0097 100644 --- a/sgzb-ui/src/views/index.vue +++ b/sgzb-ui/src/views/index.vue @@ -306,17 +306,17 @@ export default { /* 新购任务 */ { taskTypeId: 23, - routerPath: 'store/newBuy/newDevicesList', + routerPath: 'store/newPurchase/tools', }, /* 领料任务 */ { taskTypeId: 29, - routerPath: 'claimAndRefund/receive/receiveManage', + routerPath: 'claimAndRefund/picking/apply', }, /* 退料任务 */ { taskTypeId: 36, - routerPath: 'claimAndRefund/return/returnApply', + routerPath: 'claimAndRefund/return/apply', }, /* 维修任务 */ { @@ -326,22 +326,22 @@ export default { /* 维修审核 */ { taskTypeId: 45, - routerPath: 'repairTest/repair/repair', + routerPath: 'repairTest/testExamine/testExamine', }, /* 修试入库任务 */ { taskTypeId: 50, - routerPath: 'store/warehousing/repairWarehousing', + routerPath: 'store/warehousing/repair', }, - /* 修试入库任务 */ + /* 报废任务 */ { taskTypeId: 57, routerPath: 'scrap/manage/scrapAuditing', }, - /* 修试入库任务 */ + /* 新购配件任务 */ { taskTypeId: 67, - routerPath: 'store/newBuy/newAccessoryList', + routerPath: 'store/warehousing/newParts', }, ], diff --git a/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/component/home.vue b/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/component/home.vue index dc9e712e..5410f9e8 100644 --- a/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/component/home.vue +++ b/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/component/home.vue @@ -296,7 +296,7 @@ width="80" type="index" > -