sale-client 4.2.101 → 4.2.102
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/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/build/dev-server.js +14 -17
- package/package.json +1 -1
- package/src/filiale/meihekou/MeterOperatemain.vue +511 -0
- package/src/filiale/meihekou/handOperate.vue +62 -3
- package/src/filiale/meihekou/replacementSingleInfoOperation.vue +74 -6
- package/src/filiale/meihekou/sale.js +2 -0
- package/.gradle/8.10/checksums/checksums.lock +0 -0
- package/.gradle/8.10/dependencies-accessors/gc.properties +0 -0
- package/.gradle/8.10/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.10/executionHistory/executionHistory.lock +0 -0
- package/.gradle/8.10/fileChanges/last-build.bin +0 -0
- package/.gradle/8.10/fileHashes/fileHashes.bin +0 -0
- package/.gradle/8.10/fileHashes/fileHashes.lock +0 -0
- package/.gradle/8.10/gc.properties +0 -0
- package/.gradle/file-system.probe +0 -0
- package/.npmignore +0 -12
- package/src/.npmignore +0 -1
- package/yarn.lock +0 -12221
|
@@ -158,7 +158,13 @@
|
|
|
158
158
|
<div class="row">
|
|
159
159
|
<div class="col-sm-4 form-group">
|
|
160
160
|
<label class="font_normal_body">所属部门</label>
|
|
161
|
-
<
|
|
161
|
+
<res-select restype="department"
|
|
162
|
+
:is-mul="false"
|
|
163
|
+
:disabled="!editdep"
|
|
164
|
+
:parentresid="model.f_orgid ? [model.f_orgid] : ($login && $login.f && $login.f.orgid ? [$login.f.orgid] : [])"
|
|
165
|
+
:initresid="model.f_depid ? [model.f_depid] : []"
|
|
166
|
+
@res-select="onDepSelect">
|
|
167
|
+
</res-select>
|
|
162
168
|
</div>
|
|
163
169
|
<div class="col-sm-4 form-group">
|
|
164
170
|
<label class="font_normal_body">所属公司</label>
|
|
@@ -211,8 +217,9 @@ import {HttpResetClass} from 'vue-client'
|
|
|
211
217
|
import * as Util from "../../components/../Util";
|
|
212
218
|
var data
|
|
213
219
|
let readyGen = async function (self) {
|
|
214
|
-
await
|
|
215
|
-
await
|
|
220
|
+
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
221
|
+
await self.$GetSaleParam.initinputtor()
|
|
222
|
+
await self.initdep()
|
|
216
223
|
await self.initperson()
|
|
217
224
|
}
|
|
218
225
|
export default {
|
|
@@ -226,6 +233,8 @@ export default {
|
|
|
226
233
|
priceSplit: false,
|
|
227
234
|
recordList: [],
|
|
228
235
|
person:[],
|
|
236
|
+
fdep: [],
|
|
237
|
+
editdep: false,
|
|
229
238
|
fileNameSet: {
|
|
230
239
|
'f_meter_state': '抄表状态',
|
|
231
240
|
'f_hand_state': '抄表单状态',
|
|
@@ -258,12 +267,47 @@ export default {
|
|
|
258
267
|
if (this.$login.r.includes('维护银行转账信息')) {
|
|
259
268
|
this.editbank = true
|
|
260
269
|
}
|
|
270
|
+
if (this.$login.r.includes('抄表记录维护部门权限')) {
|
|
271
|
+
this.editdep = true
|
|
272
|
+
}
|
|
261
273
|
this.oldmodel = JSON.parse(JSON.stringify(this.model))
|
|
262
274
|
readyGen(this)
|
|
263
275
|
},
|
|
264
276
|
created () {
|
|
265
277
|
},
|
|
266
278
|
methods: {
|
|
279
|
+
onDepSelect (resIds, labels) {
|
|
280
|
+
if (resIds && resIds.length > 0) {
|
|
281
|
+
this.model.f_depid = resIds[0]
|
|
282
|
+
this.model.f_depname = labels && labels.length > 0 ? labels[0] : ''
|
|
283
|
+
} else {
|
|
284
|
+
this.model.f_depid = ''
|
|
285
|
+
this.model.f_depname = ''
|
|
286
|
+
}
|
|
287
|
+
// 选部门后刷新人员列表
|
|
288
|
+
this.initperson()
|
|
289
|
+
},
|
|
290
|
+
initdep () {
|
|
291
|
+
this.fdep = []
|
|
292
|
+
if (!this.$GetSaleParam || !this.$GetSaleParam.inputtors) {
|
|
293
|
+
return
|
|
294
|
+
}
|
|
295
|
+
const inputtors = this.$GetSaleParam.inputtors
|
|
296
|
+
const orgId = this.model.f_orgid || (this.$login && this.$login.f && this.$login.f.orgid)
|
|
297
|
+
const filterdep = inputtors.filter((res) => {
|
|
298
|
+
const hasRole = res.rolestr && res.rolestr.indexOf('营业员') > -1
|
|
299
|
+
const orgMatch = res.f_organization_id === orgId || res.f_orgid === orgId
|
|
300
|
+
return hasRole && orgMatch
|
|
301
|
+
})
|
|
302
|
+
filterdep.forEach((res) => {
|
|
303
|
+
if (res.parentid && res.f_department_name && !this.fdep.some((d) => d.value === res.parentid)) {
|
|
304
|
+
this.fdep.push({label: res.f_department_name, value: res.parentid})
|
|
305
|
+
}
|
|
306
|
+
})
|
|
307
|
+
if (this.model.f_depid && !this.fdep.some((d) => d.value === this.model.f_depid)) {
|
|
308
|
+
this.fdep.push({label: this.model.f_depname || this.model.f_depid, value: this.model.f_depid})
|
|
309
|
+
}
|
|
310
|
+
},
|
|
267
311
|
initperson () {
|
|
268
312
|
this.person = []
|
|
269
313
|
let arr = this.$GetSaleParam.inputtors.filter((res) => {
|
|
@@ -275,6 +319,20 @@ export default {
|
|
|
275
319
|
this.person.push({label: res.name, value: res.name})
|
|
276
320
|
})
|
|
277
321
|
},
|
|
322
|
+
selectdep () {
|
|
323
|
+
const id = this.model.f_depid
|
|
324
|
+
if (!id) {
|
|
325
|
+
this.model.f_depname = ''
|
|
326
|
+
this.initperson()
|
|
327
|
+
return
|
|
328
|
+
}
|
|
329
|
+
const hit = this.$GetSaleParam.inputtors.find((res) => res.parentid === id || res.f_department_id === id)
|
|
330
|
+
if (hit && hit.f_department_name) {
|
|
331
|
+
this.model.f_depname = hit.f_department_name
|
|
332
|
+
}
|
|
333
|
+
// 选部门后刷新人员列表
|
|
334
|
+
this.initperson()
|
|
335
|
+
},
|
|
278
336
|
fileterprice (row) {
|
|
279
337
|
this.priceSplit = true
|
|
280
338
|
console.log('row==>', row)
|
|
@@ -387,6 +445,7 @@ export default {
|
|
|
387
445
|
}
|
|
388
446
|
},
|
|
389
447
|
'model' () {
|
|
448
|
+
this.initdep()
|
|
390
449
|
this.initperson()
|
|
391
450
|
}
|
|
392
451
|
}
|
|
@@ -103,7 +103,13 @@
|
|
|
103
103
|
<div class="row">
|
|
104
104
|
<div class="col-sm-4">
|
|
105
105
|
<label class="font_normal_body">部 门 </label>
|
|
106
|
-
<
|
|
106
|
+
<res-select restype="department"
|
|
107
|
+
:is-mul="false"
|
|
108
|
+
:disabled="!editdep"
|
|
109
|
+
:parentresid="model.f_orgid ? [model.f_orgid] : ($login && $login.f && $login.f.orgid ? [$login.f.orgid] : [])"
|
|
110
|
+
:initresid="model.f_depid ? [model.f_depid] : []"
|
|
111
|
+
@res-select="onDepSelect">
|
|
112
|
+
</res-select>
|
|
107
113
|
</div>
|
|
108
114
|
<div class="col-sm-4 ">
|
|
109
115
|
<label class="font_normal_body" title="参数:操作人员查询">操作人员</label>
|
|
@@ -142,8 +148,9 @@
|
|
|
142
148
|
import * as Util from "../../Util";
|
|
143
149
|
var data
|
|
144
150
|
let readyGen = async function (self) {
|
|
145
|
-
await
|
|
146
|
-
await
|
|
151
|
+
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
152
|
+
await self.$GetSaleParam.initinputtor()
|
|
153
|
+
await self.initdep()
|
|
147
154
|
await self.initoperator()
|
|
148
155
|
}
|
|
149
156
|
export default {
|
|
@@ -159,6 +166,8 @@
|
|
|
159
166
|
showfiles: false,
|
|
160
167
|
recordList: [],
|
|
161
168
|
foperator:[],
|
|
169
|
+
fdep: [],
|
|
170
|
+
editdep: false,
|
|
162
171
|
fileNameSet: {
|
|
163
172
|
// 要更改字段的中文名
|
|
164
173
|
'f_cardfees': '卡费',
|
|
@@ -180,6 +189,9 @@
|
|
|
180
189
|
if (this.$login.r.includes('维护补卡信息')) {
|
|
181
190
|
this.editbank = true
|
|
182
191
|
}
|
|
192
|
+
if (this.$login.r.includes('补卡记录维护部门权限')) {
|
|
193
|
+
this.editdep = true
|
|
194
|
+
}
|
|
183
195
|
this.oldmodel = JSON.parse(JSON.stringify(this.model))
|
|
184
196
|
this.model.f_bill_state = [this.oldmodel]
|
|
185
197
|
readyGen(this)
|
|
@@ -206,6 +218,50 @@
|
|
|
206
218
|
}
|
|
207
219
|
}
|
|
208
220
|
},
|
|
221
|
+
initdep () {
|
|
222
|
+
this.fdep = []
|
|
223
|
+
if (!this.$GetSaleParam || !this.$GetSaleParam.inputtors) {
|
|
224
|
+
return
|
|
225
|
+
}
|
|
226
|
+
const inputtors = this.$GetSaleParam.inputtors
|
|
227
|
+
const orgId = this.model.f_orgid || (this.$login && this.$login.f && this.$login.f.orgid)
|
|
228
|
+
const filterdep = inputtors.filter((res) => {
|
|
229
|
+
const hasRole = res.rolestr && res.rolestr.indexOf('营业员') > -1
|
|
230
|
+
const orgMatch = res.f_organization_id === orgId || res.f_orgid === orgId
|
|
231
|
+
return hasRole && orgMatch
|
|
232
|
+
})
|
|
233
|
+
filterdep.forEach((res) => {
|
|
234
|
+
if (res.parentid && res.f_department_name && !this.fdep.some((d) => d.value === res.parentid)) {
|
|
235
|
+
this.fdep.push({label: res.f_department_name, value: res.parentid})
|
|
236
|
+
}
|
|
237
|
+
})
|
|
238
|
+
if (this.model.f_depid && !this.fdep.some((d) => d.value === this.model.f_depid)) {
|
|
239
|
+
this.fdep.push({label: this.model.f_depname || this.model.f_depid, value: this.model.f_depid})
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
selectdep () {
|
|
243
|
+
const id = this.model.f_depid
|
|
244
|
+
if (!id) {
|
|
245
|
+
this.model.f_depname = ''
|
|
246
|
+
return
|
|
247
|
+
}
|
|
248
|
+
const hit = this.$GetSaleParam.inputtors.find((res) => res.parentid === id || res.f_department_id === id)
|
|
249
|
+
if (hit && hit.f_department_name) {
|
|
250
|
+
this.model.f_depname = hit.f_department_name
|
|
251
|
+
}
|
|
252
|
+
// 选部门后刷新操作员列表
|
|
253
|
+
this.initoperator()
|
|
254
|
+
},
|
|
255
|
+
onDepSelect (resIds, labels) {
|
|
256
|
+
if (resIds && resIds.length > 0) {
|
|
257
|
+
this.model.f_depid = resIds[0]
|
|
258
|
+
this.model.f_depname = labels && labels.length > 0 ? labels[0] : ''
|
|
259
|
+
} else {
|
|
260
|
+
this.model.f_depid = ''
|
|
261
|
+
this.model.f_depname = ''
|
|
262
|
+
}
|
|
263
|
+
this.initoperator()
|
|
264
|
+
},
|
|
209
265
|
selectoperator () {
|
|
210
266
|
let id = this.model.f_operatorid
|
|
211
267
|
if(!this.model.f_operatorid){
|
|
@@ -226,6 +282,17 @@
|
|
|
226
282
|
console.log('this.f_operatorid', this.model.f_operator)
|
|
227
283
|
})
|
|
228
284
|
},
|
|
285
|
+
onDepSelect (resIds, labels) {
|
|
286
|
+
if (resIds && resIds.length > 0) {
|
|
287
|
+
this.model.f_depid = resIds[0]
|
|
288
|
+
this.model.f_depname = labels && labels.length > 0 ? labels[0] : ''
|
|
289
|
+
} else {
|
|
290
|
+
this.model.f_depid = ''
|
|
291
|
+
this.model.f_depname = ''
|
|
292
|
+
}
|
|
293
|
+
// 选部门后刷新操作员列表
|
|
294
|
+
this.initoperator()
|
|
295
|
+
},
|
|
229
296
|
cancel () {
|
|
230
297
|
this.$dispatch('close')
|
|
231
298
|
},
|
|
@@ -267,8 +334,8 @@
|
|
|
267
334
|
f_operatorid : this.$login.f.id,
|
|
268
335
|
f_orgid : this.$login.f.orgid,
|
|
269
336
|
f_orgname : this.$login.f.orgs,
|
|
270
|
-
f_depid : this
|
|
271
|
-
f_depname : this
|
|
337
|
+
f_depid : this.model.f_depid,
|
|
338
|
+
f_depname : this.model.f_depname
|
|
272
339
|
}
|
|
273
340
|
this.recordList.push(car)
|
|
274
341
|
// 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
|
|
@@ -288,10 +355,11 @@
|
|
|
288
355
|
computed: {
|
|
289
356
|
fillcard_state () {
|
|
290
357
|
return [...this.$appdata.getParam('补卡状态')]
|
|
291
|
-
}
|
|
358
|
+
}
|
|
292
359
|
},
|
|
293
360
|
watch: {
|
|
294
361
|
'model'(){
|
|
362
|
+
this.initdep()
|
|
295
363
|
this.initoperator()
|
|
296
364
|
}
|
|
297
365
|
}
|
|
@@ -75,4 +75,6 @@ export default function () {
|
|
|
75
75
|
Vue.component('replacement-single-info-operation', (resolve) => { require(['./replacementSingleInfoOperation'], resolve) })
|
|
76
76
|
// 单户调价
|
|
77
77
|
Vue.component('user-pricechange-manage', (resolve) => { require(['./UserPriceChangeManage'], resolve) })
|
|
78
|
+
// 交费具体信息金额
|
|
79
|
+
Vue.component('meter-operate-maintain', (resolve) => { require(['./MeterOperatemain'], resolve) })
|
|
78
80
|
}
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
package/.npmignore
DELETED
package/src/.npmignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|