|
@@ -50,13 +50,13 @@
|
50
|
50
|
:field="fields[21]"
|
51
|
51
|
></cube-form-item>
|
52
|
52
|
<cube-form-item :field="fields[1]"></cube-form-item>
|
53
|
|
- <!-- <cube-form-item :field="fields[2]" class="btn_plcaeholde">
|
|
53
|
+ <cube-form-item :field="fields[2]" class="btn_plcaeholde">
|
54
|
54
|
<cube-button @click="showPlacePicker()">{{selectedPlaceTxt?selectedPlaceTxt:'请选择区域地点'}}</cube-button>
|
55
|
|
- </cube-form-item>-->
|
|
55
|
+ </cube-form-item>
|
56
|
56
|
<!-- 故障地点: -->
|
57
|
|
- <cube-form-item :field="fields[19]" class="btn_plcaeholde btn_local">
|
|
57
|
+ <!-- <cube-form-item :field="fields[19]" class="btn_plcaeholde btn_local"> -->
|
58
|
58
|
<!-- <cube-button @click="showPlacePicker()">{{selectedPlaceTxt?selectedPlaceTxt:'请输入故障地点'}}</cube-button> -->
|
59
|
|
- <input
|
|
59
|
+ <!-- <input
|
60
|
60
|
type="text"
|
61
|
61
|
class="inp_local"
|
62
|
62
|
placeholder="请输入故障地点"
|
|
@@ -64,8 +64,8 @@
|
64
|
64
|
@input="changeLocalList()"
|
65
|
65
|
@click="showPlacePicker()"
|
66
|
66
|
/>
|
67
|
|
- </cube-form-item>
|
68
|
|
- <!-- <cube-form-item :field="fields[3]"></cube-form-item> -->
|
|
67
|
+ </cube-form-item> -->
|
|
68
|
+ <cube-form-item :field="fields[3]"></cube-form-item>
|
69
|
69
|
<cube-form-item :field="fields[4]" class="btn_plcaeholde">
|
70
|
70
|
<cube-button @click="showCategoryPicker()">{{
|
71
|
71
|
selectedCategoryTxt ? selectedCategoryTxt : "请选择事件分类"
|
|
@@ -897,18 +897,18 @@ export default {
|
897
|
897
|
}
|
898
|
898
|
});
|
899
|
899
|
solutionType = a2;
|
900
|
|
- // if (that.model.placeValue.length == 2) {
|
901
|
|
- // that.model.areaId =
|
902
|
|
- // that.model.placeValue[that.model.placeValue.length - 2];
|
903
|
|
- // that.model.placeId =
|
904
|
|
- // that.model.placeValue[that.model.placeValue.length - 1];
|
905
|
|
- // } else if (that.model.placeValue.length == 1) {
|
906
|
|
- // that.model.areaId =
|
907
|
|
- // that.model.placeValue[that.model.placeValue.length - 1];
|
908
|
|
- // that.model.placeId = "";
|
909
|
|
- // }
|
|
900
|
+ if (that.model.placeValue.length == 2) {
|
|
901
|
+ that.model.areaId =
|
|
902
|
+ that.model.placeValue[that.model.placeValue.length - 2];
|
|
903
|
+ that.model.placeId =
|
|
904
|
+ that.model.placeValue[that.model.placeValue.length - 1];
|
|
905
|
+ } else if (that.model.placeValue.length == 1) {
|
|
906
|
+ that.model.areaId =
|
|
907
|
+ that.model.placeValue[that.model.placeValue.length - 1];
|
|
908
|
+ that.model.placeId = "";
|
|
909
|
+ }
|
910
|
910
|
|
911
|
|
- that.modelData.incident.houseNumber = that.model.address[0];
|
|
911
|
+ // that.modelData.incident.houseNumber = that.model.address[0];
|
912
|
912
|
that.modelData.incident["repairType"] = that.valConfig;
|
913
|
913
|
if (that.valConfig == 1) {
|
914
|
914
|
// that.modelData.incident.requester = that.loginUser;
|
|
@@ -918,8 +918,8 @@ export default {
|
918
|
918
|
that.modelData.incident.department = that.model.requester;
|
919
|
919
|
}
|
920
|
920
|
|
921
|
|
- // that.modelData.incident.area = { id: that.model.areaId };
|
922
|
|
- // that.modelData.incident.place = { id: that.model.placeId };
|
|
921
|
+ that.modelData.incident.area = { id: that.model.areaId };
|
|
922
|
+ that.modelData.incident.place = { id: that.model.placeId };
|
923
|
923
|
that.modelData.incident.category = {
|
924
|
924
|
id: category[category.length - 1]
|
925
|
925
|
};
|
|
@@ -929,7 +929,7 @@ export default {
|
929
|
929
|
that.modelData.incident.contactsInformation =
|
930
|
930
|
that.model.contactsInformation;
|
931
|
931
|
that.modelData.incident.contacts = that.model.contacts;
|
932
|
|
- // that.modelData.incident.houseNumber = that.model.houseNumber;
|
|
932
|
+ that.modelData.incident.houseNumber = that.model.houseNumber;
|
933
|
933
|
that.modelData.incident.acceptUser = that.loginUser;
|
934
|
934
|
that.modelData.incident.requester = {};
|
935
|
935
|
that.modelData.incident.handlingPersonnelUser = { id: that.loginUser.id };
|
|
@@ -1325,22 +1325,22 @@ export default {
|
1325
|
1325
|
},
|
1326
|
1326
|
selectPlaceHandler(selectedVal, selectedIndex, selectedTxt) {
|
1327
|
1327
|
console.log(selectedVal, selectedIndex, selectedTxt);
|
1328
|
|
- this.inpLocalVal = this.model.address = selectedTxt; //seimin
|
1329
|
|
- console.log(this.allPlace, "allPlace");
|
1330
|
|
- this.allPlace.forEach(item => {
|
1331
|
|
- if (item.id == selectedVal && item.place) {
|
1332
|
|
- //如果存在地点
|
1333
|
|
- this.selectHouseNumber = this.allPlace[selectedIndex];
|
1334
|
|
- }
|
1335
|
|
- });
|
1336
|
|
- console.log(this.selectHouseNumber, 2222);
|
1337
|
|
-
|
1338
|
|
- // this.model.houseNumber = this.selectedPlaceTxt = selectedTxt.join(" ");
|
1339
|
|
- // var place = {
|
1340
|
|
- // index: selectedIndex,
|
1341
|
|
- // txt: this.model.houseNumber
|
1342
|
|
- // };
|
1343
|
|
- // localStorage.setItem("place", JSON.stringify(place));
|
|
1328
|
+ // this.inpLocalVal = this.model.address = selectedTxt; //seimin
|
|
1329
|
+ // console.log(this.allPlace, "allPlace");
|
|
1330
|
+ // this.allPlace.forEach(item => {
|
|
1331
|
+ // if (item.id == selectedVal && item.place) {
|
|
1332
|
+ // //如果存在地点
|
|
1333
|
+ // this.selectHouseNumber = this.allPlace[selectedIndex];
|
|
1334
|
+ // }
|
|
1335
|
+ // });
|
|
1336
|
+ // console.log(this.selectHouseNumber, 2222);
|
|
1337
|
+ this.model.placeValue = selectedVal;
|
|
1338
|
+ this.model.houseNumber = this.selectedPlaceTxt = selectedTxt.join(" ");
|
|
1339
|
+ var place = {
|
|
1340
|
+ index: selectedIndex,
|
|
1341
|
+ txt: this.model.houseNumber
|
|
1342
|
+ };
|
|
1343
|
+ localStorage.setItem("place", JSON.stringify(place));
|
1344
|
1344
|
},
|
1345
|
1345
|
// 报修科室
|
1346
|
1346
|
showDeptPicker() {
|
|
@@ -1554,10 +1554,10 @@ export default {
|
1554
|
1554
|
this.getsjnum();
|
1555
|
1555
|
// 事件分类
|
1556
|
1556
|
this.getIncidentcategory();
|
1557
|
|
- // this.getAreaData();
|
1558
|
|
- // this.getPlaceData();
|
|
1557
|
+ this.getAreaData();
|
|
1558
|
+ this.getPlaceData();
|
1559
|
1559
|
// 获取故障地点
|
1560
|
|
- this.getFaultLocation();
|
|
1560
|
+ // this.getFaultLocation();
|
1561
|
1561
|
if (this.valConfig == 2) {
|
1562
|
1562
|
this.getDept();
|
1563
|
1563
|
}
|