|
|
@ -270,6 +270,7 @@ export default { |
|
|
|
type:'create', |
|
|
|
type:'create', |
|
|
|
model: { |
|
|
|
model: { |
|
|
|
order: { |
|
|
|
order: { |
|
|
|
|
|
|
|
house_order_id:'', |
|
|
|
house_id: '', |
|
|
|
house_id: '', |
|
|
|
name: '', |
|
|
|
name: '', |
|
|
|
id_card: '', |
|
|
|
id_card: '', |
|
|
@ -359,7 +360,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
onLoad(option) { |
|
|
|
this.model.order.house_id = option.id?option.id:''; |
|
|
|
this.model.order.house_order_id = option.id?option.id:''; |
|
|
|
this.model.order.rent = option.rent?parseFloat(option.rent)+'':''; |
|
|
|
this.model.order.rent = option.rent?parseFloat(option.rent)+'':''; |
|
|
|
this.type = option.type?option.type:'create'; |
|
|
|
this.type = option.type?option.type:'create'; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -384,7 +385,7 @@ export default { |
|
|
|
let data = res.data; |
|
|
|
let data = res.data; |
|
|
|
data.end_time = uni.$u.timeFormat(data.end_time,'yyyy-mm-dd') |
|
|
|
data.end_time = uni.$u.timeFormat(data.end_time,'yyyy-mm-dd') |
|
|
|
this.model = {order: data}; |
|
|
|
this.model = {order: data}; |
|
|
|
// this.model.order.house_id = house_id; |
|
|
|
this.model.order.house_order_id = id; |
|
|
|
// this.model.order.month = ''+this.model.order.month; |
|
|
|
// this.model.order.month = ''+this.model.order.month; |
|
|
|
// this.model.order.month = parseInt(this.model.order.month); |
|
|
|
// this.model.order.month = parseInt(this.model.order.month); |
|
|
|
|
|
|
|
|
|
|
@ -584,7 +585,7 @@ export default { |
|
|
|
this.getUserExtend(); |
|
|
|
this.getUserExtend(); |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.type === 'detail' || this.type === 'edit' || this.type === 'apply'){ |
|
|
|
if(this.type === 'detail' || this.type === 'edit' || this.type === 'apply'){ |
|
|
|
this.getDetail(this.model.order.house_id); |
|
|
|
this.getDetail(this.model.order.house_order_id ); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|