|
@@ -258,6 +258,9 @@
|
|
|
<el-date-picker
|
|
|
v-model="scope.row.startDate"
|
|
|
type="date"
|
|
|
+ @change="(e)=>{
|
|
|
+ getPrice(scope.row)
|
|
|
+ }"
|
|
|
:disabled="formData.status != 'WAIT'"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
placeholder="选择日期">
|
|
@@ -271,6 +274,9 @@
|
|
|
<el-date-picker
|
|
|
v-model="scope.row.endDate"
|
|
|
type="date"
|
|
|
+ @change="(e)=>{
|
|
|
+ getPrice(scope.row)
|
|
|
+ }"
|
|
|
:disabled="formData.status != 'WAIT'"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
placeholder="选择日期">
|
|
@@ -292,7 +298,9 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item :prop="'dataList.' + scope.$index + '.renewalPrice'"
|
|
|
:rules="[{ required: true, message: `请输入押金`, trigger: 'blur' }]">
|
|
|
- <el-input type="number" v-model="scope.row.renewalPrice"
|
|
|
+ <el-input type="number" v-model="scope.row.renewalPrice" @input="(e)=>{
|
|
|
+ getPrice(scope.row)
|
|
|
+ }"
|
|
|
:disabled="formData.status != 'WAIT'" placeholder="请输入"></el-input>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
@@ -396,7 +404,7 @@
|
|
|
import {
|
|
|
getGoods,
|
|
|
getDetail,
|
|
|
- add,confirmOrder,confirmRecover,confirmRelet,confirmRepair,getTypeList,getUserList
|
|
|
+ add,confirmOrder,confirmRecover,confirmRelet,confirmRepair,getTypeList,getUserList,getPrice
|
|
|
} from "@/api/tenancyOrder";
|
|
|
export default {
|
|
|
components: {
|
|
@@ -525,7 +533,6 @@
|
|
|
created() {
|
|
|
if (this.id) {
|
|
|
this.getDetail()
|
|
|
- this.getinitlbslist()
|
|
|
}
|
|
|
this.lbsAmapRegion('provinceList',0)
|
|
|
this.getGoods()
|
|
@@ -547,9 +554,12 @@
|
|
|
provinceObj: {id: res.data.provinceId},
|
|
|
cityObj: {id: res.data.cityId},
|
|
|
areaObj: {id: res.data.areaId},
|
|
|
- streetObj: {id: res.data.streetId}
|
|
|
+ streetObj: {id: res.data.streetId},
|
|
|
+ userInfo: res.data.userId?{userId: res.data.userId,userMobile: res.data.userMobile,userName: res.data.userName}:res.data.userMobile
|
|
|
}
|
|
|
this.formData3.dataList = res.data.items
|
|
|
+ this.getinitlbslist()
|
|
|
+ this.getUserList()
|
|
|
})
|
|
|
},
|
|
|
getGoods() {
|
|
@@ -561,6 +571,17 @@
|
|
|
this.goodsList = res.data.records
|
|
|
})
|
|
|
},
|
|
|
+ getPrice(item){
|
|
|
+ // getPrice({
|
|
|
+ // startDate: item.startDate,
|
|
|
+ // endDate: item.endDate,
|
|
|
+ // isRenewal: this.formData.status == 'WAIT'?false:true,
|
|
|
+ // price: item.renewalPrice,
|
|
|
+ // qty: item.qty,
|
|
|
+ // }).then(res => {
|
|
|
+ // item.leaseAmount = res.data
|
|
|
+ // })
|
|
|
+ },
|
|
|
getUserList(value){
|
|
|
getUserList({
|
|
|
pageNum: 1,
|