apply-clients 5.0.35-ezhou-25-11 → 5.0.35-ezhou-25-13

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "5.0.35-ezhou-25-11",
3
+ "version": "5.0.35-ezhou-25-13",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -766,7 +766,12 @@
766
766
  } else if(this.model.f_payment_account==='欣泰'){
767
767
  this.addItem.f_filiale ='欣泰工程公司'
768
768
  }else{
769
- this.addItem.f_filiale='迪泰公司'
769
+ //提示当前支付账户是
770
+ this.$showMessage("当前支付账户是:"+this.model.f_payment_account, ['confirm', 'cancel']).then((res) => {
771
+ if (res === 'cancel') {
772
+ return
773
+ }
774
+ })
770
775
  }
771
776
  // this.addItem.f_filiale = this.model.f_payment_account =='安泰' ? '燃气公司.安泰天然气' : '欣泰工程公司'
772
777
  this.addItem.f_process_id = this.infee.f_process_id
@@ -1,241 +1,241 @@
1
- import Vue from 'vue'
2
-
3
- let openEticketGen = async function (param, type, conf) {
4
- // 组织数据
5
- let getEticket = await Vue.resetpost('rs/logic/bjcombineData', {param: param, charge_type: type, eticket: conf}, {resolveMsg: null, rejectMsg: '获取电子票数据出错'})
6
- console.log('获取的电子票数据', getEticket)
7
- try{
8
- const openEticketParams = {
9
- url: '/invoice/rs/logic/getFapiao',
10
- params: {
11
- eticket_id: `${getEticket.data.eticket_id}`,
12
- USERNAME: ''
13
- }
14
- }
15
- const res = await Vue.resetpost('rs/logic/callInvoicing', openEticketParams, {resolveMsg: null, rejectMsg: null})
16
- this.$showAlert(res.data.RETURNMESSAGE || res.data.msg || '开票失败!', res.data.CODE === '0000' ? 'success' : 'danger', 3000)
17
- return res
18
- }catch (e) {
19
- Vue.showAlert(`电子发票开票失败,请在发票管理处重新开具`,'warning',3000)
20
- }}
21
-
22
- let correctEticketGen = async function (id, type, conf) {
23
- let param = {
24
- id: id,
25
- type: type,
26
- eticket: conf
27
- }
28
- let requestUrl = ''
29
- if (type === '机表抄表') {
30
- requestUrl = 'rs/logic/correctHandEticket'
31
- } else {
32
- requestUrl = 'rs/logic/correctEticket'
33
- }
34
-
35
- await Vue.resetpost(requestUrl, param, {resolveMsg: '冲红成功', rejectMsg: '冲红失败'})
36
- }
37
-
38
- let commonService = {
39
- install (Vue, options) {
40
- // 给vue增添对话框显示方法
41
- Vue.commonService = Vue.prototype.$commonService = commonService
42
- },
43
-
44
-
45
- gasCalculate (model, pregas) {
46
- return Vue.resetpost('rs/logic/CommonCal', {data: {model: model, isGasValue: 0, value: pregas}}, {resolveMsg: null, rejectMsg: '获取金额失败'})
47
- },
48
-
49
- feeCalculate (model, preamount) {
50
- return Vue.resetpost('rs/logic/commonCal', {data: {model: model, isGasValue: 1, value: preamount}}, {resolveMsg: null, rejectMsg: '获取气量失败'})
51
- },
52
-
53
- async saveLiquidation(data) {
54
- let param = {
55
- endDate:data.endDate,
56
- startDate:data.startDate,
57
- f_user_name: data.f_user_name,
58
- f_bill_id: data.f_bill_id,
59
- f_bill_number: data.f_bill_number,
60
- f_bill_type: data.f_bill_type,
61
- f_userinfo_id: data.f_userinfo_id,
62
- f_user_id: data.f_user_id,
63
- f_operator: data.f_operator,
64
- f_hand_month: data.f_hand_month,
65
- f_paid_money: data.f_paid_money,
66
- f_filiale : data.f_filiale,
67
- f_outlets: data.f_outlets,
68
- f_orgstr: data.f_orgstr,
69
- f_filialeids: data.f_filialeids,
70
- f_gas : data.f_gas
71
- }
72
- return await Vue.resetpost('rs/logic/saveLiquidation', {data: param}, {resolveMsg: null, rejectMsg: '开具发票失败,请重试或联系管理员'})
73
- },
74
- async operateLiquidation(data) {
75
- let param = {
76
- id :data.id,
77
- type : data.type
78
- }
79
- return await Vue.resetpost('rs/logic/operateLiquidation', {data: param}, {resolveMsg: null, rejectMsg: ''})
80
- },
81
-
82
- async openPaperBill(sellId, chargeType, useType, usingBill, billType,f_operator,f_filiale,f_outlets,f_orgstr,f_filialeids) {
83
- console.log("进入commonService")
84
- console.log(sellId, chargeType, useType, usingBill, billType,f_operator,f_filiale,f_outlets,f_orgstr,f_filialeids)
85
- let param = {
86
- f_charge_id: sellId,
87
- f_charge_type: '报建收费',
88
- f_use_type: useType,
89
- f_using_bill: usingBill,
90
- f_bill_type: billType,
91
- f_operator:f_operator,
92
- f_outlets:f_outlets,
93
- f_filiale:f_filiale,
94
- f_orgstr:f_orgstr,
95
- f_filialeids:f_filialeids
96
- // f_filialeid: this.$login.f.f_orgids.split('.')[this.$login.f.f_orgids.split('.').length - 2] + '.'
97
- }
98
- console.log("进入commonService,看看参数")
99
- console.log(param)
100
- await Vue.resetpost('rs/logic/apply_sale_openBill', {data: param}, {resolveMsg: null, rejectMsg: '更新发票号失败,请从右侧操作卡片进行补打!!'})
101
- },
102
-
103
- async correctPaperBill(sellId, chargeType, useType, usingBill, correctType) {
104
- let param = {
105
- f_charge_id: sellId,
106
- f_charge_type: chargeType,
107
- f_use_type: useType,
108
- f_using_bill: usingBill,
109
- f_bill_correct_type: correctType
110
- }
111
- await Vue.resetpost('rs/logic/sale_correctBill', {data: param}, {resolveMsg: null, rejectMsg: '更新发票号失败,请从右侧操作卡片进行补打!!'})
112
- },
113
-
114
- async reissuePaperBill(sellId, chargeType, model, useType) {
115
- let param = {
116
- f_charge_id: sellId,
117
- f_charge_type: chargeType,
118
- model: model,
119
- f_use_type: useType
120
- }
121
- await Vue.resetpost('rs/logic/sale_reissueBill', {data: param}, {resolveMsg: null, rejectMsg: '更新发票号失败,请从右侧操作卡片进行补打!!'})
122
- },
123
-
124
- async openEticket (param, chargeType) {
125
- // 获取各分公司下的电子票配置文件
126
- // 从vues目录下获取电子票配置
127
- try {
128
- let conf = await commonService.getSelfConfig()
129
- console.log('看看配置文件', conf)
130
- let tecket =await openEticketGen(param, chargeType, conf)
131
- return tecket
132
- } catch (error) {
133
- console.log('电子发票开票失败', JSON.stringify(error))
134
- Vue.showAlert(`电子发票开票失败!!请到发票管理重新开票。错误原因: ${JSON.stringify(error)}。`, 'danger', 0)
135
- }
136
-
137
- },
138
-
139
- async correctEticket (sellId, chargeType) {
140
- try {
141
- let conf = await commonService.getSelfConfig()
142
- console.log('看看配置文件', conf)
143
- await correctEticketGen(sellId, chargeType, conf)
144
- } catch (error) {
145
- console.log('电子发票冲正失败', JSON.stringify(error))
146
- Vue.showAlert(`电子发票冲正失败!!请到发票管理重新开票。错误原因: ${JSON.stringify(error)}。`, 'danger', 0)
147
- }
148
- },
149
-
150
- async getSelfConfig () {
151
- let res = await Vue.resetget('/rs/vue/Eticket.json',{resolveMsg: null, rejectMsg: '获取电子票配置出错'})
152
- console.log('获取各分公司下的电子票配置文件', res)
153
- let config = res.data[Vue.$login.f.f_orgids]
154
- if (config.isOne) {
155
- return config.info
156
- } else {
157
- // 返回操作人上一级的配置 key为f_orgstr(到操作人)串的前一个即网点
158
- return config[commonService.getOutlets()]
159
- }
160
- },
161
- getOutlets () {
162
- let result = ''
163
- let operator = Vue.$login.f.orgpathstr
164
- let tempArr = operator.split('.').splice(0, operator.split('.').length-2)
165
- for(let str of tempArr) {
166
- result += str + '.'
167
- }
168
- return result
169
- },
170
-
171
- buildSellinggas (model, row) {
172
- return {
173
- f_balance: row.f_meter_type === '机表' ? row.f_real_balance : row.f_balance,
174
- f_curbalance: row.f_meter_type === '机表' ? (row.f_real_balance - 0) + (model.f_collection - 0) : model.f_curbalance,
175
- f_user_balance: row.f_meter_type === '机表' ? row.f_balance : model.f_curbalance,
176
- f_meter_type: row.f_meter_type,
177
- f_payment: model.f_payment,
178
- f_user_id: model.f_user_id,
179
- // f_userinfo_id: row.f_userinfo_id,
180
- f_user_name: row.f_user_name,
181
- f_user_type: row.f_user_type,
182
- f_gasproperties: row.f_gasproperties,
183
- f_address: row.f_address,
184
- f_meter_brand: row.f_meter_brand,
185
- f_meter_style: row.f_meter_style,
186
- f_meternumber: row.f_meternumber,
187
- f_price_id: row.f_price_id,
188
- f_collection: model.f_collection,
189
- f_operator: Vue.$login.f.name,
190
- f_filiale: Vue.$login.f.f_fengongsi,
191
- f_outlets: Vue.$login.f.f_parentname,
192
- f_orgstr: Vue.$login.f.orgpathstr,
193
- f_filialeids: Vue.$login.f.f_orgids,
194
- f_charge_state: '有效'
195
- }
196
- },
197
- writeCardParams (cardParams) {
198
- console.log('common写卡参数,,,', cardParams)
199
- let result = {
200
- csql: cardParams.data.sc,
201
- lastmoney: cardParams.data.scje,
202
- ccsql: cardParams.data.ssc,
203
- lastlastmoney: cardParams.data.sscje,
204
- ljgql: cardParams.data.f_pregas,
205
- ljyql: cardParams.data.f_pregasall,
206
- yhh: cardParams.data.f_meterid,
207
- sxrq: cardParams.data.f_perform_date,
208
- totalmoney: cardParams.data.f_collection,
209
- stairversion: cardParams.data.f_stairversion
210
- }
211
-
212
- // 对阶梯进行处理
213
- if (cardParams.data.stairprice.includes(';') && cardParams.data.stairamount.includes(';')) {
214
- let gases = cardParams.data.stairamount.split(';')
215
- let prices = cardParams.data.stairprice.split(';')
216
- if (gases.length >= 2) {
217
- result.stairgas1 = gases[0] !== '' ? gases[0] : 0
218
- result.stairgas2 = gases[1] !== '' ? gases[1] : 0
219
- result.stairgas3 = '99999999'
220
- }
221
- if (prices.length >= 2) {
222
- result.stairprice1 = prices[0] !== '' ? prices[0] : 0
223
- result.stairprice2 = prices[1] !== '' ? prices[1] : 0
224
- result.stairprice3 = prices[2] !== '' ? prices[2] : 0
225
- }
226
- } else {
227
- // 从固定气价的表换金额表的时候,气量随便写,金额用之前的固定单价
228
- result.stairgas1 = '77777777'
229
- result.stairgas2 = '88888888'
230
- result.stairgas3 = '99999999'
231
-
232
- result.stairprice1 = cardParams.data.stairprice
233
- result.stairprice2 = cardParams.data.stairprice
234
- result.stairprice3 = cardParams.data.stairprice
235
- }
236
-
237
- return result
238
- }
239
- }
240
-
241
- export default commonService
1
+ import Vue from 'vue'
2
+
3
+ let openEticketGen = async function (param, type, conf) {
4
+ // 组织数据
5
+ let getEticket = await Vue.resetpost('rs/logic/bjcombineData', {param: param, charge_type: type, eticket: conf}, {resolveMsg: null, rejectMsg: '获取电子票数据出错'})
6
+ console.log('获取的电子票数据', getEticket)
7
+ try{
8
+ const openEticketParams = {
9
+ url: '/invoice/rs/logic/getFapiao',
10
+ params: {
11
+ eticket_id: `${getEticket.data.eticket_id}`,
12
+ USERNAME: ''
13
+ }
14
+ }
15
+ const res = await Vue.resetpost('rs/logic/callInvoicing', openEticketParams, {resolveMsg: null, rejectMsg: null})
16
+ this.$showAlert(res.data.RETURNMESSAGE || res.data.msg || '开票失败!', res.data.CODE === '0000' ? 'success' : 'danger', 3000)
17
+ return res
18
+ }catch (e) {
19
+ Vue.showAlert(`电子发票开票失败,请在发票管理处重新开具`,'warning',3000)
20
+ }}
21
+
22
+ let correctEticketGen = async function (id, type, conf) {
23
+ let param = {
24
+ id: id,
25
+ type: type,
26
+ eticket: conf
27
+ }
28
+ let requestUrl = ''
29
+ if (type === '机表抄表') {
30
+ requestUrl = 'rs/logic/correctHandEticket'
31
+ } else {
32
+ requestUrl = 'rs/logic/correctEticket'
33
+ }
34
+
35
+ await Vue.resetpost(requestUrl, param, {resolveMsg: '冲红成功', rejectMsg: '冲红失败'})
36
+ }
37
+
38
+ let commonService = {
39
+ install (Vue, options) {
40
+ // 给vue增添对话框显示方法
41
+ Vue.commonService = Vue.prototype.$commonService = commonService
42
+ },
43
+
44
+
45
+ gasCalculate (model, pregas) {
46
+ return Vue.resetpost('rs/logic/CommonCal', {data: {model: model, isGasValue: 0, value: pregas}}, {resolveMsg: null, rejectMsg: '获取金额失败'})
47
+ },
48
+
49
+ feeCalculate (model, preamount) {
50
+ return Vue.resetpost('rs/logic/commonCal', {data: {model: model, isGasValue: 1, value: preamount}}, {resolveMsg: null, rejectMsg: '获取气量失败'})
51
+ },
52
+
53
+ async saveLiquidation(data) {
54
+ let param = {
55
+ endDate:data.endDate,
56
+ startDate:data.startDate,
57
+ f_user_name: data.f_user_name,
58
+ f_bill_id: data.f_bill_id,
59
+ f_bill_number: data.f_bill_number,
60
+ f_bill_type: data.f_bill_type,
61
+ f_userinfo_id: data.f_userinfo_id,
62
+ f_user_id: data.f_user_id,
63
+ f_operator: data.f_operator,
64
+ f_hand_month: data.f_hand_month,
65
+ f_paid_money: data.f_paid_money,
66
+ f_filiale : data.f_filiale,
67
+ f_outlets: data.f_outlets,
68
+ f_orgstr: data.f_orgstr,
69
+ f_filialeids: data.f_filialeids,
70
+ f_gas : data.f_gas
71
+ }
72
+ return await Vue.resetpost('rs/logic/saveLiquidation', {data: param}, {resolveMsg: null, rejectMsg: '开具发票失败,请重试或联系管理员'})
73
+ },
74
+ async operateLiquidation(data) {
75
+ let param = {
76
+ id :data.id,
77
+ type : data.type
78
+ }
79
+ return await Vue.resetpost('rs/logic/operateLiquidation', {data: param}, {resolveMsg: null, rejectMsg: ''})
80
+ },
81
+
82
+ async openPaperBill(sellId, chargeType, useType, usingBill, billType,f_operator,f_filiale,f_outlets,f_orgstr,f_filialeids) {
83
+ console.log("进入commonService")
84
+ console.log(sellId, chargeType, useType, usingBill, billType,f_operator,f_filiale,f_outlets,f_orgstr,f_filialeids)
85
+ let param = {
86
+ f_charge_id: sellId,
87
+ f_charge_type: '报建收费',
88
+ f_use_type: useType,
89
+ f_using_bill: usingBill,
90
+ f_bill_type: billType,
91
+ f_operator:f_operator,
92
+ f_outlets:f_outlets,
93
+ f_filiale:f_filiale,
94
+ f_orgstr:f_orgstr,
95
+ f_filialeids:f_filialeids
96
+ // f_filialeid: this.$login.f.f_orgids.split('.')[this.$login.f.f_orgids.split('.').length - 2] + '.'
97
+ }
98
+ console.log("进入commonService,看看参数")
99
+ console.log(param)
100
+ await Vue.resetpost('rs/logic/apply_sale_openBill', {data: param}, {resolveMsg: null, rejectMsg: '更新发票号失败,请从右侧操作卡片进行补打!!'})
101
+ },
102
+
103
+ async correctPaperBill(sellId, chargeType, useType, usingBill, correctType) {
104
+ let param = {
105
+ f_charge_id: sellId,
106
+ f_charge_type: chargeType,
107
+ f_use_type: useType,
108
+ f_using_bill: usingBill,
109
+ f_bill_correct_type: correctType
110
+ }
111
+ await Vue.resetpost('rs/logic/sale_correctBill', {data: param}, {resolveMsg: null, rejectMsg: '更新发票号失败,请从右侧操作卡片进行补打!!'})
112
+ },
113
+
114
+ async reissuePaperBill(sellId, chargeType, model, useType) {
115
+ let param = {
116
+ f_charge_id: sellId,
117
+ f_charge_type: chargeType,
118
+ model: model,
119
+ f_use_type: useType
120
+ }
121
+ await Vue.resetpost('rs/logic/sale_reissueBill', {data: param}, {resolveMsg: null, rejectMsg: '更新发票号失败,请从右侧操作卡片进行补打!!'})
122
+ },
123
+
124
+ async openEticket (param, chargeType) {
125
+ // 获取各分公司下的电子票配置文件
126
+ // 从vues目录下获取电子票配置
127
+ try {
128
+ let conf = await commonService.getSelfConfig()
129
+ console.log('看看配置文件', conf)
130
+ let tecket =await openEticketGen(param, chargeType, conf)
131
+ return tecket
132
+ } catch (error) {
133
+ console.log('电子发票开票失败', JSON.stringify(error))
134
+ Vue.showAlert(`电子发票开票失败!!请到发票管理重新开票。错误原因: ${JSON.stringify(error)}。`, 'danger', 0)
135
+ }
136
+
137
+ },
138
+
139
+ async correctEticket (sellId, chargeType) {
140
+ try {
141
+ let conf = await commonService.getSelfConfig()
142
+ console.log('看看配置文件', conf)
143
+ await correctEticketGen(sellId, chargeType, conf)
144
+ } catch (error) {
145
+ console.log('电子发票冲正失败', JSON.stringify(error))
146
+ Vue.showAlert(`电子发票冲正失败!!请到发票管理重新开票。错误原因: ${JSON.stringify(error)}。`, 'danger', 0)
147
+ }
148
+ },
149
+
150
+ async getSelfConfig () {
151
+ let res = await Vue.resetget('/rs/vue/Eticket.json',{resolveMsg: null, rejectMsg: '获取电子票配置出错'})
152
+ console.log('获取各分公司下的电子票配置文件', res)
153
+ let config = res.data[Vue.$login.f.f_orgids]
154
+ if (config.isOne) {
155
+ return config.info
156
+ } else {
157
+ // 返回操作人上一级的配置 key为f_orgstr(到操作人)串的前一个即网点
158
+ return config[commonService.getOutlets()]
159
+ }
160
+ },
161
+ getOutlets () {
162
+ let result = ''
163
+ let operator = Vue.$login.f.orgpathstr
164
+ let tempArr = operator.split('.').splice(0, operator.split('.').length-2)
165
+ for(let str of tempArr) {
166
+ result += str + '.'
167
+ }
168
+ return result
169
+ },
170
+
171
+ buildSellinggas (model, row) {
172
+ return {
173
+ f_balance: row.f_meter_type === '机表' ? row.f_real_balance : row.f_balance,
174
+ f_curbalance: row.f_meter_type === '机表' ? (row.f_real_balance - 0) + (model.f_collection - 0) : model.f_curbalance,
175
+ f_user_balance: row.f_meter_type === '机表' ? row.f_balance : model.f_curbalance,
176
+ f_meter_type: row.f_meter_type,
177
+ f_payment: model.f_payment,
178
+ f_user_id: model.f_user_id,
179
+ // f_userinfo_id: row.f_userinfo_id,
180
+ f_user_name: row.f_user_name,
181
+ f_user_type: row.f_user_type,
182
+ f_gasproperties: row.f_gasproperties,
183
+ f_address: row.f_address,
184
+ f_meter_brand: row.f_meter_brand,
185
+ f_meter_style: row.f_meter_style,
186
+ f_meternumber: row.f_meternumber,
187
+ f_price_id: row.f_price_id,
188
+ f_collection: model.f_collection,
189
+ f_operator: Vue.$login.f.name,
190
+ f_filiale: Vue.$login.f.f_fengongsi,
191
+ f_outlets: Vue.$login.f.f_parentname,
192
+ f_orgstr: Vue.$login.f.orgpathstr,
193
+ f_filialeids: Vue.$login.f.f_orgids,
194
+ f_charge_state: '有效'
195
+ }
196
+ },
197
+ writeCardParams (cardParams) {
198
+ console.log('common写卡参数,,,', cardParams)
199
+ let result = {
200
+ csql: cardParams.data.sc,
201
+ lastmoney: cardParams.data.scje,
202
+ ccsql: cardParams.data.ssc,
203
+ lastlastmoney: cardParams.data.sscje,
204
+ ljgql: cardParams.data.f_pregas,
205
+ ljyql: cardParams.data.f_pregasall,
206
+ yhh: cardParams.data.f_meterid,
207
+ sxrq: cardParams.data.f_perform_date,
208
+ totalmoney: cardParams.data.f_collection,
209
+ stairversion: cardParams.data.f_stairversion
210
+ }
211
+
212
+ // 对阶梯进行处理
213
+ if (cardParams.data.stairprice.includes(';') && cardParams.data.stairamount.includes(';')) {
214
+ let gases = cardParams.data.stairamount.split(';')
215
+ let prices = cardParams.data.stairprice.split(';')
216
+ if (gases.length >= 2) {
217
+ result.stairgas1 = gases[0] !== '' ? gases[0] : 0
218
+ result.stairgas2 = gases[1] !== '' ? gases[1] : 0
219
+ result.stairgas3 = '99999999'
220
+ }
221
+ if (prices.length >= 2) {
222
+ result.stairprice1 = prices[0] !== '' ? prices[0] : 0
223
+ result.stairprice2 = prices[1] !== '' ? prices[1] : 0
224
+ result.stairprice3 = prices[2] !== '' ? prices[2] : 0
225
+ }
226
+ } else {
227
+ // 从固定气价的表换金额表的时候,气量随便写,金额用之前的固定单价
228
+ result.stairgas1 = '77777777'
229
+ result.stairgas2 = '88888888'
230
+ result.stairgas3 = '99999999'
231
+
232
+ result.stairprice1 = cardParams.data.stairprice
233
+ result.stairprice2 = cardParams.data.stairprice
234
+ result.stairprice3 = cardParams.data.stairprice
235
+ }
236
+
237
+ return result
238
+ }
239
+ }
240
+
241
+ export default commonService