From 43b763bbcef6c0ce1e6d4169221c08cf08efbb32 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Thu, 21 Aug 2025 17:24:20 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"story#7062,=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E5=9F=B9=E8=AE=AD=E5=92=8C=E8=B4=A2=E5=8A=A1=E5=8F=91?= =?UTF-8?q?=E7=A5=A8=E4=B8=8A=E4=BC=A0=E6=8C=82=E9=92=A9--=E6=9B=B9?= =?UTF-8?q?=E6=99=BA=E9=BE=99"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 2c94eee160d5a5a38857af5257f72a95db19b9fa. --- src/api/mine.js | 11 +---------- src/views/index/uploadInvoice.vue | 13 ++----------- 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/src/api/mine.js b/src/api/mine.js index a62b134e..62698c3d 100644 --- a/src/api/mine.js +++ b/src/api/mine.js @@ -316,13 +316,4 @@ export function unifiedOCRWithCompress(data){ contentType:'application/json', data }) -} - -// 服务商是否培训 -export function jumpPage(data){ - return request({ - url:'/supplierAppV2/dispatchApp/user/jumpPage', - method:'POST', - data - }) -} +} \ No newline at end of file diff --git a/src/views/index/uploadInvoice.vue b/src/views/index/uploadInvoice.vue index 76aa8000..b7b30102 100644 --- a/src/views/index/uploadInvoice.vue +++ b/src/views/index/uploadInvoice.vue @@ -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,6 @@ } }, methods: { - async getJumpHandler() { - let res = await jumpPage(); - return res - }, async initData() { this.list = JSON.parse(localStorage.getItem('list')); this.batchIds = []; @@ -234,12 +230,7 @@ }).catch(() => { }); }, - async beforeRead (file) { - let res = await this.getJumpHandler(); - if(res?.data?.jump) { - this.$message.warning("您有没有完成的培训,请在中道调度APP上完成培训,再进行发票上传") - return false - } + beforeRead (file) { const FileExt = file.name.replace(/.+\./, ""); if (['jpg', 'png', 'jpeg', 'pdf', 'ofd'].indexOf(FileExt.toLowerCase()) === -1) { this.$toast('请上传后缀名为jpg、jpeg、png、pdf、ofd的文件!')