From b74b1ac710e15f8041ecbdb215c6c7971ff4fdf1 Mon Sep 17 00:00:00 2001 From: "[li_she]" <[li.she@xujiesoft.com]> Date: Thu, 22 Dec 2022 19:04:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7=E4=BF=AE=E6=94=B9=202022?= =?UTF-8?q?=E5=B9=B412=E6=9C=8822=E6=97=A5=20sxm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/auditManagement/auditRules.vue | 2 +- .../modules/auditManagement/auditType.vue | 9 +- src/views/modules/knifemold/receive.vue | 42 +++++- .../modules/knifemold/tool-info-list.vue | 132 ++++++++++++++++++ src/views/modules/knifemold/tool-info.vue | 6 +- .../purchaseorder/purchaseRequisition.vue | 34 ++++- 6 files changed, 212 insertions(+), 13 deletions(-) diff --git a/src/views/modules/auditManagement/auditRules.vue b/src/views/modules/auditManagement/auditRules.vue index 80861fe..5866c36 100644 --- a/src/views/modules/auditManagement/auditRules.vue +++ b/src/views/modules/auditManagement/auditRules.vue @@ -124,7 +124,7 @@ - + diff --git a/src/views/modules/auditManagement/auditType.vue b/src/views/modules/auditManagement/auditType.vue index 96bb7b2..4d6195f 100644 --- a/src/views/modules/auditManagement/auditType.vue +++ b/src/views/modules/auditManagement/auditType.vue @@ -8,7 +8,10 @@ {{buttons.search}} - + {{buttons.add}} + {{buttons.defaultTable}} + + {{ buttons.settingTable}} diff --git a/src/views/modules/knifemold/receive.vue b/src/views/modules/knifemold/receive.vue index 91ffd96..91974b0 100644 --- a/src/views/modules/knifemold/receive.vue +++ b/src/views/modules/knifemold/receive.vue @@ -82,8 +82,9 @@ width="100" :label="buttons.operating"> @@ -321,7 +322,9 @@ import { getFileList, printTool, saveFileAssociate, - printToolData + printToolData, + closeReceiveStatus, + getPRDetailInfo } from "@/api/knifemold/receive.js" import { getToolDetailList, @@ -1454,6 +1457,24 @@ export default { this.saveToolInstanceId() // this.initLocationFlag(queryLocation) } + + }, + // 关闭接收 + closeReceive(row) { + this.$confirm(`确定进行关闭接收操作?`, '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + row.closeFlag = 'Y' + closeReceiveStatus(row).then(({data}) => { + if (data.code == 0) { + this.$message.success(data.msg) + this.initViewIfsTable('Y') + } + }) + }) + }, //保存接收信息 saveToolInstanceId() { @@ -1546,7 +1567,22 @@ export default { this.torNumacc = this.ifsToolData.torNumacc this.torNumdown = this.ifsToolData.torNumdown this.initPoToolTable() + this.getPRDetailInfo() + } + }, + // 获取采购申请的寿命 , 单价 + getPRDetailInfo() { + let query = { + site: this.$store.state.user.site, + // 接收号 + requisitionno: this.ifsToolData.transactionId, } + getPRDetailInfo(query).then(({data}) => { + if (data.code == 0) { + this.invoicePrice = data.data.price + this.serviceLife = data.data.lifespan + } + }) }, initPoToolTable() { //是否显示加载效果 diff --git a/src/views/modules/knifemold/tool-info-list.vue b/src/views/modules/knifemold/tool-info-list.vue index 7b0ea56..cd74c9a 100644 --- a/src/views/modules/knifemold/tool-info-list.vue +++ b/src/views/modules/knifemold/tool-info-list.vue @@ -62,6 +62,17 @@ v-loading="dataListLoading" highlight-current-row > + + +