sale-client 4.1.7 → 4.1.9

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,2 +1,2 @@
1
- #Wed Apr 02 14:48:19 CST 2025
1
+ #Thu May 15 14:43:19 CST 2025
2
2
  gradle.version=5.2.1
@@ -19,12 +19,6 @@ var devConfig = {
19
19
  children: false // 不输出子模块构建信息
20
20
  },
21
21
  proxy: {
22
- '/api/af-revenue/report': {
23
- pathRewrite: {
24
- '/api/af-revenue/report': '/report'
25
- },
26
- target: localUrl
27
- },
28
22
  '/api/af-revenue/batchdeduction/all': {
29
23
  pathRewrite: {
30
24
  '/api/af-revenue/batchdeduction/all': '/batchdeduction/all'
@@ -37,10 +31,10 @@ var devConfig = {
37
31
  },
38
32
  target: localUrl
39
33
  },
40
- '/api/af-revenue/downloadfile/file': {
41
- pathRewrite: {
42
- '/api/af-revenue/downloadfile/file': 'downloadfile/file'
43
- },
34
+ '/api/af-revenue/file': {
35
+ // pathRewrite: {
36
+ // '/api/af-revenue/file': '/file'
37
+ // },
44
38
  target: localUrl
45
39
  },
46
40
  '/weixin2/rs':{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "4.1.7",
3
+ "version": "4.1.9",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -32,7 +32,7 @@
32
32
  "less-loader": "^2.2.3",
33
33
  "system-clients": "3.3.2",
34
34
  "ldap-clients": "3.0.96",
35
- "address-client": "4.0.11",
35
+ "address-client": "4.0.1-yunChengV4",
36
36
  "manage-client": "3.1.8-88",
37
37
  "axios": "0.15.3",
38
38
  "babel-core": "^6.0.0",
@@ -1374,7 +1374,7 @@ export default {
1374
1374
  },
1375
1375
  async communityChange (val) {
1376
1376
  console.log(val)
1377
- if (val) {
1377
+ if (val && val !== '[object Event]') {
1378
1378
  await this.initareas(` f_filialeid = '${this.f_filialeids}' and f_community_id ='${val}' `)
1379
1379
  }
1380
1380
  }
@@ -0,0 +1,213 @@
1
+ <template>
2
+ <div class="flex" style="overflow-y: auto!important;">
3
+ <div class="auto" style="height: 50%; overflow: auto">
4
+ <div v-for="owe of list" >
5
+ <garbagefees-list :row='owe' :floor="config.floor" :charge="config.charge" @garbage-center="refreshCenter"></garbagefees-list>
6
+ </div>
7
+ </div>
8
+ <div class="span">
9
+ <validator name='v'>
10
+ <div class="row" style="height: 20vh">
11
+ <div class="col-sm-4 form-group" :class="[$v.payment.required ? 'select-error' : '']">
12
+ <label class="font_normal_body" title="参数名称:付款方式">收款方式</label>
13
+ <input type="text" v-show="false" v-model="$refs.payment.selectedItems"
14
+ v-validate:payment='{required: true }'>
15
+ <v-select v-model="model.f_payment"
16
+ placeholder='请选择'
17
+ style="width:60%"
18
+ :value-single = 'true'
19
+ :value.sync="model.f_payment"
20
+ :options='paytype'
21
+ v-ref:payment
22
+ close-on-select clear-button>
23
+ </v-select>
24
+ </div>
25
+ <div class="col-sm-4 form-group">
26
+ <label for="f_print" class="font_normal_body">打印格式</label>
27
+ <v-select id="print"
28
+ v-model="f_print"
29
+ style="width:60%"
30
+ :value-single = 'true'
31
+ placeholder='请选择'
32
+ :value.sync="model.f_print"
33
+ :options='printstyle'
34
+ close-on-select clear-button>
35
+ </v-select>
36
+ </div>
37
+ <div class="col-sm-4 form-group">
38
+ <label class="font_normal_body">总&ensp;欠&ensp;费</label>
39
+ <input class="input_search" style="width:60%" type="number" v-model="garbagefee" placeholder="总欠费" disabled>
40
+ </div>
41
+ </div>
42
+ <div style="text-align:right;">
43
+ <button class="button_search btn-gn" @click="confirm()" :disabled='!$v.valid'>确认</button>
44
+ <button class="button_clear btn-gn" @click="clean()">取消</button>
45
+ </div>
46
+ </validator>
47
+ <validate-bill v-if="hasValidateBill" :data="model" @validate-bill="validateBill"></validate-bill>
48
+ <print-bill :show="print" :bill-config='config' :bill-data='billData' v-on:toggle="clean" @printok="printok"
49
+ :data='row' v-ref:printbill></print-bill>
50
+ <payment-code v-ref:paymentcode :payment="model.f_payment" :row="row" :money="garbagefee"></payment-code>
51
+ </div>
52
+ </div>
53
+ </template>
54
+ <script>
55
+ import {HttpResetClass} from 'vue-client'
56
+
57
+ let loadGen = async function (self) {
58
+ await self.$getConfig(self, 'GarbageCharge')
59
+ // 默认打印格式
60
+ self.model.f_print = self.config.printType instanceof Array ? self.config.printType[0] : self.config.printType
61
+ self.model.f_payment = self.config.payment
62
+ self.model.f_use_type = self.config.billType
63
+ self.model.f_bill_type = self.model.f_print
64
+ self.hasValidateBill = self.config.hasBillManage
65
+ let http = new HttpResetClass()
66
+ let res = await http.load('POST', 'api/af-revenue/sql/getFlotsamprice', {data: {f_userinfo_id: self.row.f_userinfo_id}}, {resolveMsg: null, rejectMsg: '获取欠费出错!!', newly: true})
67
+ if (res.data.length > 0) {
68
+ let list = [{
69
+ f_userinfo_id: res.data[0].f_userinfo_id,
70
+ rows: res.data
71
+ }]
72
+ self.list = list
73
+ let owes = res.data
74
+ self.refreshCenter(owes)
75
+ }
76
+ }
77
+ /**
78
+ *售气收费
79
+ *机表收费组合组件,包括抄表列表以及机表收费主组件
80
+ */
81
+ export default {
82
+ title: '收费',
83
+ data () {
84
+ return {
85
+ config: {
86
+ showupload: false, // 默认不上传附件
87
+ hasPrint: false, // 默认打票
88
+ hasBillManage: false, // 默认不启用发票管理
89
+ overBalance: false, // 为true时退费金额可以大于余额
90
+ printType: '普通收据', // 收据/电子票/专用发票/国税发票
91
+ payment: '现金',
92
+ billType: '燃气费'
93
+ },
94
+ print:false,
95
+ paytype: this.$appdata.getParam('付款方式'),
96
+ printstyle: this.$appdata.getParam('打印格式'),
97
+ printInvoiceType: this.$appdata.getSingleValue('电子票打印类型') ? this.$appdata.getSingleValue('电子票打印类型') : '电子发票',
98
+ garbagelist: [],
99
+ billData: {
100
+ url: 'api/af-revenue/report/sendCard_bill',
101
+ bill: ''
102
+ },
103
+ garbagefee: 0,
104
+ blodid: '',
105
+ oweArr: [],
106
+ model: {},
107
+ list: [],
108
+ splitAllgas: 0,
109
+ chargeView: false
110
+ }
111
+ },
112
+ props: ['row','cardData'],
113
+ ready () {
114
+ this.initData(this.row)
115
+ this.blodid = this.row.f_userinfo_id
116
+ loadGen(this)
117
+ },
118
+ methods: {
119
+ clean () {
120
+ this.$info('取消操作')
121
+ this.$dispatch('refresh', this.row)
122
+ },
123
+ async confirm () {
124
+ if (this.money <= 0) {
125
+ this.$showMessage('收费金额不能小于等于0')
126
+ return
127
+ }
128
+ let ss = await this.$refs.paymentcode.flowPath()
129
+ this.$refs.paymentcode.paymentCodeShow = false
130
+ console.log('付款码操作返回', ss)
131
+ if (!ss.result) return
132
+ let param = {
133
+ f_userfiles_id: this.row.f_userfiles_id,
134
+ money: this.garbagefee,
135
+ garbagelist: this.garbagelist,
136
+ f_operator: this.$login.f.name,
137
+ f_operatorid: this.$login.f.id,
138
+ f_orgid: this.$login.f.orgid,
139
+ f_orgname: this.$login.f.orgs,
140
+ f_depid: this.$login.f.depids,
141
+ f_depname: this.$login.f.deps,
142
+ f_payment: this.model.f_payment[0]
143
+ }
144
+ console.log('垃圾费收费', param)
145
+ let res = await this.$resetpost('api/af-revenue/logic/savegarbageFee', {data: param}, {warnMsg: `确定要对用户${this.row.f_user_name}进行垃圾费收费吗?`, resolveMsg: '收费成功!!', rejectMsg: '收费失败!!请重试!!'})
146
+ console.log('垃圾费收费', res)
147
+ if (this.config.hasPrint) {
148
+ if (this.model.f_print.indexOf('电子发票') == -1) {
149
+ console.log('this.config.hasBillManage', this.config.hasBillManage)
150
+ if (this.config.hasBillManage) {
151
+ // 启用发票管理,获取票据管理中的票号并存储记录
152
+ this.row.id = res.data.recordId
153
+ this.row.f_bill_type = '垃圾费'
154
+ this.row.f_bill_style = this.model.f_print
155
+ this.billData.url = 'api/af-revenue/report/garbageChargeReport'
156
+ this.print = true
157
+ } else {
158
+ this.row.id = res.data.recordId
159
+ this.billData.url = 'api/af-revenue/report/garbageChargeReport'
160
+ this.print = true
161
+ }
162
+ } else if (this.config.printType === '国税发票') {
163
+ // TODO
164
+ this.$dispatch('success')
165
+ } else if (this.config.printType === '电子发票') {
166
+ // TODO
167
+ this.$dispatch('success')
168
+ }
169
+ } else {
170
+ this.$dispatch('success')
171
+ }
172
+ },
173
+ refreshCenter (val) {
174
+ this.garbagelist = val
175
+ this.garbagefee = 0
176
+ for (let i = 0; i < val.length; i++) {
177
+ if (val[i]) {
178
+ this.garbagefee += val[i].f_money
179
+ }
180
+ }
181
+ },
182
+ initData (row) {
183
+ let temp = {
184
+ f_payment: '现金缴费',
185
+ f_user_id: row.f_user_id,
186
+ f_userinfo_id: row.f_userinfo_id,
187
+ f_userfiles_id: row.f_userfiles_id,
188
+ f_balance: row.f_balance,
189
+ otherprice: '',
190
+ f_pregas: 0,
191
+ f_preamount: 0,
192
+ f_totalcost: 0,
193
+ f_curbalance: 0,
194
+ f_collection: '',
195
+ f_garbage_fee: 0,
196
+ f_overdue: 0,
197
+ f_lowest: 0,
198
+ f_print: '普通收据',
199
+ f_privilege_id: 0,
200
+ f_privilege_money: 0,
201
+ f_privilege_gas: 0,
202
+ f_after_discount: 0
203
+ }
204
+ this.model = Object.assign({}, this.model, temp)
205
+ }
206
+ }
207
+ }
208
+ </script>
209
+ <style lang="less">
210
+ #tooltip div {
211
+ height: auto;
212
+ }
213
+ </style>
@@ -7,6 +7,7 @@ export default function () {
7
7
  Vue.use(MachineChargeService)
8
8
  // 垃圾费
9
9
  Vue.component('garbagefees-list', (resolve) => { require(['./GarbagefeesList.vue'], resolve) })
10
+ Vue.component('garbage-charge', (resolve) => { require(['./GarbageCharge.vue'], resolve) })
10
11
  // 保险收费
11
12
  Vue.component('insurance-temp', (resolve) => { require(['./InsuranceAdd.vue'], resolve) })
12
13
  // 物联网表收费引导
@@ -25,7 +26,8 @@ export default function () {
25
26
  Vue.component('machine-charge', (resolve) => { require(['./MachineCharge.vue'], resolve) })
26
27
  // 机表收费引导
27
28
  Vue.component('machine-meter-center', (resolve) => { require(['./MachineMeterCenter.vue'], resolve) })
28
-
29
+ // 机表收费引导
30
+ Vue.component('garbage-charge', (resolve) => { require(['./GarbageCharge.vue'], resolve) })
29
31
  // 机表收费引导
30
32
  Vue.component('sale-userinfo', (resolve) => { require(['./Userinfo.vue'], resolve) })
31
33
  }
package/src/main.js CHANGED
@@ -2,8 +2,8 @@ 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/fugu/sale'
5
6
  import sale from './sale'
6
- import FilialeSale from './filiale/yangchun/sale'
7
7
  import address from 'address-client/src/address'
8
8
  import ldap from 'ldap-clients/src/ldap'
9
9
  import VueClipboard from 'vue-clipboard2'
@@ -22,7 +22,7 @@ Vue.config.silent = true
22
22
  all()
23
23
  system(false)
24
24
  sale()
25
- address('yangchun')
25
+ address()
26
26
  ldap()
27
27
  FilialeSale()
28
28
  require('system-clients/src/styles/less/bootstrap.less')