|
@@ -38,7 +38,7 @@
|
38
|
38
|
</cube-form-item> -->
|
39
|
39
|
<cube-form-item
|
40
|
40
|
:field="fields[6]"
|
41
|
|
- v-if="ifCreate.valueconfig == 1"
|
|
41
|
+ v-if="reqHasCategory.valueconfig == 1"
|
42
|
42
|
></cube-form-item>
|
43
|
43
|
<div class="label">报修信息</div>
|
44
|
44
|
<cube-form-item :field="fields[4]"></cube-form-item>
|
|
@@ -197,7 +197,7 @@ export default {
|
197
|
197
|
// 报修主体
|
198
|
198
|
repairMain: null,
|
199
|
199
|
// 自动创建
|
200
|
|
- ifCreate: null,
|
|
200
|
+ reqHasCategory: null,
|
201
|
201
|
validity: {},
|
202
|
202
|
valid: undefined,
|
203
|
203
|
// action: 'http://localhost:8080/service/common/common/uploadAttachment/wxIncident/',
|
|
@@ -302,9 +302,9 @@ export default {
|
302
|
302
|
{
|
303
|
303
|
type: "select",
|
304
|
304
|
modelKey: "categoryId",
|
305
|
|
- label: "故障类型:",
|
|
305
|
+ label: "故障类别:",
|
306
|
306
|
props: {
|
307
|
|
- placeholder: "请选择故障类型",
|
|
307
|
+ placeholder: "请选择故障类别",
|
308
|
308
|
options: []
|
309
|
309
|
},
|
310
|
310
|
rules: {
|
|
@@ -561,7 +561,7 @@ export default {
|
561
|
561
|
},
|
562
|
562
|
created() {
|
563
|
563
|
this.repairMain = JSON.parse(localStorage.getItem("repairMain"));
|
564
|
|
- this.ifCreate = JSON.parse(localStorage.getItem("ifCreate"));
|
|
564
|
+ this.reqHasCategory = JSON.parse(localStorage.getItem("reqHasCategory"));
|
565
|
565
|
|
566
|
566
|
this.fields.forEach(item => {
|
567
|
567
|
// 联系人在报修人主体下必填,报修科室主体下非必填
|
|
@@ -569,7 +569,7 @@ export default {
|
569
|
569
|
item.rules.required = this.repairMain.valueconfig == 1;
|
570
|
570
|
}
|
571
|
571
|
});
|
572
|
|
- // 获取故障类型
|
|
572
|
+ // 获取故障类别
|
573
|
573
|
this.$http
|
574
|
574
|
.post("service/bpm/data/fetchDataList/incidentcategory", {
|
575
|
575
|
idx: 0,
|
|
@@ -583,7 +583,7 @@ export default {
|
583
|
583
|
arr.push({ value: item.id, text: item.category });
|
584
|
584
|
});
|
585
|
585
|
this.fields.forEach(item => {
|
586
|
|
- // 初始化故障类型下拉框列表
|
|
586
|
+ // 初始化故障类别下拉框列表
|
587
|
587
|
if (item.modelKey == "categoryId") {
|
588
|
588
|
item.props.options = arr;
|
589
|
589
|
}
|