pull/2/head
qsh 4 months ago
parent 252f23f96d
commit 60231e4005
  1. 13
      src/views/Clue/Pool/Comp/DialogSuccess.vue

@ -88,6 +88,7 @@
:min="0" :min="0"
style="width: 100%" style="width: 100%"
:controls="false" :controls="false"
@change="signPriceChange"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -337,7 +338,8 @@ const show = ref(false)
const form = ref({}) const form = ref({})
const rules = ref({ const rules = ref({
dealDate: { required: true, message: '成交日期不可为空', trigger: 'change' }, dealDate: { required: true, message: '成交日期不可为空', trigger: 'change' },
payAmount: { required: true, message: '支付金额不可为空', trigger: 'change,blur' } payAmount: { required: true, message: '支付金额不可为空', trigger: 'change,blur' },
signPrice: { required: true, message: '支付金额不可为空', trigger: 'change,blur' }
}) })
const schoolRules = { const schoolRules = {
@ -532,8 +534,15 @@ function changePlace() {
} }
function changeClass() { function changeClass() {
form.value.payAmount = form.value.signPrice =
classOptions.value.find((it) => it.typeId == form.value.signClass).guidingPrice || 0 classOptions.value.find((it) => it.typeId == form.value.signClass).guidingPrice || 0
signPriceChange()
}
function signPriceChange() {
if (form.value.isPayoff) {
form.value.payAmount = form.value.signPrice
}
} }
function handleRemove(type, index) { function handleRemove(type, index) {

Loading…
Cancel
Save