sale-client 3.6.153 → 3.6.155

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,5 +1,5 @@
1
1
  var path = require('path')
2
- const [ serverRul, localUrl ] = ['http://192.168.50.4:8400/', 'http://192.168.50.4:8400/']
2
+ const [ serverRul, localUrl ] = ['http://192.168.50.4:8400/', 'http://localhost:8080/']
3
3
  var merge = require('webpack-merge')
4
4
  var baseConfig = require('./webpack.dev.conf')
5
5
  var devConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.153",
3
+ "version": "3.6.155",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  <div class="col-sm-4" v-if="row.f_collection_type == '按金额'">
27
27
  <label for="f_pregas" class=" font_normal_body">*预购气量</label>
28
28
  <input class="input_search" style="width:60%" type="number" v-el:fpregas
29
- @blur="pregas()" v-model="model.f_pregas" placeholder="预购气量"
29
+ @keyup.enter="pregas('enter')" @blur="pregas()" v-model="model.f_pregas" placeholder="预购气量"
30
30
  v-scale="[model.f_pregas, row.f_gas_decimal||4 ]"
31
31
  v-next-el='fcollection' :disabled="config.calculatePreByCollection"/>
32
32
  </div>
@@ -510,6 +510,7 @@
510
510
  calculatePreByCollection: false, // 可以更具收款来反向计算预购
511
511
  notShowFormula: false, // 不显示计算公式,默认显示
512
512
  autoCollection: true, // 自动填写收款
513
+ quickSale: false,
513
514
  showupload: true, // 显示上传
514
515
  hasPrint: true, // 默认打票
515
516
  hasBillManage: false, // 默认不启用发票管理
@@ -759,7 +760,7 @@
759
760
  printok () {
760
761
  this.$dispatch('success', '卡表收费')
761
762
  },
762
- pregas () {
763
+ pregas (val) {
763
764
  this.dymoney = 0
764
765
  if (this.model.f_pregas && this.model.f_pregas > 0) {
765
766
  try {
@@ -769,6 +770,9 @@
769
770
  this.model.f_pregas = null
770
771
  } else {
771
772
  pregasGen(this)
773
+ if (this.config.quickSale) {
774
+ this.$els.fcollection.focus()
775
+ }
772
776
  }
773
777
  } catch (error) {
774
778
  this.$showAlert(`发卡售气划价错误,错误类型:${error}`, 'danger', 0)
@@ -36,7 +36,7 @@
36
36
  <div class="col-sm-4 form-group"
37
37
  :class="[$v.f_preamount.required || $v.f_preamount.dctest? 'has-error' : 'has-success']">
38
38
  <label for="f_preamount" class=" font_normal_body">预购金额</label>
39
- <input class="input_search" style="width:60%" @blur="preamount()" type="number" v-model="model.f_preamount" id="f_preamount"
39
+ <input class="input_search" style="width:60%" @keyup.enter="preamount()" @blur="preamount()" type="number" v-model="model.f_preamount" id="f_preamount"
40
40
  v-validate:f_preamount='{required: true, dctest: [maxmoney, "<=" ] }'
41
41
  :disabled="config.calculatePreByCollection"
42
42
  v-scale="[model.f_preamount, row.f_fee_decimal||4]" placeholder="预购金额" >
@@ -110,7 +110,8 @@
110
110
  <label for="f_collection" class=" font_normal_body">&nbsp;&nbsp;&nbsp;收款&nbsp;&nbsp;&nbsp;</label>
111
111
  <input id="f_collection" class="input_search" style="width:60%" type="number" v-model="model.f_collection"
112
112
  @blur="config.calculatePreByCollection && calculatePreByCollection()"
113
- v-el:sk v-scale="[model.f_collection, row.f_fee_decimal||4]" :disabled="!config.calculatePreByCollection">
113
+ @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))"
114
+ v-el:sk v-scale="[model.f_collection, row.f_fee_decimal||4]" :disabled="!config.calculatePreByCollection && !config.quickSale">
114
115
  </div>
115
116
  <div class="col-sm-1 form-group">
116
117
  <give-change :curbalance="curbalance" :collection.sync="model.f_collection" v-ref:givechange></give-change>
@@ -470,6 +471,7 @@
470
471
  priceCalculation: false, // 划气量控制
471
472
  showupload: true, // 默认显示附件上传组件
472
473
  hasPrint: false, // 默认打票
474
+ quickSale: false, // enter键快捷收费
473
475
  taxforidnumber: true, // 身份证号同步到纳税人识别号
474
476
  floor: true, // 是否取整收费
475
477
  hasBillManage: false, // 默认不启用发票管理
@@ -653,31 +655,35 @@
653
655
  })
654
656
  },
655
657
  // 校验发票信息
656
- checkInvoiceMsg () {
658
+ checkInvoiceMsg (flag) {
659
+ if (flag) return
660
+ if (this.config.quickSale) {
657
661
  // 校验是否超出最大透支余额
658
- if (this.model.f_payment == '系统余额透支') {
659
- const maxOverdraftBalance = -(((this.$appdata.getSingleValue('最大透支余额') - 0) || 1000) - 0)
660
- const curSysBalance = ((this.row.f_sys_balance || 0) - 0) - (this.model.f_totalcost - 0)
661
- if (curSysBalance < maxOverdraftBalance) {
662
- this.$showAlert('您的系统余额将超出最大透支余额,请使用别的付款方式!', 'danger', 5000)
663
- return
662
+ if (this.model.f_payment == '系统余额透支') {
663
+ const maxOverdraftBalance = -(((this.$appdata.getSingleValue('最大透支余额') - 0) || 1000) - 0)
664
+ const curSysBalance = ((this.row.f_sys_balance || 0) - 0) - (this.model.f_totalcost - 0)
665
+ if (curSysBalance < maxOverdraftBalance) {
666
+ this.$showAlert('您的系统余额将超出最大透支余额,请使用别的付款方式!', 'danger', 5000)
667
+ return
668
+ }
669
+ this.model.f_sys_balance = curSysBalance
664
670
  }
665
- this.model.f_sys_balance = curSysBalance
666
- }
667
671
 
668
- if (this.model.f_print[0] === '电子发票') {
669
- if (!this.row.f_taxpayer_id && this.config.taxforidnumber) {
670
- this.row.f_taxpayer_id = this.row.f_idnumber
671
- }
672
- if (!this.row.f_paper_name) {
673
- this.row.f_paper_name = this.row.f_user_name
674
- }
675
- if (!this.row.f_address_phone) {
676
- this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
672
+ if (this.model.f_print[0] === '电子发票') {
673
+ if (!this.row.f_taxpayer_id && this.config.taxforidnumber) {
674
+ this.row.f_taxpayer_id = this.row.f_idnumber
675
+ }
676
+ if (!this.row.f_paper_name) {
677
+ this.row.f_paper_name = this.row.f_user_name
678
+ }
679
+ if (!this.row.f_address_phone) {
680
+ this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
681
+ }
682
+ this.eticket_msg = true
683
+ } else {
684
+ this.confirm()
677
685
  }
678
- this.eticket_msg = true
679
- } else {
680
- this.confirm()
686
+
681
687
  }
682
688
  },
683
689
  eticket_toggle () {
@@ -686,9 +692,9 @@
686
692
  },
687
693
  async confirm () {
688
694
  let res = await this.$showMessage(`确定对客户${this.row.f_user_name}进行物联网表缴费吗?`, ['confirm', 'cancel'])
689
- this.clickConfirm = true
690
695
  if (res != 'confirm') return
691
696
  // 先调用付款码支付组件流程
697
+ this.clickConfirm = true
692
698
  let ss = await this.$refs.paymentcode.flowPath()
693
699
  this.$refs.paymentcode.paymentCodeShow = false
694
700
  console.log('付款码操作返回', ss)
@@ -740,6 +746,9 @@
740
746
  if (this.model.f_preamount && this.model.f_preamount > 0) {
741
747
  try {
742
748
  preamountGen(this)
749
+ if (this.config.quickSale) {
750
+ this.$els.sk.focus()
751
+ }
743
752
  } catch (error) {
744
753
  this.$showAlert(`发卡售气划价错误,错误类型:${error}`, 'danger', 0)
745
754
  this.$dispatch('error', '发卡售气', this.model, error)
@@ -78,6 +78,10 @@
78
78
  <div class="col-sm-3">
79
79
  <p class="form-control-static">{{row.f_people_num}}</p>
80
80
  </div>
81
+ <label class="col-sm-3 control-label">备用电话</label>
82
+ <div class="col-sm-3">
83
+ <p class="form-control-static">{{row.f_rent_phone}}</p>
84
+ </div>
81
85
  </div>
82
86
  </form>
83
87
  </div>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="auto form-horizontal" >
3
- <modal :show.sync="show &&!billConfig.autoPrint" v-ref:modal large backdrop="false">
3
+ <modal :show.sync="show&&!billConfig.autoPrint" v-ref:modal large backdrop="false">
4
4
  <header slot="modal-header" class="modal-header">
5
5
  <h3 style="color:black" class="modal-title">收费发票</h3>
6
6
  </header>
@@ -46,8 +46,10 @@
46
46
  console.log('self.billData.url:', self.billData.url)
47
47
  self.bill = new DataModel(self.billData.url, temp)
48
48
  await self.bill.search(self.data.id)
49
+ console.log(222)
49
50
  // 获取发票号
50
- self.model.f_using_number = self.billData.bill.number
51
+ self.model.f_using_number = self.billData.number
52
+ console.log(333)
51
53
  }
52
54
 
53
55
  export default {
@@ -106,6 +108,7 @@
106
108
  'show' (val) {
107
109
  if (val) {
108
110
  getBillData(this, val).then(() => {
111
+ console.log(444)
109
112
  if(this.billConfig.autoPrint){
110
113
  this.print()
111
114
  }
@@ -310,7 +310,7 @@ const myMap = new Map()
310
310
 
311
311
  if (res.data.array[j].uploadday == this.files[i].days) {
312
312
  // 如果使用类型包含导入字样,则是execl文件导入的,不做显示
313
- if (res.data.array[j].fusetype && res.data.array[j].f_filetype.includes('xls')) {
313
+ if ((res.data.array[j].fusetype && res.data.array[j].f_filetype.includes('xls')) || (res.data.array[j].fusetype == '安检照片' && res.data.array[j].f_filename.includes('amr'))) {
314
314
  res.data.array[j].splice(i, 1)
315
315
  i--
316
316
  continue
@@ -105,6 +105,12 @@
105
105
  <input type="text" class="input_search" style="width:60%" v-model="model.f_card_id" placeholder='卡号'
106
106
  condition="f_card_id like '%{}%'">
107
107
  </div>
108
+
109
+ <div class="form-group col-sm-4">
110
+ <label class="font_normal_body">身份证号</label>
111
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_idnumber" placeholder='身份证号'
112
+ condition="f_idnumber = '{}'">
113
+ </div>
108
114
  </div>
109
115
  <div class="form-group col-sm-4" style="float:right;white-space: nowrap;width: auto">
110
116
  <read-card :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn" v-if="!$parent.$parent.noRead" v-ref:readcard></read-card>
@@ -136,7 +142,7 @@
136
142
  <td :class="{'bg-danger' : (row.f_table_state === '停用' || row.f_user_state === '销户') }"><nobr>
137
143
  <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
138
144
  </nobr> </td>
139
- <td style="white-space: nowrap;" :class="{'bg-danger' : (row.f_table_state === '停用' || row.f_user_state === '销户') }">{{row.f_user_name}}&nbsp;&nbsp;{{row.f_user_phone}}&nbsp;&nbsp;{{row.f_address}}</td>
145
+ <td style="white-space: nowrap;" :class="{'bg-danger' : (row.f_table_state === '停用' || row.f_user_state === '销户') }">{{row.f_user_name}}&nbsp;&nbsp;{{row.f_user_phone}}&nbsp;&nbsp;{{row.f_address}}&nbsp;&nbsp;{{row.f_idnumber}}</td>
140
146
  <td style="white-space: nowrap;" :class="{'bg-danger' : (row.f_table_state === '停用' || row.f_user_state === '销户') }">{{row.f_user_id}}&nbsp;&nbsp;{{row.f_gasproperties}}&nbsp;&nbsp;{{row.f_meter_brand}}
141
147
  &nbsp;&nbsp;{{row.f_meter_style}}&nbsp;&nbsp;{{row.f_price_type}}&nbsp;&nbsp;{{row.f_price_name}}
142
148
  </td>