sale-client 3.6.359 → 3.6.360

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,2 +1,2 @@
1
- #Thu Aug 08 09:41:12 CST 2024
1
+ #Wed Aug 14 11:29:51 CST 2024
2
2
  gradle.version=5.2.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.359",
3
+ "version": "3.6.360",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -64,10 +64,8 @@
64
64
  </v-select>
65
65
  </div>
66
66
 
67
- <div class="col-sm-6 form-group " :class="[$v.slice1.required ? 'has-error' : 'has-success']">
67
+ <div class="col-sm-6 form-group ">
68
68
  <label class="font_normal_body">片&emsp;&emsp;区</label>
69
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
70
- v-validate:slice1='{required: true }'>
71
69
  <v-select :value.sync="model.slice_area" v-model="model.slice_area"
72
70
  :options='sliceArea' placeholder='片区/管理站' filer-key="name"
73
71
  close-on-select v-ref:slice>
@@ -138,7 +138,7 @@
138
138
  v-el:fcollection
139
139
  @blur="config.calculatePreByCollection && calculatePreByCollection()"
140
140
  @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))"
141
- v-scale="[model.f_collection, row.f_fee_decimal||4]" :disabled="!config.calculatePreByCollection">
141
+ v-scale="[model.f_collection, row.f_fee_decimal||4]">
142
142
  </div>
143
143
  <div class="col-sm-1 form-group" v-show=" row.f_meter_type.includes('卡表')">
144
144
  <give-change :curbalance="curbalance" :collection.sync="model.f_collection" v-ref:givechange></give-change>
@@ -354,16 +354,6 @@
354
354
  }
355
355
  this.inputtoreser = [{label: '全部', value: ''}, ...rs]
356
356
  },
357
- updateParams () {
358
- // await this.$MagLoadParams.loadParam(this.f_filialeid)
359
- this.inputtoreser = []
360
- this.inputtoreser.push({label: '全部', value: ''})
361
- if (this.allorgid != null) {
362
- this.allorgid.forEach((res) => {
363
- this.inputtoreser = this.inputtoreser.concat(this.$MagGetSaleParam.getresinputtor(res))
364
- })
365
- }
366
- },
367
357
  userTypeChange () {
368
358
  this.gasproperties = []
369
359
  if (this.$refs.paged.$refs.cri.model !== null) {
@@ -419,6 +409,7 @@
419
409
  this.initSlice(this.f_filialeid)
420
410
  this.inputtores = []
421
411
  this.inputtores.push({label: '全部', value: ''})
412
+ console.log('所有分公司'+ this.allorgid)
422
413
  if (this.allorgid != null) {
423
414
  this.allorgid.forEach((res) => {
424
415
  this.inputtores = this.inputtores.concat(this.$GetSaleParam.getresinputtor(res))
@@ -455,15 +446,8 @@
455
446
  console.log('正则提取:', res && res[1])
456
447
  if (res) {
457
448
  this.f_filialeid = res[1]
458
- if (res.input != null) {
459
- let resorgid = res.input.substring(res.input.indexOf("'"))
460
- if (resorgid != null && resorgid != '') {
461
- resorgid = resorgid.substring(0, resorgid.lastIndexOf("'") + 1)
462
- // resorgid = resorgid.replaceAll("'","");
463
- resorgid = resorgid.replace(/'/g, '')
464
- this.allorgid = resorgid.split(',')
465
- }
466
- }
449
+ console.log(res)
450
+ this.allorgid = res
467
451
  this.updateParams()
468
452
  }
469
453
  }
@@ -164,10 +164,21 @@
164
164
  f_depid: this.$login.f.depids,
165
165
  f_depname: this.$login.f.deps
166
166
  }
167
- await this.$resetpost('/rs/logic/changeuserinfo', {data: param}, {resolveMsg: '修正成功', rejectMsg: null})
167
+ await this.$resetpost('/rs/logic/changeuserinfo', {data: param}, {resolveMsg: null, rejectMsg: null})
168
168
  this.data.f_user_phone = this.newuserphone
169
169
  this.$parent.$parent.close()
170
170
  this.$parent.$parent.clean()
171
+ this.$showMessage('修正成功,用户编号已经复制到剪切板!', ['confirm', 'cancel']).then(
172
+ async (response) => {
173
+ if (response === 'confirm') {
174
+ // console.log('编号', this.data)
175
+ await this.$copyText(this.data.f_userinfo_code)
176
+ this.$dispatch('confirm')
177
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
178
+ } else if (response === 'cancel') {
179
+ this.$dispatch('cancel')
180
+ }
181
+ })
171
182
  this.$parent.$parent.$refs.list.searchNoData()
172
183
  this.close()
173
184
  },
@@ -627,23 +627,23 @@ let cardBtnGen = async function (self, val) {
627
627
  // 查询未写卡记录
628
628
  let getUnWriteSell = await self.$SqlService.singleTable('t_sellinggas', `f_state = '有效' and (f_write_card = '未写卡' or (f_write_card = '写卡失败' and f_operate_date >= DATEADD(HOUR, -3, GETDATE()))) and f_userfiles_id = '${getUser.data[0].f_userfiles_id}'`)
629
629
  console.log('获取未写卡记录', getUnWriteSell)
630
- self.systemTotalFee = getUser.data[0].f_total_fee
630
+ self.systemTotalFee = getUser.data[0].f_write_totalfee
631
631
  self.systemTotalGas = getUser.data[0].f_total_gas
632
632
  self.meterType = getUser.data[0].f_meter_type
633
633
  self.userCode = getUser.data[0].f_userinfo_code
634
634
  self.userName = getUser.data[0].f_user_name
635
635
  self.userAddress = getUser.data[0].f_address
636
636
  if (getUser.data[0].f_meter_type === '金额卡表') {
637
- console.log('------------', self.cardInfo.TotalMoney - getUser.data[0].f_total_fee)
638
- if (self.cardInfo.TotalMoney - getUser.data[0].f_total_fee > 0) {
637
+ console.log('------------', self.cardInfo.TotalMoney - getUser.data[0].f_write_totalfee)
638
+ if (self.cardInfo.TotalMoney - getUser.data[0].f_write_totalfee > 0) {
639
639
  self.showCardError2 = false
640
640
  self.showCardTotalError = true
641
641
  return
642
- } else if (self.cardInfo.TotalMoney - getUser.data[0].f_total_fee < 0 && getUnWriteSell.data.length < 1) {
642
+ } else if (self.cardInfo.TotalMoney - getUser.data[0].f_write_totalfee < 0 && getUnWriteSell.data.length < 1) {
643
643
  self.showCardError2 = false
644
644
  self.showCardTotalError = true
645
645
  return
646
- } else if (self.cardInfo.TotalMoney - getUser.data[0].f_total_fee < 0 && getUnWriteSell.data.length > 0) {
646
+ } else if (self.cardInfo.TotalMoney - getUser.data[0].f_write_totalfee < 0 && getUnWriteSell.data.length > 0) {
647
647
  self.showCardError2 = true
648
648
  self.showCardTotalError = true
649
649
  return