|
@@ -46,7 +46,7 @@ export default {
|
|
|
},
|
|
|
events: {
|
|
|
change: (val) => {
|
|
|
- this.getorderDetail(()=>{
|
|
|
+ this.getorderDetail(() => {
|
|
|
if (val) {
|
|
|
this.orderInfo.rpProjectRepairId = val
|
|
|
this.orderInfo.rpProjectRepairName = this.wb_project.find(item => item.value == val).label
|
|
@@ -292,27 +292,29 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- getWeiBaoDetail(){
|
|
|
- if(this.orderInfo.rpProjectRepairId){
|
|
|
+ getWeiBaoDetail() {
|
|
|
+ if (this.orderInfo.rpProjectRepairId) {
|
|
|
getDetail({
|
|
|
- id:this.orderInfo.rpProjectRepairId
|
|
|
- }).then(res=>{
|
|
|
+ id: this.orderInfo.rpProjectRepairId
|
|
|
+ }).then(res => {
|
|
|
|
|
|
- this.orderInfo.userName = res.data.manger
|
|
|
- this.orderInfo.linkName = res.data.manger
|
|
|
- this.orderInfo.userMobile = res.data.mobile
|
|
|
- this.orderInfo.provinceId = res.data.provinceId
|
|
|
- this.orderInfo.province = res.data.province
|
|
|
- this.orderInfo.cityId = res.data.cityId
|
|
|
- this.orderInfo.city = res.data.city
|
|
|
- this.orderInfo.areaId = res.data.areaId
|
|
|
- this.orderInfo.area = res.data.area
|
|
|
- this.orderInfo.streetId = res.data.streetId
|
|
|
- this.orderInfo.street = res.data.street
|
|
|
- this.orderInfo.gpsAddress = res.data.gpsAddress||res.data.address
|
|
|
- this.orderInfo.lat = res.data.lat
|
|
|
- this.orderInfo.lng = res.data.lng
|
|
|
- this.orderInfo.address = res.data.address
|
|
|
+ if (!this.id) {
|
|
|
+ this.orderInfo.userName = res.data.manger
|
|
|
+ this.orderInfo.linkName = res.data.manger
|
|
|
+ this.orderInfo.userMobile = res.data.mobile
|
|
|
+ this.orderInfo.provinceId = res.data.provinceId
|
|
|
+ this.orderInfo.province = res.data.province
|
|
|
+ this.orderInfo.cityId = res.data.cityId
|
|
|
+ this.orderInfo.city = res.data.city
|
|
|
+ this.orderInfo.areaId = res.data.areaId
|
|
|
+ this.orderInfo.area = res.data.area
|
|
|
+ this.orderInfo.streetId = res.data.streetId
|
|
|
+ this.orderInfo.street = res.data.street
|
|
|
+ this.orderInfo.gpsAddress = res.data.gpsAddress || res.data.address
|
|
|
+ this.orderInfo.lat = res.data.lat
|
|
|
+ this.orderInfo.lng = res.data.lng
|
|
|
+ this.orderInfo.address = res.data.address
|
|
|
+ }
|
|
|
|
|
|
// 工单小类下拉
|
|
|
this.orderSmallTypeData = res.data.typeList.map(item => ({
|
|
@@ -321,13 +323,13 @@ export default {
|
|
|
}))
|
|
|
|
|
|
// 网点下拉数据
|
|
|
- this.websitList = (res.data.websitList||[]).map(item => ({
|
|
|
+ this.websitList = (res.data.websitList || []).map(item => ({
|
|
|
label: item.websitName,
|
|
|
value: item.websitId
|
|
|
}))
|
|
|
|
|
|
// 产品信息可选项
|
|
|
- this.productList_wb = (res.data.productList||[])
|
|
|
+ this.productList_wb = (res.data.productList || [])
|
|
|
|
|
|
this.getinitlbslist()
|
|
|
})
|