sale-client 3.6.356 → 3.6.357

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,7 +1,7 @@
1
1
  var path = require('path')
2
2
  var checkVersion = require('./versionCheck.js')
3
3
  checkVersion()
4
- const [ serverRul, localUrl, v4Url ] = ['http://139.155.48.184:8401/', 'http://139.155.48.184:8401/', 'http://192.168.50.67:31785']
4
+ const [ serverRul, localUrl, v4Url ] = ['http://192.168.50.4:8400/', 'http://localhost:8080/', 'http://192.168.50.67:31785']
5
5
  var merge = require('webpack-merge')
6
6
  var baseConfig = require('./webpack.dev.conf')
7
7
  var devConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.356",
3
+ "version": "3.6.357",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -0,0 +1,319 @@
1
+ <template>
2
+ <div id="unit" class="flex-row three" v-show="listpage">
3
+ <div class="binary-left" style="overflow: scroll;width:15%" >
4
+ <mulitinfo :warninginfo="warningInfo" style="height:auto" @deal-msg="dealMsg" :data="row" :card-data="cardInfo" v-ref:info></mulitinfo>
5
+ </div>
6
+ <div class="binary-right" style="width:68%;overflow-y: scroll" >
7
+ <div :style="{height:(row?'auto':'100%')}">
8
+ <!--<div class="auto" v-if="sustainMoney != null">-->
9
+ <!--<h2 style="margin-top: 10px">当前连续收款金额: {{sustainMoney}}</h2>-->
10
+ <!--</div>-->
11
+ <div>
12
+ <charge-list :row="row" @select-oper="showWork" @dblclick="toBusiness" @deal-msg="dealMsg"
13
+ v-ref:list></charge-list>
14
+
15
+ <div class="auto" style="margin-top: 1%;" v-if="row">
16
+ <charge-oper :data.sync="row" :card-info="cardInfo" v-ref:oper></charge-oper>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ </div>
21
+ <div class="binary-right" style="width:22%" >
22
+ <ul class="nav nav-pills span" style="height:auto;margin:8px 0px;padding:4px 0;border-bottom: 1px solid #e7e7e7;" class="nav nav-tabs" >
23
+ <li ><a :style="selectFiled == '其他信息'?'color:#333333!important;':'color:#666666!important;'" :class="{'tel_voiceActive':selectFiled == '其他信息','tel_f_size':selectFiled != '其他信息'}" href="#" @click="setField('其他信息')">其他信息</a></li>
24
+ <li ><a :style="selectFiled == '历史操作'?'color:#333333!important;':'color:#666666!important;'" :class="{'tel_voiceActive':selectFiled == '历史操作','tel_f_size':selectFiled != '历史操作'}" href="#" @click="setField('历史操作')">历史操作</a></li>
25
+ <li v-if="row ?row.f_meter_type=='机表' : false"><a :style="selectFiled == '历史抄表'?'color:#333333!important;':'color:#666666!important;'" :class="{'tel_voiceActive':selectFiled == '历史抄表','tel_f_size':selectFiled != '历史抄表'}" href="#" @click="setField('历史抄表')">历史抄表</a></li>
26
+ </ul>
27
+ <div class="tab-content span" style="overflow-y: auto">
28
+ <otherinfo v-show="worktype === '其他信息'" style="height:auto" @deal-msg="dealMsg" :data="row" :card-data="cardInfo" v-ref:info></otherinfo>
29
+ <card-list v-show="worktype === '历史操作'" :btns="operatebtn" :f_orgid="f_orgid" :userinfoid="row ? row.f_userinfo_code : ''" @list-select-oper="recordCancel"
30
+ v-ref:card></card-list>
31
+ <hand-list v-if="worktype === '历史抄表'" :f_userfiles_id="row ? row.f_userfiles_id : ''" v-ref:hand></hand-list>
32
+ </div>
33
+
34
+ </div>
35
+
36
+ </div>
37
+ <div v-if="!listpage">
38
+ <user-info-detail-manage-new parentname="charge-manage" :f_userfiles_id="rowData.f_userfiles_id" @cancel-main="cancel" @cancel-re="cancelAndRefresh"></user-info-detail-manage-new>
39
+ </div>
40
+ <div v-if="showModal">
41
+ <charge-modal :warninginfo="warningInfo" :row="modalrow" :modal-show.sync="showModal" @close="close" @modalsuccess="modalsuccess"></charge-modal>
42
+ </div>
43
+ </template>
44
+ <script>
45
+ import ChargeOper from '../../../components/charge/ChargeOper'
46
+ import {HttpResetClass} from 'vue-client'
47
+
48
+ export default {
49
+ title: '收费(综合)',
50
+ components: { ChargeOper },
51
+ data () {
52
+ return {
53
+ sustainMoney: null,
54
+ // 页面开关
55
+ listpage: true,
56
+ f_orgid: '',
57
+ row: null,
58
+ cardInfo: null,
59
+ warningInfo: null,
60
+ modalrow: null,
61
+ showModal: false,
62
+ rowData: {},
63
+ dibao_remind: this.$appdata.getSingleValue('低保快到期提醒') ? this.$appdata.getSingleValue('低保快到期提醒') : 0,
64
+ reSearchShowMsy: !!this.$appdata.getSingleValue('收费后验证'),
65
+ show: [true],
66
+ selectFiled: '其他信息',
67
+ worktype: '其他信息',
68
+ searchTime: 1000,
69
+ interval: null
70
+ }
71
+ },
72
+ destroyed () {
73
+ if (this.$appdata.getSingleValue('磁条卡读卡间隔')) {
74
+ clearInterval(this.interval)
75
+ }
76
+ },
77
+ ready () {
78
+ if (this.$appdata.getSingleValue('磁条卡读卡间隔')) {
79
+ this.searchTime = this.$appdata.getSingleValue('磁条卡读卡间隔')
80
+ this.readCiTiaoCard()
81
+ }
82
+ this.setsustainMoney()
83
+ },
84
+ methods: {
85
+ async readCiTiaoCard () {
86
+ console.log('读磁条卡,开始,不停的循环')
87
+ let data = {}
88
+ let getUser = {data: []}
89
+ let forgid = this.$login.convertToIn([this.$login.f.orgid])
90
+ try {
91
+ this.interval = setInterval(() => {
92
+ // 1秒一轮回
93
+ let http = new HttpResetClass()
94
+ http.load('POST', 'http://127.0.0.1:8003/ReadCard_HEC', data, {
95
+ resolveMsg: null,
96
+ rejectMsg: null
97
+ }).then(async res => {
98
+ if (res.data.CardID !== '') {
99
+ if (res.data.Err === null && res.data.Exception) {
100
+ this.$showAlert(res.data.Exception, 'danger', 2000)
101
+ // clearInterval(interval)
102
+ } else {
103
+ if (res.data.Factory === 'CiTiao') {
104
+ // 获取用户信息
105
+ getUser = await this.$resetpost('rs/sql/sale_getUser', {
106
+ data: {
107
+ condition: `u.f_filialeid in ${forgid} and gb.f_meter_type in ('机表','物联网表') and i.f_userinfo_code='${res.data.CardID}'`,
108
+ orderitem: `f_userinfo_id`
109
+ }
110
+ }, {resolveMsg: null, rejectMsg: '读卡失败'})
111
+ this.$refs.list.model.rows = getUser.data
112
+ if (!this.row || (this.row && this.row.f_userinfo_code != getUser.data[0].f_userinfo_code)) {
113
+ await this.toBusiness(getUser.data[0])
114
+ }
115
+ }
116
+ }
117
+ }
118
+ })
119
+ }, this.searchTime * 1000)
120
+ } catch (error) {
121
+ console.log('捕获到异常', error)
122
+ }
123
+ },
124
+ setsustainMoney () {
125
+ this.sustainMoney = window.localStorage.getItem('sustainMoney')
126
+ },
127
+ setField (type) {
128
+ this.selectFiled = type
129
+ this.worktype = type
130
+ },
131
+ async toBusiness (obj) {
132
+ console.log('双击列表的时候传进来的数据:', obj)
133
+ if (!(obj instanceof Event)) {
134
+ // 对此数据进行验证
135
+ if (await this.validateRow(obj)) {
136
+ // 获取未写卡或者写卡失败记录
137
+ let data = {
138
+ condition: `f_state = '有效' and (f_write_card = '未写卡' or (f_write_card = '写卡失败' and f_operate_date >= DATEADD(HOUR, -3, GETDATE()))) and f_userfiles_id = '${obj.f_userfiles_id}' `
139
+ }
140
+ let getUnWriteSell = await this.$resetpost('rs/sql/getUnWriteRecord', {data: data}, {resolveMsg:null,rejectMsg:null})
141
+ console.log('获取未写卡记录', getUnWriteSell)
142
+ if (getUnWriteSell.data.length > 1) {
143
+ this.$showAlert('此卡已缴费多次未写卡。请核实后处理!!', 'warning', 5000)
144
+ } else {
145
+ this.row = obj
146
+ this.row.unWriteSell = getUnWriteSell.data
147
+ this.cardInfo = this.$refs.list.cardInfo
148
+ this.$refs.list.criteriaShow = false
149
+ // 将列表只显示该条数据
150
+ this.$refs.list.refreshRow(obj)
151
+ }
152
+ }
153
+ }
154
+ },
155
+ close () {
156
+ this.showModal = false
157
+ this.warningInfo = null
158
+ this.clean()
159
+ this.$refs.list.search()
160
+ // this.$refs.card.search()
161
+ },
162
+ async validateRow (obj) {
163
+ console.log('查看传进来的参数:', obj)
164
+ this.warningInfo = await this.$resetpost('rs/logic/getWarningMsg',
165
+ {data: {
166
+ f_userfiles_id: obj.f_userfiles_id,
167
+ f_userinfo_code: obj.f_userinfo_code,
168
+ f_userinfo_id: obj.f_userinfo_id
169
+ }
170
+ }
171
+ , {resolveMsg: '', rejectMsg: '获取提示失败'})
172
+ if (this.warningInfo.data.warningNum > 0 && obj.f_user_state !== '预备') {
173
+ this.modalrow = obj
174
+ this.showModal = true
175
+ return false
176
+ } else {
177
+ return true
178
+ }
179
+ },
180
+ clean () {
181
+ this.row = null
182
+ this.cardInfo = null
183
+ },
184
+ clearCondition () {
185
+ Object.keys(this.$refs.list.$refs.paged.$refs.cri.model).forEach((key) => {
186
+ console.log('key', key)
187
+ console.log('对应啥数据', this.$refs.list.$refs.paged.$refs.cri.model[key])
188
+ this.$refs.list.$refs.paged.$refs.cri.model[key] = []
189
+ })
190
+ // console.log('清数据。。。', this.$refs.list.$refs.paged.$refs.grid.model.rows)
191
+ // this.$set('$refs.list.$refs.paged.$refs.grid.model.rows', [])
192
+ },
193
+ dealMsg (obj) {
194
+ console.log('==================obj', obj)
195
+ this.listpage = false
196
+ this.rowData = obj
197
+ },
198
+ cancel (obj) {
199
+ this.listpage = true
200
+ },
201
+ cancelAndRefresh (obj) {
202
+ this.listpage = true
203
+ this.clean()
204
+ this.clearCondition()
205
+ this.$refs.list.searchNoData()
206
+ this.$refs.card.search()
207
+ },
208
+ modalsuccess (obj) {
209
+ this.showModal = false
210
+ this.$refs.list.criteriaShow = false
211
+ this.row = obj
212
+ this.cardInfo = this.$refs.list.cardInfo
213
+ // 将列表只显示该条数据
214
+ this.$refs.list.refreshRow(obj)
215
+ },
216
+ async serRow (obj) {
217
+ let newdata = await this.$resetpost('rs/sql/sale_getUser', {
218
+ data: {condition: `i.f_userinfo_code='${obj.f_userinfo_code}' and u.f_filialeid = '${obj.f_filialeid}'`, orderitem: `f_userinfo_id Desc`}
219
+ }, {resolveMsg: null, rejectMsg: '获取用户信息失败'})
220
+ this.toBusiness(newdata.data[0])
221
+ // this.$refs.list.search()
222
+ }
223
+ },
224
+ events: {
225
+ 'error' (name, row, res) {
226
+ this.clean()
227
+ },
228
+ 'row' (val) {
229
+
230
+ },
231
+
232
+ 'success' (name, row, res) {
233
+ this.setsustainMoney()
234
+ // name === '发卡售气' ? this.$refs.list.toNext(this.index) : null
235
+ if (name === '机表收费确认') {
236
+ this.serRow(row)
237
+ return
238
+ }
239
+ if (name === '卡表收费' && this.reSearchShowMsy) {
240
+ this.$refs.list.$refs.paged.$refs.cri.$refs.readcard.readCard()
241
+ this.$refs.oper.noButton = false
242
+ return
243
+ }
244
+ if (name === '物联网收费' && this.reSearchShowMsy) {
245
+ this.serRow(row)
246
+ return
247
+ }
248
+ console.log('成功事件')
249
+ this.clean()
250
+ this.$refs.list.search()
251
+ // this.clearCondition()
252
+ // this.$refs.card.search()
253
+ // this.$refs.info.$refs.recordstoryinfo.getdata()
254
+ },
255
+ 'clean' (row) {
256
+ // this.$refs.list.singleRefresh(row)
257
+ this.clean()
258
+ },
259
+ 'refresh' () {
260
+ this.setsustainMoney()
261
+ this.clean()
262
+ this.clearCondition()
263
+ this.$refs.list.searchNoData()
264
+ this.$refs.card.search()
265
+ },
266
+ 'resflushvalue' () {
267
+ this.$refs.info.$refs.valueaddinfo.reflush()
268
+ },
269
+ 'resflushrowdata' () {
270
+ this.toBusiness(this.row)
271
+ },
272
+ 'resflushdata' (data) {
273
+ this.toBusiness(data)
274
+ },
275
+ 'refreshrow' (val) {
276
+ console.log(val)
277
+ this.row = val
278
+ this.$refs.list.refreshRow(val)
279
+ // this.$refs.card.search()
280
+ },
281
+ 'cancelclean' (row) {
282
+ this.clean()
283
+ this.$refs.list.searchNoData()
284
+ // this.$refs.card.search()
285
+ }
286
+ },
287
+ watch: {
288
+ 'row' () {
289
+ // this.$refs.tab.$el.click()
290
+ }
291
+ }
292
+ }
293
+ </script>
294
+ <style>
295
+ .basic-main {
296
+ width: 79%;
297
+ }
298
+ .tel_voiceActive{
299
+ font-family: PingFang-SC-Bold;
300
+ font-size: 16px;
301
+ font-weight: normal!important;
302
+ font-stretch: normal!important;
303
+ line-height: 18px;
304
+ letter-spacing: 0px;
305
+ color: #333333!important;
306
+ border-bottom: 3px solid #599fe5;
307
+ padding:10px 10px!important;
308
+ }
309
+ .tel_f_size{
310
+ font-family: PingFang-SC-Medium;
311
+ font-size: 16px;
312
+ font-weight: normal;
313
+ font-stretch: normal;
314
+ line-height: 18px;
315
+ letter-spacing: 0px;
316
+ color: #666666!important;
317
+ padding:10px 10px!important;
318
+ }
319
+ </style>
@@ -23,4 +23,7 @@ export default function () {
23
23
  Vue.component('change-meter', (resolve) => { require(['./ChangeMeter'], resolve) })
24
24
  // 物联网表收费
25
25
  Vue.component('iot-meter-center', (resolve) => { require(['./charge/IOTMeterCenter'], resolve) })
26
+ // 物联网表收费
27
+ Vue.component('charge-manage', (resolve) => { require(['./charge/ChargeManage.vue'], resolve) })
28
+
26
29
  }
File without changes
@@ -1,2 +0,0 @@
1
- #Wed Jul 31 10:14:59 CST 2024
2
- gradle.version=5.2.1
File without changes