manage-client 4.1.85-tcls → 4.1.85
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/build/dev-server.js +99 -181
- package/package.json +1 -1
- package/src/filiale/jinbin/exportConfig.js +1110 -0
- package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +1372 -0
- package/src/filiale/jinbin/sale.js +7 -0
- package/src/filiale/tongchuan/ChangeMeterQuery.vue +702 -730
- package/src/filiale/tongchuan/ChargeQuery.vue +1487 -1514
- package/src/filiale/tongchuan/DisableQuery.vue +523 -550
- package/src/filiale/tongchuan/FillCardQuery.vue +573 -598
- package/src/filiale/tongchuan/FillGasQuery.vue +533 -560
- package/src/filiale/tongchuan/HandplanQuery.vue +1332 -1358
- package/src/filiale/tongchuan/RecordInfoQuery.vue +1493 -1493
- package/src/filiale/tongchuan/ReverseQuery.vue +450 -477
- package/src/filiale/tongchuan/config/exportConfig.js +918 -1102
- package/src/filiale/tongchuan/sale.js +0 -36
- package/src/filiale/tongchuan/sellingChargePrice.vue +714 -754
- package/src/main.js +1 -1
- package/src/filiale/tongchuan/CancellationQuery.vue +0 -455
- package/src/filiale/tongchuan/EnableQuery.vue +0 -489
- package/src/filiale/tongchuan/OtherChargeDetailQuery.vue +0 -74
- package/src/filiale/tongchuan/OtherChargeQuery.vue +0 -751
- package/src/filiale/tongchuan/PrivilegeQuery.vue +0 -420
- package/src/filiale/tongchuan/ResSelectUserGroup.vue +0 -384
- package/src/filiale/tongchuan/TransferQuery.vue +0 -528
- package/src/filiale/tongchuan/TransferRecordQuery.vue +0 -202
- package/src/filiale/tongchuan/overDueQuery.vue +0 -497
- package/src/filiale/tongchuan/priceadjustQuery.vue +0 -560
|
@@ -1,384 +0,0 @@
|
|
|
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">片  区</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
|
-
|