diff --git a/src/views/inout/InvoiceRegistration.vue b/src/views/inout/InvoiceRegistration.vue index db98f75..299c258 100644 --- a/src/views/inout/InvoiceRegistration.vue +++ b/src/views/inout/InvoiceRegistration.vue @@ -186,7 +186,8 @@ 单据 {{ currentRow.billNo }}-单据详情 - 单据 {{ currentRow.billNo }}-发票信息 - - - - - - - - - - - - - - - - + + + @@ -426,7 +426,7 @@ import {getLocalJoinByUser} from "@/api/basic/busType"; import {getInvListByUser} from "@/api/system/invWarehouse"; import {isBlank} from "@/utils/strUtil"; import {selectSysParamByKey} from "@/api/param/systemParamConfig"; -import {filterListInvoice, getBizDetailList, deleteById,insertInvoice} from '@/api/inout/orderDetailBiz' +import {filterListInvoice, getBizDetailList, deleteById, insertInvoice} from '@/api/inout/orderDetailBiz' import {getCodeList} from "@/api/inout/code"; import AcceptOrder from "@/views/inout/DialogReviewOrder"; import DialogInvoice from "@/views/inout/DialogInvoice"; @@ -435,12 +435,10 @@ import InvoiceRegister from "@/views/inout/InvoiceRegister"; import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint" import {getDeptListByUser} from "@/api/auth/authDept"; import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; -import { previewImage } from '@/api/purchase/supCompany' +import {previewImage} from '@/api/purchase/supCompany' import ElImageViewer from "element-ui/packages/image/src/image-viewer"; - - const formJson = { site_id: "", site_name: "", @@ -452,8 +450,8 @@ export default { name: "IoCheckSuccessOrder", data() { return { - imgList:[], - imgViewerVisible:false, + imgList: [], + imgViewerVisible: false, BASE_URL: process.env.VUE_APP_BASE_API, showSearch: true, filterQuery: { @@ -530,7 +528,7 @@ export default { billNo: "" }, actDateRange: [], - auditDateRange:[], + auditDateRange: [], pickerOptions: { shortcuts: [ { @@ -592,7 +590,7 @@ export default { acceptOrderVisible: false, }; }, - components: {AcceptOrder, DialogInvoice, InvoiceRegister,ElImageViewer}, + components: {AcceptOrder, DialogInvoice, InvoiceRegister, ElImageViewer}, methods: { onReset() { this.$router.push({ @@ -613,17 +611,17 @@ export default { this.getList(); }, InvoiceRegister(row) { - insertInvoice(row) - .then(response => { - if (response.code === 20000) { - this.closeInvoice(); - } else { - this.$message.error(response.message); - } - }) - .catch(() => { + insertInvoice(row) + .then(response => { + if (response.code === 20000) { + this.closeInvoice(row); + } else { this.$message.error(response.message); - }); + } + }) + .catch((response) => { + this.$message.error(response.message); + }); }, onSubmit() { this.loading = true; @@ -649,24 +647,28 @@ export default { hideSearch() { this.showSearch = !this.showSearch; }, - showImgViewer(row){ + showImgViewer(row) { this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name="; - this.imgList=[]; - previewImage({imageUrl:row.licenseUrl,certFileUrl:this.certFileUrl}).then(response => { + this.imgList = []; + previewImage({imageUrl: row.licenseUrl, certFileUrl: this.certFileUrl}).then(response => { if (response.code === 20000) { - this.imgList=response.data; + this.imgList = response.data; } console.log(this.imgList) this.imgViewerVisible = true; }); - const m = (e) => { e.preventDefault() }; + const m = (e) => { + e.preventDefault() + }; document.body.style.overflow = 'hidden'; document.addEventListener("touchmove", m, false); // 禁止页面滑动 }, - closeImgViewer(){ + closeImgViewer() { this.imgViewerVisible = false; - const m = (e) => { e.preventDefault() }; + const m = (e) => { + e.preventDefault() + }; document.body.style.overflow = 'auto'; document.removeEventListener("touchmove", m, true); }, @@ -725,7 +727,7 @@ export default { }, handleSelectionChange(val) { - this.currentRow.billNo=val.billNo; + this.currentRow.billNo = val.billNo; this.getOrderDetails(); }, // 获取单据 业务详情、扫码详情、扫码明细 @@ -899,13 +901,14 @@ export default { this.bizQuery.page = 1; this.getBizDetailList(); }, - getBizDetailList() { + getBizDetailList(row) { if (isBlank(this.currentRow.billNo)) { this.$message.error("请先选择需要查询的单据!") return; } this.bizDetailLoading = true; this.bizQuery.orderIdFk = this.currentRow.billNo; + this.bizQuery.bizIdFk = row.id; filterListInvoice(this.bizQuery).then((res) => { this.bizDetailLoading = false; if (res.code === 20000) { @@ -923,9 +926,9 @@ export default { this.bizTotal = 0; }) }, - BizDetail(){ - this.bizQuery.page=1; - this.getBizDetailList(); + BizDetail(row) { + this.bizQuery.page = 1; + this.getBizDetailList(row); }, @@ -956,9 +959,9 @@ export default { this.getBizDetailList(); }, - closeInvoice() { + closeInvoice(row) { this.InvoiceRegisterv = false; - this.getBizDetailList(); + this.getBizDetailList(row); }, //开始验收