story#7062,供应商培训和财务发票上传挂钩--曹智龙,弹框位置

This commit is contained in:
2025-08-26 11:44:42 +08:00
parent ec974ed55c
commit 698f98bee7
2 changed files with 25 additions and 7 deletions

View File

@@ -76,7 +76,7 @@
import { Decimal } from 'decimal.js';
import { Dialog } from "vant";
import { myMixins } from "@/utils/myMixins"
import { uploadInvoice, getBillingInfo, deleteInvoice, createBatch, jumpPage} from "@/api/mine"
import { uploadInvoice, getBillingInfo, deleteInvoice, createBatch} from "@/api/mine"
export default {
name: "uploadInvoice",
mixins:[ myMixins ],
@@ -132,10 +132,10 @@
}
},
methods: {
async getJumpHandler() {
/* async getJumpHandler() {
let res = await jumpPage();
return res
},
},*/
async initData() {
this.list = JSON.parse(localStorage.getItem('list'));
this.batchIds = [];
@@ -235,11 +235,11 @@
});
},
async beforeRead (file) {
let res = await this.getJumpHandler();
/*let res = await this.getJumpHandler();
if(res?.data?.jump) {
this.$message.warning("您有没有完成的培训请在中道调度APP上完成培训再进行发票上传")
return false
}
}*/
const FileExt = file.name.replace(/.+\./, "");
if (['jpg', 'png', 'jpeg', 'pdf', 'ofd'].indexOf(FileExt.toLowerCase()) === -1) {
this.$toast('请上传后缀名为jpg、jpeg、png、pdf、ofd的文件')