From 5e55f1306fd3f24d2f5dbad79fa46a9f5ee96af7 Mon Sep 17 00:00:00 2001 From: zuowenwen Date: Wed, 29 Sep 2021 13:57:29 +0800 Subject: [PATCH] =?UTF-8?q?zww=20-=E5=88=80=E7=94=B3=E8=AF=B7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/purchaseorder/purchaseRequisition.js | 3 + src/views/modules/common/upload.vue | 16 ++-- .../purchaseorder/purchaseRequisition.vue | 73 ++++++++++++------- 3 files changed, 58 insertions(+), 34 deletions(-) diff --git a/src/api/purchaseorder/purchaseRequisition.js b/src/api/purchaseorder/purchaseRequisition.js index 33fbd04..230fb41 100644 --- a/src/api/purchaseorder/purchaseRequisition.js +++ b/src/api/purchaseorder/purchaseRequisition.js @@ -18,6 +18,9 @@ export const getExportList = data => createAPI(`PRHeader/getExportList`,'POST',d //获取审批记录信息 export const authorizationHistList = data => createAPI(`PRHeader/getAuthorizationHistList`,'POST',data) +//获取审批记录信息 +export const updatePRHeaderAuthorizeFlag = data => createAPI(`PRHeader/updatePRHeaderAuthorizeFlag`,'POST',data) + diff --git a/src/views/modules/common/upload.vue b/src/views/modules/common/upload.vue index b9f9566..873d18e 100644 --- a/src/views/modules/common/upload.vue +++ b/src/views/modules/common/upload.vue @@ -2,16 +2,16 @@
- -
将文件拖到此处,或点击上传
-
只支持jpg、png、gif格式的图片!
+ + style="text-align: center;"> + + 点击上传 +
@@ -46,7 +46,7 @@ console.log(this.fileList) this.successNum++ if (response && response.code === 0) { - if (this.num === this.successNum) { + /*if (this.num === this.successNum) { this.$confirm('操作成功, 是否继续操作?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -54,7 +54,7 @@ }).catch(() => { this.visible = false }) - } + }*/ } else { this.$message.error(response.msg) } diff --git a/src/views/modules/purchaseorder/purchaseRequisition.vue b/src/views/modules/purchaseorder/purchaseRequisition.vue index 98eeb35..235265b 100644 --- a/src/views/modules/purchaseorder/purchaseRequisition.vue +++ b/src/views/modules/purchaseorder/purchaseRequisition.vue @@ -92,10 +92,11 @@ fixed="right" header-align="center" align="center" - width="100" + width="120" :label="buttons.operating"> @@ -202,8 +203,8 @@ v-model="currentPRDetailData.totalPrice" :disabled="true"> - - + + @@ -221,12 +222,6 @@ v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> - - { - this.height = window.innerHeight - 290; + this.height = window.innerHeight - 200; }) }, activated() { @@ -853,6 +853,26 @@ }, methods: { + updateAuthorizeFlag(row){ + let saveData = { + site : row.site, + requisitionNo : row.requisitionNo, + status : '已关闭', + authorizeFlag : 'Y', + approvedFlag : 'N', + } + updatePRHeaderAuthorizeFlag(saveData).then(({data}) =>{ + if (data.code == 0) { + this.getDataList() + } + this.$alert(data.msg, '操作提示', { + confirmButtonText: '确定', + callback: action => { + + } + }); + }) + }, initReviewDetails(orderRef1){ this.reviewDetailsFlag = true this.reviewDetailsList = [] @@ -862,6 +882,7 @@ let queryData = { site : this.site, orderRef1 : orderRef1, + authRuleId : 5, } authorizationHistList(queryData).then(({data}) =>{ this.reviewDetailsList = data.rows