sale-client 3.6.270 → 3.6.271
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 +6 -1
- package/build/versionCheck.js +28 -0
- package/build/webpack.base.conf.js +0 -1
- package/package.json +3 -3
- package/src/components/revenue/cardHandManage/cardDown.vue +1 -1
- package/src/components/revenue/comprehen/Bill/EticketV4/CustQueryEticket.vue +1 -1
- package/src/components/revenue/comprehen/Bill/EticketV4/EticketOpenCard.vue +10 -10
- package/src/components/revenue/comprehen/Bill/EticketV4/EticketOpenJBPage.vue +1 -4
- package/src/components/revenue/comprehen/Message/AllUser.vue +30 -1
- package/src/filiale/jingyang/EticketPrint.vue +7 -3
- package/src/filiale/jingyang/EticketV4/CustQueryEticket.vue +371 -0
- package/src/filiale/jingyang/EticketV4/EticketManage.vue +67 -0
- package/src/filiale/jingyang/EticketV4/EticketOpenCard.vue +367 -324
- package/src/filiale/jingyang/EticketV4/EticketOpenPage.vue +386 -349
- package/src/filiale/jingyang/EticketV4/EticketRecordList.vue +30 -19
- package/src/filiale/jingyang/sale.js +4 -2
- package/src/filiale/lixianV3/MachineMeterCenter.vue +691 -0
- package/src/filiale/lixianV3/OweDetailList.vue +79 -0
- package/src/filiale/lixianV3/OweList.vue +157 -0
- package/src/filiale/lixianV3/sale.js +4 -0
- package/src/filiale/tongchuan/bill/EticketRecordList.vue +7 -3
- package/src/filiale/zhongyi/machineHand.vue +2 -2
- package/.npmignore +0 -12
- package/src/.npmignore +0 -1
- package/src/filiale/jingyang/EticketV4/EticketOpenJBPage.vue +0 -355
- package/yarn.lock +0 -12035
package/build/dev-server.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
var path = require('path')
|
|
2
|
-
|
|
2
|
+
var checkVersion = require('./versionCheck.js')
|
|
3
|
+
checkVersion()
|
|
4
|
+
const [ serverRul, localUrl, v4Url ] = ['http://192.168.50.4:8400/', 'http://192.168.50.4:8400/', 'http://192.168.50.67:30785']
|
|
3
5
|
var merge = require('webpack-merge')
|
|
4
6
|
var baseConfig = require('./webpack.dev.conf')
|
|
5
7
|
var devConfig = {
|
|
@@ -17,6 +19,9 @@ var devConfig = {
|
|
|
17
19
|
children: false // 不输出子模块构建信息
|
|
18
20
|
},
|
|
19
21
|
proxy: {
|
|
22
|
+
'/api': {
|
|
23
|
+
target: v4Url
|
|
24
|
+
},
|
|
20
25
|
'/invoice/rs/logic/getInvoice': {
|
|
21
26
|
target: serverRul
|
|
22
27
|
},
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function isVersionGreaterThan(version1, version2) {
|
|
2
|
+
const v1parts = version1.split('.')
|
|
3
|
+
const v2parts = version2.split('.')
|
|
4
|
+
|
|
5
|
+
for (let i = 0; i < v1parts.length; ++i) {
|
|
6
|
+
if (v2parts.length === i) {
|
|
7
|
+
return true
|
|
8
|
+
}
|
|
9
|
+
return v1parts[i] >= v2parts[i]
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
return v1parts.length !== v2parts.length
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const pkg = require('../package.json')
|
|
16
|
+
const checkVersion = () => {
|
|
17
|
+
const {devDependencies} = pkg
|
|
18
|
+
if (devDependencies && devDependencies['system-clients']) {
|
|
19
|
+
if (isVersionGreaterThan(devDependencies['system-clients'], '3.2.93')) {
|
|
20
|
+
console.log('\x1b[41m\x1b[30m%s\x1b[0m', '请注意:当前使用的 systemClients 版本不兼容旧版登录')
|
|
21
|
+
console.log('\x1b[41m\x1b[30m%s\x1b[0m', '登录是会发送 api/af-auth 请求')
|
|
22
|
+
console.log('\x1b[41m\x1b[30m%s\x1b[0m', '请转发到公司 v4 测试地址或者客户 v4 网关')
|
|
23
|
+
console.log('\x1b[41m\x1b[30m%s\x1b[0m', '请查看营收后台升级日志:http://aote-office.8866.org:31467/sale-doc-web/V4Product/%E8%90%A5%E6%94%B6%E5%90%8E%E5%8F%B0%E6%94%B9%E9%80%A0%E8%AF%B4%E6%98%8E')
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
module.exports = checkVersion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sale-client",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.271",
|
|
4
4
|
"description": "收费模块前台组件",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"qrcodejs2": "0.0.2",
|
|
25
25
|
"vue": "^1.0.17",
|
|
26
26
|
"webpack-dev-server": "^2.11.5",
|
|
27
|
-
"vue-client": "1.24.
|
|
27
|
+
"vue-client": "1.24.146",
|
|
28
28
|
"yarn": "^1.22.10"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"sinon-chai": "^2.8.0",
|
|
91
91
|
"style": "0.0.3",
|
|
92
92
|
"style-loader": "^0.20.3",
|
|
93
|
-
"system-clients": "3.2.
|
|
93
|
+
"system-clients": "3.2.93",
|
|
94
94
|
"url-loader": "^0.5.7",
|
|
95
95
|
"vue-clipboard2": "0.3.1",
|
|
96
96
|
"vue-hot-reload-api": "^1.2.0",
|
|
@@ -787,7 +787,7 @@ export default {
|
|
|
787
787
|
this.inputtor_change = args.condition.includes('未抄表')
|
|
788
788
|
|
|
789
789
|
if (!this.orgCondtionStr) {
|
|
790
|
-
args.condition = `${args.condition}
|
|
790
|
+
args.condition = `${args.condition} and f_orgid = '${this.$login.f.orgid}'`
|
|
791
791
|
} else {
|
|
792
792
|
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
793
793
|
}
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
}
|
|
268
268
|
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
269
269
|
this.row = row.data[0]
|
|
270
|
-
this.invoice_show_gas = this.row.f_collection_type
|
|
270
|
+
this.invoice_show_gas = this.row.f_collection_type === '按气量' ? '是' : '否'
|
|
271
271
|
if (!this.row.f_taxpayer_id) {
|
|
272
272
|
this.row.f_taxpayer_id = this.row.f_idnumber
|
|
273
273
|
}
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
60
60
|
<template partial='head'>
|
|
61
61
|
<tr>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
<th>
|
|
63
|
+
<input type="checkbox" @click="$parent.$parent.$parent.addOrRemove($parent.$parent.$parent.selectAll)"
|
|
64
|
+
style="width: 22px;height: 22px" :checked="$parent.$parent.$parent.selectAll">
|
|
65
|
+
</th>
|
|
66
66
|
<th>客户编号</th>
|
|
67
67
|
<th>客户姓名</th>
|
|
68
68
|
<th>客户地址</th>
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
</template>
|
|
79
79
|
<template partial='body' :model="model">
|
|
80
80
|
<tr>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
<td style="text-align:center">
|
|
82
|
+
<input type="checkbox" v-model="$parent.$parent.$parent.selecteds" :value="row"
|
|
83
|
+
style="width: 22px;height: 22px" @click="$parent.$parent.$parent.checkbox($index, $event)">
|
|
84
|
+
</td>
|
|
85
85
|
<th style="text-align:center">{{ row.f_userinfo_code }}</th>
|
|
86
86
|
<th style="text-align:center">{{ row.f_user_name }}</th>
|
|
87
87
|
<th style="text-align:center">{{ row.f_address }}</th>
|
|
@@ -236,7 +236,7 @@ export default {
|
|
|
236
236
|
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
237
237
|
this.row = _row.data[0]
|
|
238
238
|
this.row.id = row.id
|
|
239
|
-
this.invoice_show_gas = this.row.f_collection_type
|
|
239
|
+
this.invoice_show_gas = this.row.f_collection_type === '按气量' ? '是' : '否'
|
|
240
240
|
if (!this.row.f_taxpayer_id) {
|
|
241
241
|
this.row.f_taxpayer_id = this.row.f_idnumber
|
|
242
242
|
}
|
|
@@ -273,7 +273,7 @@ export default {
|
|
|
273
273
|
}
|
|
274
274
|
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
275
275
|
this.row = row.data[0]
|
|
276
|
-
this.invoice_show_gas = this.row.f_collection_type
|
|
276
|
+
this.invoice_show_gas = this.row.f_collection_type === '按气量' ? '是' : '否'
|
|
277
277
|
if (!this.row.f_taxpayer_id) {
|
|
278
278
|
this.row.f_taxpayer_id = this.row.f_idnumber
|
|
279
279
|
}
|
|
@@ -237,7 +237,7 @@ export default {
|
|
|
237
237
|
this.row = _row.data[0]
|
|
238
238
|
this.row.id = row.id
|
|
239
239
|
this.selecteds = [{id: row.id}]
|
|
240
|
-
this.invoice_show_gas = this.row.f_collection_type
|
|
240
|
+
this.invoice_show_gas = this.row.f_collection_type === '按气量' ? '是' : '否'
|
|
241
241
|
if (!this.row.f_taxpayer_id) {
|
|
242
242
|
this.row.f_taxpayer_id = this.row.f_idnumber
|
|
243
243
|
}
|
|
@@ -247,9 +247,6 @@ export default {
|
|
|
247
247
|
if (!this.row.f_address_phone) {
|
|
248
248
|
this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
|
|
249
249
|
}
|
|
250
|
-
if (!this.row.f_email) {
|
|
251
|
-
this.row.f_email = this.row.f_email
|
|
252
|
-
}
|
|
253
250
|
this.eticket_msg = true
|
|
254
251
|
},
|
|
255
252
|
async open_eTicket () {
|
|
@@ -41,6 +41,16 @@
|
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
43
|
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
44
|
+
<div class="form-group col-sm-3">
|
|
45
|
+
<label class="font_normal_body">公 司</label>
|
|
46
|
+
<res-select :initresid='$parent.$parent.curorgid'
|
|
47
|
+
@res-select="$parent.$parent.getorg"
|
|
48
|
+
v-model="$parent.$parent.f_filialeid"
|
|
49
|
+
class="select select_list"
|
|
50
|
+
restype='organization'
|
|
51
|
+
style="width: 60%">
|
|
52
|
+
</res-select>
|
|
53
|
+
</div>
|
|
44
54
|
<div class="form-group col-sm-3">
|
|
45
55
|
<label class="font_normal_body">用户状态</label>
|
|
46
56
|
<v-select id="f_whether"
|
|
@@ -342,6 +352,7 @@
|
|
|
342
352
|
meterbrands: [{label: '全部', value: ''}],
|
|
343
353
|
getsendType: this.$appdata.getParam('短信类型'),
|
|
344
354
|
msg: '',
|
|
355
|
+
curorgid: [this.$login.f.orgid],
|
|
345
356
|
ids: [],
|
|
346
357
|
pages: [],
|
|
347
358
|
msg_old: '',
|
|
@@ -360,6 +371,7 @@
|
|
|
360
371
|
label: '全部',
|
|
361
372
|
value: ''
|
|
362
373
|
}, ...this.$appdata.getParam('用气性质')] : [],
|
|
374
|
+
f_filialeid:[],
|
|
363
375
|
f_whether: '全部',
|
|
364
376
|
pcdslist: [],
|
|
365
377
|
isFirst: true
|
|
@@ -445,6 +457,10 @@
|
|
|
445
457
|
hidden () {
|
|
446
458
|
this.criteriaShow = !this.criteriaShow
|
|
447
459
|
},
|
|
460
|
+
getorg (val) {
|
|
461
|
+
this.f_orgid = this.$login.convertToIn(val)
|
|
462
|
+
this.f_filialeid = val
|
|
463
|
+
},
|
|
448
464
|
closeEdit () {
|
|
449
465
|
this.allshow2 = false
|
|
450
466
|
},
|
|
@@ -537,7 +553,7 @@
|
|
|
537
553
|
console.log('args1:', args)
|
|
538
554
|
args.condition = `${args.condition} and f_user_state = '正常'`
|
|
539
555
|
args.condition = `${args.condition} and f_orgid = '${Vue.$login.f.orgid}'`
|
|
540
|
-
console.log('args.model', args.model)
|
|
556
|
+
// console.log('args.model', args.model)
|
|
541
557
|
let val = '1=1'
|
|
542
558
|
if (args.model.f_send_type && args.model.f_send_type.toString() !== '') {
|
|
543
559
|
val += ` and f_send_type = '${args.model.f_send_type}'`
|
|
@@ -548,6 +564,19 @@
|
|
|
548
564
|
if (args.model.endDate1 && args.model.endDate1.toString() !== '') {
|
|
549
565
|
val += ` and f_createdate <= '${args.model.endDate1}'`
|
|
550
566
|
}
|
|
567
|
+
if(this.f_filialeid && this.f_filialeid.length <= 1){
|
|
568
|
+
val += ` and f_filialeid in ('${this.f_filialeid.toString()}')`
|
|
569
|
+
}
|
|
570
|
+
if(this.f_filialeid && this.f_filialeid.length > 1){
|
|
571
|
+
let str = this.f_filialeid.reduce((res,item,index)=>{
|
|
572
|
+
if(index < this.f_filialeid.length-1)
|
|
573
|
+
return res+`'${item}',`
|
|
574
|
+
if(index = this.f_filialeid.length-1)
|
|
575
|
+
return res+`'${item}'`
|
|
576
|
+
},'')
|
|
577
|
+
val += ` and f_filialeid in (${str})`
|
|
578
|
+
}
|
|
579
|
+
console.log(args.condition, args.model,val);
|
|
551
580
|
this.model.search(args.condition, args.model,val)
|
|
552
581
|
if (this.isFirst) {
|
|
553
582
|
this.isFirst = false
|
|
@@ -64,16 +64,20 @@ export default {
|
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @param id 收费id
|
|
67
|
-
* @param
|
|
67
|
+
* @param model
|
|
68
|
+
* @param f_charge_type
|
|
69
|
+
* @param retry
|
|
70
|
+
* @param is_tax
|
|
71
|
+
* @param invoice_type
|
|
68
72
|
* @returns {Promise<void>} 如果查到返回url
|
|
69
73
|
*/
|
|
70
|
-
async openETicket (id, model, f_charge_type, is_tax, invoice_type) {
|
|
74
|
+
async openETicket (id, model, f_charge_type, retry = false, is_tax, invoice_type) {
|
|
71
75
|
console.log('>>> f_invoice_type', invoice_type)
|
|
72
76
|
try {
|
|
73
77
|
let result = await axios.post('/invoice/rs/logic/getInvoice', Object.assign({
|
|
74
78
|
id,
|
|
75
79
|
f_charge_type,
|
|
76
|
-
retry
|
|
80
|
+
retry,
|
|
77
81
|
isTax: is_tax === '不征税' ? 0 : 1,
|
|
78
82
|
invoice_kind: invoice_type,
|
|
79
83
|
f_buy_openbank: model.f_paper_account,
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto basic-main" style="height:95%">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row">
|
|
7
|
+
<res-select-group :show-component="['company','department', 'operator']" :initres="$parent.$parent.initres"
|
|
8
|
+
@re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
9
|
+
<div class="form-group col-sm-2">
|
|
10
|
+
<label class="font_normal_body">客户编号</label>
|
|
11
|
+
<input type="text" class="form-control" v-model="model.f_userinfo_code" style="width:60%"
|
|
12
|
+
condition="f_userinfo_code = '{}' " placeholder="客户编号"
|
|
13
|
+
>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="form-group col-sm-2">
|
|
16
|
+
<label class="font_normal_body">用户姓名</label>
|
|
17
|
+
<input type="text" class="form-control" v-model="model.f_user_name" style="width:60%"
|
|
18
|
+
condition="f_user_name = '{}'" placeholder="用户姓名"
|
|
19
|
+
>
|
|
20
|
+
</div>
|
|
21
|
+
<div style="float: right">
|
|
22
|
+
<button class="button_search" @click="search()">查 询</button>
|
|
23
|
+
<button class="button_search" @click="$parent.$parent.open_eTicket()">开票</button>
|
|
24
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
25
|
+
:field="$parent.$parent.fields"
|
|
26
|
+
sqlurl="rs/logic/saleExport" sql-name="openSellelent"
|
|
27
|
+
template-name='发票记录导出'
|
|
28
|
+
:choose-col="true">
|
|
29
|
+
</export-excel>
|
|
30
|
+
<div
|
|
31
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
32
|
+
@click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
|
|
33
|
+
class="button_spacing"
|
|
34
|
+
style="float: right"></div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
38
|
+
<div class="form-group col-sm-2" >
|
|
39
|
+
<label class="font_normal_body">业务类型</label>
|
|
40
|
+
<v-select id="f_charge_type"
|
|
41
|
+
style="width:60%"
|
|
42
|
+
v-model="model.f_type"
|
|
43
|
+
placeholder='业务类型'
|
|
44
|
+
condition="f_type ='{}'"
|
|
45
|
+
:value.sync="model.f_type"
|
|
46
|
+
:options='$parent.$parent.chargetypes'
|
|
47
|
+
close-on-select clear-button>
|
|
48
|
+
</v-select>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="form-group col-sm-2">
|
|
51
|
+
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
52
|
+
<datepicker id="startDate" placeholder="开始日期"
|
|
53
|
+
v-model="model.startDate"
|
|
54
|
+
:value.sync="model.startDate"
|
|
55
|
+
:disabled-days-of-Week="[]"
|
|
56
|
+
condition="f_operate_date >='{}'"
|
|
57
|
+
style="width:60%"
|
|
58
|
+
>
|
|
59
|
+
</datepicker>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="form-group col-sm-2">
|
|
62
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
63
|
+
<datepicker id="endDate" placeholder="结束日期"
|
|
64
|
+
v-model="model.endDate"
|
|
65
|
+
:value.sync="model.endDate"
|
|
66
|
+
:disabled-days-of-Week="[]"
|
|
67
|
+
condition="f_operate_date <='{}'"
|
|
68
|
+
style="width:60%"
|
|
69
|
+
>
|
|
70
|
+
</datepicker>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</criteria>
|
|
75
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
76
|
+
<template partial='head'>
|
|
77
|
+
<tr>
|
|
78
|
+
<th>序号</th>
|
|
79
|
+
<th>客户编号</th>
|
|
80
|
+
<th>用户姓名</th>
|
|
81
|
+
<th>用户地址</th>
|
|
82
|
+
<th>气量</th>
|
|
83
|
+
<th>应交金额</th>
|
|
84
|
+
<th>实收金额</th>
|
|
85
|
+
<th>收费类型</th>
|
|
86
|
+
<th>收费时间</th>
|
|
87
|
+
<th>操作</th>
|
|
88
|
+
</tr>
|
|
89
|
+
</template>
|
|
90
|
+
<template partial='body' >
|
|
91
|
+
<td style="text-align:center">{{$index+1}}</td>
|
|
92
|
+
<td style="text-align:center">{{row.f_userinfo_code}}</td>
|
|
93
|
+
<td style="text-align:center">{{row.f_user_name}}</td>
|
|
94
|
+
<td style="text-align:center">{{row.f_address}}</td>
|
|
95
|
+
<td style="text-align:center">{{row.f_pregas}}</td>
|
|
96
|
+
<td style="text-align:center">{{row.f_preamount}}</td>
|
|
97
|
+
<td style="text-align:center">{{row.f_collection}}</td>
|
|
98
|
+
<td style="text-align:center">{{row.f_type}}</td>
|
|
99
|
+
<td style="text-align:center">{{row.f_operate_date}}</td>
|
|
100
|
+
<td>
|
|
101
|
+
<button class="btn btn-link" @click="$parent.$parent.$parent.kp(row)">开具发票</button>
|
|
102
|
+
</td>
|
|
103
|
+
</template>
|
|
104
|
+
<template partial='foot'></template>
|
|
105
|
+
</data-grid>
|
|
106
|
+
</criteria-paged>
|
|
107
|
+
</div>
|
|
108
|
+
<modal :show.sync="eticket_msg" v-ref:modal large backdrop="false" :width="900">
|
|
109
|
+
<header slot="modal-header" class="modal-header">
|
|
110
|
+
<button type="button" class="close" @click="eticket_msg = false"><span>×</span></button>
|
|
111
|
+
<h4 class="modal-title">发票信息</h4>
|
|
112
|
+
</header>
|
|
113
|
+
<article slot="modal-body" class="modal-body">
|
|
114
|
+
<div class="auto select-overspread form-horizontal">
|
|
115
|
+
<div class="row auto">
|
|
116
|
+
<div class="col-sm-6 form-group form-input-group" :class="[!row.f_paper_name ? 'has-error' : '']">
|
|
117
|
+
<label class="control-label">开票名称:</label>
|
|
118
|
+
<input class="form-control col-sm-2"
|
|
119
|
+
v-model="row.f_paper_name" placeholder="开票名称">
|
|
120
|
+
</div>
|
|
121
|
+
<div class="col-sm-6 form-group form-input-group" :class="[!invoice_is_pax ? 'has-error' : '']">
|
|
122
|
+
<nobr class="col-sm-4"><label class="control-label">是否征税:</label></nobr>
|
|
123
|
+
<v-select v-model="invoice_is_pax"
|
|
124
|
+
placeholder='请选择'
|
|
125
|
+
:value.sync="invoice_is_pax"
|
|
126
|
+
close-on-select
|
|
127
|
+
:width="60"
|
|
128
|
+
:value-single="true"
|
|
129
|
+
:search="false"
|
|
130
|
+
:options='is_pax' clear-button>
|
|
131
|
+
</v-select>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="col-sm-6 form-group form-input-group" :class="[!row.f_paper_type || !row.f_paper_type === '' ? 'has-error' : '']">
|
|
134
|
+
<label class="control-label">发票种类:</label>
|
|
135
|
+
<v-select v-model="row.f_paper_type"
|
|
136
|
+
placeholder='请选择'
|
|
137
|
+
:value.sync="row.f_paper_type"
|
|
138
|
+
close-on-select
|
|
139
|
+
:width="60"
|
|
140
|
+
:value-single="true"
|
|
141
|
+
:search="false"
|
|
142
|
+
:options='invoice_types' clear-button>
|
|
143
|
+
</v-select>
|
|
144
|
+
</div>
|
|
145
|
+
<div class="col-sm-12 form-group form-input-group">
|
|
146
|
+
<label class="control-label">开户行及账号:</label>
|
|
147
|
+
<input class="form-control col-sm-2"
|
|
148
|
+
v-model="row.f_paper_account" placeholder="购方开户行及账号">
|
|
149
|
+
</div>
|
|
150
|
+
<div class="col-sm-12 form-group form-input-group" >
|
|
151
|
+
<label class="control-label">纳税人识别号:</label>
|
|
152
|
+
<input class="form-control col-sm-2"
|
|
153
|
+
v-model="row.f_taxpayer_id" placeholder="纳税人识别号">
|
|
154
|
+
</div>
|
|
155
|
+
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_address_phone ? 'has-error' : '']">
|
|
156
|
+
<label class="control-label">开票地址电话:</label>
|
|
157
|
+
<input class="form-control col-sm-2"
|
|
158
|
+
v-model="row.f_address_phone" placeholder="开票地址">
|
|
159
|
+
</div>
|
|
160
|
+
<div class="col-sm-12 form-group form-input-group">
|
|
161
|
+
<label class="control-label">邮箱推送:</label>
|
|
162
|
+
<input class="form-control col-sm-2"
|
|
163
|
+
v-model="row.f_email" placeholder="邮箱推送">
|
|
164
|
+
</div>
|
|
165
|
+
<div class="col-sm-12 form-group form-input-group">
|
|
166
|
+
<label class="control-label">备注:</label>
|
|
167
|
+
<input class="form-control col-sm-2"
|
|
168
|
+
v-model="row.f_remarks" placeholder="备注">
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
</article>
|
|
173
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
174
|
+
<button type="button" class="btn button_search"
|
|
175
|
+
:disabled="!(row.f_paper_name&&row.f_paper_type&&invoice_is_pax&&row.f_paper_type!== '')"
|
|
176
|
+
@click='confirm'>确认开票
|
|
177
|
+
</button>
|
|
178
|
+
</footer>
|
|
179
|
+
</modal>
|
|
180
|
+
<ticket-print :show="eticket_show" @toggle="eticket_toggle" v-ref:eticketbill></ticket-print>
|
|
181
|
+
</template>
|
|
182
|
+
|
|
183
|
+
<script>
|
|
184
|
+
/**
|
|
185
|
+
*发票冲红管理
|
|
186
|
+
*/
|
|
187
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
188
|
+
import Vue from 'vue'
|
|
189
|
+
export default {
|
|
190
|
+
title: '结算开票',
|
|
191
|
+
data () {
|
|
192
|
+
return {
|
|
193
|
+
criteriaShow: false,
|
|
194
|
+
f_filialeids: Vue.$login.f.orgids,
|
|
195
|
+
model: new PagedList('rs/sql/openSellelent', 50, {}),
|
|
196
|
+
f_outlets: Vue.$login.f.f_parentname,
|
|
197
|
+
f_filiale: Vue.$login.f.f_fengongsi,
|
|
198
|
+
f_operator: Vue.$login.f.name,
|
|
199
|
+
f_orgstr: Vue.$login.f.orgpathstr,
|
|
200
|
+
invoice_types: this.$appdata.getParam('发票种类'),
|
|
201
|
+
invoice_is_pax: '征税',
|
|
202
|
+
is_pax: [{label: '征税', value: '征税'}, {label: '不征税', value: '不征税'}],
|
|
203
|
+
selecteds: [],
|
|
204
|
+
eticket_show: false,
|
|
205
|
+
eticket_msg: false,
|
|
206
|
+
invoice_show_gas: '否',
|
|
207
|
+
show_gas: [{label: '是', value: '是'}, {label: '否', value: '否'}],
|
|
208
|
+
row: {},
|
|
209
|
+
disabled: false,
|
|
210
|
+
printstyle: this.$appdata.getParam('打印电子格式') ? this.$appdata.getParam('打印电子格式') : [{label: '电子发票', value: '电子发票'}],
|
|
211
|
+
mid: [{label: '全部', value: ''}, {label: '是', value: ' > 0 '}, {label: '否', value: ' is null'}],
|
|
212
|
+
initres: {
|
|
213
|
+
org: [this.$login.f.orgid],
|
|
214
|
+
dep: [],
|
|
215
|
+
user: []
|
|
216
|
+
},
|
|
217
|
+
fields: {
|
|
218
|
+
'f_userinfo_code': '客户编号',
|
|
219
|
+
'f_user_name': '客户姓名',
|
|
220
|
+
'f_address': '用户地址',
|
|
221
|
+
'f_user_type': '用户类型',
|
|
222
|
+
'f_gasproperties': '用气性质',
|
|
223
|
+
'f_collection': '实收金额',
|
|
224
|
+
'f_pregas': '预购气量',
|
|
225
|
+
'f_preamount': '预购金额',
|
|
226
|
+
'f_type': '收费类型',
|
|
227
|
+
'f_bill_style': '发票类型',
|
|
228
|
+
'f_state': '收费状态',
|
|
229
|
+
'f_operate_date': '收费日期',
|
|
230
|
+
'f_payment': '付款方式',
|
|
231
|
+
'f_bill_null': '是否有票'
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
ready () {
|
|
236
|
+
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
237
|
+
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
238
|
+
},
|
|
239
|
+
methods: {
|
|
240
|
+
getRes (obj) {
|
|
241
|
+
this.orgCondtionStr = obj
|
|
242
|
+
},
|
|
243
|
+
async kp (row) {
|
|
244
|
+
let HttpReset = new HttpResetClass()
|
|
245
|
+
let _row = await HttpReset.load('POST', 'rs/sql/sale_getUser', {
|
|
246
|
+
data: {
|
|
247
|
+
orderitem: 'f_userinfo_code',
|
|
248
|
+
condition: `f_userinfo_code = '${row.f_userinfo_code}' and u.f_orgid = '${this.$login.f.orgid}'`
|
|
249
|
+
}
|
|
250
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
251
|
+
this.row = _row.data[0]
|
|
252
|
+
this.row.id = row.id
|
|
253
|
+
this.row.f_type = row.f_type
|
|
254
|
+
this.invoice_show_gas = this.row.f_collection_type == '按气量' ? '是' : '否'
|
|
255
|
+
if (!this.row.f_taxpayer_id) {
|
|
256
|
+
this.row.f_taxpayer_id = this.row.f_idnumber
|
|
257
|
+
}
|
|
258
|
+
if (!this.row.f_paper_name) {
|
|
259
|
+
this.row.f_paper_name = this.row.f_user_name
|
|
260
|
+
}
|
|
261
|
+
if (!this.row.f_address_phone) {
|
|
262
|
+
this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
|
|
263
|
+
}
|
|
264
|
+
if (!this.row.f_email) {
|
|
265
|
+
this.row.f_email = this.row.f_email
|
|
266
|
+
}
|
|
267
|
+
this.eticket_msg = true
|
|
268
|
+
},
|
|
269
|
+
closeEticket () {
|
|
270
|
+
this.eticket_msg = false
|
|
271
|
+
this.disabled = false
|
|
272
|
+
},
|
|
273
|
+
getorg (val) {
|
|
274
|
+
this.f_orgid = this.$login.convertToIn(val)
|
|
275
|
+
this.f_filialeids = val[0]
|
|
276
|
+
},
|
|
277
|
+
cancel () {
|
|
278
|
+
this.show = false
|
|
279
|
+
this.info = {}
|
|
280
|
+
},
|
|
281
|
+
async open_eTicket () {
|
|
282
|
+
if (this.selecteds.length > 1) {
|
|
283
|
+
this.$showAlert('选中条数大于一条,请重新修改!!', 'warning', 2000)
|
|
284
|
+
return
|
|
285
|
+
}
|
|
286
|
+
let HttpReset = new HttpResetClass()
|
|
287
|
+
let row = await HttpReset.load('POST', 'rs/sql/sale_getUser', {
|
|
288
|
+
data: {
|
|
289
|
+
orderitem: 'f_userinfo_code',
|
|
290
|
+
condition: `f_userinfo_code = '${[...new Set(this.selecteds.map(item => item.f_userinfo_code))][0]}' and u.f_orgid = '${this.$login.f.orgid}'`
|
|
291
|
+
}
|
|
292
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
293
|
+
this.row = row.data[0]
|
|
294
|
+
this.invoice_show_gas = this.row.f_collection_type === '按气量' ? '是' : '否'
|
|
295
|
+
if (!this.row.f_taxpayer_id) {
|
|
296
|
+
this.row.f_taxpayer_id = this.row.f_idnumber
|
|
297
|
+
}
|
|
298
|
+
if (!this.row.f_paper_name) {
|
|
299
|
+
this.row.f_paper_name = this.row.f_user_name
|
|
300
|
+
}
|
|
301
|
+
if (!this.row.f_address_phone) {
|
|
302
|
+
this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
|
|
303
|
+
}
|
|
304
|
+
if (this.selecteds.map(item => item.f_type).toString() == '其他收费') {
|
|
305
|
+
this.disabled = true
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
this.eticket_msg = true
|
|
309
|
+
},
|
|
310
|
+
confirm () {
|
|
311
|
+
// this.row.f_print = this.invoice_is_pax
|
|
312
|
+
this.row.invoice_is_pax = this.invoice_is_pax
|
|
313
|
+
this.eticket_msg = false
|
|
314
|
+
this.disabled = false
|
|
315
|
+
this.eticket_show = true
|
|
316
|
+
this.$refs.eticketbill.openETicket(this.row.id, this.row, this.row.f_type)
|
|
317
|
+
},
|
|
318
|
+
eticket_toggle () {
|
|
319
|
+
this.eticket_show = false
|
|
320
|
+
this.search()
|
|
321
|
+
},
|
|
322
|
+
async selfSearch (args) {
|
|
323
|
+
// if (!this.f_orgid) {
|
|
324
|
+
// this.getorg([this.$login.f.orgid])
|
|
325
|
+
// }
|
|
326
|
+
// args.condition = ` f_orgid='${this.f_filialeids}' and ${args.condition}`
|
|
327
|
+
if (!this.orgCondtionStr) {
|
|
328
|
+
args.condition = `${args.condition}` + ' and s.f_orgid = ' + this.$login.f.orgid
|
|
329
|
+
} else {
|
|
330
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
await this.model.search(args.condition, this.model)
|
|
334
|
+
this.addOrRemove(true)
|
|
335
|
+
},
|
|
336
|
+
search () {
|
|
337
|
+
this.$refs.paged.$refs.cri.search()
|
|
338
|
+
this.$dispatch('refresh')
|
|
339
|
+
},
|
|
340
|
+
addOrRemove (is) {
|
|
341
|
+
this.selecteds = []
|
|
342
|
+
if (!is) { // 添加本页所有数据到ids中
|
|
343
|
+
this.model.rows.forEach((row) => {
|
|
344
|
+
this.selecteds.push(row)
|
|
345
|
+
})
|
|
346
|
+
this.selectAll = true
|
|
347
|
+
} else { // 从ids中取消所有的数据
|
|
348
|
+
this.selecteds = []
|
|
349
|
+
this.selectAll = false
|
|
350
|
+
}
|
|
351
|
+
console.log('selectdde', this.selecteds)
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
computed: {
|
|
355
|
+
chargetypes () {
|
|
356
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费类型')]
|
|
357
|
+
},
|
|
358
|
+
getCondition () {
|
|
359
|
+
return {
|
|
360
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
|
|
361
|
+
orderitem: this.orderitem ? `${this.orderitem}` : ' f_operate_date desc'
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
watch: {
|
|
366
|
+
selecteds () {
|
|
367
|
+
console.log('框框的长度', this.selecteds.length)
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
</script>
|