sale-client 3.7.31 → 3.7.32-bayan

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.
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ #Tue Dec 30 10:04:44 CST 2025
2
+ gradle.version=5.2.1
Binary file
File without changes
@@ -1,7 +1,7 @@
1
1
  var path = require('path')
2
2
  var checkVersion = require('./versionCheck.js')
3
3
  checkVersion()
4
- const [ serverRul, localUrl ] = ['http://192.168.50.67:31567/', 'http://192.168.50.67:31567/']
4
+ const [ serverRul, localUrl, v4Url ] = ['http://192.168.50.67:31567/', 'http://localhost:8080/', 'http://192.168.50.67:30785']
5
5
  var merge = require('webpack-merge')
6
6
  var baseConfig = require('./webpack.dev.conf')
7
7
  var devConfig = {
@@ -21,13 +21,13 @@ var devConfig = {
21
21
  proxy: {
22
22
 
23
23
  '/rs/file': {
24
- pathRewrite: {
25
- '^/rs/file/': '/api/af-revenue/file/'
26
- },
27
- target: serverRul
24
+ // pathRewrite: {
25
+ // '^/rs/file/': '/api/af-revenue/file/'
26
+ // },
27
+ target: localUrl
28
28
  },
29
29
  '/api': {
30
- target: v4Url
30
+ target: serverRul
31
31
  },
32
32
  '/sketch': {
33
33
  target: serverRul,
@@ -117,7 +117,7 @@ var devConfig = {
117
117
  target: serverRul
118
118
  },
119
119
  '/rs': {
120
- target: serverRul
120
+ target: localUrl
121
121
  // changeOrigin: true
122
122
  }
123
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.7.31",
3
+ "version": "3.7.32-bayan",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -77,4 +77,6 @@ export default function () {
77
77
  Vue.component('card-meter-charge-cancel', (resolve) => { require(['./CardMeterChargeCancel'], resolve) })
78
78
  // 过户
79
79
  Vue.component('transfer-manage', (resolve) => { require(['./TransferManage'], resolve) })
80
+ // pos对账界面
81
+ Vue.component('wechat-validate-manage', (resolve) => { require(['./wechatValidateManage.vue'], resolve) })
80
82
  }
@@ -0,0 +1,381 @@
1
+ <template>
2
+ <div class="basic-main" style="height: 98%">
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
+
8
+ <!-- <res-select-group :initres="$parent.$parent.initres" :show-component="['company']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>-->
9
+
10
+ <div class="col-sm-2 form-group">
11
+ <label for="startDate" class="font_normal_body">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期"
13
+ v-model="model.startDate" style="width: 60%"
14
+ :value.sync="model.startDate"
15
+ condition="f_delivery_date >= '{} 00:00:00'"
16
+ :disabled-days-of-Week="[]"
17
+ :format="'yyyy-MM-dd'"
18
+ :show-reset-button="reset">
19
+ </datepicker>
20
+ </div>
21
+ <div class="col-sm-2 form-group">
22
+ <label for="endDate" class="font_normal_body"> 结束日期</label>
23
+ <datepicker id="endDate" placeholder="结束日期"
24
+ v-model="model.endDate" style="width: 60%"
25
+ :value.sync="model.endDate"
26
+ condition="f_delivery_date <= '{} 23:59:59'"
27
+ :disabled-days-of-Week="[]"
28
+ :format="'yyyy-MM-dd'"
29
+ :show-reset-button="reset">
30
+ </datepicker>
31
+ </div>
32
+ <div class="col-sm-2 form-group" >
33
+ <label class="font_normal_body">客户编号</label>
34
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
35
+ condition="f_userinfo_code = '{}'">
36
+ </div>
37
+ <div class="col-sm-2 form-group">
38
+ <label class="font_normal_body" title="订单状态">订单状态</label>
39
+ <v-select
40
+ v-model="model.msg"
41
+ placeholder='订单状态'
42
+ condition="f_states like '%{}%'"
43
+ :value.sync="model.msg"
44
+ :options='$parent.$parent.letter'
45
+ close-on-select ></v-select>
46
+ </div>
47
+
48
+ <div class="span" style="float:right;">
49
+ <button class="button_search button_spacing width-60" @click="search()" v-el:cx>查询</button>
50
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
51
+ :footer="$parent.$parent.footer"
52
+ :field="$parent.$parent.getExportField"
53
+ :header="$parent.$parent.other"
54
+ sqlurl="rs/logic/saleExport" sql-name="wechatSelling" template-name='自助机对账导出'
55
+ :choose-col="true"></export-excel>
56
+ <div
57
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
58
+ @click="$parent.$parent.hidden()"
59
+ class="button_spacing"
60
+ style="float: right">
61
+ </div>
62
+ </div>
63
+ </div>
64
+ <div class="row" v-show="$parent.$parent.criteriaShow">
65
+ <div class="col-sm-2 form-group">
66
+ <label class="font_normal_body" title="操作标识">操作标识</label>
67
+ <v-select
68
+ v-model="model.pay_state"
69
+ placeholder='操作标识'
70
+ condition="pay_state like '%{}%'"
71
+ :value.sync="model.pay_state"
72
+ :options='$parent.$parent.paystate'
73
+ close-on-select ></v-select>
74
+ </div>
75
+ <div class="form-group col-sm-2">
76
+ <label class="font_normal_body">终端编号</label>
77
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_terminal_num" placeholder='终端编号'
78
+ condition="f_terminal_num like '%{}%'">
79
+ </div>
80
+ <div class="form-group col-sm-2">
81
+ <label class="font_normal_body">客户名称</label>
82
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_user_name" placeholder='客户名称'
83
+ condition="f_user_name = '{}'">
84
+ </div>
85
+ <div class="form-group col-sm-2">
86
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;电话&nbsp;&nbsp;&nbsp;</label>
87
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_user_phone" placeholder='电话'
88
+ condition="f_user_phone like '{}%'">
89
+ </div>
90
+ <div class="form-group col-sm-2">
91
+ <label class="font_normal_body">客户地址</label>
92
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_address" placeholder='客户地址'
93
+ condition="f_address like '%{}%'">
94
+ </div>
95
+ <!--<div class="col-sm-2 form-group">-->
96
+ <!--<label class="font_normal_body">订单状态</label>-->
97
+ <!--<v-select-->
98
+ <!--v-model="model.msg"-->
99
+ <!--placeholder='订单状态'-->
100
+ <!--condition="f_states like '%{}%'"-->
101
+ <!--:value.sync="model.msg"-->
102
+ <!--:options='$parent.$parent.letter'-->
103
+ <!--close-on-select ></v-select>-->
104
+ <!--</div>-->
105
+ </div>
106
+ </div>
107
+ </criteria>
108
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
109
+ <template partial='head'>
110
+ <tr>
111
+ <th>序号</th>
112
+ <th>客户编号</th>
113
+ <th>客户姓名</th>
114
+ <th>客户电话</th>
115
+ <th>客户地址</th>
116
+ <th>终端编号</th>
117
+ <th>订单号</th>
118
+ <th>订单金额</th>
119
+ <th>订单发生日期</th>
120
+ <th>订单状态</th>
121
+ <th>付款方式</th>
122
+ <th>购气量</th>
123
+ <th>购气金额</th>
124
+ <th>系统收费时间</th>
125
+ <th>系统收费状态</th>
126
+ <th>系统写卡状态</th>
127
+ <th>操作人</th>
128
+ <th>操作标识</th>
129
+ </tr>
130
+ </template>
131
+ <template partial='body'>
132
+ <td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
133
+ <td style="text-align: center;"><nobr>{{row.f_userinfo_code}}</nobr></td>
134
+ <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
135
+ <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
136
+ <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
137
+ <td style="text-align: center;"><nobr>{{row.f_terminal_num}}</nobr></td>
138
+ <td style="text-align: center;"><nobr>{{row.f_transaction_id}}</nobr></td>
139
+ <td style="text-align: center;"><nobr>{{row.f_total_fee}}</nobr></td>
140
+ <td style="text-align: center;"><nobr>{{row.f_time_out}}</nobr></td>
141
+ <td style="text-align: center;"><nobr>{{row.f_states}}</nobr></td>
142
+ <td style="text-align: center;"><nobr>{{row.f_payment}}</nobr></td>
143
+ <td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
144
+ <td style="text-align: center;"><nobr>{{row.f_collection}}</nobr></td>
145
+ <td style="text-align: center;"><nobr>{{row.f_delivery_date}}</nobr></td>
146
+ <td style="text-align: center;"><nobr>{{row.f_state}}</nobr></td>
147
+ <td style="text-align: center;"><nobr>{{row.f_write_card}}</nobr></td>
148
+ <td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
149
+ <td v-if="row.pay_state==='对账成功'" style="text-align: center;">
150
+ <div v-if="!$parent.$parent.$parent.authArr.includes('无卡退费')">正常</div>
151
+ <div v-else>
152
+ <button type="button" name="button" class="btn btn-link" @click="$parent.$parent.$parent.chargecal(row)">无卡退款</button>
153
+ </div>
154
+ </td>
155
+ <td v-if="row.pay_state==='无效'" style="text-align: center;">
156
+ 无效
157
+ </td>
158
+ <td v-if="row.pay_state==='燃气单方面账单'" style="text-align: center;">
159
+ <button type="button" name="button" class="btn btn-link" @click="$parent.$parent.$parent.chargecal(row)">冲正</button>
160
+ </td>
161
+ <td v-if="row.pay_state==='自助机单方面账单'" style="text-align: center;">
162
+ <button type="button" name="button" class="btn btn-link" @click="$parent.$parent.$parent.updateState(row)">退款</button>
163
+ <button type="button" name="button" class="btn btn-link" @click="$parent.$parent.$parent.charge(row)">缴费</button>
164
+ </td>
165
+ </template>
166
+ </data-grid>
167
+ </criteria-paged>
168
+ <table class="table-hover">
169
+ <tr style="position: relative" class="table-bordered">
170
+ <td
171
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
172
+ 汇总信息
173
+ </td>
174
+ <td
175
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
176
+ 订单金额汇总:&emsp;{{sumsmodel.f_total_fee}}
177
+ </td>
178
+ <td
179
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
180
+ 购气金额汇总:&emsp;{{sumsmodel.f_collection}}
181
+ </td>
182
+ </tr>
183
+ </table>
184
+ </div>
185
+ <modal v-if="show" :show.sync="show" >
186
+ <header slot="modal-header" class="modal-header">
187
+ <h4 class="modal-title">退费</h4>
188
+ </header>
189
+ <article slot="modal-body" class="modal-body">
190
+ <validator name='v'>
191
+ <form class="form-horizontal select-overspread">
192
+ <div class="form-group">
193
+ <label class=" col-sm-3 control-label">退费原因:</label>
194
+ <div class="col-sm-8">
195
+ <textarea class="form-control" v-model="watchComment" placeholder="退费原因" ></textarea>
196
+ </div>
197
+ </div>
198
+ </form>
199
+ </validator>
200
+ </article>
201
+ <footer slot="modal-footer" class="modal-footer">
202
+ <button type="button" class="btn btn-success" @click='confirm()'>确认</button>
203
+ <button type="button" class="btn btn-default" @click='close'>取消</button>
204
+ </footer>
205
+ </modal>
206
+ </template>
207
+ <script>
208
+ import { PagedList } from 'vue-client'
209
+ import Vue from 'vue'
210
+
211
+ let readyGen = async function (self) {
212
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
213
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
214
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
215
+ }
216
+
217
+ export default {
218
+ title: '自助机对账',
219
+ data () {
220
+ return {
221
+ model: new PagedList('rs/sql/wechatSelling', 20, {}, {f_total_fee: '', f_collection: ''}),
222
+ letter: this.$appdata.getParam('订单状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('订单状态')] : [],
223
+ paystate: this.$appdata.getParam('操作标识') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('操作标识')] : [],
224
+ criteriaShow: false,
225
+ show: false,
226
+ watchComment: '',
227
+ orgCondtionStr: '',
228
+ getfield: {},
229
+ // 合计数据
230
+ sumsmodel: {},
231
+ initres: {
232
+ org: [this.$login.f.orgid]
233
+ },
234
+ msgData: [],
235
+ condition2: '',
236
+ footer: [],
237
+ other: [],
238
+ getExportField: {
239
+ 'f_userinfo_code': '客户编号',
240
+ 'f_user_name': '客户姓名',
241
+ 'f_user_phone': '客户电话',
242
+ 'f_address': '客户地址',
243
+ 'f_terminal_num': '终端编号',
244
+ 'f_transaction_id': '订单号',
245
+ 'f_total_fee': '订单金额',
246
+ 'f_time_out': '订单发生日期',
247
+ 'f_states': '订单状态',
248
+ 'f_payment': '付款方式',
249
+ 'f_pregas': '购气量',
250
+ 'f_collection': '购气金额',
251
+ 'f_delivery_date': '系统收费时间',
252
+ 'f_state': '系统收费状态',
253
+ 'f_write_card': '系统写卡状态',
254
+ 'f_operator': '操作人'
255
+ }
256
+ }
257
+ },
258
+ props: [],
259
+ ready () {
260
+ readyGen(this)
261
+ },
262
+ methods: {
263
+ async chargecal (row) {
264
+ let param = {
265
+ f_sell_id: row.f_sell_id,
266
+ f_cancel_reason: '',
267
+ f_orgid: Vue.$login.f.orgid,
268
+ f_orgname: Vue.$login.f.orgs,
269
+ f_depid: Vue.$login.f.depids,
270
+ f_depname: Vue.$login.f.deps,
271
+ f_zoneid: Vue.$login.f.zoneid,
272
+ f_zones: Vue.$login.f.zones
273
+ }
274
+ await Vue.resetpost('rs/logic/commonCancel', {data: param}, {resolveMsg: '撤销成功', rejectMsg: '撤销失败'})
275
+ this.$refs.paged.$refs.cri.search()
276
+ },
277
+ async getRes(condition,obj) {
278
+ this.orgCondtionStr = condition
279
+ },
280
+ // 微信单方账单,系统可缴费
281
+ async charge (row) {
282
+ row.f_operator=Vue.$login.f.name,
283
+ row.f_operatorid= Vue.$login.f.id,
284
+ row.f_orgid= Vue.$login.f.orgid,
285
+ row.f_orgname= Vue.$login.f.orgs,
286
+ row.f_depid= Vue.$login.f.depids,
287
+ row. f_depname= Vue.$login.f.deps,
288
+ row. f_zoneid= Vue.$login.f.zoneid,
289
+ row. f_zones= Vue.$login.f.zones
290
+ let res = await this.$resetpost('rs/logic/cardOneBank',row,{resolveMsg:'缴费成功',rejectMsg:'缴费失败'})
291
+ let param = []
292
+ for (let row of this.resid) {
293
+ param.push({id: row.id})
294
+ }
295
+ let data = {
296
+ param: param,
297
+ f_blobid: res.data
298
+ }
299
+
300
+ await this.$resetpost('rs/logic/updatefiles', data)
301
+ this.$refs.paged.$refs.cri.search()
302
+ },
303
+ hidden () {
304
+ this.criteriaShow = !this.criteriaShow
305
+ },
306
+ updateState (val) {
307
+ this.show = true
308
+ this.msgData = val
309
+ },
310
+ async confirm () {
311
+ this.msgData.f_operator = this.$login.f.name
312
+ let updateWechatData = {
313
+ watchComment: this.watchComment,
314
+ msgData: this.msgData
315
+ }
316
+ await Vue.resetpost('rs/logic/updateWechatState', {data: updateWechatData}, {resolveMsg: '退款请求已发送成功,稍后到账!', rejectMsg: '退款失败'})
317
+ this.close()
318
+ this.search()
319
+ },
320
+ close () {
321
+ this.show = false
322
+ this.watchComment = ''
323
+ this.msgData = []
324
+ },
325
+ search () {
326
+ this.$refs.paged.$refs.cri.search()
327
+ },
328
+ getotherfooter () {
329
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
330
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
331
+ this.other = []
332
+ this.footer = []
333
+ // let exportdata = this.getCondition;
334
+ let otherInData = []
335
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
336
+ let footerData = [], exportfield = this.getExportField
337
+ footerData.push('合计')
338
+ let self = this
339
+ for (var field in self.sumsmodel) {
340
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
341
+ }
342
+ this.footer.push(footerData)
343
+ this.other.push(otherInData)
344
+ },
345
+ selfSearch (args) {
346
+ this.model.params.startDate = this.$refs.paged.$refs.cri.model.startDate
347
+ this.model.params.endDate = this.$refs.paged.$refs.cri.model.endDate
348
+ // if (!this.orgCondtionStr) {
349
+ // args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
350
+ // } else {
351
+ // args.condition = `${args.condition}` + this.orgCondtionStr
352
+ // }
353
+ args.condition = `${args.condition}` + `and f_orgid = '${this.$login.f.orgid}'`
354
+ this.condition2 = args.condition
355
+ this.model.search(args.condition, args.model)
356
+ }
357
+
358
+ },
359
+ events: {
360
+
361
+ },
362
+ computed: {
363
+ authArr () {
364
+ return this.$login.r ? this.$login.r : []
365
+ },
366
+ getCondition () {
367
+ return {
368
+ condition: this.condition2
369
+ }
370
+ }
371
+ },
372
+ watch: {
373
+ sumsmodel: {
374
+ handler: function (val) {
375
+ this.getotherfooter()
376
+ },
377
+ deep: true
378
+ }
379
+ }
380
+ }
381
+ </script>
@@ -1420,11 +1420,13 @@
1420
1420
  },
1421
1421
  // 单条下发计划
1422
1422
  downHand (row) {
1423
+ this.batchDownFlag = false
1423
1424
  console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' + row.f_userfiles_id)
1424
1425
  this.down('single', `f_userfiles_id = '${row.f_userfiles_id}'`, row)
1425
1426
  },
1426
1427
  // 批量下发计划
1427
1428
  batchDownHand () {
1429
+ this.batchDownFlag = true
1428
1430
  this.down('batch', this.model.condition, this.model.count)
1429
1431
  },
1430
1432
  // batchDownHand () {
@@ -1497,7 +1499,11 @@
1497
1499
  endDate: this.model.params.endDate,
1498
1500
  condition: this.condition,
1499
1501
  f_operator: this.$login.f.name,
1500
- f_operatorid: this.$login.f.id
1502
+ f_operatorid: this.$login.f.id,
1503
+ condition1: ''
1504
+ }
1505
+ if (this.condition.includes('f_userfiles_id in') || this.batchDownFlag) {
1506
+ param.condition1 = ` with(index(ix_hd_hs)) `
1501
1507
  }
1502
1508
  if (this.downModel.downWay === 'downWithSelf') {
1503
1509
  param.inputtor = this.downModel.downInputtor[0]
@@ -1535,6 +1541,7 @@
1535
1541
  }
1536
1542
  },
1537
1543
  initModal () {
1544
+ this.batchDownFlag = false
1538
1545
  this.downModel = {
1539
1546
  downDate: Vue.$login.toStandardDateString(),
1540
1547
  downWay: 'downWithUserfiles',
package/src/main.js CHANGED
@@ -2,7 +2,7 @@ import Vue from 'vue'
2
2
  import all from 'vue-client/src/all'
3
3
  import App from './App'
4
4
  import system from 'system-clients/src/system'
5
- import FilialeSale from './filiale/jingyang/sale'
5
+ import FilialeSale from './filiale/bayan/sale'
6
6
  import sale from './sale'
7
7
  import address from 'address-client/src/address'
8
8
  import ldap from 'ldap-clients/src/ldap'