测试环境链接替换,部分问题修复,增加批量退菜功能

This commit is contained in:
2026-07-07 15:26:08 +08:00
parent b93429ed99
commit c001f982b4
29 changed files with 1975 additions and 349 deletions

View File

@@ -85,14 +85,14 @@
<text class="u-m-l-10 no-wrap">{{ item.payName }}</text>
</view>
<view class="u-flex color-999 u-font-24">
<view class="u-m-r-20" v-if="item.payType == 'arrears' && pageData.buyer.id" @click.stop="chooseBuyer">
<view class="u-m-r-20" v-if="item.payType == 'virtual' && pageData.buyer.id" @click.stop="chooseBuyer">
<view>
<text>挂账人</text>
<text class="u-m-r-4">{{ pageData.buyer.debtor }}</text>
</view>
<view>
<text>挂账额度</text>
<text>{{ pageData.buyer.remainingAmount || '0' }}</text>
<text>{{ (pageData.buyer.creditAmount+pageData.buyer.accountBalance) || '0' }}</text>
</view>
</view>
<view class="u-m-r-20" v-if="item.payType == 'member-account' && pageData.user.id" @click.stop="chooseUser">
@@ -994,7 +994,7 @@ function changePayType(i, item) {
if (item.payType == 'member-account' && !pageData.user.id) {
chooseUser();
}
if (item.payType == 'arrears' && !pageData.buyer.id) {
if (item.payType == 'virtual' && !pageData.buyer.id) {
chooseBuyer();
}
}
@@ -1030,7 +1030,7 @@ function payOrderClick() {
if (payType == 'cash' && payPrice.value * 1 > 0) {
return cashConfirmShow();
}
if (payType == 'arrears' && pageData.buyer.remainingAmount < payPrice.value * 1) {
if (payType == 'virtual' && pageData.buyer.remainingAmount < payPrice.value * 1) {
return infoBox.showToast('挂账额度不足');
}
if (payType == 'member-account' && pageData.user.amount * 1 < payPrice.value * 1) {
@@ -1067,7 +1067,7 @@ async function pay(par) {
if (order.userId || pageData.user.userId) {
params.checkOrderPay.userId = order.userId || pageData.user.userId;
}
if (payType == 'arrears') {
if (payType == 'virtual') {
params.creditBuyerId = pageData.buyer.id;
}
let payRes = null;
@@ -1078,7 +1078,7 @@ async function pay(par) {
if (payType == 'cash') {
payRes = await cashPay(params);
}
if (payType == 'arrears') {
if (payType == 'virtual') {
payRes = await creditPay(params);
}
if (payType == 'member-account' || payType == 'deposit') {