fix: 设置定金不可退配置为0

This commit is contained in:
lzhizhao 2025-05-10 13:48:27 +08:00
parent f5f010c6f1
commit eb0cb2a0a6
3 changed files with 14 additions and 13 deletions

View File

@ -312,7 +312,7 @@ export default {
modalData: {},
ruleForm: {
productList: [],
isRefundEarnestMoney: 1, //退 1 2
isRefundEarnestMoney: 1, //退 1 0
},
tableData: [],
rules: {},

View File

@ -76,7 +76,7 @@
<el-radio v-model="ruleForm.isRefundEarnestMoney" :label="1"
></el-radio
>
<el-radio v-model="ruleForm.isRefundEarnestMoney" :label="2"
<el-radio v-model="ruleForm.isRefundEarnestMoney" :label="0"
></el-radio
>
<span>
@ -406,7 +406,7 @@ export default {
modalData: {},
ruleForm: {
productList: [],
isRefundEarnestMoney: 1 //退 1 2
isRefundEarnestMoney: 1 //退 1 0
},
pickerOptions: {
disabledDate(time) {
@ -517,7 +517,7 @@ export default {
estimatedStartDeliveryTime: '',
estimatedEndDeliveryTime: '',
productList: [],
isRefundEarnestMoney: 1 //退 1 2
isRefundEarnestMoney: 1 //退 1 0
}
this.modalConfig.title = '新增预售'
this.isAdd = true
@ -546,7 +546,7 @@ export default {
balancePaymentEndTime: row.balancePaymentEndTime,
estimatedStartDeliveryTime: row.estimatedStartDeliveryTime,
estimatedEndDeliveryTime: row.estimatedEndDeliveryTime,
isRefundEarnestMoney: row.isRefundEarnestMoney,
isRefundEarnestMoney: Number(row.isRefundEarnestMoney),
productSpecificationList: row.productSpecificationList
})
// (this.ruleForm = {
@ -562,6 +562,7 @@ export default {
// isRefundEarnestMoney: row.isRefundEarnestMoney,
// productSpecificationList: row.productSpecificationList,
// }),
console.log(this.ruleForm)
console.log(this.orderTime, this.arrears, this.delivery)
// this.ruleForm = row;

View File

@ -38,8 +38,8 @@
>
<el-date-picker
@change="getArrearsTime"
format="yyyy-MM-dd"
data-format="yyyy-MM-dd"
format="yyyy-MM-dd HH:mm"
data-format="yyyy-MM-dd HH:mm"
value-format="yyyy-MM-dd HH:mm:ss"
v-model="arrears"
type="datetimerange"
@ -73,7 +73,7 @@
<el-radio v-model="ruleForm.isRefundEarnestMoney" :label="1"
></el-radio
>
<el-radio v-model="ruleForm.isRefundEarnestMoney" :label="2"
<el-radio v-model="ruleForm.isRefundEarnestMoney" :label="0"
></el-radio
>
<span>
@ -217,7 +217,7 @@ export default {
modalData: {},
ruleForm: {
productList: [],
isRefundEarnestMoney: 1, //退 1 2
isRefundEarnestMoney: 1, //退 1 0
},
pickerOptions: {
disabledDate(time) {
@ -264,7 +264,7 @@ export default {
estimatedStartDeliveryTime: "",
estimatedEndDeliveryTime: "",
productList: [],
isRefundEarnestMoney: 1, //退 1 2
isRefundEarnestMoney: 1, //退 1 0
};
this.modalConfig.title = "新增预售";
this.isAdd = true;
@ -293,7 +293,7 @@ export default {
balancePaymentEndTime: row.balancePaymentEndTime,
estimatedStartDeliveryTime: row.estimatedStartDeliveryTime,
estimatedEndDeliveryTime: row.estimatedEndDeliveryTime,
isRefundEarnestMoney: row.isRefundEarnestMoney,
isRefundEarnestMoney: Number(row.isRefundEarnestMoney),
productSpecificationList: row.productSpecificationList,
}),
console.log(this.orderTime, this.arrears, this.delivery);