sale-client 4.0.85 → 4.0.87

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
@@ -0,0 +1,2 @@
1
+ #Mon Dec 30 14:38:17 CST 2024
2
+ gradle.version=5.2.1
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "4.0.85",
3
+ "version": "4.0.87",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -452,7 +452,7 @@ export default {
452
452
  payment: '现金缴费',
453
453
  open_way: '发卡开户',
454
454
  showupload: true, //
455
- hasAudit: true, // 是否审核
455
+ hasAudit: false, // 是否审核
456
456
  dispatch: false, // 是否派工
457
457
  approve: false
458
458
  },
@@ -195,20 +195,13 @@ let CardService = {
195
195
  f_comments: model.f_comments
196
196
  }
197
197
 
198
- if (row.f_remanent_type === 1) {
199
- param.f_total_gas = (row.f_total_gas - 0) + (model.f_pregas - 0)
200
- param.f_total_fee = (row.f_total_fee - 0) + (model.f_preamount - 0)
201
- } else {
202
- if ((model.f_pregas - 0) > (model.f_fill_gas - 0)) {
203
- param.f_total_gas = (row.f_total_gas - 0) + ((model.f_pregas - 0) - (model.f_fill_gas - 0))
204
- param.f_total_fee = (row.f_total_fee - 0) + (model.f_preamount - 0)
205
- } else {
206
- param.f_total_gas = (row.f_total_gas - 0)
207
- param.f_total_fee = (row.f_total_fee - 0)
208
- }
209
- }
198
+ param.f_total_gas = (row.f_total_gas - 0) + (model.f_pregas - 0)
199
+ param.f_total_fee = (row.f_total_fee - 0) + (model.f_preamount - 0)
200
+ // console.log(row, model)
210
201
  param.f_write_totalgas = (row.f_write_totalgas - 0) + (model.f_pregas - 0)
211
202
  param.f_write_totalfee = (row.f_write_totalfee - 0) + (model.f_preamount - 0)
203
+ // console.log(row.f_write_totalfee, model.f_preamount,param.f_write_totalfee)
204
+ // console.log(param)
212
205
  return sendCardSaleGasGenremanent(param, row)
213
206
  },
214
207
 
@@ -640,7 +633,9 @@ let sendCardSaleGasGenremanent = async function (model, row) {
640
633
  if (!row.f_card_id) {
641
634
  getCardNumber = await Vue.resetpost('api/af-revenue/logic/getCardNumber', {data: {id: row.brand_id}}, {resolveMsg: null, rejectMsg: '发卡售气获取卡号失败!!'})
642
635
  console.log('获取卡号、、', getCardNumber)
643
- model.f_write_totalfee = (row.f_remanent_gas * row.f_remanent_price).toFixed(4)
636
+ if (!model.f_write_totalfee) {
637
+ model.f_write_totalfee = (row.f_remanent_gas * row.f_remanent_price).toFixed(4)
638
+ }
644
639
  } else {
645
640
  getCardNumber.data.cardNumber = row.f_card_id
646
641
  console.log('档案自带卡号、、', getCardNumber)
@@ -761,6 +756,12 @@ let resetsendCardSaleGasGen = async function (model, row) {
761
756
  } else {
762
757
  throw new Error('获取卡号失败!请核实参数管理中的卡号重新发卡售气。')
763
758
  }
759
+ console.log(1111+ JSON.stringify(row))
760
+ // 判断是否是累购表
761
+ if (row.f_support_purchase === '是') {
762
+ console.log(122233 + row)
763
+ model.f_total_fee = (row.f_total_fee - 0) + (model.f_pregas - 0)
764
+ }
764
765
  // 存库
765
766
  result = await Vue.resetpost('api/af-revenue/logic/sale_resetsendCardSaleGas_logic', {data: model}, {resolveMsg: null, rejectMsg: '重发卡售气存库失败'})
766
767
  console.log('重发卡售气存库返回', result)
@@ -235,20 +235,20 @@
235
235
  f_collection_type: self.row.f_collection_type,
236
236
  f_calculation: self.row.f_calculation
237
237
  }
238
-
239
- if (self.row.f_remanent_type == 1) {
240
- // 换新表
241
- param.f_total_gas = (self.row.f_total_gas - 0) + (self.model.f_pregas - 0)
242
- param.f_total_fee = (self.row.f_total_fee - 0) + (self.model.f_preamount - 0)
243
- } else {
244
- // 清零换表 (不考虑,物联网不存在清零换表)
245
- if (self.model.f_fill_gas > 0 && !self.showGas) {
246
- param.f_total_fee = (self.row.f_total_fee - 0) + (self.model.f_preamount - 0) - (self.model.f_fill_money - 0)
247
- } else {
248
- param.f_total_gas = (self.row.f_total_gas - 0) + (self.model.f_pregas - self.model.f_fill_gas)
249
- param.f_total_fee = (self.row.f_total_fee - 0) + (self.model.f_preamount - 0) - (self.model.f_fill_money - 0)
250
- }
251
- }
238
+ // 换新表
239
+ param.f_total_gas = (self.row.f_total_gas - 0) + (self.model.f_pregas - 0)
240
+ param.f_total_fee = (self.row.f_total_fee - 0) + (self.model.f_preamount - 0)
241
+ // if (self.row.f_remanent_type == 1) {
242
+ //
243
+ // } else {
244
+ // // 清零换表 (不考虑,物联网不存在清零换表)
245
+ // if (self.model.f_fill_gas > 0 && !self.showGas) {
246
+ // param.f_total_fee = (self.row.f_total_fee - 0) + (self.model.f_preamount - 0) - (self.model.f_fill_money - 0)
247
+ // } else {
248
+ // param.f_total_gas = (self.row.f_total_gas - 0) + (self.model.f_pregas - self.model.f_fill_gas)
249
+ // param.f_total_fee = (self.row.f_total_fee - 0) + (self.model.f_preamount - 0) - (self.model.f_fill_money - 0)
250
+ // }
251
+ // }
252
252
  // 加入扫码盒付款码支付流水号
253
253
  param.f_serial_id = self.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no
254
254
  let res = await self.$resetpost('api/af-revenue/logic/sale_iotRemanentGas', {data: param}, {