diff --git a/src/views/inout/InvoiceCkeck.vue b/src/views/inout/InvoiceCkeck.vue index 58e4284e..dbdae515 100644 --- a/src/views/inout/InvoiceCkeck.vue +++ b/src/views/inout/InvoiceCkeck.vue @@ -273,7 +273,7 @@ import AcceptOrder from "@/views/inout/DialogReviewOrder"; import DialogInvoice from "@/views/inout/DialogInvoice"; import InvoiceRegister from "@/views/inout/InvoiceRegister"; -import {previewImage,previewFile} from "@/api/purchase/supCompany"; +import {previewImage, previewFile} from "@/api/purchase/supCompany"; import ElImageViewer from "element-ui/packages/image/src/image-viewer"; import store from "@/store"; @@ -306,7 +306,7 @@ export default { }, data() { return { - check:false, + check: false, idList: [], invoiceRow: [], statusCode: null, @@ -485,7 +485,7 @@ export default { components: {AcceptOrder, DialogInvoice, InvoiceRegister, ElImageViewer}, methods: { onSubmit() { - if (!this.check) { + if (this.invoiceRow == null || this.invoiceRow.length == 0) { this.$message.error("请选择要登记的物资! "); return false; } @@ -550,14 +550,14 @@ export default { getInputFocus(event) { event.currentTarget.select(); }, - enterKey(){ - let param={ - code :this.inputQuery.code + enterKey() { + let param = { + code: this.inputQuery.code } parseInvoice(param) - .then((res)=>{ - if(res.code == 20000){ - this.inputQuery=res.data; + .then((res) => { + if (res.code == 20000) { + this.inputQuery = res.data; } }) @@ -676,7 +676,7 @@ export default { this.getBizDetailList(row); }, handleSelectionUdiChange(val) { - this.check=!this.check + // this.check=!this.check this.invoiceRow = val; // this.$emit("upData",this.invoiceRow); }, @@ -721,18 +721,18 @@ export default { showImgViewer(row) { this.certFileUrl = this.BASE_URL + - "/udiwms/image/register/file/getImage?type=image2&name="+this.inputQuery.licenseUrl; + "/udiwms/image/register/file/getImage?type=image2&name=" + this.inputQuery.licenseUrl; this.imgList = []; - this.imgList.push(this.certFileUrl) + this.imgList.push(this.certFileUrl) let index = this.inputQuery.licenseUrl.lastIndexOf('.'); - if(index===-1){ + if (index === -1) { this.$message.error("文件名异常!") return false } - if(this.inputQuery.licenseUrl.substr(index+1)==='pdf'){ + if (this.inputQuery.licenseUrl.substr(index + 1) === 'pdf') { let pdf = "application/pdf" let binaryData = []; - previewFile(this.certFileUrl).then(res=>{ + previewFile(this.certFileUrl).then(res => { binaryData.push(res); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); window.open(URL); diff --git a/src/views/inout/InvoiceRegByOrder.vue b/src/views/inout/InvoiceRegByOrder.vue index ad88f91a..7757c8dd 100644 --- a/src/views/inout/InvoiceRegByOrder.vue +++ b/src/views/inout/InvoiceRegByOrder.vue @@ -1189,7 +1189,7 @@ export default { this.Upinvoice = false; this.getBizDetailListInv(); }, - printOrder(D,row) { + printOrder(_this,row) { _this.currentManufacturer = row; _this.Upinvoice = true; },