sale-client 3.5.49 → 3.5.51
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 +164 -164
- package/package.json +1 -1
- package/src/components/chargeBatch/BatchCharge.vue +1 -0
- package/src/components/chargeBatch/CardList.vue +8 -7
- package/src/components/chargeBatch/ChargeGroupList.vue +4 -2
- package/src/components/chargeBatch/ChargeManageGroup.vue +1 -1
- package/src/components/chargeBatch/OweRecordQuery.vue +37 -3
- package/src/components/chargeBatch/groupRefund.vue +181 -0
- package/src/components/webMeter/paramSaveNew/ParamSetForm.vue +29 -4
- package/src/filiale/chengtou/components/FilesManage/UserGeneralInfoTest.vue +672 -0
- package/src/filiale/chengtou/plugins/FileManageService.js +388 -0
- package/src/filiale/chengtou/sale.js +6 -3
- package/src/filiale/shangluo/CardMeterCenter.vue +892 -0
- package/src/filiale/shangluo/IOTMeterCenter.vue +797 -0
- package/src/filiale/shangluo/MachineMeterCenter.vue +734 -0
- package/src/filiale/shangluo/plugins/MachineChargeService.js +119 -0
- package/src/filiale/shangluo/sale.js +2 -0
- package/src/sale.js +2 -0
package/build/dev-server.js
CHANGED
|
@@ -1,164 +1,164 @@
|
|
|
1
|
-
var express = require('express')
|
|
2
|
-
var webpack = require('webpack')
|
|
3
|
-
var config = require('./webpack.dev.conf')
|
|
4
|
-
var proxyMiddleware = require('http-proxy-middleware')
|
|
5
|
-
// var httpProxy = require('http-proxy')
|
|
6
|
-
|
|
7
|
-
var app = express()
|
|
8
|
-
var compiler = webpack(config)
|
|
9
|
-
// var proxy = httpProxy.createProxyServer()
|
|
10
|
-
|
|
11
|
-
// Define HTTP proxies to your custom API backend
|
|
12
|
-
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
-
var bendi = 'http://
|
|
14
|
-
// 公司测试服务
|
|
15
|
-
var fuwu = 'http://
|
|
16
|
-
// var fuwu = 'http://121.36.106.17:8400/'
|
|
17
|
-
// 铜川正式
|
|
18
|
-
// var fuwu = 'http://61.134.55.234:9999/'
|
|
19
|
-
// 铜川测试
|
|
20
|
-
// var fuwu = 'http://61.134.55.234:9999/'
|
|
21
|
-
// var fuwu = 'http://60.222.250.39:8300/'
|
|
22
|
-
// 韶关
|
|
23
|
-
// var fuwu = 'http://119.146.1.106:8300/'
|
|
24
|
-
// 巩义测试服务
|
|
25
|
-
// var fuwu = 'http://192.168.0.227:8400'
|
|
26
|
-
// 燎原测试服务
|
|
27
|
-
// var fuwu = 'http://121.41.19.238:8400 '
|
|
28
|
-
// var fuwu = 'http://121.41.19.238:9001/'
|
|
29
|
-
|
|
30
|
-
// var fuwu = 'http://139.214.92.34:8301/'
|
|
31
|
-
|
|
32
|
-
var proxyTable = {
|
|
33
|
-
'/rs/logic/saleExport': {
|
|
34
|
-
target: fuwu
|
|
35
|
-
},
|
|
36
|
-
'/rs/logic/saleGetExportProgress': {
|
|
37
|
-
target: fuwu
|
|
38
|
-
},
|
|
39
|
-
'/rs/file': {
|
|
40
|
-
target: fuwu
|
|
41
|
-
},
|
|
42
|
-
'/files': {
|
|
43
|
-
target: fuwu
|
|
44
|
-
},
|
|
45
|
-
// 查找资源服务数据
|
|
46
|
-
'/rs/search': {
|
|
47
|
-
target: fuwu
|
|
48
|
-
},
|
|
49
|
-
// 查找资源服务数据
|
|
50
|
-
'/rs/logic/getLogin': {
|
|
51
|
-
target: fuwu
|
|
52
|
-
},
|
|
53
|
-
// 查找资源服务数据
|
|
54
|
-
'/rs/logic/getInitData': {
|
|
55
|
-
target: fuwu
|
|
56
|
-
},
|
|
57
|
-
'/rs/logic/getSaleInitData': {
|
|
58
|
-
target: fuwu
|
|
59
|
-
},
|
|
60
|
-
'/invoice': {
|
|
61
|
-
target: fuwu
|
|
62
|
-
},
|
|
63
|
-
// 用户登录服务地址
|
|
64
|
-
'/rs/user': {
|
|
65
|
-
target: fuwu
|
|
66
|
-
},
|
|
67
|
-
'/rs/path/getParams': {
|
|
68
|
-
target: fuwu
|
|
69
|
-
},
|
|
70
|
-
'/rs/data': {
|
|
71
|
-
target: fuwu
|
|
72
|
-
},
|
|
73
|
-
'/rs/license': {
|
|
74
|
-
target: fuwu
|
|
75
|
-
},
|
|
76
|
-
'/rs/db': {
|
|
77
|
-
target: fuwu
|
|
78
|
-
},
|
|
79
|
-
'/excel': {
|
|
80
|
-
target: fuwu
|
|
81
|
-
},
|
|
82
|
-
'/rs/config': {
|
|
83
|
-
target: fuwu
|
|
84
|
-
},
|
|
85
|
-
'/rs/sql/getLicenseById': {
|
|
86
|
-
target: fuwu
|
|
87
|
-
},
|
|
88
|
-
'/rs/sql/manage_getarealist': {
|
|
89
|
-
target: fuwu
|
|
90
|
-
},
|
|
91
|
-
'/rs/sql/manage_getstreetlist': {
|
|
92
|
-
target: fuwu
|
|
93
|
-
},
|
|
94
|
-
'/rs/report': {
|
|
95
|
-
target: 'http://121.36.106.17:8400/'
|
|
96
|
-
},
|
|
97
|
-
'/rs/vue': {
|
|
98
|
-
target: fuwu
|
|
99
|
-
},
|
|
100
|
-
'/webmeter': {
|
|
101
|
-
target:
|
|
102
|
-
},
|
|
103
|
-
'/rs': {
|
|
104
|
-
// target: 'http://192.168.30.63:8081/'
|
|
105
|
-
// target: 'http://121.36.106.17:8400/'
|
|
106
|
-
target: bendi
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
111
|
-
publicPath: config.output.publicPath,
|
|
112
|
-
stats: {
|
|
113
|
-
colors: true,
|
|
114
|
-
chunks: false
|
|
115
|
-
}
|
|
116
|
-
})
|
|
117
|
-
|
|
118
|
-
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
119
|
-
// force page reload when html-webpack-plugin template changes
|
|
120
|
-
compiler.plugin('compilation', function (compilation) {
|
|
121
|
-
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
122
|
-
hotMiddleware.publish({action: 'reload'})
|
|
123
|
-
cb()
|
|
124
|
-
})
|
|
125
|
-
})
|
|
126
|
-
|
|
127
|
-
// proxy api requests
|
|
128
|
-
Object.keys(proxyTable).forEach(function (context) {
|
|
129
|
-
var options = proxyTable[context]
|
|
130
|
-
if (typeof options === 'string') {
|
|
131
|
-
options = {target: options}
|
|
132
|
-
}
|
|
133
|
-
app.use(proxyMiddleware(context, options))
|
|
134
|
-
})
|
|
135
|
-
|
|
136
|
-
// handle fallback for HTML5 history API
|
|
137
|
-
app.use(require('connect-history-api-fallback')())
|
|
138
|
-
// app.use(function (req, res, next) {
|
|
139
|
-
// res.header('Access-Control-Allow-Origin', '*')
|
|
140
|
-
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
141
|
-
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
142
|
-
// res.header('X-Powered-By', '3,2,1')
|
|
143
|
-
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
144
|
-
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
145
|
-
// next()
|
|
146
|
-
// })
|
|
147
|
-
|
|
148
|
-
// serve webpack bundle output
|
|
149
|
-
app.use(devMiddleware)
|
|
150
|
-
|
|
151
|
-
// enable hot-reload and state-preserving
|
|
152
|
-
// compilation error display
|
|
153
|
-
app.use(hotMiddleware)
|
|
154
|
-
|
|
155
|
-
// serve pure static assets
|
|
156
|
-
app.use('/static', express.static('./static'))
|
|
157
|
-
|
|
158
|
-
module.exports = app.listen(8089, function (err) {
|
|
159
|
-
if (err) {
|
|
160
|
-
console.log(err)
|
|
161
|
-
return
|
|
162
|
-
}
|
|
163
|
-
console.log('Listening at http://localhost:8089')
|
|
164
|
-
})
|
|
1
|
+
var express = require('express')
|
|
2
|
+
var webpack = require('webpack')
|
|
3
|
+
var config = require('./webpack.dev.conf')
|
|
4
|
+
var proxyMiddleware = require('http-proxy-middleware')
|
|
5
|
+
// var httpProxy = require('http-proxy')
|
|
6
|
+
|
|
7
|
+
var app = express()
|
|
8
|
+
var compiler = webpack(config)
|
|
9
|
+
// var proxy = httpProxy.createProxyServer()
|
|
10
|
+
|
|
11
|
+
// Define HTTP proxies to your custom API backend
|
|
12
|
+
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
+
var bendi = 'http://39.108.82.124:8400/', bendi1 = 'http://121.36.106.17:8400/'
|
|
14
|
+
// 公司测试服务
|
|
15
|
+
var fuwu = 'http://39.108.82.124:8400/'
|
|
16
|
+
// var fuwu = 'http://121.36.106.17:8400/'
|
|
17
|
+
// 铜川正式
|
|
18
|
+
// var fuwu = 'http://61.134.55.234:9999/'
|
|
19
|
+
// 铜川测试
|
|
20
|
+
// var fuwu = 'http://61.134.55.234:9999/'
|
|
21
|
+
// var fuwu = 'http://60.222.250.39:8300/'
|
|
22
|
+
// 韶关
|
|
23
|
+
// var fuwu = 'http://119.146.1.106:8300/'
|
|
24
|
+
// 巩义测试服务
|
|
25
|
+
// var fuwu = 'http://192.168.0.227:8400'
|
|
26
|
+
// 燎原测试服务
|
|
27
|
+
// var fuwu = 'http://121.41.19.238:8400 '
|
|
28
|
+
// var fuwu = 'http://121.41.19.238:9001/'
|
|
29
|
+
|
|
30
|
+
// var fuwu = 'http://139.214.92.34:8301/'
|
|
31
|
+
|
|
32
|
+
var proxyTable = {
|
|
33
|
+
'/rs/logic/saleExport': {
|
|
34
|
+
target: fuwu
|
|
35
|
+
},
|
|
36
|
+
'/rs/logic/saleGetExportProgress': {
|
|
37
|
+
target: fuwu
|
|
38
|
+
},
|
|
39
|
+
'/rs/file': {
|
|
40
|
+
target: fuwu
|
|
41
|
+
},
|
|
42
|
+
'/files': {
|
|
43
|
+
target: fuwu
|
|
44
|
+
},
|
|
45
|
+
// 查找资源服务数据
|
|
46
|
+
'/rs/search': {
|
|
47
|
+
target: fuwu
|
|
48
|
+
},
|
|
49
|
+
// 查找资源服务数据
|
|
50
|
+
'/rs/logic/getLogin': {
|
|
51
|
+
target: fuwu
|
|
52
|
+
},
|
|
53
|
+
// 查找资源服务数据
|
|
54
|
+
'/rs/logic/getInitData': {
|
|
55
|
+
target: fuwu
|
|
56
|
+
},
|
|
57
|
+
'/rs/logic/getSaleInitData': {
|
|
58
|
+
target: fuwu
|
|
59
|
+
},
|
|
60
|
+
'/invoice': {
|
|
61
|
+
target: fuwu
|
|
62
|
+
},
|
|
63
|
+
// 用户登录服务地址
|
|
64
|
+
'/rs/user': {
|
|
65
|
+
target: fuwu
|
|
66
|
+
},
|
|
67
|
+
'/rs/path/getParams': {
|
|
68
|
+
target: fuwu
|
|
69
|
+
},
|
|
70
|
+
'/rs/data': {
|
|
71
|
+
target: fuwu
|
|
72
|
+
},
|
|
73
|
+
'/rs/license': {
|
|
74
|
+
target: fuwu
|
|
75
|
+
},
|
|
76
|
+
'/rs/db': {
|
|
77
|
+
target: fuwu
|
|
78
|
+
},
|
|
79
|
+
'/excel': {
|
|
80
|
+
target: fuwu
|
|
81
|
+
},
|
|
82
|
+
'/rs/config': {
|
|
83
|
+
target: fuwu
|
|
84
|
+
},
|
|
85
|
+
'/rs/sql/getLicenseById': {
|
|
86
|
+
target: fuwu
|
|
87
|
+
},
|
|
88
|
+
'/rs/sql/manage_getarealist': {
|
|
89
|
+
target: fuwu
|
|
90
|
+
},
|
|
91
|
+
'/rs/sql/manage_getstreetlist': {
|
|
92
|
+
target: fuwu
|
|
93
|
+
},
|
|
94
|
+
'/rs/report': {
|
|
95
|
+
target: 'http://121.36.106.17:8400/'
|
|
96
|
+
},
|
|
97
|
+
'/rs/vue': {
|
|
98
|
+
target: fuwu
|
|
99
|
+
},
|
|
100
|
+
'/webmeter': {
|
|
101
|
+
target: fuwu
|
|
102
|
+
},
|
|
103
|
+
'/rs': {
|
|
104
|
+
// target: 'http://192.168.30.63:8081/'
|
|
105
|
+
// target: 'http://121.36.106.17:8400/'
|
|
106
|
+
target: bendi
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
111
|
+
publicPath: config.output.publicPath,
|
|
112
|
+
stats: {
|
|
113
|
+
colors: true,
|
|
114
|
+
chunks: false
|
|
115
|
+
}
|
|
116
|
+
})
|
|
117
|
+
|
|
118
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
119
|
+
// force page reload when html-webpack-plugin template changes
|
|
120
|
+
compiler.plugin('compilation', function (compilation) {
|
|
121
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
122
|
+
hotMiddleware.publish({action: 'reload'})
|
|
123
|
+
cb()
|
|
124
|
+
})
|
|
125
|
+
})
|
|
126
|
+
|
|
127
|
+
// proxy api requests
|
|
128
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
129
|
+
var options = proxyTable[context]
|
|
130
|
+
if (typeof options === 'string') {
|
|
131
|
+
options = {target: options}
|
|
132
|
+
}
|
|
133
|
+
app.use(proxyMiddleware(context, options))
|
|
134
|
+
})
|
|
135
|
+
|
|
136
|
+
// handle fallback for HTML5 history API
|
|
137
|
+
app.use(require('connect-history-api-fallback')())
|
|
138
|
+
// app.use(function (req, res, next) {
|
|
139
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
140
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
141
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
142
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
143
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
144
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
145
|
+
// next()
|
|
146
|
+
// })
|
|
147
|
+
|
|
148
|
+
// serve webpack bundle output
|
|
149
|
+
app.use(devMiddleware)
|
|
150
|
+
|
|
151
|
+
// enable hot-reload and state-preserving
|
|
152
|
+
// compilation error display
|
|
153
|
+
app.use(hotMiddleware)
|
|
154
|
+
|
|
155
|
+
// serve pure static assets
|
|
156
|
+
app.use('/static', express.static('./static'))
|
|
157
|
+
|
|
158
|
+
module.exports = app.listen(8089, function (err) {
|
|
159
|
+
if (err) {
|
|
160
|
+
console.log(err)
|
|
161
|
+
return
|
|
162
|
+
}
|
|
163
|
+
console.log('Listening at http://localhost:8089')
|
|
164
|
+
})
|
package/package.json
CHANGED
|
@@ -46,10 +46,9 @@
|
|
|
46
46
|
<!-- <span class="col-sm-4">{{row.type}}</span>-->
|
|
47
47
|
<!-- </div>-->
|
|
48
48
|
<div class="row">
|
|
49
|
-
|
|
50
|
-
<span class="col-sm-
|
|
51
|
-
|
|
52
|
-
<span class="col-sm-6">{{row.type}}</span>
|
|
49
|
+
<strong :title="row.f_userinfo_code" class="col-sm-4" show-overflow-tooltip="true">{{row.f_userinfo_code.length>9?''+row.f_userinfo_code.substring(0,9)+'...':row.f_userinfo_code}}</strong>
|
|
50
|
+
<span class="col-sm-4">{{$parent.$parent.$parent.dateDes(row.f_operate_date)}}</span>
|
|
51
|
+
<span class="col-sm-4">{{row.type}}</span>
|
|
53
52
|
</div>
|
|
54
53
|
</div>
|
|
55
54
|
<div class="col-sm-1" v-if="$parent.$parent.$parent.isOperate" title="涉及权限:冲正权限">
|
|
@@ -75,7 +74,9 @@
|
|
|
75
74
|
v-if="(row.type === '批量收费'||row.type === '团体收费' || row.type === '迁表' || row.type === '拆表' || row.type === '物联网开户' || row.type === '物联网收费' || row.type === '其他收费'|| row.type === '气费减免'||row.type === '维修收费' || row.type === '过户' || row.type === '换新表' || row.type === '气表清零' || row.type === '机表收费' || row.type === '超用收费' || row.type === '其他收费' || row.type === '补卡'|| row.type === '调价补费'|| row.type=='预存缴费' || row.type==='卡表赠气'|| row.type==='物联网赠费'|| row.type==='卡表赠费'|| row.type==='物联网赠气')||row.type==='气损收费'">
|
|
76
75
|
<a @click.stop="$parent.$parent.$parent.operate('撤销', row)" href="#">撤销</a>
|
|
77
76
|
</li>
|
|
78
|
-
|
|
77
|
+
<li v-else>
|
|
78
|
+
<a href="#">暂无其他操作</a>
|
|
79
|
+
</li>
|
|
79
80
|
</ul>
|
|
80
81
|
</dropdown>
|
|
81
82
|
</div>
|
|
@@ -132,7 +133,7 @@
|
|
|
132
133
|
<advance-delivery-detail :data="row" v-if="row.type ==='卡表预交' "></advance-delivery-detail>
|
|
133
134
|
<machinemetercenter-detail :data="row" v-if="row.type === '预存缴费'"></machinemetercenter-detail>
|
|
134
135
|
<gasloss-detail :data="row" v-if="row.type === '气损收费'"></gasloss-detail>
|
|
135
|
-
<batch-charge-detail :data="row" v-if="row.type === '批量收费' || row.type === '团体收费'"></batch-charge-detail>
|
|
136
|
+
<batch-charge-detail :data="row" v-if="row.type === '批量收费' || row.type === '团体收费' || row.type === '团体退费'"></batch-charge-detail>
|
|
136
137
|
</div>
|
|
137
138
|
<div style="margin-top: 8px;background: #FFF;" v-if="!$parent.$parent.$parent.isSelected(row)">
|
|
138
139
|
<span>{{row.f_describe}}</span>
|
|
@@ -234,7 +235,7 @@
|
|
|
234
235
|
asideTitle: '用户操作',
|
|
235
236
|
row: Object,
|
|
236
237
|
comp: null,
|
|
237
|
-
operationtypes: [{label: '
|
|
238
|
+
operationtypes: [{label: '团体收费', value: '团体收费'}, {label: '团体退费', value: '团体退费'}],
|
|
238
239
|
cancel_show: false,
|
|
239
240
|
cancel_data: null,
|
|
240
241
|
paytype: this.$appdata.getParam('付款方式'),
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
sqlurl="rs/logic/saleExport" sql-name="batchOweQuery" template-name='团体欠费明细导出'>
|
|
158
158
|
</export-excel>
|
|
159
159
|
|
|
160
|
-
<owe-record-query v-if="oweShow" :f_civill_id="f_civill_id"></owe-record-query>
|
|
160
|
+
<owe-record-query v-if="oweShow" :row="row" :f_civill_id="f_civill_id"></owe-record-query>
|
|
161
161
|
</div>
|
|
162
162
|
</template>
|
|
163
163
|
|
|
@@ -195,7 +195,8 @@ export default {
|
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
197
|
defaultfield: [],
|
|
198
|
-
printModel: new PagedList('rs/sql/batchOweQuery', 20)
|
|
198
|
+
printModel: new PagedList('rs/sql/batchOweQuery', 20),
|
|
199
|
+
row: null
|
|
199
200
|
}
|
|
200
201
|
},
|
|
201
202
|
title: '档案查询',
|
|
@@ -237,6 +238,7 @@ export default {
|
|
|
237
238
|
showOwe (row) {
|
|
238
239
|
if (this.chargeToChoose) {
|
|
239
240
|
this.f_civill_id = row.id
|
|
241
|
+
this.row = row
|
|
240
242
|
this.oweShow = true
|
|
241
243
|
}
|
|
242
244
|
},
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
@click="setField('历史操作')">历史操作</a></li>
|
|
11
11
|
</ul>
|
|
12
12
|
<div class="tab-content span" style="overflow-y: auto">
|
|
13
|
-
<card-list-rewrite v-show="worktype === '历史操作'"
|
|
13
|
+
<card-list-rewrite v-show="worktype === '历史操作'" sqlurl="rs/sql/getGroupRecord" v-ref:card></card-list-rewrite>
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
@@ -43,7 +43,16 @@
|
|
|
43
43
|
</div>
|
|
44
44
|
<div class="auto" style="margin-top: 1%;">
|
|
45
45
|
<div style="height: auto" class="select-overspread">
|
|
46
|
-
<
|
|
46
|
+
<div class="form-inline" style="height: auto">
|
|
47
|
+
<div class="form-group" v-for="btn in operBtns">
|
|
48
|
+
<button :id="btn.name" type="button" style="color:black" :class="[($index === 0) ? 'btn btn-click' : 'btn btn-un-click']" @click="business(btn)" >
|
|
49
|
+
<span style="color:black">{{btn.name}}</span>
|
|
50
|
+
</button>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
<div v-show="chargeShow" style="height: auto" class="select-overspread">
|
|
54
|
+
<route v-ref:route></route>
|
|
55
|
+
</div>
|
|
47
56
|
</div>
|
|
48
57
|
</div>
|
|
49
58
|
</template>
|
|
@@ -58,10 +67,14 @@
|
|
|
58
67
|
owe: {rows: []},
|
|
59
68
|
model: {f_collection: 0},
|
|
60
69
|
civill: null,
|
|
61
|
-
chargeShow: false
|
|
70
|
+
chargeShow: false,
|
|
71
|
+
operBtns: [
|
|
72
|
+
{name: '团体缴费', value: {routeName: 'batch-charge'}},
|
|
73
|
+
{name: '余额退款', value: {routeName: 'group-refund'}}
|
|
74
|
+
]
|
|
62
75
|
}
|
|
63
76
|
},
|
|
64
|
-
props: ['searchdata', 'f_civill_id'],
|
|
77
|
+
props: ['searchdata', 'f_civill_id', 'row'],
|
|
65
78
|
ready () {
|
|
66
79
|
this.getsalerecord()
|
|
67
80
|
},
|
|
@@ -78,7 +91,28 @@
|
|
|
78
91
|
this.owe.rows = record.data.owe
|
|
79
92
|
this.model = Object.assign(this.model, record.data.model)
|
|
80
93
|
this.civill = record.data.civill
|
|
94
|
+
this.business(this.operBtns[0])
|
|
95
|
+
},
|
|
96
|
+
business (btn) {
|
|
97
|
+
// 处理按钮样式
|
|
98
|
+
this.styleChange(btn.name)
|
|
81
99
|
this.chargeShow = true
|
|
100
|
+
this.$refs.route.init(btn.value.routeName, {row: this.row, data: this.model, owe: this.owe, civill: this.civill})
|
|
101
|
+
},
|
|
102
|
+
styleChange (name) {
|
|
103
|
+
this.operBtns.forEach((res) => {
|
|
104
|
+
if (res.name === name) {
|
|
105
|
+
if (document.getElementById(res.name)) {
|
|
106
|
+
document.getElementById(res.name).style.backgroundColor = '#6aa6e2'
|
|
107
|
+
document.getElementById(res.name).style.color = 'white'
|
|
108
|
+
}
|
|
109
|
+
} else {
|
|
110
|
+
if (document.getElementById(res.name)) {
|
|
111
|
+
document.getElementById(res.name).style.backgroundColor = 'white'
|
|
112
|
+
document.getElementById(res.name).style.color = 'black'
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
})
|
|
82
116
|
}
|
|
83
117
|
},
|
|
84
118
|
watch: {
|