From 20f21696e711574f4438f244b5b1929109a6a547 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Sat, 6 May 2023 16:37:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=A5=A8=E7=99=BB=E8=AE=B0=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=B7=E6=96=B0=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inout/orderDetailBiz.js | 8 +++++++ src/views/inout/InvoiceRegistration.vue | 30 ++++++++++++++++++++----- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/src/api/inout/orderDetailBiz.js b/src/api/inout/orderDetailBiz.js index c568b4ec..776a65aa 100644 --- a/src/api/inout/orderDetailBiz.js +++ b/src/api/inout/orderDetailBiz.js @@ -91,6 +91,14 @@ export function filterBizOrderList(params) { }); } +export function addBizProduct(params) { + return axios({ + url: "/udiwms/inout/order/refrshInvoice", + method: "post", + data: params + }); +} + diff --git a/src/views/inout/InvoiceRegistration.vue b/src/views/inout/InvoiceRegistration.vue index 8e6da726..b468cb6f 100644 --- a/src/views/inout/InvoiceRegistration.vue +++ b/src/views/inout/InvoiceRegistration.vue @@ -192,7 +192,7 @@ - + @@ -235,7 +234,7 @@ 未登记 - 全部登记 + 登记 @@ -520,7 +519,7 @@ import { deleteById, insertInvoice, updateorderBiz, - filterBizOrderList + filterBizOrderList, addBizProduct } from '@/api/inout/orderDetailBiz' import {getCodeList} from "@/api/inout/code"; import AcceptOrder from "@/views/inout/DialogReviewOrder"; @@ -565,6 +564,11 @@ export default { endTime: null, invCode: this.$store.getters.locInvCode, }, + Refresh:{ + id:"", + orderIdFk:null, + bizIdFk:"", + }, determineVisible: false, determineData:null, corpLoading: false, @@ -1116,6 +1120,20 @@ export default { }; return statusMap[status]; }, + + getNewInv (row){ + this.Refresh.orderIdFk=row.billNo; + addBizProduct(this.Refresh).then( (res) => { + if (res.code === 20000) { + this.$message.success("刷新成功!"); + this.getList(); + } else { + this.$message.error(res.message); + } + }) + + + }, } , mounted() {