telephone-clients 3.0.102 → 3.0.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +56 -52
  3. package/src/components/MaterialsManage/MaterialsBase.vue +177 -177
  4. package/src/components/Util/RightTreeSafe.vue +346 -346
  5. package/src/components/pc/NewRepairPaper.vue +370 -370
  6. package/src/components/pc/SiteSend.vue +281 -281
  7. package/src/components/pc/WorkCenterList.vue +292 -292
  8. package/src/components/pc/WorkListAllNew.vue +700 -700
  9. package/src/components/temp/ChangemeterInfo.vue +87 -87
  10. package/src/components/temp/DeviceInfo.vue +82 -82
  11. package/src/components/workorder/FaultAll.vue +826 -826
  12. package/src/components/workorder/PhoneStandWork.vue +354 -354
  13. package/src/components/workorder/RepairOrderV.vue +1446 -1446
  14. package/src/filiale/furuike/pc/ComplainWork.vue +348 -348
  15. package/src/filiale/furuike/pc/Seekwork.vue +352 -352
  16. package/src/filiale/gongyi/android/RepairOrderV.vue +1415 -1415
  17. package/src/filiale/liaoyuan/android/RepairOrderV.vue +831 -831
  18. package/src/filiale/qianneng/android/FaultAll.vue +883 -883
  19. package/src/filiale/qianneng/android/MaterIialOne.vue +123 -123
  20. package/src/filiale/qianneng/android/RepairOrderV.vue +874 -874
  21. package/src/filiale/qianneng/android/chargesList.vue +161 -161
  22. package/src/filiale/qianneng/pc/NewRepairPaper.vue +467 -467
  23. package/src/filiale/qianneng/pc/RepairsWork.vue +982 -982
  24. package/src/filiale/qianneng/pc/WorkListAllNew.vue +701 -701
  25. package/src/filiale/shanxian/pc/WorkList.vue +823 -823
  26. package/src/filiale/shanxian/telephone.js +12 -12
  27. package/src/filiale/shexian/android/AddMyTask.vue +347 -0
  28. package/src/filiale/shexian/android/Outlay.vue +249 -249
  29. package/src/filiale/shexian/pc/WorkList.vue +740 -0
  30. package/src/filiale/shexian/telephone.js +18 -17
  31. package/src/filiale/shexian/telephoneAndroid.js +26 -23
  32. package/src/filiale/tongchuan/pc/UserWork.vue +805 -805
  33. package/src/filiale/wenxi/android/RepairOrderV.vue +1419 -1419
  34. package/src/filiale/wuan/android/RepairOrderV.vue +1384 -1384
  35. package/src/filiale/zhongsheng/android/RepairOrderV.vue +1430 -1430
  36. package/src/filiale/zhongsheng/pc/RepairsWork.vue +775 -775
  37. package/src/filiale/zhongsheng/telephone.js +23 -23
  38. package/src/main.js +1 -1
  39. package/yarn-error.log +7872 -0
@@ -1,292 +1,292 @@
1
- <template>
2
- <div class="" v-if="!(row || modifyOrder)">
3
- <div>
4
- <criteria-paged :model="model" v-ref:paged :simple="true">
5
- <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
6
- <div novalidate class="form-inline" partial>
7
- <div class="row">
8
- <div class="col-sm-3">
9
- <right-tree-safe width="80%" @re-res="$parent.$parent.getRes" :resobjprop.sync="$parent.$parent.resobjprop"></right-tree-safe>
10
- </div>
11
- <div class="col-sm-3">
12
- <v-select :value.sync="select.defname"
13
- v-model="select.defname"
14
- :width="'80%'"
15
- :options='$parent.$parent.defname' placeholder='工单状态'
16
- close-on-select style="width: 80%;"></v-select>
17
- </div>
18
- <div class="col-sm-3">
19
- <input type="text" class="form-control" v-model="model.f_service_id" placeholder='工单编号'
20
- condition="f_service_id like '%{}%'"
21
- :size="model.f_service_id ? model.f_service_id.length : 6" style="width: 80%;">
22
- </div>
23
- <div class="col-sm-3">
24
- <datepicker placeholder="起始报修时间"
25
- :value.sync="model.f_created_date"
26
- v-model="model.f_created_date"
27
- :format="'yyyy-MM-dd 00:00:00'"
28
- condition="f_created_date > '{}'"
29
- style="width: 80%;"></datepicker>
30
- </div>
31
- </div>
32
-
33
- <div class="row">
34
- <div class="col-sm-3">
35
- <datepicker placeholder="终止报修时间"
36
- :value.sync="model.f_created_enddate"
37
- v-model="model.f_created_enddate"
38
- :format="'yyyy-MM-dd 23:59:59'"
39
- condition="f_created_date < '{}'"
40
- style="width: 80%;"></datepicker>
41
- </div>
42
- <div class="col-sm-3">
43
- <input type="text" class="form-control" v-model="model.f_userinfo_code" placeholder='客户编号'
44
- condition="f_userinfo_code like '%{}%'"
45
- :size="model.f_userinfo_code ? model.f_userinfo_id.length : 6" style="width: 80%;">
46
- </div>
47
- <div class="col-sm-3">
48
- <input type="text" class="form-control" v-model="model.f_user_name" placeholder='客户姓名'
49
- condition="f_user_name like '%{}%'"
50
- :size="model.f_user_name ? model.f_user_name.length : 6" style="width: 80%;">
51
- </div>
52
- <div class="col-sm-3">
53
- <input type="text" class="form-control" v-model="model.f_phone" placeholder='来电电话'
54
- condition="f_phone like '%{}%'"
55
- :size="model.f_phone ? model.f_phone.length : 6" style="width: 80%;">
56
- </div>
57
- </div>
58
- <div class="row">
59
- <div class="col-sm-3">
60
- <input type="text" class="form-control" v-model="model.f_contact_phone" placeholder='联系电话'
61
- condition="f_contact_phone = '{}'"
62
- :size="model.f_contact_phone ? model.f_contact_phone.length : 6" style="width: 80%;">
63
- </div>
64
- <div class="col-sm-3">
65
- <input type="text" class="form-control" v-model="model.f_address" placeholder='地址'
66
- condition="f_address like '%{}%'"
67
- :size="model.f_address ? model.f_address.length : 4" style="width: 80%;">
68
- </div>
69
- <div class="col-sm-3">
70
- <input type="text" class="form-control" v-model="model.f_attendant" placeholder='话务员'
71
- condition="f_attendant like '%{}%'"
72
- :size="model.f_attendant ? model.f_attendant.length : 6" style="width: 80%;">
73
- </div>
74
- <div class="col-sm-3">
75
- <input type="text" class="form-control" v-model="model.f_order_man" placeholder='接单员'
76
- condition="f_order_man like '%{}%'"
77
- :size="model.f_attendant ? model.f_order_man.length : 6" style="width: 80%;">
78
- </div>
79
- </div>
80
- <div class="row">
81
- <div class="col-sm-3">
82
- <button type="button" name="button" class="button_spacing button_search" @click='search()'>查询</button>
83
- </div>
84
- </div>
85
- </div>
86
- </criteria>
87
-
88
- <data-grid partial='list' v-ref:grid :model="model" class="list_area table_sy" style="height: 100%">
89
- <template partial='head'>
90
- <tr>
91
- <th><nobr>工单编号</nobr></th>
92
- <th><nobr>操作</nobr></th>
93
- <th><nobr>工单状态</nobr></th>
94
- <th><nobr>客户信息</nobr></th>
95
- <th><nobr>报修时间</nobr></th>
96
- <th><nobr>接单员</nobr></th>
97
- </tr>
98
- </template>
99
- <template partial='body' >
100
- <td><nobr>
101
- <a class="btn btn-link" @click.stop="$parent.$parent.$parent.$emit('do', 'check', row)" style="min-width: 30px;">{{row.f_service_id}}</a>
102
- </nobr></td>
103
- <td style="white-space: nowrap;">
104
- <div v-show="$parent.$parent.$parent.canRecall(row)">
105
- <button type="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.recall(row)" style="min-width: 30px;">撤回</button>
106
- </div>
107
- <div v-show="$parent.$parent.$parent.canResend(row)">
108
- <button type="button" class="btn btn-link"
109
- @click.stop="$parent.$parent.$parent.$emit('do', '结案',row)" style="min-width: 30px;">结案</button>
110
- </div>
111
- <div v-show="$parent.$parent.$parent.canResend(row)">
112
- <button type="button" class="btn btn-link"
113
- @click.stop="$parent.$parent.$parent.$emit('do', 'resend', row)" style="min-width: 30px;">重派</button>
114
- </div>
115
- <div v-show="$parent.$parent.$parent.canResend(row) && row.f_workorder_type ==='置换单'">
116
- <button type="button" class="btn btn-link"
117
- @click.stop="$parent.$parent.$parent.$emit('do', 'resendzhihuan', row)" style="min-width: 30px;">重派</button>
118
- </div>
119
- <div v-show="$parent.$parent.$parent.canResend(row) && row.f_workorder_type ==='安装单'">
120
- <button type="button" class="btn btn-link"
121
- @click.stop="$parent.$parent.$parent.$emit('do', 'resendinstall', row)" style="min-width: 30px;">重派</button>
122
- </div>
123
- <div v-show="$parent.$parent.$parent.canRemindChange(row) && row.f_workorder_type == '报修单' && row.f_state!='完成' ">
124
- <button type="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.$emit('do', 'remind', row)" style="min-width: 30px;">催单</button>
125
- <button type="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.$emit('do', 'modify', row)" style="min-width: 30px;">修改</button>
126
- </div>
127
- <div v-show="$parent.$parent.$parent.canRemindChange(row) && row.f_workorder_type == '置换通气单' && row.f_state!='完成' ">
128
- <button type="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.$emit('do', 'remind', row)" style="min-width: 30px;">催单</button>
129
- <button type="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.$emit('do', 'modifyzhihuan', row)" style="min-width: 30px;">修改</button>
130
- </div>
131
- <div v-show="$parent.$parent.$parent.canRemindChange(row) && row.f_workorder_type == '安装单' && row.f_state!='完成' ">
132
- <button type="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.$emit('do', 'remind', row)" style="min-width: 30px;">催单</button>
133
- <button type="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.$emit('do', 'modifyinstall', row)" style="min-width: 30px;">修改</button>
134
- </div>
135
- </td>
136
- <td><nobr>{{row.processins.activities.length == 0 ? '完成' : row.processins.activities[0].defname}}</nobr></td>
137
- <td><nobr>{{row.f_user_name}}&nbsp;&nbsp;&nbsp;{{row.f_contact_phone}}&nbsp;&nbsp;&nbsp;{{row.f_address}}</nobr></td>
138
- <td><nobr>{{row.f_repair_date}}</nobr></td>
139
- <td><nobr>{{row.f_order_man}}</nobr></td>
140
- </template>
141
- </data-grid>
142
- </criteria-paged>
143
- </div>
144
- </div>
145
- </template>
146
-
147
- <script>
148
- import { PagedList, HttpResetClass } from 'vue-client'
149
- import * as Util from '../Util'
150
- import AppData from '../../stores/AppData'
151
- import Vue from 'vue'
152
- export default {
153
- title: '工单中心',
154
- data () {
155
- return {
156
- model: new PagedList('rs/path/allService', 20),
157
- row: null,
158
- modifyOrder: null,
159
- resobjprop: {res: this.$login.f.orgs, resids: this.$login.f.orgid},
160
- filialeIds: ''
161
- // defname: [{label: '全部', value: ''}, ...this.$appdata.getParam('工单状态')]
162
- }
163
- },
164
- props: {
165
- callObj: {
166
- type: Object
167
- },
168
- loginUser: {
169
- type: Object
170
- },
171
- refurbish:{
172
- type:Number
173
- },
174
- meading:{
175
- type: String,
176
- default: '转站点'
177
- }
178
- },
179
- ready () {
180
- },
181
- methods: {
182
- getRes(obj){
183
- this.filialeIds = this.$login.convertToIn(obj.resids);
184
- console.log('this.filialeIds=', this.filialeIds)
185
- this.search()
186
- //tag
187
- },
188
- search () {
189
- //tag
190
- let data = {}
191
- data.condition = this.$refs.paged.$refs.criteria.condition || '1 = 1'
192
- if (this.filialeIds){
193
- data.condition += `and f_filiale_id in ${this.filialeIds}`
194
- }
195
- data.sign = this.$refs.paged.$refs.criteria.select.defname[0]?`defname = '${this.$refs.paged.$refs.criteria.select.defname[0]}'`:'1=1'
196
- return this.model.search(data)
197
- },
198
- searchUserWork (user) {
199
- this.$refs.paged.$refs.criteria.model.f_userinfo_id = user.f_userinfo_id
200
- this.search()
201
- },
202
- cannelRow () {
203
- this.row = null
204
- },
205
- recall (row) {
206
- // 调取工单撤回操作
207
- let data = {model: row,loginUser:this.loginUser}
208
- this.$showMessage('撤回'+row.f_service_id+'工单', ['confirm', 'cancel']).then((res) => {
209
- if (res === 'confirm') {
210
- this.$resetpost('rs/logic/TelWorkeCancle', data).then(() => {
211
- // 刷新界面
212
- this.search()
213
- })
214
- }
215
- })
216
- },
217
- // 是否可以撤回
218
- canRecall(row) {
219
- // 首先工单上一步为 话务员派单,才可撤回
220
- if(row.f_handlingtype === '转站点' ) {
221
- if (row.processins && row.processins.activities && row.processins.activities[0] && row.processins.activities[0].defname == '站点接单') {
222
- return true
223
- }
224
- }
225
- if(row.f_handlingtype === '转维修员')
226
- if (row.processins && row.processins.activities && row.processins.activities[0] && row.processins.activities[0].defname.indexOf('接单') != -1) {
227
- return true
228
- }
229
- return false
230
- },
231
- // 是否可以重派及结案: 只有工单状态为 话务员派单的时候,才能重派或者结案
232
- canResend(row) {
233
- if (row.processins && row.processins.activities && row.processins.activities[0] && row.processins.activities[0].defname === '话务员派单') {
234
- return true
235
- }
236
- return false
237
- },
238
- // 是否可以修改、催单 完成后是不能催单或者修改的
239
- canRemindChange(row) {
240
- if (row.processins && row.processins.activities && row.processins.activities[0] && row.processins.activities[0].defname.indexOf('完成') != -1){
241
- return false
242
- }
243
- if(row.processins && row.processins.activities && row.processins.activities[0] && row.processins.activities[0].defname === '话务员派单'){
244
- return false
245
- }
246
- return true
247
- },
248
- // 工单重派
249
- resend (row) {
250
- this.$emit('resend', row)
251
- },
252
- // 工单修改
253
- modiOrder (row) {
254
- this.$emit('modify', row)
255
- },
256
- serviceDeleteOrder(row) {
257
- this.$emit('serviceDelete', row)
258
- // 调取工单撤回操作
259
- // let data = {model: row, loginUser: {name:this.$login.f.name, ename: this.$login.f.ename}}
260
- // this.$showMessage(logic+row.f_service_id+'工单', ['confirm', 'cancel']).then((res) => {
261
- // if (res === 'confirm') {
262
- // this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/${logic}`, data).then(() => {
263
- // // 刷新界面
264
- // this.search()
265
- // })
266
- // }
267
- // })
268
- },
269
- // 查看工单
270
- check (row) {
271
- this.$emit('check', row)
272
- },
273
- // 催单
274
- selectedRow (row) {
275
- this.$emit('remind', row)
276
- },
277
- modified () {
278
- this.modifyOrder = null
279
- }
280
- },
281
- watch:{
282
- 'refurbish'(){
283
- this.search()
284
- }
285
- },
286
- computed: {
287
- defname () {
288
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单状态')]
289
- }
290
- }
291
- }
292
- </script>
1
+ <template>
2
+ <div class="" v-if="!(row || modifyOrder)">
3
+ <div>
4
+ <criteria-paged :model="model" v-ref:paged :simple="true">
5
+ <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
6
+ <div novalidate class="form-inline" partial>
7
+ <div class="row">
8
+ <div class="col-sm-3">
9
+ <right-tree-safe width="80%" @re-res="$parent.$parent.getRes" :resobjprop.sync="$parent.$parent.resobjprop"></right-tree-safe>
10
+ </div>
11
+ <div class="col-sm-3">
12
+ <v-select :value.sync="select.defname"
13
+ v-model="select.defname"
14
+ :width="'80%'"
15
+ :options='$parent.$parent.defname' placeholder='工单状态'
16
+ close-on-select style="width: 80%;"></v-select>
17
+ </div>
18
+ <div class="col-sm-3">
19
+ <input type="text" class="form-control" v-model="model.f_service_id" placeholder='工单编号'
20
+ condition="f_service_id like '%{}%'"
21
+ :size="model.f_service_id ? model.f_service_id.length : 6" style="width: 80%;">
22
+ </div>
23
+ <div class="col-sm-3">
24
+ <datepicker placeholder="起始报修时间"
25
+ :value.sync="model.f_created_date"
26
+ v-model="model.f_created_date"
27
+ :format="'yyyy-MM-dd 00:00:00'"
28
+ condition="f_created_date > '{}'"
29
+ style="width: 80%;"></datepicker>
30
+ </div>
31
+ </div>
32
+
33
+ <div class="row">
34
+ <div class="col-sm-3">
35
+ <datepicker placeholder="终止报修时间"
36
+ :value.sync="model.f_created_enddate"
37
+ v-model="model.f_created_enddate"
38
+ :format="'yyyy-MM-dd 23:59:59'"
39
+ condition="f_created_date < '{}'"
40
+ style="width: 80%;"></datepicker>
41
+ </div>
42
+ <div class="col-sm-3">
43
+ <input type="text" class="form-control" v-model="model.f_userinfo_code" placeholder='客户编号'
44
+ condition="f_userinfo_code like '%{}%'"
45
+ :size="model.f_userinfo_code ? model.f_userinfo_id.length : 6" style="width: 80%;">
46
+ </div>
47
+ <div class="col-sm-3">
48
+ <input type="text" class="form-control" v-model="model.f_user_name" placeholder='客户姓名'
49
+ condition="f_user_name like '%{}%'"
50
+ :size="model.f_user_name ? model.f_user_name.length : 6" style="width: 80%;">
51
+ </div>
52
+ <div class="col-sm-3">
53
+ <input type="text" class="form-control" v-model="model.f_phone" placeholder='来电电话'
54
+ condition="f_phone like '%{}%'"
55
+ :size="model.f_phone ? model.f_phone.length : 6" style="width: 80%;">
56
+ </div>
57
+ </div>
58
+ <div class="row">
59
+ <div class="col-sm-3">
60
+ <input type="text" class="form-control" v-model="model.f_contact_phone" placeholder='联系电话'
61
+ condition="f_contact_phone = '{}'"
62
+ :size="model.f_contact_phone ? model.f_contact_phone.length : 6" style="width: 80%;">
63
+ </div>
64
+ <div class="col-sm-3">
65
+ <input type="text" class="form-control" v-model="model.f_address" placeholder='地址'
66
+ condition="f_address like '%{}%'"
67
+ :size="model.f_address ? model.f_address.length : 4" style="width: 80%;">
68
+ </div>
69
+ <div class="col-sm-3">
70
+ <input type="text" class="form-control" v-model="model.f_attendant" placeholder='话务员'
71
+ condition="f_attendant like '%{}%'"
72
+ :size="model.f_attendant ? model.f_attendant.length : 6" style="width: 80%;">
73
+ </div>
74
+ <div class="col-sm-3">
75
+ <input type="text" class="form-control" v-model="model.f_order_man" placeholder='接单员'
76
+ condition="f_order_man like '%{}%'"
77
+ :size="model.f_attendant ? model.f_order_man.length : 6" style="width: 80%;">
78
+ </div>
79
+ </div>
80
+ <div class="row">
81
+ <div class="col-sm-3">
82
+ <button type="button" name="button" class="button_spacing button_search" @click='search()'>查询</button>
83
+ </div>
84
+ </div>
85
+ </div>
86
+ </criteria>
87
+
88
+ <data-grid partial='list' v-ref:grid :model="model" class="list_area table_sy" style="height: 100%">
89
+ <template partial='head'>
90
+ <tr>
91
+ <th><nobr>工单编号</nobr></th>
92
+ <th><nobr>操作</nobr></th>
93
+ <th><nobr>工单状态</nobr></th>
94
+ <th><nobr>客户信息</nobr></th>
95
+ <th><nobr>报修时间</nobr></th>
96
+ <th><nobr>接单员</nobr></th>
97
+ </tr>
98
+ </template>
99
+ <template partial='body' >
100
+ <td><nobr>
101
+ <a class="btn btn-link" @click.stop="$parent.$parent.$parent.$emit('do', 'check', row)" style="min-width: 30px;">{{row.f_service_id}}</a>
102
+ </nobr></td>
103
+ <td style="white-space: nowrap;">
104
+ <div v-show="$parent.$parent.$parent.canRecall(row)">
105
+ <button type="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.recall(row)" style="min-width: 30px;">撤回</button>
106
+ </div>
107
+ <div v-show="$parent.$parent.$parent.canResend(row)">
108
+ <button type="button" class="btn btn-link"
109
+ @click.stop="$parent.$parent.$parent.$emit('do', '结案',row)" style="min-width: 30px;">结案</button>
110
+ </div>
111
+ <div v-show="$parent.$parent.$parent.canResend(row)">
112
+ <button type="button" class="btn btn-link"
113
+ @click.stop="$parent.$parent.$parent.$emit('do', 'resend', row)" style="min-width: 30px;">重派</button>
114
+ </div>
115
+ <div v-show="$parent.$parent.$parent.canResend(row) && row.f_workorder_type ==='置换单'">
116
+ <button type="button" class="btn btn-link"
117
+ @click.stop="$parent.$parent.$parent.$emit('do', 'resendzhihuan', row)" style="min-width: 30px;">重派</button>
118
+ </div>
119
+ <div v-show="$parent.$parent.$parent.canResend(row) && row.f_workorder_type ==='安装单'">
120
+ <button type="button" class="btn btn-link"
121
+ @click.stop="$parent.$parent.$parent.$emit('do', 'resendinstall', row)" style="min-width: 30px;">重派</button>
122
+ </div>
123
+ <div v-show="$parent.$parent.$parent.canRemindChange(row) && row.f_workorder_type == '报修单' && row.f_state!='完成' ">
124
+ <button type="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.$emit('do', 'remind', row)" style="min-width: 30px;">催单</button>
125
+ <button type="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.$emit('do', 'modify', row)" style="min-width: 30px;">修改</button>
126
+ </div>
127
+ <div v-show="$parent.$parent.$parent.canRemindChange(row) && row.f_workorder_type == '置换通气单' && row.f_state!='完成' ">
128
+ <button type="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.$emit('do', 'remind', row)" style="min-width: 30px;">催单</button>
129
+ <button type="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.$emit('do', 'modifyzhihuan', row)" style="min-width: 30px;">修改</button>
130
+ </div>
131
+ <div v-show="$parent.$parent.$parent.canRemindChange(row) && row.f_workorder_type == '安装单' && row.f_state!='完成' ">
132
+ <button type="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.$emit('do', 'remind', row)" style="min-width: 30px;">催单</button>
133
+ <button type="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.$emit('do', 'modifyinstall', row)" style="min-width: 30px;">修改</button>
134
+ </div>
135
+ </td>
136
+ <td><nobr>{{row.processins.activities.length == 0 ? '完成' : row.processins.activities[0].defname}}</nobr></td>
137
+ <td><nobr>{{row.f_user_name}}&nbsp;&nbsp;&nbsp;{{row.f_contact_phone}}&nbsp;&nbsp;&nbsp;{{row.f_address}}</nobr></td>
138
+ <td><nobr>{{row.f_repair_date}}</nobr></td>
139
+ <td><nobr>{{row.f_order_man}}</nobr></td>
140
+ </template>
141
+ </data-grid>
142
+ </criteria-paged>
143
+ </div>
144
+ </div>
145
+ </template>
146
+
147
+ <script>
148
+ import { PagedList, HttpResetClass } from 'vue-client'
149
+ import * as Util from '../Util'
150
+ import AppData from '../../stores/AppData'
151
+ import Vue from 'vue'
152
+ export default {
153
+ title: '工单中心',
154
+ data () {
155
+ return {
156
+ model: new PagedList('rs/path/allService', 20),
157
+ row: null,
158
+ modifyOrder: null,
159
+ resobjprop: {res: this.$login.f.orgs, resids: this.$login.f.orgid},
160
+ filialeIds: ''
161
+ // defname: [{label: '全部', value: ''}, ...this.$appdata.getParam('工单状态')]
162
+ }
163
+ },
164
+ props: {
165
+ callObj: {
166
+ type: Object
167
+ },
168
+ loginUser: {
169
+ type: Object
170
+ },
171
+ refurbish:{
172
+ type:Number
173
+ },
174
+ meading:{
175
+ type: String,
176
+ default: '转站点'
177
+ }
178
+ },
179
+ ready () {
180
+ },
181
+ methods: {
182
+ getRes(obj){
183
+ this.filialeIds = this.$login.convertToIn(obj.resids);
184
+ console.log('this.filialeIds=', this.filialeIds)
185
+ this.search()
186
+ //tag
187
+ },
188
+ search () {
189
+ //tag
190
+ let data = {}
191
+ data.condition = this.$refs.paged.$refs.criteria.condition || '1 = 1'
192
+ if (this.filialeIds){
193
+ data.condition += `and f_filiale_id in ${this.filialeIds}`
194
+ }
195
+ data.sign = this.$refs.paged.$refs.criteria.select.defname[0]?`defname = '${this.$refs.paged.$refs.criteria.select.defname[0]}'`:'1=1'
196
+ return this.model.search(data)
197
+ },
198
+ searchUserWork (user) {
199
+ this.$refs.paged.$refs.criteria.model.f_userinfo_id = user.f_userinfo_id
200
+ this.search()
201
+ },
202
+ cannelRow () {
203
+ this.row = null
204
+ },
205
+ recall (row) {
206
+ // 调取工单撤回操作
207
+ let data = {model: row,loginUser:this.loginUser}
208
+ this.$showMessage('撤回'+row.f_service_id+'工单', ['confirm', 'cancel']).then((res) => {
209
+ if (res === 'confirm') {
210
+ this.$resetpost('rs/logic/TelWorkeCancle', data).then(() => {
211
+ // 刷新界面
212
+ this.search()
213
+ })
214
+ }
215
+ })
216
+ },
217
+ // 是否可以撤回
218
+ canRecall(row) {
219
+ // 首先工单上一步为 话务员派单,才可撤回
220
+ if(row.f_handlingtype === '转站点' ) {
221
+ if (row.processins && row.processins.activities && row.processins.activities[0] && row.processins.activities[0].defname == '站点接单') {
222
+ return true
223
+ }
224
+ }
225
+ if(row.f_handlingtype === '转维修员')
226
+ if (row.processins && row.processins.activities && row.processins.activities[0] && row.processins.activities[0].defname.indexOf('接单') != -1) {
227
+ return true
228
+ }
229
+ return false
230
+ },
231
+ // 是否可以重派及结案: 只有工单状态为 话务员派单的时候,才能重派或者结案
232
+ canResend(row) {
233
+ if (row.processins && row.processins.activities && row.processins.activities[0] && row.processins.activities[0].defname === '话务员派单') {
234
+ return true
235
+ }
236
+ return false
237
+ },
238
+ // 是否可以修改、催单 完成后是不能催单或者修改的
239
+ canRemindChange(row) {
240
+ if (row.processins && row.processins.activities && row.processins.activities[0] && row.processins.activities[0].defname.indexOf('完成') != -1){
241
+ return false
242
+ }
243
+ if(row.processins && row.processins.activities && row.processins.activities[0] && row.processins.activities[0].defname === '话务员派单'){
244
+ return false
245
+ }
246
+ return true
247
+ },
248
+ // 工单重派
249
+ resend (row) {
250
+ this.$emit('resend', row)
251
+ },
252
+ // 工单修改
253
+ modiOrder (row) {
254
+ this.$emit('modify', row)
255
+ },
256
+ serviceDeleteOrder(row) {
257
+ this.$emit('serviceDelete', row)
258
+ // 调取工单撤回操作
259
+ // let data = {model: row, loginUser: {name:this.$login.f.name, ename: this.$login.f.ename}}
260
+ // this.$showMessage(logic+row.f_service_id+'工单', ['confirm', 'cancel']).then((res) => {
261
+ // if (res === 'confirm') {
262
+ // this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/${logic}`, data).then(() => {
263
+ // // 刷新界面
264
+ // this.search()
265
+ // })
266
+ // }
267
+ // })
268
+ },
269
+ // 查看工单
270
+ check (row) {
271
+ this.$emit('check', row)
272
+ },
273
+ // 催单
274
+ selectedRow (row) {
275
+ this.$emit('remind', row)
276
+ },
277
+ modified () {
278
+ this.modifyOrder = null
279
+ }
280
+ },
281
+ watch:{
282
+ 'refurbish'(){
283
+ this.search()
284
+ }
285
+ },
286
+ computed: {
287
+ defname () {
288
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单状态')]
289
+ }
290
+ }
291
+ }
292
+ </script>