sale-client 3.6.83 → 3.6.85

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://localhost:8080/']
2
+ const [serverRul, localUrl ] = ['http://192.168.50.4:8400/', 'http://192.168.50.4:8400/']
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.83",
3
+ "version": "3.6.85",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -75,11 +75,11 @@
75
75
  <label class="font_normal_body">状&emsp;&emsp;态</label>
76
76
  <v-select id="price_states"
77
77
  v-model="model.price_states"
78
- placeholder='未调价'
78
+ placeholder='调价状态'
79
79
  style="width: 60%"
80
80
  :value.sync="model.price_states"
81
81
  :options='$parent.$parent.price_states'
82
- condition="nvl(f_new_price,0) {}"
82
+ condition="f_change_price {}"
83
83
  close-on-select></v-select>
84
84
  </div>
85
85
  <div class="form-group col-sm-2">
@@ -236,7 +236,7 @@
236
236
  criteriaShow: false,
237
237
  pricers: [{label: '全部', value: '', flage: ''}],
238
238
  price_name: [{label: '全部', value: ''}],
239
- price_states: [{label: '全部', value: ''}, {label: '已调价', value: ' >0'}, {label: '未调价', value: ' <=0'}],
239
+ price_states: [{label: '全部', value: ''}, {label: '已调价', value: ' is not null'}, {label: '未调价', value: ' is null'}],
240
240
  source: [{label: '卡表抄表', value: '卡表抄表'}, {label: '机表抄表', value: '机表抄表'}],
241
241
  userTypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
242
242
  condition: '',
@@ -298,7 +298,7 @@
298
298
  import { HttpResetClass } from 'vue-client'
299
299
  let getPrice = async function (self) {
300
300
  await self.$LoadParams.loadParam(self.$login.f.orgid)
301
- await self.$getConfig(self, 'ChargeMeter')
301
+ await self.$getConfig(self, 'ChangeMeter')
302
302
 
303
303
  self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
304
304
  self.model.f_payment = self.config.payment
@@ -416,7 +416,7 @@ export default {
416
416
  payment: '现金缴费',
417
417
  open_way: '指令开户',
418
418
  hasArrearsChange: false, // 是否可以有欠费换表
419
- isPraseInt: false,
419
+ castInt: true,
420
420
  dispatch: false, // 是否派工
421
421
  showupload: true, //
422
422
  approve: false // 是否开启审核
@@ -631,8 +631,9 @@ export default {
631
631
  async confirm () {
632
632
  let msg = ''
633
633
  if (this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) {
634
- let isPraseInt = this.config.isPraseInt
635
- if ((parseInt(this.model.f_using_base_old) > parseInt(this.row.f_meter_base)) || (isPraseInt && this.model.f_using_base_old > this.row.f_meter_base)) {
634
+ let a = this.config.castInt ? parseInt(this.model.f_using_base_old) : this.model.f_using_base_old
635
+ let b = this.config.castInt ? parseInt(this.row.f_meter_base) : this.row.f_meter_base
636
+ if (a > b) {
636
637
  msg = (this.row.f_meter_type === '机表' ? '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录' : '该用户表底数大于上次抄表底数,请确定是否进行结算')
637
638
  } else if (this.row.f_capacity && this.row.f_capacity > 0 && (parseInt(this.model.f_using_base_old) < parseInt(this.row.f_meter_base))) {
638
639
  msg = '该用户表底数大于上次抄表底数,且已超越最大量程,请确定是否继续生成欠费记录'
@@ -810,8 +811,9 @@ export default {
810
811
  }
811
812
  let msg = ''
812
813
  if (this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) {
813
- let isPraseInt = this.config.isPraseInt
814
- if ((parseInt(this.model.f_using_base_old) > parseInt(this.row.f_meter_base)) || (isPraseInt && this.model.f_using_base_old > this.row.f_meter_base)) {
814
+ let a = this.config.castInt ? parseInt(this.model.f_using_base_old) : this.model.f_using_base_old
815
+ let b = this.config.castInt ? parseInt(this.row.f_meter_base) : this.row.f_meter_base
816
+ if (a > b) {
815
817
  msg = (this.row.f_meter_type === '机表' ? '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录' : '该用户表底数大于上次抄表底数,请确定是否进行结算')
816
818
  } else if (this.row.f_capacity && this.row.f_capacity > 0 && (parseInt(this.model.f_using_base_old) < parseInt(this.row.f_meter_base))) {
817
819
  msg = '该用户表底数大于上次抄表底数,且已超越最大量程,请确定是否继续生成欠费记录'
@@ -45,7 +45,7 @@
45
45
  <!-- <v-select :value.sync="row.gasbrand" :options='meterbrands' placeholder='气表品牌' close-on-select
46
46
  search @change='brandChange' v-model='row.gasbrand' :disabled="!((row.f_meter_classify.indexOf('卡表') !== -1&&row.f_user_state === '预备') || (row.f_meter_classify.indexOf('卡表') !== -1&&row.f_whether_hairpin === '未发'))" v-ref:brand></v-select>-->
47
47
  <v-select :value.sync="row.gasbrand" :options='meterbrands' placeholder='气表品牌' close-on-select
48
- search @change='brandChange' v-model='row.gasbrand' :disabled="user_State === '正常'" v-ref:brand></v-select>
48
+ search @change='brandChange' v-model='row.gasbrand' :disabled="!(user_State !== '正常'|| isCalorimeter === '卡表')" v-ref:brand></v-select>
49
49
  </div>
50
50
  <div class="col-sm-4 form-group" :class="[$m.model.required ? 'has-error' : '']">
51
51
  <label for="gasmodel" class="font_normal_body">气表型号</label>
@@ -56,7 +56,7 @@
56
56
  <!-- v-model='row.gasmodel' :disabled="!(row.gasbrand.length !== 0 && ((row.f_meter_classify.indexOf('卡表') !== -1&&row.f_user_state === '预备') || (row.f_meter_classify.indexOf('卡表') !== -1&&row.f_whether_hairpin === '未发')))" v-ref:model></v-select>-->
57
57
  <v-select :value.sync="row.gasmodel" :options='row.gasbrand[0].gasmodel' placeholder='气表型号'
58
58
  close-on-select
59
- v-model='row.gasmodel' :disabled="!(row.gasbrand.length !== 0 && (user_State !== '正常'))" v-ref:model></v-select>
59
+ v-model='row.gasmodel' :disabled="!(row.gasbrand.length !== 0 && (user_State !== '正常' || isCalorimeter === '卡表' ))" v-ref:model></v-select>
60
60
  </div>
61
61
  <div class="col-sm-4 form-group">
62
62
  <label for="f_meter_base" class="font_normal_body">&ensp;累购气量</label>
@@ -540,6 +540,7 @@
540
540
  },
541
541
  mapShow: false,
542
542
  viewsee: false,
543
+ isCalorimeter: '',
543
544
  row: this.meter,
544
545
  show: false,
545
546
  field: '',
@@ -576,7 +577,9 @@
576
577
  props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id', 'overdueset', 'curuser'],
577
578
  async ready () {
578
579
  this.user_State = this.curuser.f_user_state
579
- console.log(this.user_State)
580
+ if (this.curuser.f_meter_classify.indexOf('卡表') !== -1 && this.curuser.f_whether_hairpin === '未发') {
581
+ this.isCalorimeter = '卡表'
582
+ }
580
583
  this.row = Object.assign(this.row, this.meter, {f_use_limit : this.$appdata.getSingleValue('报废年限')})
581
584
  if (this.row.f_meter_classify) {
582
585
  if (this.row.f_meter_classify === '物联网表') {
@@ -54,7 +54,7 @@ export default {
54
54
  }
55
55
  await this.$resetpost('rs/entity/t_eticket', model, {resolveMsg: null, rejectMsg: '保存发票记录失败'})
56
56
  },
57
- async openETicket (sellId, row,type, show_gas ='是', is_pax ='征税') {
57
+ async openETicket (sellId, row, show_gas, is_pax, type) {
58
58
  try {
59
59
  let model = {
60
60
  id: sellId,
@@ -151,12 +151,10 @@
151
151
  // this.$showAlert('按气量缴费的物联网表退费功能尚未开放!!', 'warning', 3000)
152
152
  this.model.f_price = this.data.f_price
153
153
 
154
- // this.$dispatch('refresh')
155
- }
156
154
  console.log(123)
157
- if(this.data.f_calculation!=='系统结算'){
155
+ if(this.data.f_calculation!=='系统结算'&& this.data.f_issupport_feededuction==='否'){
158
156
  this.check = false
159
- this.$showAlert('表端计费表不支持扣费!!', 'warning', 3000)
157
+ this.$showAlert('该表型不支持扣费!!', 'warning', 3000)
160
158
  }
161
159
  },
162
160
  methods: {
@@ -209,7 +209,7 @@ let FileManageService = {
209
209
  meter.f_adjustable_id = meter.f_adjustable.length > 0 ? meter.f_adjustable[0].id : null
210
210
  meter.f_userfiles_address = meter.f_userfiles_address ? meter.f_userfiles_address : null
211
211
  // 气表状态需要根据表型判断是否需要开通操作 目前物联网表需要做开通操作
212
- meter.f_table_state = result.f_user_state === '预备' ? '待开通' : (meter.f_table_state? meter.f_table_state : '正常')
212
+ meter.f_table_state = result.f_user_state === '预备' ? '待开通' : (meter.f_table_state === '停用'? meter.f_table_state : '正常')
213
213
  if (!meter.f_userfiles_id) {
214
214
  // meter.f_whether_hairpin = !item.gasbrand[0].f_meter_type.includes('机表') ? '未发' : '无卡'
215
215
  // 所有表变成未发
@@ -208,7 +208,7 @@ let FileManageService = {
208
208
  meter.f_adjustable_id = meter.f_adjustable.length > 0 ? meter.f_adjustable[0].id : null
209
209
  meter.f_userfiles_address = meter.f_userfiles_address ? meter.f_userfiles_address : null
210
210
  // 气表状态需要根据表型判断是否需要开通操作 目前物联网表需要做开通操作
211
- meter.f_table_state = result.f_user_state === '预备' ? '待开通' : (meter.f_table_state? meter.f_table_state : '正常')
211
+ meter.f_table_state = result.f_user_state === '预备' ? '待开通' : (meter.f_table_state === '停用'? meter.f_table_state : '正常')
212
212
  if (!meter.f_userfiles_id) {
213
213
  // meter.f_whether_hairpin = !item.gasbrand[0].f_meter_type.includes('机表') ? '未发' : '无卡'
214
214
  // 所有表变成未发