|
|
|
@ -273,13 +273,13 @@ export default {
|
|
|
|
|
trigger: ['blur', 'change'] |
|
|
|
|
}, |
|
|
|
|
'order.payment_voucher': { |
|
|
|
|
type: 'array', |
|
|
|
|
type: 'string', |
|
|
|
|
required: true, |
|
|
|
|
message: '请上传打印凭证', |
|
|
|
|
trigger: ['blur', 'change'] |
|
|
|
|
}, |
|
|
|
|
'order.lease_agreement': { |
|
|
|
|
type: 'string', |
|
|
|
|
type: 'array', |
|
|
|
|
required: true, |
|
|
|
|
message: '请上传租赁协议', |
|
|
|
|
trigger: ['blur', 'change'] |
|
|
|
@ -335,7 +335,21 @@ export default {
|
|
|
|
|
console.log(this.model.order) |
|
|
|
|
this.$refs.orderForm.validate().then(res => { |
|
|
|
|
submitHouseOrder(this.model.order).then(res => { |
|
|
|
|
if(res === 200){ |
|
|
|
|
if(res.code === 200){ |
|
|
|
|
this.model = { |
|
|
|
|
order: { |
|
|
|
|
house_id: '', |
|
|
|
|
name: '', |
|
|
|
|
id_card: '', |
|
|
|
|
phone: '', |
|
|
|
|
month: '', |
|
|
|
|
rent: '', |
|
|
|
|
payment_voucher: '', |
|
|
|
|
lease_agreement: '', |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
this.fileList1 = []; |
|
|
|
|
this.fileList2 = []; |
|
|
|
|
uni.$u.toast('兑换成功') |
|
|
|
|
}else{ |
|
|
|
|
uni.$u.toast(res.msg) |
|
|
|
|