充值和开票限定

This commit is contained in:
2025-11-27 08:53:09 +08:00
parent 990a3a17aa
commit 2bb5a51031
3 changed files with 36 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
// pages/invoiceList/components/notyet/index.js
import { getInvoiceList } from '../../../../service/invoice';
import { getTenementBackInfo } from '../../../../service/tenement';
import { alertInfo, loadingFunc } from '../../../../utils/index';
import request from '../../../../utils/request';
const { OK } = request;
@@ -69,7 +70,18 @@ Component({
selectMoney: Number(selectMoney.toFixed(2))
})
},
next() {
async next() {
const park = wx.getStorageSync("park")
const tenement = wx.getStorageSync("tenement")
const { code: detailCode, message: detailMessage, tenement: Detail } = await getTenementBackInfo(park?.id, tenement?.id)
if (detailCode !== OK) {
alertInfo(detailMessage)
return;
}
if (Detail?.stop_invoice) {
alertInfo("您暂不可使用此功能,可联系客服处理。")
return
}
const { selectList, list, selectMoney, selectCount } = this.data;
let tenementID = "";
let tenementName = "";