|
@@ -338,6 +338,7 @@ export default {
|
338
|
338
|
ifRoom: localStorage.getItem("ifRoom"), //是否增加房间号选择
|
339
|
339
|
loginUser: JSON.parse(localStorage.getItem("loginUser")),
|
340
|
340
|
integralMechanism: localStorage.getItem("integralMechanism"),
|
|
341
|
+ integralRole: localStorage.getItem("integralRole"),
|
341
|
342
|
valConfig: JSON.parse(localStorage.getItem("valConfig")) - 0, //报修主体
|
342
|
343
|
name: "",
|
343
|
344
|
phone: "",
|
|
@@ -370,7 +371,7 @@ export default {
|
370
|
371
|
emergency: "", //紧急度
|
371
|
372
|
influence: "", //影响度
|
372
|
373
|
handleCategory: "", //处理方式
|
373
|
|
- closecode: "", //关闭代码
|
|
374
|
+ closecode: "", //处理结果
|
374
|
375
|
handleDescription: "", //处理方案
|
375
|
376
|
knowledge: false, //是否提交知识库
|
376
|
377
|
handlerUser: "", //处理人
|
|
@@ -390,7 +391,7 @@ export default {
|
390
|
391
|
emergencyArr: [], //紧急度数组
|
391
|
392
|
influenceArr: [], //影响度数组
|
392
|
393
|
handleCategoryArr: [], //处理方式数组
|
393
|
|
- closecodeArr: [], //关闭代码数组
|
|
394
|
+ closecodeArr: [], //处理结果数组
|
394
|
395
|
handlerUserArr: [], //处理人数组
|
395
|
396
|
candidateGroupsArr: [], //处理组数组
|
396
|
397
|
isShowDes: false,
|
|
@@ -601,11 +602,11 @@ export default {
|
601
|
602
|
{
|
602
|
603
|
type: "select",
|
603
|
604
|
modelKey: "closecode",
|
604
|
|
- label: "关闭代码:",
|
|
605
|
+ label: "处理结果:",
|
605
|
606
|
props: {
|
606
|
607
|
options: this.closecodeArr,
|
607
|
|
- title: "请选择关闭代码",
|
608
|
|
- placeholder: "请选择关闭代码"
|
|
608
|
+ title: "请选择处理结果",
|
|
609
|
+ placeholder: "请选择处理结果"
|
609
|
610
|
},
|
610
|
611
|
rules: {
|
611
|
612
|
required: true
|
|
@@ -897,7 +898,7 @@ export default {
|
897
|
898
|
that.fields[11].props.options = that.handleCategoryArr;
|
898
|
899
|
});
|
899
|
900
|
},
|
900
|
|
- // 获取关闭代码
|
|
901
|
+ // 获取处理结果
|
901
|
902
|
getClosecode() {
|
902
|
903
|
var that = this;
|
903
|
904
|
this.$http
|
|
@@ -1191,9 +1192,17 @@ export default {
|
1191
|
1192
|
);
|
1192
|
1193
|
console.log(that.modelData.incident.category.id, this.initSjList, "事件");
|
1193
|
1194
|
// debugger;//测试
|
|
1195
|
+ let integralRoles = [];
|
|
1196
|
+ let currentUserRoles = [];
|
|
1197
|
+ let intersection = [];
|
|
1198
|
+ if(this.integralMechanism == 1){
|
|
1199
|
+ integralRoles = sessionStorage.getItem("integralRole") ? sessionStorage.getItem("integralRole").split(',') : [];
|
|
1200
|
+ currentUserRoles = this.loginUser.role ? this.loginUser.role.map(v=>String(v.id)) : [];
|
|
1201
|
+ intersection = integralRoles.filter(function (val) { return currentUserRoles.indexOf(val) > -1 })
|
|
1202
|
+ }
|
1194
|
1203
|
if (
|
1195
|
1204
|
this.order == 1 &&
|
1196
|
|
- (this.integralMechanism == 1 ||
|
|
1205
|
+ ((this.integralMechanism == 1 && intersection.length) ||
|
1197
|
1206
|
(this.integralMechanism == 2 && this.loginUser.userType.value == 2))
|
1198
|
1207
|
) {
|
1199
|
1208
|
// 直接处理,积分机制
|
|
@@ -1212,6 +1221,7 @@ export default {
|
1212
|
1221
|
},
|
1213
|
1222
|
{
|
1214
|
1223
|
click: () => {
|
|
1224
|
+ console.log(this.$refs.seiminModel)
|
1215
|
1225
|
if (!this.$refs.seiminModel.complexity) {
|
1216
|
1226
|
this.$createDialog({
|
1217
|
1227
|
type: "alert",
|
|
@@ -1221,6 +1231,15 @@ export default {
|
1221
|
1231
|
}).show();
|
1222
|
1232
|
return;
|
1223
|
1233
|
}
|
|
1234
|
+ if (!this.$refs.seiminModel.auditor) {
|
|
1235
|
+ this.$createDialog({
|
|
1236
|
+ type: "alert",
|
|
1237
|
+ title: "操作失败",
|
|
1238
|
+ content: "请选择审核人!",
|
|
1239
|
+ icon: "cubeic-wrong"
|
|
1240
|
+ }).show();
|
|
1241
|
+ return;
|
|
1242
|
+ }
|
1224
|
1243
|
if (this.$refs.seiminModel.complexitySource != this.$refs.seiminModel.complexity && !this.$refs.seiminModel.updateReason.trim()) {
|
1225
|
1244
|
this.$createDialog({
|
1226
|
1245
|
type: "alert",
|
|
@@ -1283,9 +1302,17 @@ export default {
|
1283
|
1302
|
that.$refs.upload1.start();
|
1284
|
1303
|
}
|
1285
|
1304
|
}, 100);
|
|
1305
|
+ let integralRoles = [];
|
|
1306
|
+ let currentUserRoles = [];
|
|
1307
|
+ let intersection = [];
|
|
1308
|
+ if(this.integralMechanism == 1){
|
|
1309
|
+ integralRoles = sessionStorage.getItem("integralRole") ? sessionStorage.getItem("integralRole").split(',') : [];
|
|
1310
|
+ currentUserRoles = this.loginUser.role ? this.loginUser.role.map(v=>String(v.id)) : [];
|
|
1311
|
+ intersection = integralRoles.filter(function (val) { return currentUserRoles.indexOf(val) > -1 })
|
|
1312
|
+ }
|
1286
|
1313
|
if (
|
1287
|
1314
|
this.order == 1 &&
|
1288
|
|
- (this.integralMechanism == 1 ||
|
|
1315
|
+ ((this.integralMechanism == 1 && intersection.length) ||
|
1289
|
1316
|
(this.integralMechanism == 2 &&
|
1290
|
1317
|
this.loginUser.userType.value == 2))
|
1291
|
1318
|
) {
|
|
@@ -1301,6 +1328,7 @@ export default {
|
1301
|
1328
|
incidentIntegral: {
|
1302
|
1329
|
incidentId: res.data.bussId,
|
1303
|
1330
|
auditState: auditState,
|
|
1331
|
+ auditUser: this.$refs.seiminModel.auditor,
|
1304
|
1332
|
handlerUser: this.loginUser.id,
|
1305
|
1333
|
handlerUserName: this.loginUser.name,
|
1306
|
1334
|
sourceScore: this.$refs.seiminModel.complexitySource,
|
|
@@ -1908,7 +1936,7 @@ export default {
|
1908
|
1936
|
this.getInfluence();
|
1909
|
1937
|
// 处理方式
|
1910
|
1938
|
this.getHandleCategory();
|
1911
|
|
- // 关闭代码
|
|
1939
|
+ // 处理结果
|
1912
|
1940
|
this.getClosecode();
|
1913
|
1941
|
// 处理人
|
1914
|
1942
|
this.getHandlerUser();
|