新增现金支付备注

This commit is contained in:
gyq
2026-03-20 09:10:53 +08:00
parent 26f298cb2d
commit adbecd1b5e
4 changed files with 17062 additions and 26 deletions

View File

@@ -215,10 +215,13 @@
<el-button type="danger" @click="clearPoint">清除</el-button>
</div>
<div class="point_tips err" v-if="couponFormUser.id && !pointOptions.usable">
注意:{{ pointOptions.unusableReason || (`订单金额不足¥${formatDecimal(+pointOptions.minPaymentAmount)},无法使用积分抵扣`) }}
注意:{{ pointOptions.unusableReason ||
(`订单金额不足¥${formatDecimal(+pointOptions.minPaymentAmount)},无法使用积分抵扣`) }}
</div>
<div class="point_tips" v-if="couponFormUser.id && pointOptions.usable">
说明:订单已满足使用门槛,当前积分可抵扣最多¥{{ pointOptions.potentialAmount }}(当前积分 {{ couponFormUser.accountPoints || 0 }}
说明:订单已满足使用门槛,当前积分可抵扣最多¥{{ pointOptions.potentialAmount }}(当前积分 {{ couponFormUser.accountPoints
|| 0
}}
</div>
</el-form-item>
</el-form>
@@ -250,7 +253,7 @@ import { getPayType } from "@/api/account.js";
import scanModal from "@/components/payCard/scanModal.vue";
import SelectVipUser from '@/components/selectVipUser.vue'
import CouponModal from '@/components/payCard/couponModal.vue'
import { ElMessage } from "element-plus";
import { ElMessage, ElMessageBox } from "element-plus";
import { staffPermission } from "@/api/user.js";
import { cashPay, buyerPage, creditPay, vipPay } from "@/api/order.js";
import { calcUsablePoints } from '@/api/account.js'
@@ -467,6 +470,7 @@ function upadatePayData() {
newCustomerDiscountId: goodsStore.newUserDiscount !== null ? goodsStore.newUserDiscount.id : goodsStore.newUserDiscount !== null ? goodsStore.newUserDiscount.id : '', // 新客立减Id
newCustomerDiscountAmount: goodsStore.newUserDiscount !== null ? goodsStore.newUserDiscount.amount : 0, // 新客立减金额
vipDiscountAmount: goodsStore.cartInfo.costSummary.vipDiscountAmount, // 超级会员折扣
remark: '', // 现金支付备注
}
}
@@ -501,10 +505,20 @@ async function confirmOrder() {
return;
case "cash":
//现金
if (props.selecttype == 0) {
payLoading.loading = true
await cashPay(payData.value);
}
ElMessageBox.prompt('确定现金支付?', '注意', {
confirmButtonText: '确定',
cancelButtonText: '取消',
inputPlaceholder: '请输入备注(选填)',
}).then(async ({ value }) => {
payData.value.checkOrderPay.remark = value;
if (props.selecttype == 0) {
payLoading.loading = true
await cashPay(payData.value);
payLoading.value = false;
emit("paySuccess");
}
}).catch(() => { })
return;
break
case "member-account":
// 会员支付