sale-client 4.2.146 → 4.2.147

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.
Files changed (58) hide show
  1. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.2.1/gc.properties +0 -0
  4. package/.gradle/8.8/checksums/checksums.lock +0 -0
  5. package/.gradle/8.8/dependencies-accessors/gc.properties +0 -0
  6. package/.gradle/8.8/executionHistory/executionHistory.bin +0 -0
  7. package/.gradle/8.8/executionHistory/executionHistory.lock +0 -0
  8. package/.gradle/8.8/fileChanges/last-build.bin +0 -0
  9. package/.gradle/8.8/fileHashes/fileHashes.bin +0 -0
  10. package/.gradle/8.8/fileHashes/fileHashes.lock +0 -0
  11. package/.gradle/8.8/gc.properties +0 -0
  12. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  13. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  14. package/.gradle/file-system.probe +0 -0
  15. package/.gradle/vcs-1/gc.properties +0 -0
  16. package/build/dev-server.js +29 -51
  17. package/index.html +2 -7
  18. package/package.json +1 -1
  19. package/src/App.vue +1 -1
  20. package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
  21. package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
  22. package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
  23. package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
  24. package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
  25. package/src/filiale/bayan/ChargeList.vue +1010 -1010
  26. package/src/filiale/bayan/StockListmain.vue +543 -543
  27. package/src/filiale/bazhong/UserInfoDetailManageNew.vue +245 -245
  28. package/src/filiale/bazhong/ic_detail/ChangeMeterQueryUser.vue +370 -370
  29. package/src/filiale/bazhong/sale.js +8 -8
  30. package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
  31. package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
  32. package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
  33. package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
  34. package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
  35. package/src/filiale/ronghao/CardService.js +2144 -2144
  36. package/src/filiale/ronghao/InsuranceManage.vue +58 -58
  37. package/src/filiale/ronghao/MachineChargeService.js +149 -149
  38. package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
  39. package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
  40. package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
  41. package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
  42. package/src/filiale/ronghao/Upload.vue +654 -654
  43. package/src/filiale/ronghao/cardDown.vue +1141 -1141
  44. package/src/filiale/ronghao/changemeterOperate.vue +315 -315
  45. package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
  46. package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
  47. package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
  48. package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
  49. package/src/filiale/ronghao/machineDown.vue +1176 -1176
  50. package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
  51. package/src/filiale/ronghao/specificInformation.vue +537 -537
  52. package/src/filiale/xihu/OffGasAddGas.vue +337 -0
  53. package/src/filiale/xihu/sale.js +2 -0
  54. package/src/filiale/yangchun/ChargeList.vue +954 -954
  55. package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
  56. package/src/filiale/zhongsheng/BlackListList.vue +293 -293
  57. package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
  58. package/src/main.js +3 -3
@@ -0,0 +1,337 @@
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='v'>
4
+ <form novalidate class="form-horizontal">
5
+ <div class="row" style="margin-top:10px;">
6
+ <div class="col-sm-4" :class="[$v.f_pregas.required || $v.f_pregas.dctest ? 'has-error' : 'has-success']">
7
+ <label class=" font_normal_body" >*补气量</label>
8
+ <input class="input_search" style="width:60%" type="text" v-model="model.f_pregas" :readonly="!applyButtonShow"
9
+ v-validate:f_pregas='{required: true, dctest: [0, ">=" ]}' placeholder="补气量">
10
+ </div>
11
+ <div class="col-sm-4">
12
+ <label for="f_pregas" class=" font_normal_body" >补气金额</label>
13
+ <input class="input_search" style="width:60%" type="text" v-model="model.f_fillamount"
14
+ v-validate:f_pregas='{required: true }' :readonly="!applyButtonShow" placeholder="补气金额">
15
+ </div>
16
+ <div class="col-sm-4">
17
+ <label for="f_reason" class=" font_normal_body" >补气原因</label>
18
+ <v-select id="f_reason"
19
+ v-model="model.f_reason"
20
+ placeholder='补气原因'
21
+ :value.sync="model.f_reason"
22
+ :options='addGasReason'
23
+ :disabled="!applyButtonShow"
24
+ close-on-select ></v-select>
25
+ </div>
26
+ <div class="col-sm-4">
27
+ <label for="f_write_card" class=" font_normal_body">是否写卡</label>
28
+ <v-select id="f_write_card"
29
+ v-model="model.f_write_card"
30
+ placeholder='是否写卡'
31
+ value-single
32
+ :value.sync="model.f_write_card"
33
+ :options='writecard'
34
+ :disabled="!applyButtonShow"
35
+ close-on-select clear-button></v-select>
36
+ </div>
37
+ </div>
38
+
39
+
40
+ <div class="row" style="margin-top:10px;">
41
+ <div class="col-sm-offset-0 col-sm-8">
42
+ <label for="f_reason" class=" font_normal_body" >备注</label>
43
+ <textarea class="input_textarea" style="width: 90%; height: auto" rows="5" v-model="model.f_othereason" placeholder="备注补气原因" >
44
+ </textarea>
45
+ </div>
46
+ </div>
47
+ </form>
48
+ <print-bill :show="print" :bill-config='config' :bill-data='billData' :data='row' @toggle="clean" @printok="printok" v-ref:printbill></print-bill>
49
+ <accept-bill :show="acceptprint" :bill-url='acceptUrl' v-on:toggle="close" :data='row' :billdata="printData" v-ref:acceptbill @closeaccept="closeAccept"></accept-bill>
50
+ <div style="text-align:right;">
51
+ <button class="button_search button_spacing" @click="accept()" v-if="config.hasAcceptance" :disabled='!$v.valid'>受理单</button>
52
+ <button class="button_search button_spacing" v-show="config.approve == true ? applyButtonShow : false" @click="apply()" :disabled='!$v.valid'>掉气补气审核</button>
53
+ <button class="button_search button_spacing" v-show="config.approve == true ? !applyButtonShow : true" @click="confirm()" :disabled='!$v.valid || buttonDisable'>确认</button>
54
+ <button class="button_clear" v-show="applyButtonShow" @click="clean()">取消</button>
55
+ </div>
56
+ </validator>
57
+ <modal :show.sync="addTaskModalShow" backdrop="false" width="40%" title="创建任务" small="true" @modal-close="addTaskModalClose()">
58
+ <article slot="modal-body" class="row" style="padding: 10px">
59
+ <add-apply-task :applytaskobj.sync="addTaskModel" @valid="addTaskValid = true" @invalid="addTaskValid = false">
60
+ </add-apply-task>
61
+ </article>
62
+ <footer slot="modal-footer" class="modal-footer" style="text-align: right;border: 0">
63
+ <button class="btn button_search" @click="addTask()"
64
+ :disabled="!addTaskValid">新增审核任务
65
+ </button>
66
+ </footer>
67
+ </modal>
68
+ </div>
69
+ </template>
70
+ <script>
71
+
72
+ import {HttpResetClass} from "vue-client";
73
+
74
+ let asyncOffGasManage = async function (self, val) {
75
+ await self.$getConfig(self, 'OffGasAddGas')
76
+ console.log('掉气补气config', self.config)
77
+ self.model.f_user_id = val.f_user_id
78
+ self.model.f_userinfo_id = val.f_userinfo_id
79
+ self.model.f_card_id = val.f_card_id
80
+ self.model.f_meter_brand = val.f_meter_brand
81
+ let data = {
82
+ items: '*',
83
+ tablename: 't_sellinggas',
84
+ condition: 'f_user_id=' + "'" + self.model.f_user_id + "'" + 'and f_userinfo_id=' + "'" + self.model.f_userinfo_id + "'" + 'and (f_type=' + "'" + '卡表收费' + "'" + 'or f_type=' + "'" + '发卡售气' + "'" + 'or f_type=' + "'" + '转气转入' + "'" + 'or f_type=' + "'" + '物联网收费' + "')" + "and f_state='有效'",
85
+ orderitem: 'id desc'
86
+ }
87
+ await self.$SqlService.singleTableOrderBy(data).then((res) => {
88
+ console.log('看下吧返回的是什么:' + JSON.stringify(res))
89
+ self.model.f_pregas = res.data[0].f_pregas
90
+ self.model.f_fillamount = res.data[0].f_preamount
91
+ self.model.f_lastremain_fillgas = self.model.f_pregas
92
+ self.model.f_theremain_fillgas = self.model.f_lastremain_fillgas - self.model.f_pregas
93
+ }).catch((error) => {
94
+ self.$dispatch('error', '掉气补气', self.row, error)
95
+ })
96
+ }
97
+ export default {
98
+ title: '掉气补气',
99
+ data () {
100
+ return {
101
+ config: {
102
+ hasPrint: false, // 默认打票
103
+ hasBillManage: false, // 默认不启用发票管理
104
+ billType: '其他费用', // 票据类型(燃气费,其他费用,调用的发票代码不同)
105
+ printType: '普通收据', // 收据/电子票/专用发票/国税发票
106
+ payment: '现金缴费',
107
+ hasAcceptance: false, // 是否需要打印受理单
108
+ approve: false
109
+ },
110
+ print: false,
111
+ billData: {
112
+ url: 'api/af-revenue/report/acceptOffGasAddGas_bill',
113
+ billnumber: ''
114
+ },
115
+ model: {
116
+ f_pregas: '',
117
+ f_write_card: '写卡',
118
+ f_lastremain_fillgas: '',
119
+ f_fillamount: '',
120
+ f_theremain_fillgas: '',
121
+ f_reason: '掉气补气',
122
+ f_othereason: '',
123
+ f_meter_brand: '',
124
+ f_card_id: ''
125
+ },
126
+ hasValidateBill: false,
127
+ validateOk: false,
128
+ writecard: [{label: '写卡',value:'写卡'},{label: '不写卡',value:'不写卡'}],
129
+
130
+ // 受理单
131
+ acceptprint: false,
132
+ acceptUrl: '',
133
+ printData: {
134
+ reason: '',
135
+ fillgas: '',
136
+ fillamount: ''
137
+ },
138
+ addGasReason: this.$appdata.getParam('补气原因'),
139
+ addTaskModel: {
140
+ f_task_name: '',
141
+ f_userinfo_code: '',
142
+ f_work_flow_name: '',
143
+ f_approval: this.$appdata.getSingleValue('审核员角色') ? this.$appdata.getSingleValue('审核员角色') : '',
144
+ f_memorandum: ''
145
+ },
146
+ addTaskValid: false,
147
+ addTaskModalShow: false,
148
+ buttonDisable: false
149
+ }
150
+ },
151
+ props: {
152
+ row: {
153
+ type: Object,
154
+ default: undefined
155
+ },
156
+ applyButtonShow: {
157
+ type: Boolean,
158
+ default: true
159
+ },
160
+ dataModel: {
161
+ type: Object,
162
+ default: undefined
163
+ }
164
+ },
165
+ ready () {
166
+ this.model.f_user_id = this.row.f_user_id
167
+ this.model.f_userfiles_id = this.row.f_userfiles_id
168
+ this.model.f_userinfo_id = this.row.f_userinfo_id
169
+ this.model.f_card_id = this.row.f_card_id
170
+ asyncOffGasManage(this, this.row).then(() => {
171
+ this.$emit(ready())
172
+ }).catch((error) => {
173
+ this.$emit('error', error)
174
+ })
175
+ },
176
+ watch: {
177
+ // 'row' (val) {
178
+ // this.model.f_user_id = val.f_user_id
179
+ // this.model.f_userinfo_id = val.f_userinfo_id
180
+ // this.model.f_card_id = val.f_card_id
181
+ // this.model.f_meter_brand = val.f_meter_brand
182
+ // let data = {
183
+ // items: '*',
184
+ // tablename: 't_sellinggas',
185
+ // condition: 'f_user_id=' + "'" + this.model.f_user_id + "'" + 'and f_userinfo_id=' + "'" + this.model.f_userinfo_id + "'" + 'and (f_type=' + "'" + '卡表收费' + "'" + 'or f_type=' + "'" + '发卡售气' + "')" +"and f_state='有效'",
186
+ // orderitem: 'f_operate_date desc, id desc'
187
+ // }
188
+ // this.$SqlService.singleTableOrderBy(data).then((res) => {
189
+ // console.log('看下吧返回的是什么:' + JSON.stringify(res))
190
+ // this.model.f_pregas = res.data[0].f_pregas
191
+ // this.model.f_fillamount = res.data[0].f_preamount
192
+ // this.model.f_lastremain_fillgas = this.model.f_pregas
193
+ // this.model.f_theremain_fillgas = this.model.f_lastremain_fillgas - this.model.f_pregas
194
+ // }).catch((error) => {
195
+ // this.$dispatch('error', '掉气补气', this.row, error)
196
+ // })
197
+ // }
198
+ 'dataModel' (val) {
199
+ console.log('看看dataModel的值:', val)
200
+ if (val) {
201
+ this.$nextTick(() => {
202
+ this.model=Object.assign({},this.model,val)
203
+ })
204
+ }
205
+ }
206
+ },
207
+ methods: {
208
+ addTaskModalClose () {
209
+ this.addTaskModel.f_work_flow_name = ''
210
+ this.addTaskModel.f_task_name = ''
211
+ this.addTaskModel.f_userinfo_code = ''
212
+ this.addTaskModel.f_memorandum = ''
213
+ },
214
+ addTask () {
215
+ if (this.addTaskModel.f_userinfo_code != this.row.f_userinfo_code) {
216
+ this.$showAlert('请填写正确的用户编号!!!', 'warning', 3000)
217
+ return
218
+ }
219
+ let memorandum = {
220
+ f_memorandum: this.addTaskModel.f_memorandum
221
+ }
222
+ this.model.f_business_name = '掉气补气'
223
+ this.model.f_user_name = this.row.f_user_name
224
+ let data = {
225
+ f_created_by: this.$login.f.name,
226
+ f_orgid: this.$login.f.orgid,
227
+ f_orgname: this.$login.f.orgs,
228
+ f_depid: this.$login.f.depids,
229
+ f_depname: this.$login.f.deps,
230
+ addModel: this.addTaskModel,
231
+ f_memorandum: JSON.stringify(memorandum),
232
+ f_userinfo_json: this.model,
233
+ f_userinfo_id: this.row.f_userinfo_id
234
+ }
235
+ this.$resetpost('api/af-revenue/logic/future_createWorkFlowTask', {'data': data}
236
+ , {resolveMsg: null, rejectMsg: '新增任务失败!!'}).then(
237
+ (res) => {
238
+ this.$showAlert(res.data.msg + '请等待审批完成后去流程页面进行操作!!!', 'info', 3000)
239
+ this.addTaskModalClose()
240
+ this.addTaskModalShow = false
241
+ this.$dispatch('refresh')
242
+ }
243
+ )
244
+ },
245
+ async apply () {
246
+ let http = new HttpResetClass()
247
+ let param = {
248
+ items: 'id',
249
+ condition: `f_userinfo_id = '${this.row.f_userinfo_id}' and f_state = '0' and f_delete = '0'`,
250
+ tablename: '"t_flow"',
251
+ orderitem: '"id"'
252
+ }
253
+ let result = await http.load('POST', 'api/af-revenue/sql/saleSingleTable', {data: param},
254
+ {resolveMsg: null, rejectMsg: '获取流程信息失败!!'})
255
+ if (result.data.length > 0) {
256
+ this.$showAlert('当前申请用户已有流程在进行中,请完成当前进行流程在进行申请!!!', 'warning', 3000)
257
+ return
258
+ }
259
+ this.addTaskModel.f_task_name = `用户:${this.row.f_user_name},编号:${this.row.f_userinfo_code} 申请掉气补气`
260
+ this.addTaskModel.f_userinfo_code = this.row.f_userinfo_code
261
+ this.addTaskModel.f_memorandum = this.model.f_othereason
262
+ this.addTaskModalShow = true
263
+ },
264
+ close () {
265
+ this.acceptprint = false
266
+ // this.clean()
267
+ },
268
+ clear () {
269
+ this.$dispatch('refresh')
270
+ },
271
+ accept () {
272
+ // 打印受理单
273
+ if (this.model.f_othereason || this.model.f_reason[0] === '其他') {
274
+ this.printData.reason = `'${this.model.f_othereason}'`
275
+ } else {
276
+ this.printData.reason = this.model.f_comments ? `'${this.model.f_reason[0]}'` : '' + `'${this.model.f_reason}'`
277
+ }
278
+ this.printData.fillgas = `'${this.model.f_pregas}'`
279
+ this.printData.fillamount = `'${this.model.f_fillamount}'`
280
+ console.log('受累单中printData', this.printData)
281
+ this.acceptUrl = 'api/af-revenue/report/acceptOffGasAddGas_bill'
282
+ this.acceptprint = true
283
+ },
284
+ closeAccept () {
285
+ this.acceptprint = false
286
+ },
287
+ confirm () {
288
+ this.buttonDisable = true
289
+ this.$dispatch('no-button')
290
+ this.row.cardInfo = this.cardData
291
+ this.$OffGasAddGasService.offGasAddGas(this.model, this.row).then((res) => {
292
+ if (this.config.approve) {
293
+ console.log('存储补气业务信息')
294
+ let obj = {
295
+ data: {
296
+ id: res
297
+ }
298
+ }
299
+ this.$dispatch('futureapply', obj)
300
+ // 向上级触发一个事件改变流程的操作状态
301
+ this.$dispatch('changeFlowOperateState')
302
+ }
303
+ if (this.config.hasPrint) {
304
+ if (this.config.hasBillManage) {
305
+ this.row.id = res
306
+ this.row.f_bill_type = '掉气补气'
307
+ this.row.f_bill_style = ''
308
+ this.print = true
309
+ } else {
310
+ this.row.id = res
311
+ this.print = true
312
+ }
313
+ } else {
314
+ this.$dispatch('success', '掉气补气', this.row, res)
315
+ }
316
+ }).catch((error) => {
317
+ if (error.status === 603) {
318
+ this.$error('重复提交')
319
+ return
320
+ }
321
+ this.buttonDisable = false
322
+ this.$dispatch('error', '掉气补气', this.row, error)
323
+ })
324
+ },
325
+ printok () {
326
+ this.$dispatch('success', '掉气补气')
327
+ },
328
+ clean () {
329
+ this.print = false
330
+ this.$dispatch('cancelclean', this.row)
331
+ }
332
+ }
333
+ }
334
+ </script>
335
+
336
+ <style>
337
+ </style>
@@ -35,4 +35,6 @@ export default function () {
35
35
  Vue.component('meter-operate-maintain', (resolve) => { require(['./MeterOperatemain'], resolve) })
36
36
  Vue.component('user-base-info-new', (resolve) => { require(['./UserBaseInfoNew'], resolve) }) // 清零
37
37
  Vue.component('reset-meter', (resolve) => { require(['./ResetMeter'], resolve) })
38
+ //掉气补气
39
+ Vue.component('off-gas-add-gas', (resolve) => { require(['./OffGasAddGas'], resolve) })
38
40
  }