From 95918a166936b76ea640bcc73a6641264df6c49d Mon Sep 17 00:00:00 2001 From: zhouzy062 Date: Mon, 8 Apr 2024 17:21:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=80=80=E6=96=99=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/api/claimAndRefund/return.js | 19 +- sgzb-ui/src/router/index.js | 26 +-- .../claimAndRefund/return/dialogFormExame.vue | 3 +- .../claimAndRefund/return/returnApply.vue | 45 +++-- .../claimAndRefund/return/returnExamine.vue | 7 +- .../claimAndRefund/return/returnInDetail.vue | 181 ++++++++++++++---- .../src/views/claimAndRefund/return/tree.vue | 105 ++++++++++ 7 files changed, 309 insertions(+), 77 deletions(-) create mode 100644 sgzb-ui/src/views/claimAndRefund/return/tree.vue diff --git a/sgzb-ui/src/api/claimAndRefund/return.js b/sgzb-ui/src/api/claimAndRefund/return.js index 80e07f15..4644e126 100644 --- a/sgzb-ui/src/api/claimAndRefund/return.js +++ b/sgzb-ui/src/api/claimAndRefund/return.js @@ -149,7 +149,7 @@ export function getBackReceiveList(query) { params: query }) } -// 退料审核新增 +// 退料接收详情列表 export function receiveView(data) { return request({ url: '/base/backReceive/receiveViewWeb', @@ -158,3 +158,20 @@ export function receiveView(data) { }) } +// 退料接收弹窗详情 +export function backReceiveRecordWeb(data) { + return request({ + url: '/base/backReceive/backReceiveRecordWeb', + method: 'post', + data: data + }) +} + +// 退料接收 数量接收 +export function setNumBack(data) { + return request({ + url: 'base/backReceive/setNumBack', + method: 'post', + data: data + }) +} diff --git a/sgzb-ui/src/router/index.js b/sgzb-ui/src/router/index.js index 7d0a4c78..597d8409 100644 --- a/sgzb-ui/src/router/index.js +++ b/sgzb-ui/src/router/index.js @@ -74,19 +74,19 @@ export const constantRoutes = [ } ] }, - // { - // path: '/dashboard', - // component: Layout, - // redirect: 'dashboard', - // children: [ - // { - // path: 'dashboard', - // component: () => import('@/views/dashboard'), - // name: 'Dashboard', - // meta: { title: '数据大屏', icon: 'dashboard', breadcrumb: false} - // } - // ] - // }, + { + path: '/dashboard', + component: Layout, + redirect: 'dashboard', + children: [ + { + path: 'dashboard', + component: () => import('@/views/dashboard'), + name: 'Dashboard', + meta: { title: '数据大屏', icon: 'dashboard', breadcrumb: false} + } + ] + }, { path: '/user', component: Layout, diff --git a/sgzb-ui/src/views/claimAndRefund/return/dialogFormExame.vue b/sgzb-ui/src/views/claimAndRefund/return/dialogFormExame.vue index c5e4287b..a0b6618a 100644 --- a/sgzb-ui/src/views/claimAndRefund/return/dialogFormExame.vue +++ b/sgzb-ui/src/views/claimAndRefund/return/dialogFormExame.vue @@ -150,7 +150,8 @@ export default { init() { let params = { taskId: this.rowObj.taskId, - agreementId: this.rowObj.agreementId + agreementId: this.rowObj.agreementId, + badId:this.rowObj.badId, } materialReturnNoteByExamine(params).then(res => { this.tableData = res.data diff --git a/sgzb-ui/src/views/claimAndRefund/return/returnApply.vue b/sgzb-ui/src/views/claimAndRefund/return/returnApply.vue index 35e3ae35..c4bfe0fa 100644 --- a/sgzb-ui/src/views/claimAndRefund/return/returnApply.vue +++ b/sgzb-ui/src/views/claimAndRefund/return/returnApply.vue @@ -20,20 +20,16 @@ + + + - - + - - - + 查询 @@ -336,6 +330,7 @@ + + From 18bb04f1f7b316c329c7eaf9bf7949e8c17faedf Mon Sep 17 00:00:00 2001 From: zhouzy062 Date: Tue, 9 Apr 2024 17:51:39 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=A2=86=E6=96=99=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/api/claimAndRefund/return.js | 40 ++- .../views/claimAndRefund/return/returnIn.vue | 35 +-- .../claimAndRefund/return/returnInDetail.vue | 244 +++++++++++++----- 3 files changed, 241 insertions(+), 78 deletions(-) diff --git a/sgzb-ui/src/api/claimAndRefund/return.js b/sgzb-ui/src/api/claimAndRefund/return.js index 4644e126..1cee4bdf 100644 --- a/sgzb-ui/src/api/claimAndRefund/return.js +++ b/sgzb-ui/src/api/claimAndRefund/return.js @@ -66,7 +66,6 @@ export function ApiGetMaterialList(query) { // 删除 export function backApplyDelApi(query) { - console.log('query====', query); return request({ url: '/material/backApply/del', method: 'get', @@ -159,14 +158,24 @@ export function receiveView(data) { } // 退料接收弹窗详情 +export function getBackMachine(query) { + return request({ + url: '/base/backReceive/getBackMachine', + method: 'get', + params: query + }) +} + +// 退料接收 查看记录 export function backReceiveRecordWeb(data) { return request({ - url: '/base/backReceive/backReceiveRecordWeb', + url: 'base/backReceive/backReceiveRecordWeb ', method: 'post', data: data }) } + // 退料接收 数量接收 export function setNumBack(data) { return request({ @@ -175,3 +184,30 @@ export function setNumBack(data) { data: data }) } + +// 退料接收 编码接收 +export function setCodeBack(data) { + return request({ + url: 'base/backReceive/setCodeBack', + method: 'post', + data: data + }) +} + +// 退料接收 完成前判断是否存在记录 +export function getRecord(query) { + return request({ + url: 'base/backReceive/getRecord', + method: 'get', + params: query + }) +} +// 退料接收 完成接收 +export function endBack(data) { + return request({ + url: 'base/backReceive/endBack', + method: 'post', + data: data + }) +} + diff --git a/sgzb-ui/src/views/claimAndRefund/return/returnIn.vue b/sgzb-ui/src/views/claimAndRefund/return/returnIn.vue index 79126ca1..f0f1775c 100644 --- a/sgzb-ui/src/views/claimAndRefund/return/returnIn.vue +++ b/sgzb-ui/src/views/claimAndRefund/return/returnIn.vue @@ -150,26 +150,30 @@ + + + + 待审核 + + + 已审核 + + + 退料核查 + + + 退料完成 + + + 退料驳回 + + @@ -335,7 +339,7 @@ }, /** 查询列表 startTime,结束日期endTime */ async getList() { - this.loading = true; + // this.loading = true; this.queryParams.startTime = this.dateRange[0] this.queryParams.endTime = this.dateRange[1] try { @@ -388,6 +392,7 @@ path:'/claimAndRefund/returnInDetail', query:{ Id:row.id, + taskId:row.taskId } }) diff --git a/sgzb-ui/src/views/claimAndRefund/return/returnInDetail.vue b/sgzb-ui/src/views/claimAndRefund/return/returnInDetail.vue index d24ca0d0..b1e5abb8 100644 --- a/sgzb-ui/src/views/claimAndRefund/return/returnInDetail.vue +++ b/sgzb-ui/src/views/claimAndRefund/return/returnInDetail.vue @@ -57,7 +57,7 @@ 完成退料 @@ -68,17 +68,17 @@ - - + + - + @@ -219,19 +228,19 @@ v-model.number="scope.row.scrapNum" placeholder="请输入待报废数量" type="number" min="0" - clearable + clearable :disabled="dialogIsView" style="width: 100%" /> - +