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: {}, modalData: {},
ruleForm: { ruleForm: {
productList: [], productList: [],
isRefundEarnestMoney: 1, //退 1 2 isRefundEarnestMoney: 1, //退 1 0
}, },
tableData: [], tableData: [],
rules: {}, rules: {},
@ -450,4 +450,4 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
</style> </style>

View File

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

View File

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