sale-client 3.5.199 → 3.5.201

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.
@@ -1,108 +1,108 @@
1
- const express = require('express')
2
- const webpack = require('webpack')
3
- const config = require('./webpack.dev.conf')
4
- const proxyMiddleware = require('http-proxy-middleware')
5
- const app = express()
6
- const compiler = webpack(config)
7
-
8
- // 自己改了这里不要提交 来回覆盖挺麻烦的
9
- const [local, server] = ['http://127.0.0.1:8080', 'http://192.168.50.4:8400']
10
- const port = 8089
11
-
12
- const proxyTable = {
13
- '/rs/file': {
14
- target: server
15
- },
16
- // 查找资源服务数据
17
- '/rs/search': {
18
- target: server
19
- },
20
- // 查找资源服务数据
21
- '/rs/logic/getLogin': {
22
- target: server
23
- },
24
- // 查找资源服务数据
25
- '/rs/logic/getInitData': {
26
- target: server
27
- },
28
- '/rs/logic/getSaleInitData': {
29
- target: server
30
- },
31
- // 用户登录服务地址
32
- '/rs/user': {
33
- target: server
34
- },
35
- '/rs/path': {
36
- target: server
37
- },
38
- '/rs/data': {
39
- target: server
40
- },
41
- '/rs/license': {
42
- target: server
43
- },
44
- '/rs/db': {
45
- target: server
46
- },
47
- '/excel': {
48
- target: server
49
- },
50
- '/rs/config': {
51
- target: server
52
- },
53
- '/rs/report': {
54
- target: server
55
- },
56
- '/rs/vue': {
57
- target: server
58
- },
59
- '/rs/logic': {
60
- target: local
61
- },
62
- '/rs/sql': {
63
- target: local
64
- },
65
- '/webmeter': {
66
- target: server
67
- },
68
- '/rs': {
69
- target: server,
70
- // changeOrigin: true
71
- }
72
- }
73
-
74
- const devMiddleware = require('webpack-dev-middleware')(compiler, {
75
- publicPath: config.output.publicPath,
76
- stats: {
77
- colors: true,
78
- chunks: false
79
- }
80
- })
81
-
82
- const hotMiddleware = require('webpack-hot-middleware')(compiler)
83
- compiler.plugin('compilation', function (compilation) {
84
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
85
- hotMiddleware.publish({action: 'reload'})
86
- cb()
87
- })
88
- })
89
-
90
- Object.keys(proxyTable).forEach(function (context) {
91
- let options = proxyTable[context]
92
- if (typeof options === 'string') {
93
- options = {target: options}
94
- }
95
- app.use(proxyMiddleware(context, options))
96
- })
97
- app.use(require('connect-history-api-fallback')())
98
- app.use(devMiddleware)
99
- app.use(hotMiddleware)
100
- app.use('/static', express.static('./static'))
101
-
102
- module.exports = app.listen(port, function (err) {
103
- if (err) {
104
- console.log(err)
105
- return
106
- }
107
- console.log('Listening at http://localhost:' + port)
108
- })
1
+ const express = require('express')
2
+ const webpack = require('webpack')
3
+ const config = require('./webpack.dev.conf')
4
+ const proxyMiddleware = require('http-proxy-middleware')
5
+ const app = express()
6
+ const compiler = webpack(config)
7
+
8
+ // 自己改了这里不要提交 来回覆盖挺麻烦的
9
+ const [local, server] = ['http://121.36.60.63:8800/#', 'http://121.36.60.63:8800/#']
10
+ const port = 8089
11
+
12
+ const proxyTable = {
13
+ '/rs/file': {
14
+ target: server
15
+ },
16
+ // 查找资源服务数据
17
+ '/rs/search': {
18
+ target: server
19
+ },
20
+ // 查找资源服务数据
21
+ '/rs/logic/getLogin': {
22
+ target: server
23
+ },
24
+ // 查找资源服务数据
25
+ '/rs/logic/getInitData': {
26
+ target: server
27
+ },
28
+ '/rs/logic/getSaleInitData': {
29
+ target: server
30
+ },
31
+ // 用户登录服务地址
32
+ '/rs/user': {
33
+ target: server
34
+ },
35
+ '/rs/path': {
36
+ target: server
37
+ },
38
+ '/rs/data': {
39
+ target: server
40
+ },
41
+ '/rs/license': {
42
+ target: server
43
+ },
44
+ '/rs/db': {
45
+ target: server
46
+ },
47
+ '/excel': {
48
+ target: server
49
+ },
50
+ '/rs/config': {
51
+ target: server
52
+ },
53
+ '/rs/report': {
54
+ target: server
55
+ },
56
+ '/rs/vue': {
57
+ target: server
58
+ },
59
+ '/rs/logic': {
60
+ target: local
61
+ },
62
+ '/rs/sql': {
63
+ target: local
64
+ },
65
+ '/webmeter': {
66
+ target: server
67
+ },
68
+ '/rs': {
69
+ target: server,
70
+ // changeOrigin: true
71
+ }
72
+ }
73
+
74
+ const devMiddleware = require('webpack-dev-middleware')(compiler, {
75
+ publicPath: config.output.publicPath,
76
+ stats: {
77
+ colors: true,
78
+ chunks: false
79
+ }
80
+ })
81
+
82
+ const hotMiddleware = require('webpack-hot-middleware')(compiler)
83
+ compiler.plugin('compilation', function (compilation) {
84
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
85
+ hotMiddleware.publish({action: 'reload'})
86
+ cb()
87
+ })
88
+ })
89
+
90
+ Object.keys(proxyTable).forEach(function (context) {
91
+ let options = proxyTable[context]
92
+ if (typeof options === 'string') {
93
+ options = {target: options}
94
+ }
95
+ app.use(proxyMiddleware(context, options))
96
+ })
97
+ app.use(require('connect-history-api-fallback')())
98
+ app.use(devMiddleware)
99
+ app.use(hotMiddleware)
100
+ app.use('/static', express.static('./static'))
101
+
102
+ module.exports = app.listen(port, function (err) {
103
+ if (err) {
104
+ console.log(err)
105
+ return
106
+ }
107
+ console.log('Listening at http://localhost:' + port)
108
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.199",
3
+ "version": "3.5.201",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -72,7 +72,7 @@
72
72
  "karma-sourcemap-loader": "^0.3.7",
73
73
  "karma-spec-reporter": "0.0.31",
74
74
  "karma-webpack": "^2.0.2",
75
- "ldap-clients": "3.0.55-test-1",
75
+ "ldap-clients": "3.0.7",
76
76
  "less": "^2.7.3",
77
77
  "manage-client": "3.1.8-88",
78
78
  "mkdirp": "^0.5.1",
@@ -87,7 +87,7 @@
87
87
  "sinon-chai": "^2.8.0",
88
88
  "style": "0.0.3",
89
89
  "style-loader": "^0.20.3",
90
- "system-clients": "3.2.54-test-1",
90
+ "system-clients": "3.2.25",
91
91
  "url-loader": "^0.5.7",
92
92
  "vue-client": "1.24.76",
93
93
  "vue-clipboard2": "0.3.1",
@@ -177,13 +177,24 @@
177
177
  /**
178
178
  * 发票补打
179
179
  */
180
- let reprintGen = function *(self, row) {
180
+ let reprintGen = async function* (self, row) {
181
181
  try {
182
182
  row.billUrl = self.getBillUrl(row)
183
183
  if (!row.billUrl) {
184
184
  self.$showMessage('当前操作类型暂时没有票据')
185
185
  return
186
186
  }
187
+ if (row.type === '调价预存') {
188
+ let id = await self.$resetpost('rs/sql/singleTable_OrderBy', {
189
+ data: {
190
+ items: 'f_surplus_id',
191
+ tablename: 't_sellinggas',
192
+ condition: `id = '${row.id}'`,
193
+ orderitem: 'id'
194
+ }
195
+ }, {resolveMsg: null, rejectMsg: '查询优惠信息失败'})
196
+ row.id = id.data[0].f_surplus_id
197
+ }
187
198
  row.f_bill_type = row.type
188
199
  row.f_bill_style = '普通收据'
189
200
  row.f_operator = self.$login.f.name
@@ -445,6 +456,8 @@
445
456
  }
446
457
  } else if (type === '预存缴费') {
447
458
  name = 'rs/report/pre_sell'
459
+ } else if (type === '调价预存') {
460
+ name = 'rs/report/refund_sell'
448
461
  } else if (type === '退费') {
449
462
  name = 'rs/report/refund_sell'
450
463
  } else if (type === '调价补费') {
@@ -0,0 +1,282 @@
1
+ <template>
2
+ <div class="flex-auto" style="overflow-y: scroll;height: 55%">
3
+ <validator name='v'>
4
+ <form novalidate class="form-horizontal select-overspread ">
5
+ <ul class="nav nav-tabs">
6
+ <li class="active a-tabs"><a href="#">用户拉黑</a></li>
7
+ </ul>
8
+ <div>
9
+ <div class="row">
10
+ <div class="col-sm-4 form-group" id="f_user_id">
11
+ <label for="f_userinfo_code" class="font_normal_body">表&emsp;&emsp;号</label>
12
+ <input class="input_search" style="width:60%" type="text"
13
+ v-model="model.f_meternumber" @keyup.enter="getinfo('f_meternumber')"
14
+ :disabled='isEdit' placeholder="输入表号,回车查询">
15
+ </div>
16
+ <div class="col-sm-4 form-group" id="f_user_id">
17
+ <label for="f_userinfo_code" class="font_normal_body">卡&emsp;&emsp;号</label>
18
+ <input class="input_search" style="width:60%" type="text"
19
+ v-model="model.f_card_id" @keyup.enter="getinfo('f_card_id')"
20
+ :disabled='isEdit' placeholder="输入卡号,回车查询">
21
+ </div>
22
+ <div class="col-sm-4 form-group" id="f_user_id" :class="[$v.f_userinfo_code.required ? 'has-error' : 'has-success']">
23
+ <label for="f_userinfo_code" class="font_normal_body">用户编号</label>
24
+ <input class="input_search" style="width:60%" type="text" class="input_search" style="width:60%"
25
+ v-model="model.f_userinfo_code" @keyup.enter="getinfo('f_userinfo_code')"
26
+ v-validate:f_userinfo_code='{required: true }' :disabled='isEdit' placeholder="输入编号,回车查询">
27
+ </div>
28
+ <div class="col-sm-4 form-group" id="name" :class="[$v.f_user_name.required ? 'has-error' : 'has-success']">
29
+ <label for="f_user_name" class=" font_normal_body">用户姓名</label>
30
+ <input class="input_search" style="width:60%" type="text" class="input_search" style="width:60%" v-validate:f_user_name='{required: true }'
31
+ v-model="model.f_user_name" readonly
32
+ placeholder="用户姓名">
33
+
34
+ </div>
35
+ <div class="col-sm-4 form-group" id="phone" :class="[$v.f_user_phone.required ? 'has-error' : 'has-success']">
36
+ <label for="f_user_phone" class=" font_normal_body">联系方式</label>
37
+ <input class="input_search" style="width:60%" type="text" class="input_search" style="width:60%" v-validate:f_user_phone='{required: true }'
38
+ v-model="model.f_user_phone" readonly
39
+ placeholder="联系方式">
40
+
41
+ </div>
42
+ <div class="col-sm-4 form-group" id="f_limit_times" :class="[$v.f_limit_times.required ? 'has-error' : 'has-success']">
43
+ <!-- <label for="f_limit_times" class=" font_normal_body">限购次数</label>-->
44
+ <label class="font_normal_body">限购次数</label>
45
+ <input class="input_search" style="width:60%" type="number"
46
+ v-model="model.f_limit_times" v-validate:f_limit_times='{required: true }'
47
+ placeholder="限购次数">
48
+
49
+ </div>
50
+ <div class="col-sm-2 form-group" id="f_limit">
51
+ <!-- <label for="f_limit_times" class=" font_normal_body">限购次数</label>-->
52
+ <v-select
53
+ v-model="f_limit"
54
+ :value.sync="f_limit"
55
+ :options='limites'
56
+ width="100%"
57
+ close-on-select>
58
+ </v-select>
59
+ </div>
60
+ <div class="col-sm-3 form-group" id="f_limit_gas" style="right: 3%;">
61
+ <input class="input_search" style="width:60%" type="number" v-if="f_limit=='限购气量'"
62
+ v-model="model.f_limit_value"
63
+ v-scale="[model.f_limit_value, 2]"
64
+ @click="gg()"
65
+ placeholder="限购气量">
66
+ <input class="input_search" type="number" v-if="f_limit=='限购金额'"
67
+ v-model="model.f_limit_amount"
68
+ v-scale="[model.f_limit_amount, 2]"
69
+ @click="gg()"
70
+ placeholder="限购金额">
71
+
72
+ </div>
73
+ </div>
74
+
75
+ <div class="row">
76
+ <div class="col-sm-12 form-group" id="address">
77
+ <label for="f_address" class=" font_normal_body">地&emsp;&emsp;址</label>
78
+ <input class="input_search" type="text" class="input_search" style="width:87%" v-model="model.f_address"
79
+ readonly
80
+ placeholder="地址">
81
+ </div>
82
+ <div class="col-sm-12 form-group" id="f_comments" :class="[$v.f_comments.required ? 'has-error' : 'has-success']">
83
+ <label for="f_comments" class=" font_normal_body">原&emsp;&emsp;因</label>
84
+ <input class="input_search" type="text" class="input_search" style="width:87%" v-model="model.f_comments"
85
+ placeholder="原因" v-validate:f_comments='{required: true }' >
86
+ </div>
87
+
88
+ </div>
89
+
90
+ <div style="text-align:right;height:auto;margin-top:6px;">
91
+ <button class="button_search" type="button" style="width:80px;" @click="confirm('拉黑')" v-show="!isBlackList && model.isblacklist =='false'" :disabled='!$v.valid'>
92
+ 拉黑
93
+ </button>
94
+ <button class="button_search" type="button" style="width:80px;" @click="confirm('取消拉黑')"
95
+ v-show="isBlackList || model.isblacklist =='true'" :disabled='!$v.valid'>
96
+ 取消拉黑
97
+ </button>
98
+ <button class="button_export" type="button" style="width:80px;" @click="close()">取消</button>
99
+ </div>
100
+ </div>
101
+
102
+ </form>
103
+
104
+
105
+ </validator>
106
+
107
+ </div>
108
+ </template>
109
+ <script>
110
+ import {HttpResetClass} from 'vue-client'
111
+ import Vue from 'vue'
112
+ let initGen = async function (self, val) {
113
+ // 获取低保气价
114
+ let http = new HttpResetClass()
115
+ let res = await http.load('POST', 'rs/sql/sale_getUserAndVersion', {data: { condition: `f_userinfo_code='${self.data.f_userinfo_code}'` }}, {
116
+ resolveMsg: null,
117
+ rejectMsg: null
118
+ })
119
+ console.log(res.data)
120
+ console.log('用户id:' + res.data[0].f_userinfo_id)
121
+ self.model = Object.assign({}, self.model, val)
122
+ self.model.f_userinfo_code = res.data[0].f_userinfo_code
123
+ self.model.f_meternumber = res.data[0].f_meternumber
124
+ self.model.f_card_id = res.data[0].f_card_id
125
+ self.model.f_userinfo_id = res.data[0].f_userinfo_id
126
+ self.model.f_user_phone = res.data[0].f_user_phone
127
+ self.model.f_address = res.data[0].f_address
128
+ self.model.f_user_phone = res.data[0].f_user_phone
129
+ self.model.version = res.data[0].version
130
+ self.model.f_limit_value=res.data[0].f_limit_value
131
+ self.model.f_limit_times=res.data[0].f_limit_times
132
+ self.model.f_limit_amount=res.data[0].f_limit_amount
133
+ }
134
+
135
+ export default {
136
+ title: '黑名单',
137
+ props: {
138
+ f_islow_income: {
139
+ type: String,
140
+ default: '1'
141
+ },
142
+ data: {
143
+ type: Object
144
+ }
145
+ },
146
+ data () {
147
+ return {
148
+ pricename: [{value: '', label: ''}],
149
+ model: {
150
+ f_userinfo_code: '',
151
+ f_userinfo_id: '',
152
+ f_user_name: '',
153
+ f_address: '',
154
+ f_user_phone: '',
155
+ f_comments: '',
156
+ version: null,
157
+ // 限购次数
158
+ f_limit_times: '',
159
+ // 限购气量
160
+ f_limit_value: '',
161
+ // 限购金额
162
+ f_limit_amount: ''
163
+
164
+ },
165
+ // 编辑控制
166
+ isBlackList: false,
167
+ f_filialeid: '', // 所属公司
168
+ f_filialename: '', // 所属公司名称
169
+ f_limit: '限购气量',
170
+ limites: [{label: '限购气量', value: '限购气量'}, {label: '限购金额', value: '限购金额'}]
171
+
172
+ }
173
+ },
174
+ ready () {
175
+ if (this.data) {
176
+ this.isBlackList = true
177
+ initGen(this, this.data)
178
+ } else {
179
+ this.initModel()
180
+ }
181
+ },
182
+ watch: {
183
+ 'data' (val) {
184
+ if (val) {
185
+ this.isBlackList = true
186
+ initGen(this, val)
187
+ } else {
188
+ this.isBlackList = false
189
+ this.initModel()
190
+ }
191
+ }
192
+ },
193
+ methods: {
194
+ gg () {
195
+ if (this.f_limit[0] === '限购气量') {
196
+ this.model.f_limit_amount = ''
197
+ } else {
198
+ this.model.f_limit_value = ''
199
+ }
200
+ },
201
+ getinfo (type) {
202
+ var condition =`${type} = '${this.model[type]}'`
203
+ this.$resetpost('rs/sql/sale_getUserAndVersion', {data: {condition: condition}}, {
204
+ resolveMsg: null,
205
+ rejectMsg: null
206
+ }).then((res) => {
207
+ console.log(res.data[0])
208
+ this.model = res.data[0]
209
+ this.$parent.blodid = this.model.f_userinfo_id
210
+ })
211
+ },
212
+ async confirm (type) {
213
+ if (type == '取消拉黑' && !this.$login.r.find(value => value == '取消拉黑')) {
214
+ this.$showMessage('你没有取消拉黑的权限,请联系管理员!')
215
+ return
216
+ }
217
+ let data = {
218
+ f_operat_type: type,
219
+ f_state: '有效',
220
+ f_user_id: this.model.f_user_id,
221
+ f_user_name: this.model.f_user_name,
222
+ f_comments: this.model.f_comments,
223
+ f_operator: this.$login.f.name,
224
+ f_operatorid: this.$login.f.id,
225
+ f_orgid: this.$login.f.orgid,
226
+ f_orgname: this.$login.f.orgs,
227
+ f_depid: this.$login.f.depids,
228
+ f_depname: this.$login.f.deps,
229
+ f_operate_date: this.$login.toStandardTimeString(),
230
+ f_describe: `${this.$login.f.name}对客户${this.model.f_user_name}进行${type}`,
231
+ f_userinfo_id: {
232
+ f_userinfo_id: this.model.f_userinfo_id,
233
+ f_user_state: '正常',
234
+ version: this.model.version
235
+ },
236
+ f_limit_times: this.model.f_limit_times,
237
+ f_limit_amount: this.model.f_limit_amount,
238
+ f_limit_value: this.model.f_limit_value
239
+ }
240
+ console.log('查看参数data', data)
241
+ let res =await this.$resetpost('rs/logic/backlistOperate', data,{resolveMsg: null, rejectMsg: null})
242
+ if (res.data.code == 200) {
243
+ this.$showMessage(`${type}成功`)
244
+ }
245
+ if (res.data.code == 500) {
246
+ this.$showMessage(`${type}失败,用户已被拉黑,请先取消拉黑`)
247
+ return
248
+ }
249
+ this.initModel()
250
+ this.$dispatch('success')
251
+ },
252
+ getorg (id, name) {
253
+ this.f_filialeid = id[0]
254
+ this.f_filialename = name[0]
255
+ },
256
+ initModel () {
257
+ this.model = {
258
+ f_userinfo_code: '',
259
+ f_userinfo_id: '',
260
+ f_user_name: '',
261
+ f_address: '',
262
+ f_user_phone: '',
263
+ f_comments: '',
264
+ version: null,
265
+ isblacklist: 'false'
266
+ }
267
+ },
268
+ close () {
269
+ this.$dispatch('close')
270
+ }
271
+ }
272
+ }
273
+ </script>
274
+ <style lang="less">
275
+ #gas-price-form {
276
+ .form-group {
277
+ margin-left: 0px;
278
+ margin-right: 0px;
279
+ }
280
+ }
281
+
282
+ </style>
@@ -0,0 +1,71 @@
1
+ <template>
2
+ <div class="flex-full" style="height: 40%">
3
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
4
+ <template partial='head'>
5
+ <tr>
6
+ <th style="text-align: center;">序号</th>
7
+ <th style="text-align: center;">用户编号</th>
8
+ <th style="text-align: center;">用户名</th>
9
+ <th style="text-align: center;">手机号</th>
10
+ <th style="text-align: center;">购气金额</th>
11
+ <th style="text-align: center;">购气量</th>
12
+ <th style="text-align: center;">购气次数</th>
13
+ <th style="text-align: center;">付款方式</th>
14
+ <th style="text-align: center;">缴费日期</th>
15
+ </tr>
16
+ </template>
17
+ <template partial='body'>
18
+ <tr>
19
+ <td style="text-align: center;">{{$index+1}}</td>
20
+ <td style="text-align: center;">{{row.f_userinfo_code}}</td>
21
+ <td style="text-align: center;">{{row.f_user_name}}</td>
22
+ <td style="text-align: center;">{{row.f_user_phone}}</td>
23
+ <td style="text-align: center;">{{row.f_preamount}}</td>
24
+ <td style="text-align: center;">{{row.f_pregas}}</td>
25
+ <td style="text-align: center;">{{row.f_times}}</td>
26
+ <td style="text-align: center;">{{row.f_payment}}</td>
27
+ <td style="text-align: center;">{{row.f_operate_date}}</td>
28
+ </tr>
29
+
30
+ </template>
31
+ <template partial='foot'></template>
32
+ </data-grid>
33
+ </div>
34
+ </template>
35
+
36
+ <script>
37
+ import {HttpResetClass} from 'vue-client'
38
+
39
+ let initGen = async function (self, val) {
40
+ let http = new HttpResetClass()
41
+ console.log(self.$login.f, '================')
42
+ let res = await http.load('POST', 'rs/sql/sale_getUserPropertiesList', {data: {condition: `f_userinfo_id=${self.data.f_userinfo_id}` }}, {resolveMsg: null, rejectMsg: null})
43
+ self.model = Object.assign({}, self.model, val)
44
+ self.model.rows = res.data
45
+ }
46
+ export default {
47
+ props: ['data'],
48
+ data () {
49
+ return {
50
+ model: {
51
+ rows: []
52
+ }
53
+ }
54
+ },
55
+ watch: {
56
+ 'data' (val) {
57
+ if (val) {
58
+ initGen(this, val)
59
+ }
60
+ }},
61
+
62
+ ready () {
63
+ initGen(this, this.data)
64
+ }
65
+
66
+ }
67
+ </script>
68
+ <style>
69
+
70
+ </style>
71
+
@@ -0,0 +1,62 @@
1
+ <template>
2
+ <div class="flex-full" style="height: 40%">
3
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
4
+ <template partial='head'>
5
+ <tr>
6
+ <th style="text-align: center;">序号</th>
7
+ <th style="text-align: center;">操作类型</th>
8
+ <th style="text-align: center;">操作时间</th>
9
+ <th style="text-align: center;">操作人</th>
10
+ <th style="text-align: center;">原因</th>
11
+ </tr>
12
+ </template>
13
+ <template partial='body'>
14
+ <tr>
15
+ <td style="text-align: center;">{{$index+1}}</td>
16
+ <td style="text-align: center;">{{row.f_operat_type}}</td>
17
+ <td style="text-align: center;">{{row.f_operate_date}}</td>
18
+ <td style="text-align: center;">{{row.f_operator}}</td>
19
+ <td style="text-align: center;">{{row.f_comments}}</td>
20
+ </tr>
21
+ </template>
22
+ <template partial='foot'></template>
23
+ </data-grid>
24
+ </div>
25
+ </template>
26
+
27
+ <script>
28
+ import {HttpResetClass} from 'vue-client'
29
+
30
+ let initGen = async function (self, val) {
31
+ let http = new HttpResetClass()
32
+ console.log(self.$login.f, '================')
33
+ let res = await http.load('POST', 'rs/sql/sale_getBlackListRecord', {data: {condition: `f_userinfo_id=${self.data.f_userinfo_id} }` }}, {resolveMsg: null, rejectMsg: null})
34
+ self.model = Object.assign({}, self.model, val)
35
+ self.model.rows = res.data
36
+ }
37
+ export default {
38
+ props: ['data'],
39
+ data () {
40
+ return {
41
+ model: {
42
+ rows: []
43
+ }
44
+ }
45
+ },
46
+ watch: {
47
+ 'data' (val) {
48
+ if (val) {
49
+ initGen(this, val)
50
+ }
51
+ }},
52
+
53
+ ready () {
54
+ initGen(this, this.data)
55
+ }
56
+
57
+ }
58
+ </script>
59
+ <style>
60
+
61
+ </style>
62
+
@@ -36,6 +36,9 @@ let specialComp = {
36
36
  'disable-manage': (resolve) => { require(['./DisableManage'], resolve) },
37
37
  // 黑名单
38
38
  'black-list-list': (resolve) => { require(['./BlackList/BlackListList'], resolve) },
39
+ 'black-list': (resolve) => { require(['./BlackList/BlackList'], resolve) },
40
+ 'black-list-record': (resolve) => { require(['./BlackList/BlackListRecord'], resolve) },
41
+ 'black-list-detail': (resolve) => { require(['./BlackList/BlackListDetail'], resolve) },
39
42
  // 低保户
40
43
  'basic-living-list': (resolve) => { require(['./BasicLivingList'], resolve) },
41
44
  'file-user-essential-info-new': (resolve) => { require(['./filemanagenew/UserEssentialInfoTest'], resolve) },
@@ -11,7 +11,7 @@
11
11
  <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_start_date"
12
12
  class="datepicker"
13
13
  placeholder="起始时间"
14
- style="width:80%"
14
+ style="width:60%"
15
15
  v-model="model.f_start_date"
16
16
  v-ref:f_start_date
17
17
  ></datepicker>
@@ -21,7 +21,7 @@
21
21
  <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_end_date"
22
22
  class="datepicker"
23
23
  placeholder="结束时间"
24
- style="width:80%"
24
+ style="width:60%"
25
25
  v-model="model.f_end_date"
26
26
  v-ref:f_end_date
27
27
  ></datepicker>
@@ -33,32 +33,32 @@
33
33
  <div class="row">
34
34
  <div class="col-sm-4">
35
35
  <label for="f_paper_account" class="font_normal_body ">结算金额</label>
36
- <input class="input_search" style="width:80%" disabled v-model="model.f_oughtfee">
36
+ <input class="input_search" style="width:60%" disabled v-model="model.f_oughtfee">
37
37
  </div>
38
38
  <div class="col-sm-4">
39
39
  <label for="f_paper_account" class="font_normal_body ">结算气量</label>
40
- <input class="input_search" style="width:80%" disabled v-model="model.f_oughtamount">
40
+ <input class="input_search" style="width:60%" disabled v-model="model.f_oughtamount">
41
41
  </div>
42
42
  <div class="col-sm-4">
43
43
  <label for="f_paper_account" class="font_normal_body ">累购金额</label>
44
- <input class="input_search" style="width:80%" disabled v-model="model.f_preamount">
44
+ <input class="input_search" style="width:60%" disabled v-model="model.f_preamount">
45
45
  </div>
46
46
  <div class="col-sm-4">
47
47
  <label for="f_paper_account" class="font_normal_body ">累购气量</label>
48
- <input class="input_search" style="width:80%" disabled v-model="model.f_pregas">
48
+ <input class="input_search" style="width:60%" disabled v-model="model.f_pregas">
49
49
  </div>
50
50
 
51
51
  <div class="col-sm-4">
52
52
  <label for="f_paper_account" class="font_normal_body ">待退金额</label>
53
- <input class="input_search" style="width:80%" disabled v-model="model.f_refund_fee">
53
+ <input class="input_search" style="width:60%" disabled v-model="model.f_refund_fee">
54
54
  </div>
55
55
  <div class="col-sm-4">
56
56
  <label for="f_paper_account" class="font_normal_body ">已退金额</label>
57
- <input class="input_search" style="width:80%" disabled v-model="model.f_refunded_fee">
57
+ <input class="input_search" style="width:60%" disabled v-model="model.f_refunded_fee">
58
58
  </div>
59
59
  <div class="col-sm-8">
60
- <label for="f_paper_account" class="font_normal_body ">&nbsp;&nbsp;&nbsp;备注&nbsp;&nbsp;&nbsp;</label>
61
- <input class="input_search" style="width:80%" v-model="model.f_comments">
60
+ <label for="f_paper_account" class="font_normal_body ">备&emsp;&emsp;注</label>
61
+ <input class="input_search" style="width:60%" v-model="model.f_comments">
62
62
  </div>
63
63
  <div class="col-sm-4 form-group">
64
64
  <label class="font_normal_body">退费金额</label>
@@ -67,7 +67,10 @@
67
67
  disabled
68
68
  placeholder="退费金额">
69
69
  </div>
70
-
70
+ <div class="col-sm-8">
71
+ <label for="f_paper_account" class="font_normal_body ">收款事由</label>
72
+ <input class="input_search" style="width:60%" v-model="model.f_reason">
73
+ </div>
71
74
  </div>
72
75
  </form>
73
76
  <validate-bill v-if="hasValidateBill" :data="model" @validate-bill="validateBill"></validate-bill>
@@ -97,6 +100,7 @@
97
100
  f_refunded_fee: '',
98
101
  f_refund_fee: '',
99
102
  f_comments: '',
103
+ f_reason: '',
100
104
  f_pregas: '',
101
105
  f_preamount: '',
102
106
  f_oughtfee: '',
@@ -113,13 +117,12 @@
113
117
  priceCalculation: false, // 划气量控制
114
118
  showupload: true, // 默认显示附件上传组件
115
119
  hasPrint: true, // 默认打票
116
- floor: true, //是否取整收费
117
- hasBillManage: true, // 默认不启用发票管理
120
+ floor: true, // 是否取整收费
121
+ hasBillManage: false, // 默认不启用发票管理
118
122
  billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
119
123
  printType: '普通收据', // 收据/电子票/专用发票/国税发票
120
124
  payment: '现金缴费'
121
125
  },
122
- blodid: '',
123
126
  hasValidateBill: false,
124
127
  validateOk: false,
125
128
  printModel: {},
@@ -148,6 +151,7 @@
148
151
  f_refund_gas: 0,
149
152
  f_refund_fee: this.model.f_refund_fee,
150
153
  f_comments: this.model.f_comments,
154
+ f_reason: this.model.f_reason,
151
155
  f_balance: this.data.f_balance,
152
156
  f_balance_amount: this.data.f_balance_amount,
153
157
  f_start_date: this.model.f_start_date,
@@ -11,7 +11,7 @@
11
11
  <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_start_date"
12
12
  class="datepicker"
13
13
  placeholder="起始时间"
14
- style="width:80%"
14
+ style="width:60%"
15
15
  v-model="model.f_start_date"
16
16
  v-ref:f_start_date
17
17
  ></datepicker>
@@ -21,7 +21,7 @@
21
21
  <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_end_date"
22
22
  class="datepicker"
23
23
  placeholder="结束时间"
24
- style="width:80%"
24
+ style="width:60%"
25
25
  v-model="model.f_end_date"
26
26
  v-ref:f_end_date
27
27
  ></datepicker>
@@ -33,24 +33,24 @@
33
33
  <div class="row">
34
34
  <div class="col-sm-4">
35
35
  <label for="f_paper_account" class="font_normal_body ">累购金额</label>
36
- <input class="input_search" style="width:80%" disabled v-model="model.f_preamount">
36
+ <input class="input_search" style="width:60%" disabled v-model="model.f_preamount">
37
37
  </div>
38
38
  <div class="col-sm-4">
39
39
  <label for="f_paper_account" class="font_normal_body ">累购气量</label>
40
- <input class="input_search" style="width:80%" disabled v-model="model.f_pregas">
40
+ <input class="input_search" style="width:60%" disabled v-model="model.f_pregas">
41
41
  </div>
42
42
 
43
43
  <div class="col-sm-4">
44
44
  <label for="f_paper_account" class="font_normal_body ">待退金额</label>
45
- <input class="input_search" style="width:80%" disabled v-model="model.f_refund_fee">
45
+ <input class="input_search" style="width:60%" disabled v-model="model.f_refund_fee">
46
46
  </div>
47
47
  <div class="col-sm-4">
48
48
  <label for="f_paper_account" class="font_normal_body ">已退金额</label>
49
- <input class="input_search" style="width:80%" disabled v-model="model.f_refunded_fee">
49
+ <input class="input_search" style="width:60%" disabled v-model="model.f_refunded_fee">
50
50
  </div>
51
51
  <div class="col-sm-8">
52
- <label for="f_paper_account" class="font_normal_body ">&nbsp;&nbsp;&nbsp;备注&nbsp;&nbsp;&nbsp;</label>
53
- <input class="input_search" style="width:80%" v-model="model.f_comments">
52
+ <label for="f_paper_account" class="font_normal_body ">备&emsp;&emsp;注</label>
53
+ <input class="input_search" style="width:60%" v-model="model.f_comments">
54
54
  </div>
55
55
  <div class="col-sm-4 form-group">
56
56
  <label class="font_normal_body">退费金额</label>
@@ -59,7 +59,10 @@
59
59
  disabled
60
60
  placeholder="退费金额">
61
61
  </div>
62
-
62
+ <div class="col-sm-8">
63
+ <label for="f_paper_account" class="font_normal_body ">收款事由</label>
64
+ <input class="input_search" style="width:60%" v-model="model.f_reason">
65
+ </div>
63
66
  </div>
64
67
  </form>
65
68
  <validate-bill v-if="hasValidateBill" :data="model" @validate-bill="validateBill"></validate-bill>
@@ -89,6 +92,7 @@
89
92
  f_refunded_fee: '',
90
93
  f_refund_fee: '',
91
94
  f_comments: '',
95
+ f_reason: '',
92
96
  f_pregas: '',
93
97
  f_preamount: '',
94
98
  f_price: 0
@@ -103,8 +107,8 @@
103
107
  priceCalculation: false, // 划气量控制
104
108
  showupload: true, // 默认显示附件上传组件
105
109
  hasPrint: true, // 默认打票
106
- floor: true, //是否取整收费
107
- hasBillManage: true, // 默认不启用发票管理
110
+ floor: true, // 是否取整收费
111
+ hasBillManage: false, // 默认不启用发票管理
108
112
  billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
109
113
  printType: '普通收据', // 收据/电子票/专用发票/国税发票
110
114
  payment: '现金缴费'
@@ -137,6 +141,7 @@
137
141
  f_refund_gas: 0,
138
142
  f_refund_fee: this.model.f_refund_fee,
139
143
  f_comments: this.model.f_comments,
144
+ f_reason: this.model.f_reason,
140
145
  f_balance: this.data.f_balance,
141
146
  f_start_date: this.model.f_start_date,
142
147
  f_end_date: this.model.f_end_date,
@@ -11,7 +11,7 @@
11
11
  <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_start_date"
12
12
  class="datepicker"
13
13
  placeholder="起始时间"
14
- style="width:80%"
14
+ style="width:60%"
15
15
  v-model="model.f_start_date"
16
16
  v-ref:f_start_date
17
17
  ></datepicker>
@@ -21,7 +21,7 @@
21
21
  <datepicker :format="'yyyy-MM-dd HH:mm:ss'" :value.sync="model.f_end_date"
22
22
  class="datepicker"
23
23
  placeholder="结束时间"
24
- style="width:80%"
24
+ style="width:60%"
25
25
  v-model="model.f_end_date"
26
26
  v-ref:f_end_date
27
27
  ></datepicker>
@@ -33,32 +33,32 @@
33
33
  <div class="row">
34
34
  <div class="col-sm-4">
35
35
  <label for="f_paper_account" class="font_normal_body ">结算金额</label>
36
- <input class="input_search" style="width:80%" disabled v-model="model.f_oughtfee">
36
+ <input class="input_search" style="width:60%" disabled v-model="model.f_oughtfee">
37
37
  </div>
38
38
  <div class="col-sm-4">
39
39
  <label for="f_paper_account" class="font_normal_body ">结算气量</label>
40
- <input class="input_search" style="width:80%" disabled v-model="model.f_oughtamount">
40
+ <input class="input_search" style="width:60%" disabled v-model="model.f_oughtamount">
41
41
  </div>
42
42
  <div class="col-sm-4">
43
43
  <label for="f_paper_account" class="font_normal_body ">累购金额</label>
44
- <input class="input_search" style="width:80%" disabled v-model="model.f_preamount">
44
+ <input class="input_search" style="width:60%" disabled v-model="model.f_preamount">
45
45
  </div>
46
46
  <div class="col-sm-4">
47
47
  <label for="f_paper_account" class="font_normal_body ">累购气量</label>
48
- <input class="input_search" style="width:80%" disabled v-model="model.f_pregas">
48
+ <input class="input_search" style="width:60%" disabled v-model="model.f_pregas">
49
49
  </div>
50
50
 
51
51
  <div class="col-sm-4">
52
52
  <label for="f_paper_account" class="font_normal_body ">待退金额</label>
53
- <input class="input_search" style="width:80%" disabled v-model="model.f_refund_fee">
53
+ <input class="input_search" style="width:60%" disabled v-model="model.f_refund_fee">
54
54
  </div>
55
55
  <div class="col-sm-4">
56
56
  <label for="f_paper_account" class="font_normal_body ">已退金额</label>
57
- <input class="input_search" style="width:80%" disabled v-model="model.f_refunded_fee">
57
+ <input class="input_search" style="width:60%" disabled v-model="model.f_refunded_fee">
58
58
  </div>
59
59
  <div class="col-sm-8">
60
- <label for="f_paper_account" class="font_normal_body ">&nbsp;&nbsp;&nbsp;备注&nbsp;&nbsp;&nbsp;</label>
61
- <input class="input_search" style="width:80%" v-model="model.f_comments">
60
+ <label for="f_paper_account" class="font_normal_body ">备&emsp;&emsp;注</label>
61
+ <input class="input_search" style="width:60%" v-model="model.f_comments">
62
62
  </div>
63
63
  <div class="col-sm-4 form-group">
64
64
  <label class="font_normal_body">退费金额</label>
@@ -67,6 +67,10 @@
67
67
  disabled
68
68
  placeholder="退费金额">
69
69
  </div>
70
+ <div class="col-sm-8">
71
+ <label for="f_paper_account" class="font_normal_body ">收款事由</label>
72
+ <input class="input_search" style="width:60%" v-model="model.f_reason">
73
+ </div>
70
74
 
71
75
  </div>
72
76
  </form>
@@ -97,6 +101,7 @@
97
101
  f_refunded_fee: '',
98
102
  f_refund_fee: '',
99
103
  f_comments: '',
104
+ f_reason: '',
100
105
  f_pregas: '',
101
106
  f_preamount: '',
102
107
  f_oughtfee: '',
@@ -113,8 +118,8 @@
113
118
  priceCalculation: false, // 划气量控制
114
119
  showupload: true, // 默认显示附件上传组件
115
120
  hasPrint: true, // 默认打票
116
- floor: true, //是否取整收费
117
- hasBillManage: true, // 默认不启用发票管理
121
+ floor: true, // 是否取整收费
122
+ hasBillManage: false, // 默认不启用发票管理
118
123
  billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
119
124
  printType: '普通收据', // 收据/电子票/专用发票/国税发票
120
125
  payment: '现金缴费'
@@ -147,6 +152,7 @@
147
152
  f_refund_gas: 0,
148
153
  f_refund_fee: this.model.f_refund_fee,
149
154
  f_comments: this.model.f_comments,
155
+ f_reason: this.model.f_reason,
150
156
  f_balance: this.data.f_balance,
151
157
  f_start_date: this.model.f_start_date,
152
158
  f_end_date: this.model.f_end_date,
package/src/main.js CHANGED
@@ -11,7 +11,7 @@ Vue.config.silent = true
11
11
 
12
12
  all()
13
13
  system(false)
14
- sale('tongchuan')
14
+ sale('xiangyun')
15
15
  address()
16
16
  ldap()
17
17
  require('system-clients/src/styles/less/bootstrap.less')