|
|
@@ -443,7 +443,7 @@
|
|
443
|
443
|
<el-dialog :visible.sync="dialogdept" title="转基建">
|
|
444
|
444
|
<el-form ref="redeploydeptForm" :model="redeploydeptForm" :rules="rules" label-width="100px">
|
|
445
|
445
|
<el-form-item label="科室" prop="ToDept">
|
|
446
|
|
- <select-dept-tree :deptparam="deptidArr1" v-model="redeploydeptForm.ToDept" @post-deptid="getDeptid1" />
|
|
|
446
|
+ <select-gzbx-dept-tree :deptparam="deptidArr1" v-model="redeploydeptForm.ToDept" @post-deptid="getDeptid1" />
|
|
447
|
447
|
</el-form-item>
|
|
448
|
448
|
<el-form-item label="人员" prop="ToUserCode">
|
|
449
|
449
|
<el-select v-model="redeploydeptForm.ToUserCode" clearable filterable placeholder="请选择人员"
|
|
|
@@ -565,7 +565,8 @@
|
|
565
|
565
|
} from "@/api/commonAPI";
|
|
566
|
566
|
import fieldDATA from "@/utils/fieldsData.js";
|
|
567
|
567
|
import selectOrderTypeTwo from "@/components/context/commonSelect/selectOrderTypeTwo.vue";
|
|
568
|
|
- import addDefinedList from "@/components/context/addDefinedList";
|
|
|
568
|
+ import addDefinedList from "@/components/context/addDefinedList";
|
|
|
569
|
+ import selectGzbxDeptTree from "@/components/context/commonSelect/selectGzbxDeptTree.vue";
|
|
569
|
570
|
import {
|
|
570
|
571
|
getMaintenancerList,
|
|
571
|
572
|
postTaskOrders,
|
|
|
@@ -596,7 +597,8 @@
|
|
596
|
597
|
name: "RepairList",
|
|
597
|
598
|
components: {
|
|
598
|
599
|
Pagination,
|
|
599
|
|
- selectOrderTypeTwo,
|
|
|
600
|
+ selectOrderTypeTwo,
|
|
|
601
|
+ selectGzbxDeptTree
|
|
600
|
602
|
},
|
|
601
|
603
|
data() {
|
|
602
|
604
|
return {
|
|
|
@@ -874,7 +876,12 @@
|
|
874
|
876
|
deptid: id, // 字典管理的工单标识
|
|
875
|
877
|
};
|
|
876
|
878
|
GetPerson(params).then((res) => {
|
|
877
|
|
- this.deptUserArr = res.rows;
|
|
|
879
|
+ this.deptUserArr = res.rows;
|
|
|
880
|
+ if(this.dialogdept == true){//转基建默认第一个
|
|
|
881
|
+ if(this.deptUserArr.length>0){
|
|
|
882
|
+ this.redeploydeptForm.ToUserCode = this.deptUserArr[0]
|
|
|
883
|
+ }
|
|
|
884
|
+ }
|
|
878
|
885
|
});
|
|
879
|
886
|
resolve();
|
|
880
|
887
|
});
|
|
|
@@ -1254,46 +1261,46 @@
|
|
1254
|
1261
|
this.dialogdept = true;
|
|
1255
|
1262
|
this.redeploydeptForm.WorkOrderCode = code;
|
|
1256
|
1263
|
//清空
|
|
1257
|
|
- this.deptidArr1 = []
|
|
1258
|
|
- this.redeploydeptForm.ToDept = ""
|
|
1259
|
|
- this.redeploydeptForm.ToUserCode = ""
|
|
1260
|
|
- //获取配置信息
|
|
1261
|
|
- if (this.$store.getters.workTypeMap[parseInt(type)]) {
|
|
1262
|
|
- const autoData = JSON.parse(
|
|
1263
|
|
- this.$store.getters.workTypeMap[parseInt(type)].autoDept || "[]"
|
|
1264
|
|
- );
|
|
1265
|
|
- const applyHos = this.$store.getters.deptmap[parseInt(applyid)].ids[0];
|
|
1266
|
|
- this.applyHos = applyHos
|
|
1267
|
|
- console.log(autoData,applyHos,'autoDataapplyHos')
|
|
1268
|
|
- if (!autoData || autoData[0] == null) {
|
|
1269
|
|
- // 没有配置信息['4005','89']['1','6']
|
|
1270
|
|
- this.deptidArr1 = ['1','6']
|
|
1271
|
|
- this.redeploydeptForm.ToDept = this.deptidArr1[this.deptidArr1.length-1]
|
|
1272
|
|
- this.getDeptman(this.deptidArr1[this.deptidArr1.length-1]);
|
|
1273
|
|
- return;
|
|
1274
|
|
- }
|
|
1275
|
|
- var hosall = [];
|
|
1276
|
|
- for (var i = 0; i < autoData.length; i++) {
|
|
1277
|
|
- hosall.push(autoData[i].autoyq);
|
|
1278
|
|
- }
|
|
1279
|
|
- for (var i = 0; i < autoData.length; i++) {
|
|
1280
|
|
- if (autoData[i].autoyq == applyHos) {
|
|
1281
|
|
- //有院区
|
|
1282
|
|
- this.deptidArr1 =
|
|
1283
|
|
- this.$store.getters.deptmap[parseInt(autoData[i].autodept)].ids;
|
|
1284
|
|
- this.redeploydeptForm.ToDept = autoData[i].autodept;
|
|
1285
|
|
- this.getDeptman(autoData[i].autodept);
|
|
1286
|
|
- this.redeploydeptForm.ToUserCode = autoData[i].autousercode;
|
|
1287
|
|
- } else if (autoData[i].autoyq == "0" && hosall.indexOf(applyHos) < 0) {
|
|
1288
|
|
- //全部
|
|
1289
|
|
- this.deptidArr1 =
|
|
1290
|
|
- this.$store.getters.deptmap[parseInt(autoData[i].autodept)].ids;
|
|
1291
|
|
- this.redeploydeptForm.ToDept = autoData[i].autodept;
|
|
1292
|
|
- this.getDeptman(autoData[i].autodept);
|
|
1293
|
|
- this.redeploydeptForm.ToUserCode = autoData[i].autousercode;
|
|
1294
|
|
- }
|
|
1295
|
|
- }
|
|
1296
|
|
- }
|
|
|
1264
|
+ // this.deptidArr1 = []
|
|
|
1265
|
+ // this.redeploydeptForm.ToDept = ""
|
|
|
1266
|
+ // this.redeploydeptForm.ToUserCode = ""
|
|
|
1267
|
+ // //获取配置信息
|
|
|
1268
|
+ // if (this.$store.getters.workTypeMap[parseInt(type)]) {
|
|
|
1269
|
+ // const autoData = JSON.parse(
|
|
|
1270
|
+ // this.$store.getters.workTypeMap[parseInt(type)].autoDept || "[]"
|
|
|
1271
|
+ // );
|
|
|
1272
|
+ // const applyHos = this.$store.getters.deptmap[parseInt(applyid)].ids[0];
|
|
|
1273
|
+ // this.applyHos = applyHos
|
|
|
1274
|
+ // console.log(autoData,applyHos,'autoDataapplyHos')
|
|
|
1275
|
+ // if (!autoData || autoData[0] == null) {
|
|
|
1276
|
+ // // 没有配置信息['4005','89']['1','6']
|
|
|
1277
|
+ // this.deptidArr1 = ['1','6']
|
|
|
1278
|
+ // this.redeploydeptForm.ToDept = this.deptidArr1[this.deptidArr1.length-1]
|
|
|
1279
|
+ // this.getDeptman(this.deptidArr1[this.deptidArr1.length-1]);
|
|
|
1280
|
+ // return;
|
|
|
1281
|
+ // }
|
|
|
1282
|
+ // var hosall = [];
|
|
|
1283
|
+ // for (var i = 0; i < autoData.length; i++) {
|
|
|
1284
|
+ // hosall.push(autoData[i].autoyq);
|
|
|
1285
|
+ // }
|
|
|
1286
|
+ // for (var i = 0; i < autoData.length; i++) {
|
|
|
1287
|
+ // if (autoData[i].autoyq == applyHos) {
|
|
|
1288
|
+ // //有院区
|
|
|
1289
|
+ // this.deptidArr1 =
|
|
|
1290
|
+ // this.$store.getters.deptmap[parseInt(autoData[i].autodept)].ids;
|
|
|
1291
|
+ // this.redeploydeptForm.ToDept = autoData[i].autodept;
|
|
|
1292
|
+ // this.getDeptman(autoData[i].autodept);
|
|
|
1293
|
+ // this.redeploydeptForm.ToUserCode = autoData[i].autousercode;
|
|
|
1294
|
+ // } else if (autoData[i].autoyq == "0" && hosall.indexOf(applyHos) < 0) {
|
|
|
1295
|
+ // //全部
|
|
|
1296
|
+ // this.deptidArr1 =
|
|
|
1297
|
+ // this.$store.getters.deptmap[parseInt(autoData[i].autodept)].ids;
|
|
|
1298
|
+ // this.redeploydeptForm.ToDept = autoData[i].autodept;
|
|
|
1299
|
+ // this.getDeptman(autoData[i].autodept);
|
|
|
1300
|
+ // this.redeploydeptForm.ToUserCode = autoData[i].autousercode;
|
|
|
1301
|
+ // }
|
|
|
1302
|
+ // }
|
|
|
1303
|
+ // }
|
|
1297
|
1304
|
},
|
|
1298
|
1305
|
redeployZuzhang(code) {
|
|
1299
|
1306
|
this.getReason("ZUZHANG");
|