sale-client 3.5.18 → 3.5.21

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.
@@ -4,5 +4,8 @@ import Vue from "vue";
4
4
  let specialComp = {
5
5
  // 机表抄表
6
6
  'high-meter-idcard': (resolve) => { require(['./components/HighMeterCard'], resolve) },
7
+ // 用户基本信息
8
+ 'user-base-info-new': (resolve) => { require(['./components/common/userinfo_detail/UserBaseInfoNew'], resolve) },
9
+ 'user-meterinfodetail': (resolve) => { require(['./components/meterinfodetail'], resolve) }
7
10
  }
8
11
  exports.specialComp = specialComp
@@ -293,6 +293,8 @@ let cardAndGasCancelGen = async function (model, xmodel, row) {
293
293
  if (!cardParams || !result || cardRes.data.Err || cardRes.data.Exception) {
294
294
  await rollbackGen(result, model, row)
295
295
  } else {
296
+ // 更新 上次写卡气量
297
+ await modify(row.f_userfiles_id, params.ql, '2')
296
298
  Vue.showAlert('撤销成功', 'success', 2000)
297
299
  return result
298
300
  }
@@ -532,6 +534,8 @@ let offlineWriteGen = async function (row) {
532
534
 
533
535
  throw new Error(`卡服务错误:${cardRes.data.Err}${cardRes.data.Exception},请联系开发人员处理!!`)
534
536
  } else {
537
+ // 更新 上次写卡气量
538
+ await getParamGen(row.f_userfiles_id, param.ql)
535
539
  // 写卡成功 更新收费记录
536
540
  let update = {
537
541
  id: row.unWriteSell[0].id,
@@ -668,6 +672,8 @@ let sendCardSaleGasGen = async function (model, row) {
668
672
  // 数据回滚操作
669
673
  throw `卡服务错误:${cardRes.data.Err}${cardRes.data.Exception},请联系开发人员处理!!`
670
674
  } else {
675
+ // 更新 上次写卡气量
676
+ await modify(row.f_userfiles_id, params.ql)
671
677
  // 写卡成功
672
678
  // 更新卡密码
673
679
  await Vue.CommonService.updatePassword(row, cardRes)
@@ -845,6 +851,8 @@ let sellgasGen = async function (model, row) {
845
851
  if (!cardParams || !result || cardRes.data.Err || cardRes.data.Exception) {
846
852
  throw `卡服务错误:${cardRes.data.Err}${cardRes.data.Exception},请联系开发人员处理!!`
847
853
  } else {
854
+ // 更新 上次写卡气量
855
+ await modify(row.f_userfiles_id, params.ql)
848
856
  // 更新卡密码
849
857
  await Vue.CommonService.updatePassword(row, cardRes)
850
858
  Vue.showAlert('售气成功', 'success', 2000)
@@ -909,6 +917,15 @@ let getParamGen = async function (cardid, alias, f_user_id, f_userfiles_id) {
909
917
  return Vue.resetpost('rs/logic/stairCard', {data: data}, {resolveMsg: null, rejectMsg: '获取写卡参数失败'})
910
918
  }
911
919
 
920
+ let modify = async function (userfilesID, gas, type = '1') {
921
+ let data = {
922
+ f_gas: gas,
923
+ f_userfiles_id: userfilesID,
924
+ type
925
+ }
926
+ return Vue.resetpost('rs/logic/modifySCGas', {data: data}, {resolveMsg: null, rejectMsg: '获取写卡参数失败'})
927
+ }
928
+
912
929
  let sendCardSaleGasGenremanent = async function (model, row) {
913
930
  // 1.存库 2.写卡
914
931
  let result = null
@@ -36,7 +36,7 @@
36
36
  <input type="text" class="input_search" style="width:60%" v-show="false" v-model="$refs.brand.selectedItems"
37
37
  v-validate:brand='{required: true }'>
38
38
  <v-select :value.sync="row.gasbrand" :options='meterbrands' placeholder='气表品牌' close-on-select
39
- search @change='brandChange' v-model='row.gasbrand' v-ref:brand></v-select>
39
+ search @change='brandChange' v-model='row.gasbrand' :disabled="curuser.f_user_state != '预备'" v-ref:brand></v-select>
40
40
  </div>
41
41
  <div class="col-sm-4 form-group" :class="[$m.model.required ? 'has-error' : '']">
42
42
  <label for="gasmodel" class="font_normal_body">*气表型号</label>
@@ -44,7 +44,7 @@
44
44
  v-validate:model='{required: true }'>
45
45
  <v-select :value.sync="row.gasmodel" :options='row.gasbrand[0].gasmodel' placeholder='气表型号'
46
46
  close-on-select
47
- v-model='row.gasmodel' :disabled='row.gasbrand.length === 0 ' v-ref:model></v-select>
47
+ v-model='row.gasmodel' :disabled="row.gasbrand.length === 0 || curuser.f_user_state != '预备'" v-ref:model></v-select>
48
48
  </div>
49
49
  <div class="col-sm-4 form-group" :class="[$m.name.required ? 'has-error' : '']">
50
50
  <label for="pricename" class="font_normal_body">*气价名称</label>
@@ -379,7 +379,7 @@ let meterBookGen = function * (self) {
379
379
  isiot: true
380
380
  }
381
381
  },
382
- props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id'],
382
+ props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id', 'curuser'],
383
383
  ready () {
384
384
  console.log('看看meter里面的数据', this.meter, this.row)
385
385
  this.row = Object.assign(this.row, this.meter, {})
@@ -132,11 +132,12 @@ export default {
132
132
  id: ticket_id,
133
133
  f_bill_code: req.fpDm,
134
134
  f_bill_number: req.fpHm,
135
- f_bill_url: req.shareurl.replace('/s/', `/s/downloadPdf?pwd=${req.sharecode}&authCode=`).replace('\\', ''),
136
- f_sign_result: req.msg,
135
+ f_bill_url: req.fileUrl.replace('d:\\qianNengInvoiceFile', '/Download'),
136
+ f_sign_url: req.shareurl,
137
+ f_sign_result: req.sharecode,
137
138
  f_bill_state: req.status
138
139
  }
139
- this.eticket_src = req.shareurl.replace('/s/', `/s/downloadPdf?pwd=${req.sharecode}&authCode=`).replace('\\', '')
140
+ this.eticket_src = 'https://qnjtkf.cn:7400' + model.f_bill_url
140
141
  } else if (req.status === '开票中') {
141
142
  model = {
142
143
  id: ticket_id,
@@ -303,11 +304,12 @@ export default {
303
304
  f_eticket_id: ticket_id,
304
305
  f_bill_code: req.fpDm,
305
306
  f_bill_number: req.fpHm,
306
- f_bill_url: req.shareurl.replace('/s/', `/s/downloadPdf?pwd=${req.sharecode}&authCode=`).replace('\\', ''),
307
- f_sign_result: req.msg,
307
+ f_bill_url: req.fileUrl.replace('d:\\qianNengInvoiceFile', '/Download'),
308
+ f_sign_url: req.shareurl,
309
+ f_sign_result: req.sharecode,
308
310
  f_bill_state: req.status
309
311
  })
310
- this.eticket_src = req.shareurl.replace('/s/', `/s/downloadPdf?pwd=${req.sharecode}&authCode=`).replace('\\', '')
312
+ this.eticket_src = 'https://qnjtkf.cn:7400' + req.fileUrl.replace('d:\\qianNengInvoiceFile', '/Download')
311
313
  } else if (req && req.status !== '开票中') {
312
314
  clearInterval(interval)
313
315
  // TODO 失败后保存发票详情
@@ -48,8 +48,8 @@
48
48
  <th><nobr>电压</nobr></th>
49
49
  <th><nobr>电压状态</nobr></th>
50
50
  <th><nobr>阀门强制状态</nobr></th>
51
- <th><nobr>计量类型</nobr></th>
52
- <th><nobr>金额状态</nobr></th>
51
+ <!-- <th><nobr>计量类型</nobr></th>-->
52
+ <!-- <th><nobr>金额状态</nobr></th>-->
53
53
 
54
54
  <th><nobr>磁干扰异常</nobr></th>
55
55
  <th><nobr>补偿状态</nobr></th>
@@ -69,8 +69,8 @@
69
69
  <th style="text-align:center"><nobr>{{row.f_batterylevel}}</nobr></th>
70
70
  <th style="text-align:center"><nobr>{{row.f_lowlithiumbattery ? ((row.f_lowlithiumbattery - 0) == 0 ? '正常' : '异常') : '未知'}}</nobr></th>
71
71
  <th style="text-align:center"><nobr>{{row.f_networkshutvalve}}</nobr></th>
72
- <th style="text-align:center"><nobr>{{row.f_wmprepaytype}}</nobr></th>
73
- <th style="text-align:center"><nobr>{{row.f_moneystate}}</nobr></th>
72
+ <!-- <th style="text-align:center"><nobr>{{row.f_wmprepaytype}}</nobr></th>-->
73
+ <!-- <th style="text-align:center"><nobr>{{row.f_moneystate}}</nobr></th>-->
74
74
  <th style="text-align:center"><nobr>{{row.f_magneticInterference}}</nobr></th>
75
75
  <th style="text-align:center"><nobr>{{row.f_compensateState}}</nobr></th>
76
76
  </tr>
package/src/main.js CHANGED
@@ -11,7 +11,7 @@ Vue.config.silent = true
11
11
 
12
12
  all()
13
13
  system(false)
14
- sale()
14
+ sale('dongguan')
15
15
  address()
16
16
  ldap()
17
17
  require('system-clients/src/styles/less/bootstrap.less')