From 7772b3de1ab0b3146d4cf49cc2220e2de275282b Mon Sep 17 00:00:00 2001 From: qiaomu <3520484422@qq.com> Date: Fri, 6 Jun 2025 17:08:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E7=A5=A8=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=EF=BC=8C=E7=82=B9=E5=87=BB=E5=BC=80=E7=A5=A8=E5=85=88=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=88=B0=E5=BC=80=E7=A5=A8=E5=88=97=E8=A1=A8=EF=BC=8C?= =?UTF-8?q?=E4=BB=8E=E6=8E=A5=E5=8F=A3=E6=88=90=E5=8A=9F=E5=90=8E=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E6=94=B9=E6=88=90=E7=9B=B4=E6=8E=A5=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=EF=BC=8C=E7=94=B1=E5=90=8E=E7=AB=AF=E6=8E=A7=E5=88=B6=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=98=BE=E7=A4=BA=EF=BC=8C=E9=98=B2=E6=AD=A2=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E6=83=85=E5=86=B5=E4=B8=8B=E5=AD=98=E5=9C=A8=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=97=A0=E8=BF=94=E5=9B=9E=E5=AF=BC=E8=87=B4=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=8D=A1=E6=AD=BB=E7=9A=84=E9=97=AE=E9=A2=98=E5=90=8E?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E9=87=8D=E5=A4=8D=E7=82=B9=E5=87=BB=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=A4=9A=E5=BC=80=E5=8F=91=E7=A5=A8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E4=BB=A5=E5=8F=8Apdf=E5=8F=B3=E4=B8=8A?= =?UTF-8?q?=E8=A7=92=E9=BB=98=E8=AE=A4=E5=B1=95=E7=A4=BA=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- childPackage/pages/electricQuery/index.js | 1 + pages/invoiceDetail/index.js | 1 + pages/invoiceList/components/already/index.js | 9 +++++++++ pages/invoiceList/components/already/index.wxml | 3 +++ pages/invoicing/index.js | 11 +++++------ pages/rechargeDetail/index.js | 1 + utils/index.js | 5 ++--- 7 files changed, 22 insertions(+), 9 deletions(-) diff --git a/childPackage/pages/electricQuery/index.js b/childPackage/pages/electricQuery/index.js index 0c628d3..f3698e5 100644 --- a/childPackage/pages/electricQuery/index.js +++ b/childPackage/pages/electricQuery/index.js @@ -232,6 +232,7 @@ Page({ wx.openDocument({ filePath: data.tempFilePath, fileType: ['xlsx'], + showMenu: true, success() { }, fail(err) { diff --git a/pages/invoiceDetail/index.js b/pages/invoiceDetail/index.js index 6aeb534..8414c5c 100644 --- a/pages/invoiceDetail/index.js +++ b/pages/invoiceDetail/index.js @@ -80,6 +80,7 @@ Page({ } wx.openDocument({ filePath: res.tempFilePath, + showMenu: true, // fileType: sheetRes.tapIndex === 0 ? 'xml' : "pdf", // 3. 这个必须写合法类型,不然下载不了 !!! success: function (res) { diff --git a/pages/invoiceList/components/already/index.js b/pages/invoiceList/components/already/index.js index ca71d3d..be14240 100644 --- a/pages/invoiceList/components/already/index.js +++ b/pages/invoiceList/components/already/index.js @@ -43,6 +43,15 @@ Component({ page: page + 1, }) }, + refresh() { + const that = this; + that.setData({ + page: 1, + list: [] + }, () => { + loadingFunc(() => that.getList()) + }) + }, onRefresh() { loadingFunc(() => this.getList()) }, diff --git a/pages/invoiceList/components/already/index.wxml b/pages/invoiceList/components/already/index.wxml index c380db2..ce02d3a 100644 --- a/pages/invoiceList/components/already/index.wxml +++ b/pages/invoiceList/components/already/index.wxml @@ -2,6 +2,9 @@ + + 刷新 + diff --git a/pages/invoicing/index.js b/pages/invoicing/index.js index 49df63d..80041f8 100644 --- a/pages/invoicing/index.js +++ b/pages/invoicing/index.js @@ -82,18 +82,17 @@ Page({ loadingFunc(async() => { const {ids = [], remark } = this.data; const tenement = wx.getStorageSync('tenement') + setTimeout(() => { + wx.redirectTo({ + url: '/pages/invoiceList/index?tab=1', + }) + }, 500) const { code, message, data } = await makeInvoice({ ids, tenement: tenement.id, remark }) if (code !== OK) { alertInfo(message) return; } alertSuccess("操作成功") - setTimeout(() => { - wx.redirectTo({ - url: '/pages/invoiceList/index?tab=1', - }) - }, 500) - }) }, changeShow() { diff --git a/pages/rechargeDetail/index.js b/pages/rechargeDetail/index.js index dcf73f0..c75c42f 100644 --- a/pages/rechargeDetail/index.js +++ b/pages/rechargeDetail/index.js @@ -94,6 +94,7 @@ Page({ wx.openDocument({ filePath: res.tempFilePath, fileType: [ "pdf"], // 3. 这个必须写合法类型,不然下载不了 !!! + showMenu: true, success: function (res) { resolve() }, diff --git a/utils/index.js b/utils/index.js index 51e01f4..ef5e122 100644 --- a/utils/index.js +++ b/utils/index.js @@ -45,10 +45,9 @@ export function getConfigByEnv() { switch (envVersion) { // 开发版 case 'develop': - api = "http://localhost:8000" + // api = "http://localhost:8000" // api = "https://zgd.hbhcbn.com/api3" - // api = "https://zgd.hbhcbn.com/api3" - // api = "https://zgd.hbhcbn.com/wxApi" + api = "https://zgd.hbhcbn.com/wxApi" // api = "http://127.0.0.1:4523/m1/4143821-0-default" break; // 体验版