manage-client 4.1.87 → 4.1.88

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": "manage-client",
3
- "version": "4.1.87",
3
+ "version": "4.1.88",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -11,6 +11,7 @@ export default {
11
11
  'f_balance': '账户余额',
12
12
  'f_user_level': '客户等级',
13
13
  'f_user_type': '客户类型',
14
+ 'f_meternumber': '表号',
14
15
  'f_gasproperties': '用气性质',
15
16
  'f_address': '客户地址',
16
17
  'f_residential_area': '小区',
@@ -60,7 +60,14 @@
60
60
  </div>
61
61
  </div>
62
62
  <div class="row" v-show="$parent.$parent.criteriaShow">
63
- <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
63
+ <res-select-user-group
64
+ :operator-initres="$parent.$parent.initres"
65
+ :user-initres="$parent.$parent.userInitres"
66
+ :show-component="['company','department','operator','slicearea','user_company','user_department']"
67
+ @re-res="$parent.$parent.getRes"
68
+ @re-us-res="$parent.$parent.getUserRes"
69
+ v-ref:usersel>
70
+ </res-select-user-group>
64
71
  <div class="col-sm-2 form-group">
65
72
  <label class="font_normal_body">收费编号</label>
66
73
  <input type="text" style="width:60%" class="input_search" v-model="model.id"
@@ -480,13 +487,19 @@
480
487
  <nobr>补打次数</nobr>
481
488
  </th>
482
489
  <th>
483
- <nobr>人员</nobr>
490
+ <nobr>操作员人员</nobr>
484
491
  </th>
485
492
  <th>
486
- <nobr>部门</nobr>
493
+ <nobr>操作员部门</nobr>
487
494
  </th>
488
495
  <th>
489
- <nobr>公司</nobr>
496
+ <nobr>操作员公司</nobr>
497
+ </th>
498
+ <th>
499
+ <nobr>用户公司</nobr>
500
+ </th>
501
+ <th>
502
+ <nobr>用户部门</nobr>
490
503
  </th>
491
504
  <th>
492
505
  <nobr>流水号</nobr>
@@ -679,6 +692,12 @@
679
692
  <td style="text-align: center;">
680
693
  <nobr>{{row.f_orgname}}</nobr>
681
694
  </td>
695
+ <td style="text-align: center;">
696
+ <nobr>{{row.f_us_orgname}}</nobr>
697
+ </td>
698
+ <td style="text-align: center;">
699
+ <nobr>{{row.f_us_depname}}</nobr>
700
+ </td>
682
701
  <td style="text-align: center;">
683
702
  <nobr>{{row.f_serial_id}}</nobr>
684
703
  </td>
@@ -834,6 +853,7 @@
834
853
  <script>
835
854
  import {HttpResetClass, PagedList} from 'vue-client'
836
855
  import exportConfig from './config/exportConfig'
856
+ import ResSelectUserGroup from './ResSelectUserGroup.vue'
837
857
  let cardBtnGen = async function (self, val) {
838
858
  self.cardInfo = val.data
839
859
 
@@ -870,6 +890,9 @@
870
890
  self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
871
891
  }
872
892
  export default {
893
+ components: {
894
+ 'res-select-user-group': ResSelectUserGroup
895
+ },
873
896
  props:['data'],
874
897
  title: '收费查询',
875
898
  data() {
@@ -917,6 +940,11 @@
917
940
  dep:[],
918
941
  user:[]
919
942
  },
943
+ userInitres: {
944
+ org: [],
945
+ dep: [],
946
+ user: []
947
+ },
920
948
  operatornames: [],
921
949
  model: new PagedList('api/af-revenue/sql/chargeQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`},{
922
950
  f_pregas: 0,
@@ -935,6 +963,7 @@
935
963
  }),
936
964
  criteriaShow: false,
937
965
  orgCondtionStr: '',
966
+ userOrgConditionStr: '',
938
967
  // 下拉框
939
968
  meterbrands: [],
940
969
  pricenames: [],
@@ -1004,7 +1033,7 @@
1004
1033
  f_serial_number: this.f_serial_number,
1005
1034
  startDate: this.$refs.paged.$refs.cri.model.startDate,
1006
1035
  endDate: this.$refs.paged.$refs.cri.model.endDate,
1007
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
1036
+ condition: `${this.$refs.paged.$refs.cri.condition}${this.orgCondtionStr}${this.userOrgConditionStr}`,
1008
1037
  orderitem: this.orderitem ? `${this.orderitem}` : " f_operate_date desc"
1009
1038
  }
1010
1039
  let http = new HttpResetClass()
@@ -1242,13 +1271,13 @@
1242
1271
  }
1243
1272
 
1244
1273
  let f_orgstr = this.orgCondtionStr
1245
- args.condition = `${args.condition} ` + f_orgstr
1246
1274
  if(this.card!=''){
1247
1275
  args.condition+=` and f_card_id='${this.card}'`
1248
1276
  }
1249
1277
  if(this.IdCardInfo!=''){
1250
1278
  args.condition +=` and f_idnumber='${this.IdCardInfo}'`
1251
1279
  }
1280
+ args.condition = `${args.condition} ${f_orgstr} ${this.userOrgConditionStr}`
1252
1281
  this.model.search(args.condition, args.model)
1253
1282
  let condition1 = this.operatornames.length && this.operatornames[0] === this.$login.f.id
1254
1283
  let condition2 = this.$refs.paged.$refs.cri.model.f_payment.length && this.$refs.paged.$refs.cri.model.f_payment[0].indexOf('现金') > -1
@@ -1259,12 +1288,16 @@
1259
1288
  this.card=''
1260
1289
  this.IdCardInfo=''
1261
1290
  },
1291
+ getUserRes (condition) {
1292
+ this.userOrgConditionStr = condition
1293
+ },
1262
1294
  clear() {
1263
- //清空部门和人员
1264
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
1265
- //部门和人员变为全选
1266
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
1267
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
1295
+ // 清空操作员/用户的组织选择
1296
+ if (this.$refs.paged.$refs.cri.$refs.usersel && this.$refs.paged.$refs.cri.$refs.usersel.resetAll) {
1297
+ this.$refs.paged.$refs.cri.$refs.usersel.resetAll()
1298
+ }
1299
+ this.orgCondtionStr = ''
1300
+ this.userOrgConditionStr = ''
1268
1301
  Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
1269
1302
  this.$refs.paged.$refs.cri.model[key] = []
1270
1303
  })
@@ -1435,7 +1468,7 @@
1435
1468
  return {
1436
1469
  startDate: this.$refs.paged.$refs.cri.model.startDate,
1437
1470
  endDate: this.$refs.paged.$refs.cri.model.endDate,
1438
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
1471
+ condition: `${this.$refs.paged.$refs.cri.condition}${this.orgCondtionStr}${this.userOrgConditionStr}`,
1439
1472
  orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"
1440
1473
  }
1441
1474
  },
@@ -60,7 +60,14 @@
60
60
  </div>
61
61
  </div>
62
62
  <div class="row" v-show="$parent.$parent.criteriaShow">
63
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
63
+ <res-select-user-group
64
+ :operator-initres="$parent.$parent.initres"
65
+ :user-initres="$parent.$parent.userInitres"
66
+ :show-component="['company','department','operator','user_company','user_department']"
67
+ @re-res="$parent.$parent.getRes"
68
+ @re-us-res="$parent.$parent.getUserRes"
69
+ v-ref:usersel>
70
+ </res-select-user-group>
64
71
 
65
72
 
66
73
  <div class="col-sm-2 form-group">
@@ -433,13 +440,19 @@
433
440
  <nobr>状态</nobr>
434
441
  </th>
435
442
  <th>
436
- <nobr>下发人员</nobr>
443
+ <nobr>操作员人员</nobr>
437
444
  </th>
438
445
  <th>
439
- <nobr>部门</nobr>
446
+ <nobr>操作员部门</nobr>
440
447
  </th>
441
448
  <th>
442
- <nobr>公司</nobr>
449
+ <nobr>操作员公司</nobr>
450
+ </th>
451
+ <th>
452
+ <nobr>用户公司</nobr>
453
+ </th>
454
+ <th>
455
+ <nobr>用户部门</nobr>
443
456
  </th>
444
457
  <th><nobr>附件</nobr></th>
445
458
  </tr>
@@ -586,6 +599,12 @@
586
599
  <td style="text-align: center;">
587
600
  <nobr>{{row.f_orgname}}</nobr>
588
601
  </td>
602
+ <td style="text-align: center;">
603
+ <nobr>{{row.f_us_orgname}}</nobr>
604
+ </td>
605
+ <td style="text-align: center;">
606
+ <nobr>{{row.f_us_depname}}</nobr>
607
+ </td>
589
608
  <td style="text-align: center;"><nobr>
590
609
  <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
591
610
  <button v-if="row.f_notified_path" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.imgShow(row.f_notified_path)">图像识别</button>
@@ -699,6 +718,7 @@
699
718
  import defaultPrint from './config/DefaultPrint'
700
719
  import exportConfig from './config/exportConfig'
701
720
  import axios from 'axios'
721
+ import ResSelectUserGroup from './ResSelectUserGroup.vue'
702
722
 
703
723
  let readySomething = async function (self) {
704
724
  //加载抄表册
@@ -721,6 +741,9 @@
721
741
  self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
722
742
  }
723
743
  export default {
744
+ components: {
745
+ 'res-select-user-group': ResSelectUserGroup
746
+ },
724
747
  props:['data'],
725
748
  title: '机表抄表查询',
726
749
  data() {
@@ -750,11 +773,17 @@
750
773
  dep:[],
751
774
  user:[],
752
775
  },
776
+ userInitres: {
777
+ org: [],
778
+ dep: [],
779
+ user: []
780
+ },
753
781
  show:false,
754
782
  rowdata:{},
755
783
  criteriaShow: false,
756
784
  residentialArea: [],
757
785
  orgCondtionStr: '',
786
+ userOrgConditionStr: '',
758
787
  modelval: [],
759
788
  gasproperties:[],
760
789
  inputtouPerson: [],
@@ -1055,16 +1084,16 @@
1055
1084
  args.condition += ` and f_inputtor in ( ${str} )`
1056
1085
  }
1057
1086
 
1058
- args.condition = `${args.condition} ` + this.orgCondtionStr
1087
+ args.condition = `${args.condition} ` + this.orgCondtionStr + this.userOrgConditionStr
1059
1088
  this.model.search(args.condition, args.model)
1060
1089
  this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
1061
1090
  },
1062
1091
  clear() {
1063
- //清空部门和人员
1064
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
1065
- //部门和人员变为全选
1066
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
1067
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
1092
+ if (this.$refs.paged.$refs.cri.$refs.usersel && this.$refs.paged.$refs.cri.$refs.usersel.resetAll) {
1093
+ this.$refs.paged.$refs.cri.$refs.usersel.resetAll()
1094
+ }
1095
+ this.orgCondtionStr = ''
1096
+ this.userOrgConditionStr = ''
1068
1097
  Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
1069
1098
  this.$refs.paged.$refs.cri.model[key] = []
1070
1099
  })
@@ -1080,6 +1109,9 @@
1080
1109
  this.orgCondtionStr = condition
1081
1110
 
1082
1111
  },
1112
+ getUserRes (condition) {
1113
+ this.userOrgConditionStr = condition
1114
+ },
1083
1115
  stamp() {
1084
1116
  this.all = false
1085
1117
  //默认选择要打印的列
@@ -1199,7 +1231,7 @@
1199
1231
  return {
1200
1232
  startDate: this.$refs.paged.$refs.cri.model.startDate,
1201
1233
  endDate: this.$refs.paged.$refs.cri.model.endDate,
1202
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
1234
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr + this.userOrgConditionStr}
1203
1235
  },
1204
1236
  getfield() {
1205
1237
  return exportConfig.handplanConfig
@@ -0,0 +1,384 @@
1
+ <template>
2
+ <div :class="style" v-show="opCompanyShow">
3
+ <label class="font_normal_body">操作员<br/>公司</label>
4
+ <res-select-new
5
+ restype="organization"
6
+ @res-select="getOpOrg"
7
+ :is-mul="mul"
8
+ :initresid="operatorInitres.org"
9
+ v-ref:oporg>
10
+ </res-select-new>
11
+ </div>
12
+ <div :class="style" v-show="opDepartmentShow">
13
+ <label class="font_normal_body">操作员<br/>部门</label>
14
+ <res-select
15
+ restype="department"
16
+ @res-select="getOpDep"
17
+ :parentresid="opFirstDepresid"
18
+ :initresid="operatorInitres.dep"
19
+ :is-mul="mul"
20
+ v-ref:opdepartment>
21
+ </res-select>
22
+ </div>
23
+ <div :class="style" v-show="opOperatorShow && (!cascade)">
24
+ <label class="font_normal_body">操作员<br/>人员</label>
25
+ <res-select
26
+ restype="user"
27
+ @res-select="getOpUser"
28
+ :parentresid="opFirstDepresid"
29
+ :initresid="operatorInitres.user"
30
+ :is-mul="mul"
31
+ v-ref:opuser>
32
+ </res-select>
33
+ </div>
34
+ <div :class="style" v-show="opOperatorShow && cascade">
35
+ <label class="font_normal_body">操作员人员</label>
36
+ <res-select
37
+ restype="user"
38
+ @res-select="getOpUser"
39
+ :parentresid="opUserresid"
40
+ :initresid="operatorInitres.user"
41
+ :is-mul="mul"
42
+ v-ref:opuser>
43
+ </res-select>
44
+ </div>
45
+ <div :class="style" v-if="sliceareashow">
46
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
47
+ <v-select :value.sync="slice_area" v-model="slice_area" @change='getarea'
48
+ :options='sliceArea' placeholder='片区/管理站' filer-key="name"
49
+ close-on-select v-ref:slice>
50
+ </v-select>
51
+ </div>
52
+ <div :class="style" v-show="userCompanyShow">
53
+ <label class="font_normal_body">用户公司</label>
54
+ <res-select-new
55
+ restype="organization"
56
+ @res-select="getorg"
57
+ :is-mul="mul"
58
+ :initresid="initres.org"
59
+ v-ref:org>
60
+ </res-select-new>
61
+ </div>
62
+ <div :class="style" v-show="userDepartmentShow">
63
+ <label class="font_normal_body">用户部门</label>
64
+ <res-select
65
+ restype="department"
66
+ @res-select="getdep"
67
+ :parentresid="firstdepresid"
68
+ :initresid="initres.dep"
69
+ :is-mul="mul"
70
+ v-ref:department>
71
+ </res-select>
72
+ </div>
73
+ <div :class="style" v-show="userOperatorShow && (!cascade)">
74
+ <label class="font_normal_body">用户人员</label>
75
+ <res-select
76
+ restype="user"
77
+ @res-select="getuser"
78
+ :parentresid="firstdepresid"
79
+ :initresid="initres.user"
80
+ :is-mul="mul"
81
+ v-ref:user>
82
+ </res-select>
83
+ </div>
84
+ <div :class="style" v-show="userOperatorShow && cascade">
85
+ <label class="font_normal_body">用户人员</label>
86
+ <res-select
87
+ restype="user"
88
+ @res-select="getuser"
89
+ :parentresid="userresid"
90
+ :initresid="initres.user"
91
+ :is-mul="mul"
92
+ v-ref:user>
93
+ </res-select>
94
+ </div>
95
+ </template>
96
+ <script>
97
+ import plugin from '../../plugins/GetLoginInfoService'
98
+ import { HttpResetClass } from 'vue-client'
99
+
100
+ export default {
101
+ title: '用户资源选择',
102
+ props: {
103
+ style: {
104
+ type: String,
105
+ default: 'col-sm-2 form-group'
106
+ },
107
+ mul: {
108
+ type: Boolean,
109
+ default: true
110
+ },
111
+ // 用户初始值
112
+ initres: {
113
+ type: Object,
114
+ default () {
115
+ return {
116
+ org: [],
117
+ dep: [],
118
+ user: []
119
+ }
120
+ }
121
+ },
122
+ // 操作员初始值
123
+ operatorInitres: {
124
+ type: Object,
125
+ default () {
126
+ return {
127
+ org: [],
128
+ dep: [],
129
+ user: []
130
+ }
131
+ }
132
+ },
133
+ // 控制显隐
134
+ showComponent: {
135
+ default () {
136
+ return ['company', 'department', 'operator', 'slicearea', 'user_company', 'user_department', 'user_operator']
137
+ }
138
+ },
139
+ // 人员是否和部门关联
140
+ cascade: {
141
+ type: Boolean,
142
+ default: false
143
+ },
144
+ // 是否默认选中当前登录人
145
+ selectDefault: {
146
+ type: Boolean,
147
+ default: false
148
+ },
149
+ selectin: {
150
+ type: Boolean,
151
+ default: true
152
+ }
153
+ },
154
+ data () {
155
+ return {
156
+ // 操作员选择
157
+ opFirstDepresid: [],
158
+ opDepresid: [],
159
+ opUserresid: [],
160
+ opCompanyShow: false,
161
+ opDepartmentShow: false,
162
+ opOperatorShow: false,
163
+ sliceareashow: false,
164
+ sliceArea: [],
165
+ slice_area: [],
166
+ opObj: {
167
+ orgnames: [],
168
+ depnames: [],
169
+ operatornames: []
170
+ },
171
+ // 用户选择
172
+ firstdepresid: [],
173
+ depresid: [],
174
+ userresid: [],
175
+ userCompanyShow: false,
176
+ userDepartmentShow: false,
177
+ userOperatorShow: false,
178
+ obj: {
179
+ orgnames: [],
180
+ depnames: [],
181
+ operatornames: []
182
+ }
183
+ }
184
+ },
185
+ ready () {
186
+ if (this.selectDefault && this.selectin) {
187
+ if (!this.initres.dep.length) {
188
+ this.initres.dep = [this.$login.f.depids]
189
+ }
190
+ if (!this.initres.user.length) {
191
+ this.initres.user = [this.$login.f.id]
192
+ }
193
+ if (!this.operatorInitres.org.length) {
194
+ this.operatorInitres.org = [this.$login.f.orgid]
195
+ }
196
+ if (!this.operatorInitres.dep.length) {
197
+ this.operatorInitres.dep = [this.$login.f.depids]
198
+ }
199
+ if (!this.operatorInitres.user.length) {
200
+ this.operatorInitres.user = [this.$login.f.id]
201
+ }
202
+ }
203
+ this.initComponent()
204
+ if (this.operatorInitres.org.length > 0) {
205
+ this.initAreas(this.operatorInitres.org)
206
+ } else if (this.$login.f.orgid) {
207
+ this.initAreas([this.$login.f.orgid])
208
+ }
209
+ },
210
+ methods: {
211
+ initComponent () {
212
+ let self = this
213
+ this.showComponent.find((item) => {
214
+ switch (item) {
215
+ case 'company': self.opCompanyShow = true; break
216
+ case 'department': self.opDepartmentShow = true; break
217
+ case 'operator': self.opOperatorShow = true; break
218
+ case 'slicearea': self.sliceareashow = true; break
219
+ case 'user_company': self.userCompanyShow = true; break
220
+ case 'user_department': self.userDepartmentShow = true; break
221
+ case 'user_operator': self.userOperatorShow = true; break
222
+ }
223
+ })
224
+ },
225
+ // 初始化片区
226
+ async initAreas (val) {
227
+ if (val && val.length > 0) {
228
+ let http = new HttpResetClass()
229
+ try {
230
+ let getAllArea = await http.load('POST', '/rs/search', {
231
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
232
+ userid: this.$login.f.id
233
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
234
+ let arr = getAllArea.data.filter((res) => {
235
+ if (Array.isArray(val)) {
236
+ for (let i = 0; i < val.length; i++) {
237
+ if (res.parentid == val[i]) {
238
+ return true
239
+ }
240
+ }
241
+ }
242
+ return res.parentid == val
243
+ })
244
+ this.sliceArea = []
245
+ this.slice_area = []
246
+ arr.forEach((res) => {
247
+ this.sliceArea.push({label: res.name, value: {name: res.name, code: res.number}})
248
+ })
249
+ } catch (error) {
250
+ console.error('获取片区失败:', error)
251
+ this.sliceArea = []
252
+ this.slice_area = []
253
+ }
254
+ }
255
+ },
256
+ // 操作员条件
257
+ returnOp (ids, reset = false) {
258
+ let condition = ''
259
+ if (!reset && (this.opDepresid.length || this.opUserresid.length || (ids && ids.length) || this.slice_area.length > 0)) {
260
+ if (this.opDepresid.length > 0) {
261
+ condition = ' and f_orgid in ' + plugin.convertToIn(this.opDepresid)
262
+ }
263
+ if (this.opUserresid.length > 0) {
264
+ condition += ' and f_depid in ' + plugin.convertToIn(this.opUserresid)
265
+ }
266
+ if (ids && ids.length > 0) {
267
+ condition += ' and f_operatorid in ' + plugin.convertToIn(ids)
268
+ }
269
+ if (this.slice_area.length > 0) {
270
+ condition += " and f_zones = '" + this.slice_area[0].name + "'"
271
+ }
272
+ }
273
+ this.$dispatch('re-res', condition, this.opObj)
274
+ },
275
+ // 用户条件
276
+ returnOrg (ids, reset = false) {
277
+ let condition = ''
278
+ if (!reset && (this.depresid.length || this.userresid.length || (ids && ids.length))) {
279
+ if (this.depresid.length > 0) {
280
+ condition = ' and f_us_orgid in ' + plugin.convertToIn(this.depresid)
281
+ }
282
+ if (this.userresid.length > 0) {
283
+ condition += ' and f_us_depid in ' + plugin.convertToIn(this.userresid)
284
+ }
285
+ if (ids && ids.length > 0) {
286
+ condition += ' and f_us_operatorid in ' + plugin.convertToIn(ids)
287
+ }
288
+ }
289
+ this.$dispatch('re-us-res', condition, this.obj)
290
+ },
291
+ // 操作员选择
292
+ getOpOrg (obj, val) {
293
+ if (this.opFirstDepresid.length <= 0) {
294
+ this.opFirstDepresid = JSON.parse(JSON.stringify(obj))
295
+ }
296
+ this.opDepresid = obj
297
+ this.opObj.orgnames = val
298
+ this.initAreas(obj)
299
+ this.returnOp()
300
+ },
301
+ getOpDep (obj, val) {
302
+ this.opObj.depnames = val
303
+ this.opUserresid = obj
304
+ this.returnOp()
305
+ },
306
+ getOpUser (obj, val) {
307
+ this.opObj.operatornames = val
308
+ this.returnOp(obj)
309
+ },
310
+ // 用户选择
311
+ getorg (obj, val) {
312
+ if (this.firstdepresid.length <= 0) {
313
+ this.firstdepresid = JSON.parse(JSON.stringify(obj))
314
+ }
315
+ this.depresid = obj
316
+ this.obj.orgnames = val
317
+ this.returnOrg()
318
+ },
319
+ getdep (obj, val) {
320
+ this.obj.depnames = val
321
+ this.userresid = obj
322
+ this.returnOrg()
323
+ },
324
+ getuser (obj, val) {
325
+ this.obj.operatornames = val
326
+ this.returnOrg(obj)
327
+ },
328
+ getarea (val) {
329
+ this.slice_area = val
330
+ if (this.opObj.operatornames && this.opObj.operatornames.length > 0) {
331
+ this.returnOp(this.opObj.operatornames)
332
+ } else {
333
+ this.returnOp()
334
+ }
335
+ },
336
+ resetAll () {
337
+ // 操作员
338
+ this.opDepresid = []
339
+ this.opUserresid = []
340
+ this.opObj = {orgnames: [], depnames: [], operatornames: []}
341
+ if (this.$refs.oporg && this.$refs.oporg.selectres !== undefined) {
342
+ this.$refs.oporg.selectres = []
343
+ }
344
+ if (this.$refs.opdepartment) {
345
+ this.$refs.opdepartment.selectres = []
346
+ if (this.$refs.opdepartment.$children && this.$refs.opdepartment.$children[0]) {
347
+ this.$refs.opdepartment.$children[0].isSelectAll = false
348
+ }
349
+ }
350
+ if (this.$refs.opuser) {
351
+ this.$refs.opuser.selectres = []
352
+ if (this.$refs.opuser.$children && this.$refs.opuser.$children[0]) {
353
+ this.$refs.opuser.$children[0].isSelectAll = false
354
+ }
355
+ }
356
+ if (this.$refs.slice) {
357
+ this.slice_area = []
358
+ }
359
+ this.returnOp([], true)
360
+ // 用户
361
+ this.depresid = []
362
+ this.userresid = []
363
+ this.obj = {orgnames: [], depnames: [], operatornames: []}
364
+ if (this.$refs.org && this.$refs.org.selectres !== undefined) {
365
+ this.$refs.org.selectres = []
366
+ }
367
+ if (this.$refs.department) {
368
+ this.$refs.department.selectres = []
369
+ if (this.$refs.department.$children && this.$refs.department.$children[0]) {
370
+ this.$refs.department.$children[0].isSelectAll = false
371
+ }
372
+ }
373
+ if (this.$refs.user) {
374
+ this.$refs.user.selectres = []
375
+ if (this.$refs.user.$children && this.$refs.user.$children[0]) {
376
+ this.$refs.user.$children[0].isSelectAll = false
377
+ }
378
+ }
379
+ this.returnOrg([], true)
380
+ }
381
+ }
382
+ }
383
+ </script>
384
+
@@ -68,7 +68,7 @@ export default{
68
68
  'f_gasproperties': '用气性质', 'f_price_name': '气价名称', 'f_meternumber': '表号', 'f_meter_brand': '气表品牌', 'f_times': '购气次数',
69
69
  'f_pregas': '气量', 'fee': '金额', 'f_preamount': '燃气费', 'f_collection': '收款', 'f_privilege_money': '优惠金额', 'f_balance': '上期结余',
70
70
  'f_curbalance': '本期结余', 'f_type': '收费类型', 'f_payment': '付款方式', 'f_bank_type': '支付渠道', 'f_state': '状态', 'f_operate_date': '收费日期',
71
- 'f_delaypay': '违约金', 'f_comments': '备注', 'f_operator': '操作员', 'f_depname': '部门', 'f_orgname': '公司',
71
+ 'f_delaypay': '违约金', 'f_comments': '备注', 'f_operator': '操作员人员', 'f_depname': '操作员部门', 'f_orgname': '操作员公司', 'f_us_depname': '用户部门', 'f_us_orgname': '用户公司',
72
72
  'f_yucun': '预存金额', 'f_card_id': '卡号', 'f_stairamount1': '一阶气量', 'f_stair1price': '一阶单价', 'f_stair1fee': '一阶气费',
73
73
  'f_stair2amount': '二阶气量', 'f_stair2price': '二阶单价', 'f_stair2fee': '二阶气费',
74
74
  'f_stair3amount': '三阶气量', 'f_stair3price': '三阶单价', 'f_stair3fee': '三阶气费', 'f_inputtor': '抄表员', 'f_serial_id': '流水号', 'f_tax_logotype': '是否征税', 'f_terminal_num': '终端号'
@@ -302,7 +302,7 @@ export default{
302
302
  'f_actual_arrears': '欠费金额', 'f_balance': '上期余额', 'f_curbalance': '本期余额',
303
303
  'f_accounts_state': '下账状态', 'f_operate_date': '收费时间', 'f_inputtor': '抄表员', 'f_book_slice_area': '表册片区',
304
304
  'f_hand_date': '下发日期', 'f_input_date': '录入日期', 'f_meter_state': '抄表状态', 'f_hand_state': '记录状态',
305
- 'f_operator': '操作员', 'f_depname': '部门', 'f_orgname': '公司', 'f_surplus_gas': '剩余气量', 'f_haircut_gas': '扣减气量',
305
+ 'f_operator': '操作员人员', 'f_depname': '操作员部门', 'f_orgname': '操作员公司', 'f_us_depname': '用户部门', 'f_us_orgname': '用户公司', 'f_surplus_gas': '剩余气量', 'f_haircut_gas': '扣减气量',
306
306
  'f_stair1amount': '一阶气量', 'f_stair1price': '一阶单价', 'f_stair1fee': '一阶气费',
307
307
  'f_stair2amount': '二阶气量', 'f_stair2price': '二阶单价', 'f_stair2fee': '二阶气费',
308
308
  'f_stair3amount': '三阶气量', 'f_stair3price': '三阶单价', 'f_stair3fee': '三阶气费', 'f_rest_date': '所属年月'