liuzhihui %!s(int64=3) %!d(string=před) roky
rodič
revize
f09396c68d

+ 2 - 1
CallCenterWeb.UI/RMYY/src/components/button/orderList.vue

@@ -125,6 +125,7 @@
125 125
           dialog_zhipai: false,
126 126
           dialog_chehuibianji: false,
127 127
           dialog_bianji: false,
128
+          dialog_ywzx_bianji: false,
128 129
           dialog_ywzx_chuli: false,
129 130
           dialog_ywzx_jiedan: false,
130 131
           dialog_ywzx_tuihui: false,
@@ -275,7 +276,7 @@
275 276
               var params = {
276 277
                 workordercode: this.wocode
277 278
               }
278
-            }       
279
+            }
279 280
             option.action(params).then((response) => {
280 281
               console.log('处理结果')
281 282
               if (response.state === 'success') {

+ 198 - 192
CallCenterWeb.UI/RMYY/src/components/context/commonSelect/selectOrderTypeTwo.vue

@@ -1,218 +1,224 @@
1 1
 <template>
2
-  <el-cascader ref="cascader" v-model="orderType" :options="orderData" :props="TagProps" clearable style="width:100%;" @change="handleChange" />
2
+  <el-cascader ref="cascader" v-model="orderType" :options="orderData" :props="TagProps" clearable style="width:100%;"
3
+    @change="handleChange" />
3 4
 </template>
4 5
 
5 6
 <script>
6
-import {
7
-  getOrderTypeList
8
-} from '@/api/commonAPI'
9
-import { getOrderTypeLists } from '@/api/systemSetup/roleSetting/orderTypeManage'
10
-import {
11
-  eventBus
12
-} from './eventBus.js'
13
-export default {
14
-  name: 'SelectOrderType',
15
-  filters: {
16
-    orderFilter(status) {
17
-      const statusMap = {
18
-        // 2003: true,
19
-        // 2008: true,
20
-        // 2009: true
21
-      }
22
-      return statusMap[status]
23
-    }
24
-  },
25
-  props: {
26
-    firstOrderType: {
27
-      type: Object,
28
-      default() {
29
-        return {}
7
+  import {
8
+    getOrderTypeList
9
+  } from '@/api/commonAPI'
10
+  import {
11
+    getOrderTypeLists
12
+  } from '@/api/systemSetup/roleSetting/orderTypeManage'
13
+  import {
14
+    eventBus
15
+  } from './eventBus.js'
16
+  export default {
17
+    name: 'SelectOrderType',
18
+    filters: {
19
+      orderFilter(status) {
20
+        const statusMap = {
21
+          // 2003: true,
22
+          // 2008: true,
23
+          // 2009: true
24
+        }
25
+        return statusMap[status]
30 26
       }
31 27
     },
32
-    secondOrderType: {
33
-      type: Object,
34
-      default() {
35
-        return {}
28
+    props: {
29
+      firstOrderType: {
30
+        type: Object,
31
+        default () {
32
+          return {}
33
+        }
34
+      },
35
+      secondOrderType: {
36
+        type: Object,
37
+        default () {
38
+          return {}
39
+        }
40
+      },
41
+      thirdOrderType: {
42
+        type: Object,
43
+        default () {
44
+          return {}
45
+        }
46
+      },
47
+      orderTypeparams: {
48
+        type: Array,
49
+        default () {
50
+          return []
51
+        }
52
+      },
53
+      r2type:{
54
+        type:String,
55
+        default:''
36 56
       }
37 57
     },
38
-    thirdOrderType: {
39
-      type: Object,
40
-      default() {
41
-        return {}
58
+    data() {
59
+      return {
60
+        TagProps: {
61
+          checkStrictly: true,
62
+          value: 'id',
63
+          label: 'text',
64
+          children: 'children',
65
+        },
66
+        orderTypeData: {
67
+          name: '',
68
+          value: 0,
69
+          identification: '',
70
+          type2Arr: []
71
+        },
72
+        typeid: 1,
73
+        pid: 0,
74
+        orderData: [], // 业务类别数据
75
+        orderType: []
42 76
       }
43 77
     },
44
-    orderTypeparams:{
45
-      type: Array,
46
-      default() {
47
-        return []
48
-      }
49
-    }
50
-  },
51
-  data() {
52
-    return {
53
-      TagProps: {
54
-        checkStrictly: true,
55
-        value: 'id',
56
-        label: 'text',
57
-        children: 'children',
58
-      },
59
-      orderTypeData: {
60
-        name: '',
61
-        value: 0,
62
-        identification:'',
63
-        type2Arr:[]
78
+    watch: {
79
+      orderTypeparams(val) {
80
+        this.orderType = val
64 81
       },
65
-      typeid: 1,
66
-      pid: 0,
67
-      orderData: [], // 业务类别数据
68
-      orderType:[]
69
-    }
70
-  },
71
-  watch: {
72
-    orderTypeparams(val){
73
-      this.orderType = val
74
-    },
75
-    'firstOrderType.pid': function() {
76
-      // console.log(this.firstOrderType)
77
-      this.orderTypeData.name = ''
78
-      this.orderTypeData.value = 0
79
-      this.$emit('post-first-order-type', this.orderTypeData)
80
-      this.typeid = this.firstOrderType.typeid
81
-      this.commonOrderType(this.firstOrderType.typeid, this.firstOrderType.pid)
82
-    },
83
-    'secondOrderType.pid': function() {
84
-      // console.log(this.secondOrderType.pid)
85
-      this.orderTypeData.name = ''
86
-      this.orderTypeData.value = 0
87
-      this.$emit('post-second-order-type', this.orderTypeData)
88
-      this.typeid = this.secondOrderType.typeid
89
-      this.commonOrderType(this.secondOrderType.typeid, this.secondOrderType.pid)
90
-    },
91
-    'thirdOrderType.pid': function() {
92
-      this.orderTypeData.name = ''
93
-      this.orderTypeData.value = 0
94
-      this.$emit('post-third-order-type', this.orderTypeData)
95
-      this.typeid = this.thirdOrderType.typeid
96
-      this.commonOrderType(this.thirdOrderType.typeid, this.thirdOrderType.pid)
97
-    }
98
-
99
-  },
100
-  created() {
101
-    // 默认数据加载
102
-    this.defaultData()
103
-    // 编辑详情展示
104
-    this.showDetail()
105
-
106
-    this.getEventBus()
107
-    // if(this.orderTypeData.name==''){
108
-    //   console.log(this.orderTypeData)
109
-    //   this.getTreeList(1000)
110
-    // }
111
-  },
112
-  methods: {
113
-    getEventBus() {
114
-      eventBus.$on('typeId', (data) => {
115
-        // console.log(data);
116
-        this.secondOrderType.pid = data
117
-      })
118
-    },
119
-    defaultData() {
120
-      if (JSON.stringify(this.firstOrderType) !== '{}') {
121
-        console.log(this.firstOrderType)
122
-        console.log(JSON.stringify(this.firstOrderType))
82
+      'firstOrderType.pid': function() {
83
+        this.orderTypeData.name = ''
84
+        this.orderTypeData.value = 0
85
+        this.$emit('post-first-order-type', this.orderTypeData)
86
+        this.typeid = this.firstOrderType.typeid
123 87
         this.commonOrderType(this.firstOrderType.typeid, this.firstOrderType.pid)
124
-      }
125
-      if (JSON.stringify(this.thirdOrderType) !== '{}' && this.thirdOrderType.pid) {
126
-        this.typeid = this.thirdOrderType.typeid
127
-        this.commonOrderType(this.thirdOrderType.typeid, this.thirdOrderType.pid)
128
-      }
129
-      if (JSON.stringify(this.secondOrderType) !== '{}' && this.secondOrderType.pid) {
88
+      },
89
+      'secondOrderType.pid': function() {
90
+        this.orderTypeData.name = ''
91
+        this.orderTypeData.value = 0
92
+        this.$emit('post-second-order-type', this.orderTypeData)
130 93
         this.typeid = this.secondOrderType.typeid
131 94
         this.commonOrderType(this.secondOrderType.typeid, this.secondOrderType.pid)
95
+      },
96
+      'thirdOrderType.pid': function() {
97
+        this.orderTypeData.name = ''
98
+        this.orderTypeData.value = 0
99
+        this.$emit('post-third-order-type', this.orderTypeData)
100
+        this.typeid = this.thirdOrderType.typeid
101
+        this.commonOrderType(this.thirdOrderType.typeid, this.thirdOrderType.pid)
132 102
       }
103
+
133 104
     },
134
-    showDetail() {
135
-      if (this.firstOrderType.name) {
136
-        this.orderTypeData.name = this.firstOrderType.name
137
-      }
138
-      if (this.secondOrderType.name) {
139
-        this.orderTypeData.name = this.secondOrderType.name
140
-      }
141
-      if (this.thirdOrderType.name) {
142
-        this.orderTypeData.name = this.thirdOrderType.name
105
+    created() {
106
+      // 默认数据加载
107
+      this.defaultData()
108
+      // 编辑详情展示
109
+      this.showDetail()
110
+
111
+      this.getEventBus()
112
+      
113
+      if(this.r2type){
114
+        var arr = this.$store.getters.workTypeMap[parseInt(this.r2type)].ids
115
+        this.orderType = arr.slice(1)
143 116
       }
144 117
     },
145
-    commonOrderType(id, pid) {
146
-      console.log(pid)
147
-      this.getTreeList(pid)
148
-    },
149
-    getTreeList(pid) {
150
-      return new Promise((resolve) => {
151
-        const params = {
152
-          pid: pid,
153
-          flag: 1
118
+    methods: {
119
+      getEventBus() {
120
+        eventBus.$on('typeId', (data) => {
121
+          // console.log(data);
122
+          this.secondOrderType.pid = data
123
+        })
124
+      },
125
+      defaultData() {
126
+        if (JSON.stringify(this.firstOrderType) !== '{}') {
127
+          console.log(this.firstOrderType)
128
+          console.log(JSON.stringify(this.firstOrderType))
129
+          this.commonOrderType(this.firstOrderType.typeid, this.firstOrderType.pid)
130
+        }
131
+        if (JSON.stringify(this.thirdOrderType) !== '{}' && this.thirdOrderType.pid) {
132
+          this.typeid = this.thirdOrderType.typeid
133
+          this.commonOrderType(this.thirdOrderType.typeid, this.thirdOrderType.pid)
134
+        }
135
+        if (JSON.stringify(this.secondOrderType) !== '{}' && this.secondOrderType.pid) {
136
+          this.typeid = this.secondOrderType.typeid
137
+          this.commonOrderType(this.secondOrderType.typeid, this.secondOrderType.pid)
138
+        }
139
+      },
140
+      showDetail() {
141
+        if (this.firstOrderType.name) {
142
+          this.orderTypeData.name = this.firstOrderType.name
143
+        }
144
+        if (this.secondOrderType.name) {
145
+          this.orderTypeData.name = this.secondOrderType.name
146
+        }
147
+        if (this.thirdOrderType.name) {
148
+          this.orderTypeData.name = this.thirdOrderType.name
154 149
         }
155
-        getOrderTypeLists(params).then((response) => {
156
-          if (response.state.toLowerCase() === 'success') {
157
-            this.orderData = response.data
150
+      },
151
+      commonOrderType(id, pid) {
152
+        // console.log(id,pid)
153
+        this.getTreeList(pid)
154
+      },
155
+      getTreeList(pid) {
156
+        return new Promise((resolve) => {
157
+          const params = {
158
+            pid: pid,
159
+            flag: 1
158 160
           }
161
+          getOrderTypeLists(params).then((response) => {
162
+            if (response.state.toLowerCase() === 'success') {
163
+              this.orderData = response.data
164
+            }
165
+          })
166
+          resolve()
159 167
         })
160
-        resolve()
161
-      })
162
-    },
163
-    filterTreeDatas(treeDatas) {
164
-      const accessedRouters = []
165
-      let j = -1
166
-      for (const i in treeDatas) {
167
-        j++
168
-        accessedRouters.push({
169
-          id: treeDatas[i].id,
170
-          label: treeDatas[i].text,
171
-          typeId: treeDatas[i].TypeId,
172
-          children: []
173
-        })
174
-        if (treeDatas[i].children) {
175
-          accessedRouters[j].children = this.filterTreeDatas(treeDatas[i].children)
168
+      },
169
+      filterTreeDatas(treeDatas) {
170
+        const accessedRouters = []
171
+        let j = -1
172
+        for (const i in treeDatas) {
173
+          j++
174
+          accessedRouters.push({
175
+            id: treeDatas[i].id,
176
+            label: treeDatas[i].text,
177
+            typeId: treeDatas[i].TypeId,
178
+            children: []
179
+          })
180
+          if (treeDatas[i].children) {
181
+            accessedRouters[j].children = this.filterTreeDatas(treeDatas[i].children)
182
+          }
176 183
         }
177
-      }
178
-      return accessedRouters
179
-    },
180
-    handleChange(data) {
181
-      console.log(Number(data[data.length - 1]))
182
-      this.orderTypeData.value = Number(data[data.length - 1])
183
-      this.orderTypeData.name = this.$refs["cascader"].getCheckedNodes()[0].label
184
-      this.orderTypeData.identification = Number(this.$refs["cascader"].getCheckedNodes()[0].data.identification)
185
-      this.orderTypeData.type2Arr = data
186
-      console.log(this.orderTypeData)
187
-      switch (this.typeid) {
188
-        case 1:
189
-          this.$emit('post-first-order-type', this.orderTypeData)
190
-          break
191
-        case 2:
192
-          this.$emit('post-second-order-type', this.orderTypeData)
193
-          break
194
-        case 3:
195
-          this.$emit('post-third-order-type', this.orderTypeData)
196
-          break
197
-      }
198
-    },
199
-    // changedOrderType(data) {
200
-    //   this.orderTypeData.value = data
201
-    //   this.orderTypeData.name = data ? this.orderData.find(ele => ele.fid === data).text : ''
202
-    //   switch (this.typeid) {
203
-    //     case 1:
204
-    //       this.$emit('post-first-order-type', this.orderTypeData)
205
-    //       break
206
-    //     case 2:
207
-    //       this.$emit('post-second-order-type', this.orderTypeData)
208
-    //       break
209
-    //     case 3:
210
-    //       this.$emit('post-third-order-type', this.orderTypeData)
211
-    //       break
212
-    //   }
213
-    // }
184
+        return accessedRouters
185
+      },
186
+      handleChange(data) {
187
+        console.log(Number(data[data.length - 1]))
188
+        this.orderTypeData.value = Number(data[data.length - 1])
189
+        this.orderTypeData.name = this.$refs["cascader"].getCheckedNodes()[0].label
190
+        this.orderTypeData.identification = Number(this.$refs["cascader"].getCheckedNodes()[0].data.identification)
191
+        this.orderTypeData.type2Arr = data
192
+        console.log(this.orderTypeData)
193
+        switch (this.typeid) {
194
+          case 1:
195
+            this.$emit('post-first-order-type', this.orderTypeData)
196
+            break
197
+          case 2:
198
+            this.$emit('post-second-order-type', this.orderTypeData)
199
+            break
200
+          case 3:
201
+            this.$emit('post-third-order-type', this.orderTypeData)
202
+            break
203
+        }
204
+      },
205
+      // changedOrderType(data) {
206
+      //   this.orderTypeData.value = data
207
+      //   this.orderTypeData.name = data ? this.orderData.find(ele => ele.fid === data).text : ''
208
+      //   switch (this.typeid) {
209
+      //     case 1:
210
+      //       this.$emit('post-first-order-type', this.orderTypeData)
211
+      //       break
212
+      //     case 2:
213
+      //       this.$emit('post-second-order-type', this.orderTypeData)
214
+      //       break
215
+      //     case 3:
216
+      //       this.$emit('post-third-order-type', this.orderTypeData)
217
+      //       break
218
+      //   }
219
+      // }
220
+    }
214 221
   }
215
-}
216 222
 </script>
217 223
 
218 224
 <style lang="scss" scoped>

+ 6 - 2
CallCenterWeb.UI/RMYY/src/views/callScreen/components/AddOrEditOrder.vue

@@ -4,11 +4,11 @@
4 4
 
5 5
       <!--工单类型 -->
6 6
       <el-col :span="24">
7
-        <order-type :rtype='rtype' @order-type-data="getOrderTypeData" />
7
+        <order-type :rtype='rtype' :r2type='r2type' @order-type-data="getOrderTypeData" />
8 8
       </el-col>
9 9
       <!--业务咨询工单 -->
10 10
       <el-col v-if="orderTypeData.F_Type1===1000" :span="22">
11
-        <add-or-edit-inf-order :callid='callid' :order-type-data="orderTypeData" :person-parms-data="personParmsData"/>
11
+        <add-or-edit-inf-order :wid='wid' :callid='callid' :order-type-data="orderTypeData" :person-parms-data="personParmsData"/>
12 12
       </el-col>
13 13
       <!-- 综合调度 -->
14 14
       <el-col v-if="orderTypeData.F_Type1===2000" :span="22">
@@ -91,6 +91,10 @@ export default {
91 91
       type:String,
92 92
       default:''
93 93
     },
94
+    r2type:{
95
+      type:String,
96
+      default:''
97
+    },
94 98
     iswomanage:{
95 99
       type:String,
96 100
       default:''

+ 7 - 2
CallCenterWeb.UI/RMYY/src/views/callScreen/components/orderType.vue

@@ -14,7 +14,7 @@
14 14
 
15 15
             <el-col :span="20" v-if="isshowtype==true">
16 16
               <el-form-item label="工单类别" prop="F_Type2">
17
-                <select-order-type-two :second-order-type="secondOrderTypeParam"
17
+                <select-order-type-two :r2type='r2type' :second-order-type="secondOrderTypeParam"
18 18
                   @post-second-order-type="getSecondOrderType" />
19 19
               </el-form-item>
20 20
             </el-col>
@@ -36,6 +36,10 @@
36 36
         type:String,
37 37
         default:''
38 38
       },
39
+      r2type:{
40
+        type:String,
41
+        default:''
42
+      },
39 43
     },
40 44
     data() {
41 45
       return {
@@ -80,7 +84,8 @@
80 84
     computed: {
81 85
       ...mapGetters(['screenState'])
82 86
     },
83
-    created() {},
87
+    created() {
88
+    },
84 89
     methods: {
85 90
       // 一级改变时触发
86 91
       getFirstOrderType(data) {

+ 13 - 10
CallCenterWeb.UI/RMYY/src/views/orderManage/addWorkOrder/index.vue

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div class="app-container">
3
-    <el-row :gutter="24" style="padding: 0 10px;">
3
+    <el-row :gutter="24">
4 4
       <!-- <el-col :span="24">
5 5
       <div class="msgbox">客户信息</div>
6 6
       <el-card class="customer_info">
@@ -16,12 +16,12 @@
16 16
     </el-col> -->
17 17
       <!-- 添加工单 -->
18 18
       <el-col :span="24">
19
-        <el-card class="customer_info">
20
-          <div style="margin-bottom: 10px;">
21
-            <div class="msgbox"></div><span style="line-height: 30px;font-size: 14px;color: #333;">新建工单</span>
22
-          </div>
23
-          <add-or-edit-order :iswomanage="'1'" :callid="callinCallid" @order-type-data="getOrderTypeData" />
24
-        </el-card>
19
+        <!-- <el-card class="customer_info"> -->
20
+        <div style="margin-bottom: 10px;">
21
+          <div class="msgbox"></div><span style="line-height: 30px;font-size: 14px;color: #333;">新建工单</span>
22
+        </div>
23
+        <add-or-edit-order :iswomanage="'1'" :callid="callinCallid" @order-type-data="getOrderTypeData" />
24
+        <!-- </el-card> -->
25 25
       </el-col>
26 26
     </el-row>
27 27
   </div>
@@ -194,9 +194,12 @@
194 194
   }
195 195
 </style>
196 196
 <style rel="stylesheet/scss" lang="scss" scoped>
197
+  // .app-container {
198
+  //   margin: 0;
199
+  //   padding: 0;
200
+  // }
197 201
   .app-container {
198
-    margin: 0;
199
-    padding: 0;
202
+    padding: 15px 15px;
200 203
   }
201 204
 
202 205
   .msgbox {
@@ -265,7 +268,7 @@
265 268
   }
266 269
 
267 270
   .customer_info {
268
-    width: 99%;
271
+    width: 97%;
269 272
     margin: 15px auto 0 auto;
270 273
     border-radius: 4px;
271 274
 

+ 69 - 23
CallCenterWeb.UI/RMYY/src/views/orderManage/components/addOrEditInfOrder.vue

@@ -193,7 +193,7 @@
193 193
             <el-col :span="12">
194 194
               <el-form-item label="接收人" prop="clid">
195 195
                 <el-select v-model="ruleForm.clid" placeholder="请选择接收人" style="width: 100%;" @change="changeRepairman1">
196
-                  <el-option v-for="item in repairman" :key="item.usercode" :label="item.username"
196
+                  <el-option v-for="item in repairman1" :key="item.usercode" :label="item.username"
197 197
                     :value="item.usercode" />
198 198
                 </el-select>
199 199
               </el-form-item>
@@ -233,14 +233,18 @@
233 233
         type: String,
234 234
         default: ''
235 235
       },
236
+      wid: {
237
+        type: String,
238
+        default: ''
239
+      },
236 240
       // callid:{
237 241
       //   type:String,
238 242
       //   default:''
239 243
       // },
240
-      rowid: {
241
-        type: Number,
242
-        default: 0
243
-      },
244
+      // rowid: {
245
+      //   type: Number,
246
+      //   default: 0
247
+      // },
244 248
       layerid: {
245 249
         type: String,
246 250
         default: ''
@@ -266,7 +270,7 @@
266 270
         typeid: 1,
267 271
         orderPid: 0,
268 272
         callid: window.localStorage.getItem('callidSave'),
269
-        OrderDetailFlag: false,
273
+        // OrderDetailFlag: false,
270 274
         deptidArr: [],
271 275
         repairman: [],
272 276
         deptidArr1: [],
@@ -440,7 +444,6 @@
440 444
     },
441 445
     computed: {
442 446
       ...mapGetters(['screenState'])
443
-
444 447
     },
445 448
     watch: {
446 449
       'orderTypeData.F_Type2': function() {
@@ -448,7 +451,7 @@
448 451
         this.ruleForm.F_Type2 = this.orderTypeData.F_Type2
449 452
         this.ruleForm.identification = this.orderTypeData.identification
450 453
         this.ruleForm.type2Arr = this.orderTypeData.type2Arr
451
-        console.log(this.orderTypeData, '999')
454
+        // console.log(this.orderTypeData, '999')
452 455
         if (this.orderTypeData.type2Arr[0] == '8023') {
453 456
           this.zpdptname = '建议部门'
454 457
           this.zppername = '建议人'
@@ -467,16 +470,23 @@
467 470
       if (this.callinNum) {
468 471
         this.ruleForm.telphone = this.callinNum
469 472
       }
470
-      if (this.rowid) {
473
+      // if (this.rowid) {
474
+      //   this.OrderDetail()
475
+      // } else {
476
+      //   this.OrderDetailFlag = true
477
+      //   setTimeout(() => {
478
+      //     this.genderParams()
479
+      //   }, 700)
480
+      // }
481
+      if (this.wid) {
482
+        this.OrderDetail()
483
+      }
484
+    },
485
+    mounted() {
486
+      if (this.wid) {
471 487
         this.OrderDetail()
472
-      } else {
473
-        this.OrderDetailFlag = true
474
-        setTimeout(() => {
475
-          this.genderParams()
476
-        }, 700)
477 488
       }
478 489
     },
479
-
480 490
     methods: {
481 491
       submitForm() {
482 492
         if (JSON.stringify(this.orderTypeData) !== '{}') {
@@ -521,7 +531,7 @@
521 531
               F_DealOpinions: this.ruleForm.F_DealOpinions // 处理意见
522 532
             }
523 533
             // 添加
524
-            if (!this.rowid) {
534
+            if (!this.wid) {
525 535
               addOrEdittOrder(data)
526 536
                 .then((response) => {
527 537
                   this.loading = false
@@ -605,7 +615,7 @@
605 615
           }
606 616
           GetPerson(params).then((res) => {
607 617
             if (state === 0) {
608
-              this.repairman = res.rows
618
+              this.repairman1 = res.rows
609 619
             } else if (state === 1) {
610 620
               this.assignman1 = res.rows
611 621
             }
@@ -709,10 +719,13 @@
709 719
       // 获取详情
710 720
       OrderDetail() {
711 721
         return new Promise((resolve) => {
712
-          GetOrderDetail(this.rowid).then((response) => {
722
+          const params = {
723
+            WorkOrderCode: this.wid
724
+          }
725
+          GetOrderDetail(params).then((response) => {
713 726
             this.loading = false
714 727
             if (response.state.toLowerCase() === 'success') {
715
-              const res = response.model
728
+              const res = response.data[0]
716 729
               if (res) {
717 730
                 this.rowid = res.F_ID
718 731
                 this.ruleForm.F_ID = res.F_ID
@@ -721,12 +734,13 @@
721 734
                 this.ruleForm.F_TypeName1 = res.typename1 // 工单类别
722 735
                 this.firstOrderTypeParam.name = res.typename1
723 736
                 this.ruleForm.F_Type2 = res.F_type2 // 工单子类
737
+                this.$emit('r2type', res.F_type2)
724 738
                 this.typeSecondState(res.F_type2)
725 739
                 this.ruleForm.F_TypeName2 = res.typename2 // 工单子类
726 740
                 this.secondOrderTypeParam.name = res.typename2
727
-                this.ruleForm.F_Type3 = res.F_type3 // 工单三类
728
-                this.ruleForm.F_TypeName3 = res.typename3 // 工单三类
729
-                this.thirdOrderTypeParam.name = res.typename3
741
+                // this.ruleForm.F_Type3 = res.F_type3 // 工单三类
742
+                // this.ruleForm.F_TypeName3 = res.typename3 // 工单三类
743
+                // this.thirdOrderTypeParam.name = res.typename3
730 744
                 this.ruleForm.F_Customer = res.F_Customer // 姓名
731 745
                 this.ruleForm.F_Sex = res.F_Sex.toString() // 性别
732 746
                 this.ruleForm.F_Phon = res.F_Phon // 电话
@@ -755,7 +769,39 @@
755 769
                 }
756 770
                 this.ruleForm.F_WorkOrderContents = res.F_WorkOrderContents // 工单内容
757 771
                 this.ruleForm.F_DealOpinions = res.F_DealOpinions // 处理意见
758
-                this.OrderDetailFlag = true
772
+                // this.OrderDetailFlag = true
773
+                this.ruleForm.F_FullName = res.F_FullName
774
+                this.ruleForm.F_IDNumber = res.F_IDNumber
775
+                this.ruleForm.F_Relationship = res.F_Relationship
776
+                if (res.F_type2) {
777
+                  this.ruleForm.type2Arr = this.$store.getters.workTypeMap[parseInt(res.F_type2)].ids.slice(1)
778
+                }
779
+                console.log(this.ruleForm.type2Arr, '99')
780
+                if (this.ruleForm.type2Arr[0] == '8023') {
781
+                  this.zpdptname = '建议部门'
782
+                  this.zppername = '建议人'
783
+                }
784
+                if (this.ruleForm.type2Arr[0] == '8015') {
785
+                  this.zpdptname = '投诉部门'
786
+                  this.zppername = '投诉人'
787
+                }
788
+                if (this.ruleForm.type2Arr[0] == '8031') {
789
+                  this.zpdptname = '表扬部门'
790
+                  this.zppername = '表扬人'
791
+                }
792
+                if (res.F_ComplaintDept) {
793
+                  this.deptidArr = this.$store.getters.deptmap[parseInt(res.F_ComplaintDept)].ids
794
+                  this.getRepairman(res.F_ComplaintDept, 0)
795
+                  this.ruleForm.F_ComplaintDept = res.F_ComplaintDept
796
+                  this.ruleForm.F_ComplaintUser = res.F_ComplaintUser
797
+                }
798
+                if (res.DealDept) {
799
+                  this.deptidArr1 = this.$store.getters.deptmap[parseInt(res.DealDept)].ids
800
+                  console.log(this.$store.getters.deptmap[parseInt(res.DealDept)].ids, '00000')
801
+                  this.getRepairman1(res.DealDept, 0)
802
+                  this.ruleForm.clbm = res.DealDept
803
+                  this.ruleForm.clid = res.DealUser
804
+                }
759 805
               }
760 806
             }
761 807
           })

+ 24 - 33
CallCenterWeb.UI/RMYY/src/views/orderManage/components/askdetail.vue

@@ -45,10 +45,6 @@
45 45
                 <th>患者身份证号:</th>
46 46
                 <td>{{orderDetailData.F_IDNumber}}</td>
47 47
               </tr>
48
-              <!-- <tr v-show="isFamily">
49
-                <th>服务项目:</th>
50
-                <td colspan="5">{{orderDetailData.F_ServiceItems}}</td>
51
-              </tr> -->
52 48
               <tr v-show="isSpecial">
53 49
                 <th>首次检查医院:</th>
54 50
                 <td>{{orderDetailData.F_FirstCheckHospital}}</td>
@@ -108,9 +104,9 @@
108 104
               <el-table :data="workOrderCirculationList" border style="width: 100%">
109 105
                 <el-table-column prop="F_CreateUser" label="操作人" align="center">
110 106
                 </el-table-column>
111
-                <el-table-column prop="F_CreateTime" label="内容" align="center">
107
+                <el-table-column prop="F_OptContent" label="内容" align="center">
112 108
                 </el-table-column>
113
-                <el-table-column prop="F_OptContent" label="时间" align="center">
109
+                <el-table-column prop="F_CreateTime" label="时间" align="center">
114 110
                 </el-table-column>
115 111
               </el-table>
116 112
             </el-tab-pane>
@@ -212,33 +208,28 @@
212 208
           type: num
213 209
         }
214 210
         GetOrderDetail(params).then((response) => {
215
-          const res = response.data[0]
216
-          this.orderDetailData = res
217
-          if (this.$store.getters.workTypeMap[parseInt(res.F_type2)].ids[1] == '8008') {
218
-            this.isSpecial = true
219
-          }
220
-          // if (res.F_type2 === 8008) {
221
-          //   this.isSpecial = true
222
-          // }
223
-          // if (res.F_type2 === 1004) {
224
-          //   this.isFamily = true
225
-          // }
226
-          // if (res.F_type2 === 1005) {
227
-          //   this.isConduit = true
228
-          // }
229
-          this.orderDetailData.F_TypeName2 = this.$store.getters.workTypeMap[parseInt(response.data[0].F_type2)]
230
-            .text // 工单子类
231
-          this.orderDetailData.F_Sex = res.F_Sex // 性别
232
-          if (res.F_Sex === 0) {
233
-            this.orderDetailData.F_Sex = '男'
234
-          } else if (res.F_Sex === 1) {
235
-            this.orderDetailData.F_Sex = '女'
236
-          }
237
-          this.orderDetailData.F_Urgency = res.F_Urgency // 紧急程度
238
-          if (res.F_Urgency === 0) {
239
-            this.orderDetailData.F_Urgency = '常规'
240
-          } else if (res.F_Urgency === 1) {
241
-            this.orderDetailData.F_Urgency = '紧急'
211
+          if(num=='1'){
212
+            this.workOrderCirculationList = response.data
213
+          }else{
214
+            const res = response.data[0]
215
+            this.orderDetailData = res
216
+            if (this.$store.getters.workTypeMap[parseInt(res.F_type2)].ids[1] == '8008') {
217
+              this.isSpecial = true
218
+            }
219
+            this.orderDetailData.F_TypeName2 = this.$store.getters.workTypeMap[parseInt(res.F_type2)]
220
+              .text // 工单子类
221
+            this.orderDetailData.F_Sex = res.F_Sex // 性别
222
+            if (res.F_Sex === 0) {
223
+              this.orderDetailData.F_Sex = '男'
224
+            } else if (res.F_Sex === 1) {
225
+              this.orderDetailData.F_Sex = '女'
226
+            }
227
+            this.orderDetailData.F_Urgency = res.F_Urgency // 紧急程度
228
+            if (res.F_Urgency === 0) {
229
+              this.orderDetailData.F_Urgency = '常规'
230
+            } else if (res.F_Urgency === 1) {
231
+              this.orderDetailData.F_Urgency = '紧急'
232
+            }
242 233
           }
243 234
         })
244 235
       },

+ 20 - 0
CallCenterWeb.UI/RMYY/src/views/orderManage/mySubmit/index.vue

@@ -81,6 +81,7 @@
81 81
   import addOrEditFaultRepair from '../../faultRepair/clinicalReporting/components/addRepairbase.vue'
82 82
   import RepairEdit from './repairEdit.vue'
83 83
   // import AddOrEditInfOrder from '@/views/orderManage/components/addOrEditInfOrder'
84
+  import addOrEditOrder from '../../callScreen/components/AddOrEditOrder.vue'
84 85
   import detail from '../components/orderDetail.vue'
85 86
   import askDetail from '../components/askdetail.vue'
86 87
   import evaluate from './evaluate.vue'
@@ -165,6 +166,9 @@
165 166
         if (this.buttonName === 'chehuibianji') {
166 167
           this.btn_edit(wocode)
167 168
         }
169
+        if(this.buttonName === 'ywzx_bianji'){
170
+          this.btn_ywzxedit(wocode,row.F_Type,row.F_SonType)
171
+        }
168 172
       },
169 173
       // 编辑
170 174
       btn_edit(rid) {
@@ -180,6 +184,22 @@
180 184
           title: '编辑工单'
181 185
         })
182 186
       },
187
+      btn_ywzxedit(rid,rtype,r2type) {
188
+        this.$layer.iframe({
189
+          content: {
190
+            content: addOrEditOrder, // 传递的组件对象
191
+            parent: this, // 当前的vue对象
192
+            data: {
193
+              wid: rid,
194
+              rtype:rtype.toString(),
195
+              r2type:r2type.toString(),
196
+              iswomanage:'1'
197
+            } // props
198
+          },
199
+          area: ['70%', '70%'],
200
+          title: '编辑工单'
201
+        })
202
+      },
183 203
       getList() {
184 204
         this.loading = true
185 205
         return new Promise((resolve) => {