telephone-clients 3.0.103-64 → 3.0.103-66

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-64",
3
+ "version": "3.0.103-66",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -199,7 +199,7 @@ export default {
199
199
  resolveMsg: null,
200
200
  rejectMsg: null
201
201
  }).then((res) => {
202
- let result = res.data.filter(res=>res.depids==Vue.user.depids)
202
+ let result = res.data.filter(res=>res.depids==Vue.user.depids && res.state == '在职')
203
203
  result.forEach((item) => {
204
204
  this.repairers.push({label: `${item.name} ${item.f_user_telephone}`, value: item.name})
205
205
 
@@ -213,7 +213,7 @@ export default {
213
213
  }
214
214
  http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
215
215
 
216
- let result = res.data.filter(res=>res.depids==this.$login.f.depids)
216
+ let result = res.data.filter(res=>res.depids==this.$login.f.depids && res.state == '在职')
217
217
 
218
218
  result.forEach((item) => {
219
219
  this.repairers.push({label: `${item.name} ${item.f_user_telephone}`, value: item.name})
@@ -203,8 +203,8 @@ export default {
203
203
  this.barperc = 0
204
204
  this.$showMessage('批量派发' + this.rowlist.length + '个单子成功', ['confirm']).then((res) => {
205
205
  if (res === 'confirm') {
206
+ this.rowlist = []
206
207
  this.$emit('success')
207
- // this.cleardate()
208
208
  }
209
209
  })
210
210
  //tag
@@ -16,7 +16,7 @@
16
16
  import * as Util from '../Util'
17
17
 
18
18
  export default {
19
- title: '站点工单',
19
+ title: '维修班工单',
20
20
  data () {
21
21
  return {
22
22
  user: this.$login.f,
@@ -649,6 +649,7 @@ export default {
649
649
  this.imgfilename = 'rs/image/file/' + val.f_single_path
650
650
  },
651
651
  search (args) {
652
+ this.rowlist = []
652
653
  this.serlist = []
653
654
  //tag
654
655
  let data = {}
@@ -660,6 +661,7 @@ export default {
660
661
  },
661
662
  selfSearch () {
662
663
  // 取消编辑状态
664
+ this.rowlist = []
663
665
  this.serlist = []
664
666
  this.editflag = null
665
667
 
@@ -388,6 +388,7 @@
388
388
  title: '工单列表',
389
389
  data () {
390
390
  return {
391
+ depname:this.$login.f.deps,
391
392
  order_man:'',
392
393
  source:'tool.getFullTree(this.getRights().where(row.getType() == $department$))',
393
394
  resobjprop: {res: this.$login.f.orgs, resids: this.$login.f.orgid},
@@ -742,7 +743,7 @@
742
743
  condition2: '1 = 1'
743
744
  }
744
745
  if(this.order_man){
745
- condition.condition1 += ` and f_order_man in (${this.order_man}) `
746
+ condition.condition1 += ` and (f_order_man in (${this.order_man}) or f_outlets = '${this.depname}') `
746
747
  }
747
748
  if(this.f_accept_man){
748
749
  condition.condition2 = ` sender = '${this.f_accept_man}'`
@@ -788,7 +789,7 @@
788
789
  condition2: '1 = 1'
789
790
  }
790
791
  if(this.order_man){
791
- condition.condition1 += ` and f_order_man in (${this.order_man}) `
792
+ condition.condition1 += ` and (f_order_man in (${this.order_man}) or f_outlets = '${this.depname}') `
792
793
  }
793
794
  if(this.f_accept_man){
794
795
  condition.condition2 = ` sender = '${this.f_accept_man}'`
@@ -895,6 +896,7 @@
895
896
  this.criteriaShow = !this.criteriaShow
896
897
  },
897
898
  getRes(obj){
899
+ this.depname = obj.res[0]
898
900
  // if(obj){
899
901
  // this.$refs.paged.$refs.criteria.model.f_order_man = ''
900
902
  // this.repairerss = [{label: '全部', value: ''}]
@@ -420,7 +420,7 @@ export default {
420
420
  this.serlist = []
421
421
  if (this.picked) {
422
422
  if (this.picked === 'wait') {
423
- this.model.url = 'rs/path/operatorService'
423
+ this.model.url = 'rs/path/pcService'
424
424
  } else if (this.picked === 'done') {
425
425
  this.model.url = 'rs/path/doneService'
426
426
  }