价格问题

dev
anthonywj 2 years ago
parent 0aa6c6c75e
commit cb2ea523f4

@ -486,10 +486,12 @@ export default {
return;
}
this.inputQuery.list = this.invoiceRow;
let mount = 0;
let mount = 0.00;
for (var i = 0; i < this.invoiceRow.length; i++) {
mount += this.invoiceRow[i].amount
}
console.log(mount,this.inputQuery.price)
if (mount != this.inputQuery.price) {
this.$confirm("价格不匹配,是否确定提交?", "提示", {
confirmButtonText: "确定",

@ -271,7 +271,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";
import {deleteRe} from "@/api/auth/register";
@ -482,7 +482,7 @@ export default {
components: {AcceptOrder, DialogInvoice, InvoiceRegister, ElImageViewer},
methods: {
onSubmit() {
if (this.invoiceRow == null|| this.invoiceRow.length === 0) {
if (this.invoiceRow == null || this.invoiceRow.length === 0) {
this.$message.error("请选择要登记的物资! ");
return false;
}
@ -503,6 +503,7 @@ export default {
for (var i = 0; i < this.invoiceRow.length; i++) {
mount += this.invoiceRow[i].amount
}
console.log(mount, this.inputQuery.price)
if (mount != this.inputQuery.price) {
this.$confirm("价格不匹配,是否确定提交?", "提示", {
confirmButtonText: "确定",
@ -696,18 +697,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)
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);

Loading…
Cancel
Save