sale-client 3.6.472 → 3.6.473

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": "sale-client",
3
- "version": "3.6.472",
3
+ "version": "3.6.473",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -694,7 +694,7 @@ let sendCardSaleGasGenremanent = async function (model, row) {
694
694
  let cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', params, {
695
695
  resolveMsg: null,
696
696
  rejectMsg: '开户卡服务错误'
697
- },80000)
697
+ }, 80000)
698
698
  if (!cardParams || ((model.f_pregas > model.f_remanent_gas) && !result) || cardRes.data.Err || cardRes.data.Exception) {
699
699
  // 写卡异常
700
700
  // 数据回滚操作
@@ -801,7 +801,7 @@ let resetsendCardSaleGasGen = async function (model, row) {
801
801
  let cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', params, {
802
802
  resolveMsg: null,
803
803
  rejectMsg: '重开户卡服务错误'
804
- },80000)
804
+ }, 80000)
805
805
  if (!cardParams || !result || cardRes.data.Err || cardRes.data.Exception) {
806
806
  // 写卡异常
807
807
  // 数据回滚操作
@@ -910,7 +910,7 @@ let sendCardSaleGasGen = async function (model, row) {
910
910
  let cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', params, {
911
911
  resolveMsg: null,
912
912
  rejectMsg: '开户卡服务错误'
913
- },80000)
913
+ }, 80000)
914
914
  if (!cardParams || !result || cardRes.data.Err || cardRes.data.Exception) {
915
915
  // 写卡异常
916
916
  // 数据回滚操作
@@ -1119,7 +1119,7 @@ let replaceCardGenJB = function * (model, row) {
1119
1119
  let cardRes = yield co(Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', params, {
1120
1120
  resolveMsg: null,
1121
1121
  rejectMsg: '补卡卡服务错误'
1122
- },80000))
1122
+ }, 80000))
1123
1123
  // 卡服务写卡异常,业务逻辑回滚
1124
1124
  if (!cardParams || !result || cardRes.data.Err || cardRes.data.Exception) {
1125
1125
  Vue.$showAlert('机表补卡失败!!', 'danger', 0)
@@ -1207,7 +1207,7 @@ let replaceXq = function * (model, row) {
1207
1207
  let cardRes = yield co(Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', params, {
1208
1208
  resolveMsg: null,
1209
1209
  rejectMsg: '擦虚气服务错误'
1210
- },80000))
1210
+ }, 80000))
1211
1211
  if (cardRes.data.Err || cardRes.data.Exception) {
1212
1212
  return {status: 1}
1213
1213
  } else {
@@ -1293,7 +1293,7 @@ let replaceCardGen = function * (model, row, allot) {
1293
1293
  let cardRes = yield co(Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', params, {
1294
1294
  resolveMsg: null,
1295
1295
  rejectMsg: '补卡卡服务错误'
1296
- },80000))
1296
+ }, 80000))
1297
1297
  // 卡服务写卡异常,业务逻辑回滚
1298
1298
  if (!cardParams || !result || cardRes.data.Err || cardRes.data.Exception) {
1299
1299
  Vue.$showAlert('补卡失败!!', 'danger', 0)
@@ -1427,14 +1427,14 @@ let offlineWriteGen = async function (row) {
1427
1427
  param.kzt = result.data.ispick === '未过表' && result.data.lastsell_oper === '发卡售气' ? '0' : '1'
1428
1428
  param.cs = row.cardInfo.Times + 1
1429
1429
  param.bkcs = param.bkcs + 1
1430
- cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', param, {resolveMsg: null, rejectMsg: '写卡失败'},80000)
1430
+ cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', param, {resolveMsg: null, rejectMsg: '写卡失败'}, 80000)
1431
1431
  } else if (row.states === '换表') {
1432
1432
  param.kzt = '0'
1433
1433
  param.bkcs = param.bkcs + 1
1434
1434
  param.cs = 1
1435
- cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', param, {resolveMsg: null, rejectMsg: '写卡失败'},80000)
1435
+ cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', param, {resolveMsg: null, rejectMsg: '写卡失败'}, 80000)
1436
1436
  } else {
1437
- cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteGasCard', param, {resolveMsg: null, rejectMsg: '写卡失败'},80000)
1437
+ cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteGasCard', param, {resolveMsg: null, rejectMsg: '写卡失败'}, 80000)
1438
1438
  }
1439
1439
  if (!cardParams || cardRes.data.Err || cardRes.data.Exception) {
1440
1440
  let sql = `update t_sellinggas set
@@ -1710,23 +1710,23 @@ let marginGen = async function (model, row) {
1710
1710
  params2.kzt = result.data.ispick === '未过表' && result.data.lastsell_oper === '发卡售气' ? '0' : '1'
1711
1711
  cardparam = JSON.stringify(params2)
1712
1712
  cardpost = 'WriteNewCard'
1713
- cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', params2, {resolveMsg: null, rejectMsg: '卡表收费失败'},80000)
1713
+ cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', params2, {resolveMsg: null, rejectMsg: '卡表收费失败'}, 80000)
1714
1714
  } else if (result.data.last_oper === '换表') {
1715
1715
  console.log('我走的是写新卡换表')
1716
1716
  cardparam = JSON.stringify(params3)
1717
1717
  cardpost = 'WriteNewCard'
1718
- cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', params3, {resolveMsg: null, rejectMsg: '卡表收费失败'},80000)
1718
+ cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', params3, {resolveMsg: null, rejectMsg: '卡表收费失败'}, 80000)
1719
1719
  } else if (result.data.last_oper === '换表补气') {
1720
1720
  // 累购金额需要将上次购气金额加上
1721
1721
  console.log('我走的是正常的收费', params)
1722
1722
  cardparam = JSON.stringify(params)
1723
1723
  cardpost = 'WriteGasCard'
1724
- cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteGasCard', params, {resolveMsg: null, rejectMsg: '卡表收费失败'},80000)
1724
+ cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteGasCard', params, {resolveMsg: null, rejectMsg: '卡表收费失败'}, 80000)
1725
1725
  } else {
1726
1726
  console.log('我走的是正常的收费', params)
1727
1727
  cardparam = JSON.stringify(params)
1728
1728
  cardpost = 'WriteGasCard'
1729
- cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteGasCard', params, {resolveMsg: null, rejectMsg: '卡表收费失败'},80000)
1729
+ cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteGasCard', params, {resolveMsg: null, rejectMsg: '卡表收费失败'}, 80000)
1730
1730
  }
1731
1731
  console.log('卡表收费返回写卡参数值', cardRes)
1732
1732
  // 卡服务写卡异常,业务逻辑回滚
@@ -1801,7 +1801,7 @@ let sellgasGen = async function (model, row) {
1801
1801
  if (JSON.parse(cardState.data).state === 1) {
1802
1802
  // 将卡上次数写入数据库
1803
1803
  if (!(row.f_hascard == null) && !(row.f_share_times == null) && row.f_hascard === '是' && row.f_share_times === '是') {
1804
- row.cardInfo.Times = row.cardInfo.Times ? row.cardInfo.Times : row.f_times
1804
+ row.cardInfo.Times = row.f_times
1805
1805
  model.f_times = row.f_times + 1
1806
1806
  } else {
1807
1807
  model.f_times = row.cardInfo.Times + 1
@@ -1907,23 +1907,23 @@ let sellgasGen = async function (model, row) {
1907
1907
  params2.kzt = result.data.ispick === '未过表' && result.data.lastsell_oper === '发卡售气' ? '0' : '1'
1908
1908
  cardparam = JSON.stringify(params2)
1909
1909
  cardpost = 'WriteNewCard'
1910
- cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', params2, {resolveMsg: null, rejectMsg: '卡表收费失败'},80000)
1910
+ cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', params2, {resolveMsg: null, rejectMsg: '卡表收费失败'}, 80000)
1911
1911
  } else if (result.data.last_oper === '换表') {
1912
1912
  console.log('我走的是写新卡换表')
1913
1913
  cardparam = JSON.stringify(params3)
1914
1914
  cardpost = 'WriteNewCard'
1915
- cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', params3, {resolveMsg: null, rejectMsg: '卡表收费失败'},80000)
1915
+ cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', params3, {resolveMsg: null, rejectMsg: '卡表收费失败'}, 80000)
1916
1916
  } else if (result.data.last_oper === '换表补气') {
1917
1917
  // 累购金额需要将上次购气金额加上
1918
1918
  console.log('我走的是正常的收费', params)
1919
1919
  cardparam = JSON.stringify(params)
1920
1920
  cardpost = 'WriteGasCard'
1921
- cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteGasCard', params, {resolveMsg: null, rejectMsg: '卡表收费失败'},80000)
1921
+ cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteGasCard', params, {resolveMsg: null, rejectMsg: '卡表收费失败'}, 80000)
1922
1922
  } else {
1923
1923
  console.log('我走的是正常的收费', params)
1924
1924
  cardparam = JSON.stringify(params)
1925
1925
  cardpost = 'WriteGasCard'
1926
- cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteGasCard', params, {resolveMsg: null, rejectMsg: '卡表收费失败'},80000)
1926
+ cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteGasCard', params, {resolveMsg: null, rejectMsg: '卡表收费失败'}, 80000)
1927
1927
  }
1928
1928
  console.log('卡表收费返回写卡参数值', cardRes)
1929
1929
  // 卡服务写卡异常,业务逻辑回滚