sale-client 3.6.124 → 3.6.126
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 +1 -1
- package/package.json +3 -3
- package/src/App.vue +3 -1
- package/src/components/chargeBatch/BatchCharge.vue +51 -39
- package/src/components/common/userinfo_detail/ic_detail/AutomaticPurse.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/CardHandRecord.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/ChangeMeterQueryUser.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/ChargeQueryUser.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/FillCardQueryUser.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/HandQueryUser.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/RecordQueryUser.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/WebAutomaticPurse.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/WebHandQueryUser.vue +1 -1
- package/src/components/revenue/comprehen/ComprehenOperation/BankPayment/BankPayment.vue +6 -1
- package/src/components/webMeter/meterinfo/NewMeterList.vue +7 -1
- package/src/components/webMeter/paramSave/ParamSet.vue +4 -4
- package/src/filiale/ganquan/components/FilesManage/FileUserFiles.vue +1059 -0
- package/src/filiale/ganquan/sale.js +2 -0
- package/src/filiale/liaoyuan/CardList.vue +2 -2
- package/src/filiale/liaoyuan/PriceChangeCompensation/IotCompensation.vue +2 -2
package/build/dev-server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var path = require('path')
|
|
2
|
-
const [serverRul, localUrl ] = ['http://
|
|
2
|
+
const [serverRul, localUrl ] = ['http://192.168.50.4:8400/', 'http://127.0.0.1:8080/']
|
|
3
3
|
var merge = require('webpack-merge')
|
|
4
4
|
var baseConfig = require('./webpack.dev.conf')
|
|
5
5
|
var devConfig = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sale-client",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.126",
|
|
4
4
|
"description": "收费模块前台组件",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"karma-sourcemap-loader": "^0.3.7",
|
|
75
75
|
"karma-spec-reporter": "0.0.31",
|
|
76
76
|
"karma-webpack": "^2.0.2",
|
|
77
|
-
"ldap-clients": "3.0.
|
|
77
|
+
"ldap-clients": "3.0.62",
|
|
78
78
|
"less": "^2.7.3",
|
|
79
79
|
"manage-client": "3.1.8-88",
|
|
80
80
|
"mkdirp": "^0.5.1",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"style-loader": "^0.20.3",
|
|
92
92
|
"system-clients": "3.2.61",
|
|
93
93
|
"url-loader": "^0.5.7",
|
|
94
|
-
"vue-client": "1.24.
|
|
94
|
+
"vue-client": "1.24.101",
|
|
95
95
|
"vue-clipboard2": "0.3.1",
|
|
96
96
|
"vue-hot-reload-api": "^1.2.0",
|
|
97
97
|
"vue-html-loader": "^1.0.0",
|
package/src/App.vue
CHANGED
|
@@ -130,6 +130,7 @@ export default {
|
|
|
130
130
|
config: {
|
|
131
131
|
showupload: true, // 显示上传
|
|
132
132
|
hasPrint: true, // 默认打票
|
|
133
|
+
postAsync: false, // 是否异步请求 存完主记录再存明细
|
|
133
134
|
hasBillManage: false, // 默认不启用发票管理
|
|
134
135
|
hasfindaReail: true, // 默认开启找零功能
|
|
135
136
|
billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
|
|
@@ -283,50 +284,61 @@ export default {
|
|
|
283
284
|
if (this.civill) {
|
|
284
285
|
param = Object.assign(this.civill, param)
|
|
285
286
|
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
287
|
+
let batchId = ''
|
|
288
|
+
// 如果配置了异步请求
|
|
289
|
+
if (this.config.postAsync) {
|
|
290
|
+
// 插入主收费记录
|
|
291
|
+
let batch = await this.$resetpost('rs/logic/asyncbatchPaymentSellinggas', {data: param}, {resolveMsg: null, rejectMsg: null}, 1000)
|
|
292
|
+
batchId = param.f_batch_id = batch.data.f_batch_id
|
|
293
|
+
// 处理记录明细抄表明细
|
|
294
|
+
await this.$resetpost('rs/logic/async/asyncbatchPaymentFiles', {data: param}, {resolveMsg: null, rejectMsg: null}, 1000)
|
|
295
|
+
} else {
|
|
296
|
+
try {
|
|
297
|
+
await this.$resetpost('rs/logic/batchPayment', {data: param}, {resolveMsg: null, rejectMsg: null}, 1000)
|
|
298
|
+
} catch (e) {}
|
|
299
|
+
// this.$showMessage(`正在批量处理中, 请耐心等待...`, [])
|
|
300
|
+
this.show = true
|
|
301
|
+
// 启动定时器定时查询处理结果
|
|
302
|
+
this.timer = setInterval(async () => {
|
|
303
|
+
let res = await this.HttpReset.load('POST', 'rs/logic/getBatchOperaPro', {data: {uuid: uuid}}, {resolveMsg: null, rejectMsg: null})
|
|
304
|
+
if (res.data.percent) {
|
|
305
|
+
this.percent = res.data.percent
|
|
304
306
|
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
this.row.f_bill_type = '物联网收费'
|
|
313
|
-
this.row.f_bill_style = this.model.f_print[0]
|
|
314
|
-
this.print = true
|
|
315
|
-
} else {
|
|
316
|
-
this.data.id = res.data.id
|
|
317
|
-
this.print = true
|
|
318
|
-
}
|
|
319
|
-
} else if (this.config.printType === '国税发票') {
|
|
320
|
-
// TODO
|
|
321
|
-
} else if (this.model.f_print[0] === '电子发票') {
|
|
322
|
-
this.eticket_show = true
|
|
323
|
-
await this.$refs.eticketbill.openETicket([res.data.id], this.row, this.invoice_show_gas, this.invoice_is_pax, '物联网收费')
|
|
307
|
+
if (res.data.msg || res.data.error) {
|
|
308
|
+
this.show = false
|
|
309
|
+
clearInterval(this.timer)
|
|
310
|
+
this.$closeMessage()
|
|
311
|
+
if (res.data.error) {
|
|
312
|
+
this.$showAlert(`${res.data.error}`, 'danger')
|
|
313
|
+
return
|
|
324
314
|
}
|
|
315
|
+
await this.$showMessage(res.data.msg)
|
|
316
|
+
batchId = res.data.id
|
|
317
|
+
}
|
|
318
|
+
}, 1500)
|
|
319
|
+
}
|
|
320
|
+
if (this.config.hasPrint) {
|
|
321
|
+
if (this.data.f_print.indexOf('电子发票') == -1) {
|
|
322
|
+
console.log('this.config.hasBillManage', this.config.hasBillManage)
|
|
323
|
+
if (this.config.hasBillManage) {
|
|
324
|
+
// 启用发票管理,获取票据管理中的票号并存储记录
|
|
325
|
+
this.row.id = batchId
|
|
326
|
+
this.row.f_bill_type = '物联网收费'
|
|
327
|
+
this.row.f_bill_style = this.model.f_print[0]
|
|
328
|
+
this.print = true
|
|
325
329
|
} else {
|
|
326
|
-
this.
|
|
330
|
+
this.data.id = batchId
|
|
331
|
+
this.print = true
|
|
327
332
|
}
|
|
333
|
+
} else if (this.config.printType === '国税发票') {
|
|
334
|
+
// TODO
|
|
335
|
+
} else if (this.model.f_print[0] === '电子发票') {
|
|
336
|
+
this.eticket_show = true
|
|
337
|
+
await this.$refs.eticketbill.openETicket([batchId], this.row, this.invoice_show_gas, this.invoice_is_pax, '物联网收费')
|
|
328
338
|
}
|
|
329
|
-
}
|
|
339
|
+
} else {
|
|
340
|
+
this.clean()
|
|
341
|
+
}
|
|
330
342
|
},
|
|
331
343
|
clean () {
|
|
332
344
|
this.$dispatch('success')
|
|
@@ -161,7 +161,7 @@ let reprintGen = function *(self, row) {
|
|
|
161
161
|
methods: {
|
|
162
162
|
async search () {
|
|
163
163
|
console.log('aaa:', this.$refs.paged.$refs.criteria.condition)
|
|
164
|
-
this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}'
|
|
164
|
+
this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
|
|
165
165
|
this.model.search(this.condition, this.model)
|
|
166
166
|
let http = new HttpResetClass()
|
|
167
167
|
let res = await http.load('POST', 'rs/sql/sale_AutomaticPurse', {
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
},
|
|
158
158
|
methods: {
|
|
159
159
|
async search () {
|
|
160
|
-
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}'
|
|
160
|
+
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
|
|
161
161
|
this.model.search(this.condition, this.model)
|
|
162
162
|
let http = new HttpResetClass()
|
|
163
163
|
let res = await http.load('POST', 'rs/sql/sale_cardhandplanQuery', {
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
},
|
|
132
132
|
methods: {
|
|
133
133
|
async search () {
|
|
134
|
-
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}'
|
|
134
|
+
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
|
|
135
135
|
this.model.search(this.condition, this.model)
|
|
136
136
|
let http = new HttpResetClass()
|
|
137
137
|
let res = await http.load('POST', 'rs/sql/sale_ChangeMeterQuery', {
|
|
@@ -318,7 +318,7 @@ export default {
|
|
|
318
318
|
},
|
|
319
319
|
async search () {
|
|
320
320
|
console.log('aaa:', this.$refs.paged.$refs.criteria.condition)
|
|
321
|
-
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}'
|
|
321
|
+
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}'`
|
|
322
322
|
this.model.search(this.condition, this.model)
|
|
323
323
|
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
324
324
|
let http = new HttpResetClass()
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
methods: {
|
|
97
97
|
async search () {
|
|
98
98
|
if (this.row.f_meter_type.includes('卡表')) {
|
|
99
|
-
this.condition = `${this.searchValue} = '${this.row[this.searchValue]}'
|
|
99
|
+
this.condition = `${this.searchValue} = '${this.row[this.searchValue]}' `
|
|
100
100
|
if (this.$refs.paged.$refs.criteria.condition) {
|
|
101
101
|
this.condition += `and ${this.$refs.paged.$refs.criteria.condition}`
|
|
102
102
|
}
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
// this.model.search(this.condition, this.model)
|
|
254
254
|
// },
|
|
255
255
|
async search () {
|
|
256
|
-
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}'
|
|
256
|
+
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
|
|
257
257
|
this.model.search(this.condition, this.model)
|
|
258
258
|
let http = new HttpResetClass()
|
|
259
259
|
let res = await http.load('POST', 'rs/sql/sale_HandplanQuery', {
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
},
|
|
151
151
|
methods: {
|
|
152
152
|
async search () {
|
|
153
|
-
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}'
|
|
153
|
+
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
|
|
154
154
|
this.model.search(this.condition, this.model)
|
|
155
155
|
let http = new HttpResetClass()
|
|
156
156
|
let res = await http.load('POST', 'rs/sql/machineRecordQuery', {
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
},
|
|
146
146
|
methods: {
|
|
147
147
|
async search () {
|
|
148
|
-
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}'
|
|
148
|
+
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
|
|
149
149
|
this.model.search(this.condition, this.model)
|
|
150
150
|
let http = new HttpResetClass()
|
|
151
151
|
let res = await http.load('POST', 'rs/sql/sale_RecordQuery', {
|
|
@@ -160,7 +160,7 @@ let reprintGen = function *(self, row) {
|
|
|
160
160
|
methods: {
|
|
161
161
|
async search () {
|
|
162
162
|
console.log('aaa:', this.$refs.paged.$refs.criteria.condition)
|
|
163
|
-
this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}'
|
|
163
|
+
this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
|
|
164
164
|
this.model.search(this.condition, this.model)
|
|
165
165
|
let http = new HttpResetClass()
|
|
166
166
|
let res = await http.load('POST', `${this.row.f_meter_type === '物联网表'?'rs/sql/sale_WebAutomaticPurse':'rs/sql/sale_AutomaticPurse'}`, {
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
// this.model.search(this.condition, this.model)
|
|
239
239
|
// },
|
|
240
240
|
async search () {
|
|
241
|
-
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}'
|
|
241
|
+
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}'`
|
|
242
242
|
this.model.search(this.condition, this.model)
|
|
243
243
|
let http = new HttpResetClass()
|
|
244
244
|
let res = await http.load('POST', `${this.row.f_meter_type === '物联网表'?'rs/sql/sale_WebHandplanQuery':'rs/sql/sale_HandplanQuery'}`, {
|
|
@@ -277,7 +277,12 @@
|
|
|
277
277
|
return [{label: '全部', value: ''}, ...this.$appdata.getParam('分公司')]
|
|
278
278
|
},
|
|
279
279
|
getCondition () {
|
|
280
|
-
return {
|
|
280
|
+
return {
|
|
281
|
+
condition: this.$refs.paged.$refs.cri.condition,
|
|
282
|
+
orderitem: 'delivery_date DESC ',
|
|
283
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
284
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate
|
|
285
|
+
}
|
|
281
286
|
},
|
|
282
287
|
getfield () {
|
|
283
288
|
let data = {}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<div style="float:right">
|
|
24
24
|
<button class="button_search button_spacing" @click="search()" v-el:cba>查询</button>
|
|
25
25
|
<button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
|
|
26
|
-
<export-excel :data="
|
|
26
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
27
27
|
:field="$parent.$parent.config.excelHeaders"
|
|
28
28
|
sqlurl="rs/logic/saleExport" sql-name="manage_getNewMeterBrandAndModel" template-name='表具查询'
|
|
29
29
|
v-ref:exports
|
|
@@ -539,6 +539,12 @@
|
|
|
539
539
|
}
|
|
540
540
|
},
|
|
541
541
|
computed: {
|
|
542
|
+
getCondition () {
|
|
543
|
+
return {
|
|
544
|
+
condition: this.condition,
|
|
545
|
+
orderitem: this.orderitem
|
|
546
|
+
}
|
|
547
|
+
},
|
|
542
548
|
/* Warningstyle () {
|
|
543
549
|
return [{label: '全部', value: ''}, ...this.$appdata.getParam('燃气表型号')]
|
|
544
550
|
}, */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<criteria :model='model' partial='criteria' v-ref:criteria @condition-changed='$parent.selfSearch'>
|
|
5
5
|
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
6
|
<div class="row">
|
|
7
|
-
<div class="col-sm-
|
|
7
|
+
<div class="col-sm-3" style="width:20%">
|
|
8
8
|
<label class="font_normal_body" >气表协议类型</label>
|
|
9
9
|
<v-select style="width:60%" title="气表协议类型"
|
|
10
10
|
placeholder='气表协议类型'
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
condition="f_gasbrand_id = '{}'"
|
|
27
27
|
close-on-select></v-select>
|
|
28
28
|
</div>
|
|
29
|
-
<div class="col-sm-2
|
|
29
|
+
<div class="col-sm-2">
|
|
30
30
|
<label class="font_normal_body">气表型号</label>
|
|
31
31
|
<v-select :value.sync="model.f_meter_style"
|
|
32
32
|
v-model="model.f_meter_style"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
condition="f_gasmodel_id = '{}'"
|
|
35
35
|
close-on-select></v-select>
|
|
36
36
|
</div>
|
|
37
|
-
<div class="col-sm-2
|
|
37
|
+
<div class="col-sm-2">
|
|
38
38
|
<label class="font_normal_body">客户编号</label>
|
|
39
39
|
<input @keyup.enter="search" style="width:60%" type="text" class="input_search "
|
|
40
40
|
v-model="model.f_userinfo_code"
|
|
@@ -437,7 +437,7 @@ export default {
|
|
|
437
437
|
this.condition = args.condition
|
|
438
438
|
this.model.search(args.condition, args.model)
|
|
439
439
|
} else {
|
|
440
|
-
this.$showAlert(`请先选择气表品牌`, 'warning',
|
|
440
|
+
this.$showAlert(`请先选择气表品牌`, 'warning', 2000)
|
|
441
441
|
}
|
|
442
442
|
// this.isCheckAll = false
|
|
443
443
|
},
|