telephone-clients 3.0.103-54 → 3.0.103-56

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telephone-clients",
3
- "version": "3.0.103-54",
3
+ "version": "3.0.103-56",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -256,6 +256,7 @@
256
256
  f_reciever:'',
257
257
  f_remarks: '',
258
258
  f_user_type: '',
259
+ failure_str:'',
259
260
  f_area: '',
260
261
  f_unit_name:'',
261
262
  f_street: '',
@@ -478,6 +479,7 @@
478
479
  },
479
480
  assignObj() {
480
481
  if (this.data) {
482
+ this.model.failure_str = ''
481
483
  this.model.f_address = this.data.f_address
482
484
  this.model.f_user_name = this.data.f_user_name
483
485
  this.model.f_user_type = this.data.f_user_type
@@ -524,6 +526,7 @@
524
526
  f_user_name: '',
525
527
  failure: '',
526
528
  f_userinfo_id: '',
529
+ failure_str:'',
527
530
  f_address: '',
528
531
  f_json: '',
529
532
  f_repair_date: Util.getNowDate(),
@@ -581,6 +584,18 @@
581
584
  this.model.f_outlets = this.$login.f.deps
582
585
  this.model.f_filiale_id = this.$login.f.orgid
583
586
  }
587
+ let failureStr = ''
588
+ if(this.model.failure.startsWith("[")){
589
+ const failureData = JSON.parse(this.model.failure)
590
+ failureData.forEach(item=>{
591
+ if (item.failurecase.length>0){
592
+ failureStr+=item.f_failure_type+":"+item.failurecase.toString()+";"
593
+ }else {
594
+ failureStr+=item.f_failure_type+";"
595
+ }
596
+ })
597
+ this.model.failure_str = failureStr
598
+ }
584
599
  let data = {
585
600
  model: this.model, loginUser: {
586
601
  name: this.loginUser.name,
@@ -253,7 +253,7 @@ export default {
253
253
  }
254
254
  http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
255
255
 
256
- let result = res.data.filter(res=>res.depids==this.$login.f.depids)
256
+ let result = res.data
257
257
 
258
258
  result.forEach((item) => {
259
259
  this.repairers.push({label: item.name, value: item.name})
@@ -136,6 +136,18 @@
136
136
  condition="{}"
137
137
  close-on-select></v-select>
138
138
  </div>
139
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
140
+ <label class="font_normal_body">组织机构</label>
141
+ <right-tree width="80%" :source="$parent.$parent.source" @re-res="$parent.$parent.getRes"></right-tree>
142
+ </div>
143
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
144
+ <label class="font_normal_body" style="width: 40%">接&ensp;单&ensp;员</label>
145
+ <v-select :value.sync="model.f_order_man" v-model='model.f_order_man'
146
+ :value-single="true"
147
+ :options='$parent.$parent.repairerss' placeholder='接单员'
148
+ close-on-select
149
+ condition="f_order_man = '{}'"></v-select>
150
+ </div>
139
151
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
140
152
  <label class="font_normal_body" style="width: 40%" title="接单站点">接单站点</label>
141
153
  <v-select :value="model.f_outlets" v-model='model.f_outlets'
@@ -154,14 +166,14 @@
154
166
  condition="(f_single_man = '{}' or f_order_man = '{}')"
155
167
  close-on-select></v-select>
156
168
  </div>
157
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
158
- <label class="font_normal_body" style="width: 40%">接&ensp;单&ensp;员</label>
159
- <v-select :value.sync="model.f_order_man" v-model='model.f_order_man'
160
- :value-single="true"
161
- :options='$parent.$parent.repairerss' placeholder='接单员'
162
- close-on-select
163
- condition="f_order_man = '{}'"></v-select>
164
- </div>
169
+ <!-- <div class="col-sm-3 form-group form-input-group" style="width: 20%">-->
170
+ <!-- <label class="font_normal_body" style="width: 40%">接&ensp;单&ensp;员</label>-->
171
+ <!-- <v-select :value.sync="model.f_order_man" v-model='model.f_order_man'-->
172
+ <!-- :value-single="true"-->
173
+ <!-- :options='$parent.$parent.repairerss' placeholder='接单员'-->
174
+ <!-- close-on-select-->
175
+ <!-- condition="f_order_man = '{}'"></v-select>-->
176
+ <!-- </div>-->
165
177
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
166
178
  <label class="font_normal_body" style="width: 40%">报修类型</label>
167
179
  <v-select :value.sync="model.f_repairtype" v-model='model.f_repairtype'
@@ -364,9 +376,14 @@
364
376
  title: '工单列表',
365
377
  data () {
366
378
  return {
379
+ source:'tool.getFullTree(this.getRights().where(row.getType() == $department$))',
380
+ resobjprop: {res: this.$login.f.orgs, resids: this.$login.f.orgid},
367
381
  single_mans:[{label: '全部', value: ''}],
368
382
  f_accept_man:"",
369
383
  repairmans:[],
384
+ curorgid: [this.$login.f.orgid],
385
+ f_orgid:'',
386
+ f_filialeids:'',
370
387
  gongdan:{
371
388
  zixundan:0,
372
389
  tousudan:0,
@@ -492,14 +509,14 @@
492
509
  //通过参数取
493
510
  getrepair(val){
494
511
  this.$refs.paged.$refs.criteria.model.f_single_man = val
495
- if(val){
496
- this.repairerss = this.$appdata.getParam(val) ? [{
497
- label: '全部',
498
- value: ''
499
- }, ...this.$appdata.getParam(val)] : [{label: '全部', value: ''}]
500
- }else{
501
- this.repairerss = this.repairers
502
- }
512
+ // if(val){
513
+ // this.repairerss = this.$appdata.getParam(val) ? [{
514
+ // label: '全部',
515
+ // value: ''
516
+ // }, ...this.$appdata.getParam(val)] : [{label: '全部', value: ''}]
517
+ // }else{
518
+ // this.repairerss = this.repairers
519
+ // }
503
520
 
504
521
  },
505
522
  // 如果接单站点改变,则重组班组下拉值,维修员下拉值改变
@@ -846,10 +863,16 @@
846
863
  this.criteriaShow = !this.criteriaShow
847
864
  },
848
865
  getRes(obj){
849
- //tag
850
- ////tag)
851
- this.f_filialeids = this.$login.convertToIn(obj.resids);
852
- //tag
866
+ if(obj){
867
+ this.repairerss = [{label: '全部', value: ''}]
868
+ let val = {source: 'this.getChildUser().where(row.getAttributes().get($rolestr$).indexOf($维修员$)!=-1)', userid: `${obj.resids[0]}`}
869
+ let http = new HttpResetClass()
870
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
871
+ res.data.forEach((item) => {
872
+ this.repairerss.push({label: item.name, value: item.name})
873
+ })
874
+ })
875
+ }
853
876
  }
854
877
  },
855
878
  computed: {
@@ -131,7 +131,7 @@ export default {
131
131
  this.failures.splice(0, this.failures.length)
132
132
 
133
133
  // 空串,直接返回
134
- if (this.value) {
134
+ if (this.value && this.value.startsWith("[")) {
135
135
  // 把字符串转换成故障列表对象
136
136
  let array = JSON.parse(this.value)
137
137
  array.forEach((value) => {
@@ -229,6 +229,7 @@ import * as Util from '../../../components/Util'
229
229
  serviceacitivity: [{
230
230
  f_service_acitivity_type: '派单'
231
231
  }],
232
+ failure_str:'',
232
233
  f_finish_date:'',
233
234
  f_source:'用户来电',
234
235
  f_service_id: '',
@@ -442,6 +443,7 @@ import * as Util from '../../../components/Util'
442
443
  },
443
444
  assignObj() {
444
445
  if (this.data) {
446
+ this.model.failure_str = ''
445
447
  this.model.f_address = this.data.f_address
446
448
  this.model.f_user_name = this.data.f_user_name
447
449
  this.model.f_user_type = this.data.f_user_type
@@ -493,6 +495,7 @@ import * as Util from '../../../components/Util'
493
495
  f_card_id: '',
494
496
  f_remarks: '',
495
497
  f_user_type: '',
498
+ failure_str:'',
496
499
  f_area: '',
497
500
  f_street: '',
498
501
  f_residential_area: '',
@@ -545,6 +548,18 @@ import * as Util from '../../../components/Util'
545
548
  this.model.f_outlets = this.$login.f.deps
546
549
  this.model.f_filiale_id = this.$login.f.orgid
547
550
  }
551
+ let failureStr = ''
552
+ if(this.model.failure.startsWith("[")){
553
+ const failureData = JSON.parse(this.model.failure)
554
+ failureData.forEach(item=>{
555
+ if (item.failurecase.length>0){
556
+ failureStr+=item.f_failure_type+":"+item.failurecase.toString()+";"
557
+ }else {
558
+ failureStr+=item.f_failure_type+";"
559
+ }
560
+ })
561
+ this.model.failure_str = failureStr
562
+ }
548
563
  let data = {
549
564
  model: this.model, loginUser: {
550
565
  name: this.loginUser.name,
@@ -269,7 +269,7 @@
269
269
  <nobr>{{ row.f_contact_phone }}</nobr>
270
270
  </td>
271
271
  <td style="text-align: center;">
272
- <nobr>{{ $parent.$parent.$parent.trouble(row.failure) }}</nobr>
272
+ <nobr>{{ $parent.$parent.$parent.trouble(row.failure_str) }}</nobr>
273
273
  </td>
274
274
  <td style="text-align: center;">
275
275
  <nobr>{{ row.f_remarks }}</nobr>
@@ -414,7 +414,7 @@ export default {
414
414
  'f_result_status': '工单结果',
415
415
  'f_date': '上传时间',
416
416
  'f_remarks': '派单备注',
417
- 'failure':'故障明细',
417
+ 'failure_str':'故障明细',
418
418
  'f_remar': '工单完成备注'
419
419
  },
420
420
  criteriaShow: false
@@ -547,6 +547,9 @@ export default {
547
547
  // 是否可以退回
548
548
 
549
549
  trouble (val) {
550
+ if (!val.startsWith('[')){
551
+ return val
552
+ }
550
553
  let failureall=''
551
554
  // val=[{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""}]
552
555