sale-client 4.2.120 → 4.2.121

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,7 +1,7 @@
1
1
  var path = require('path')
2
2
  var checkVersion = require('./versionCheck.js')
3
3
  checkVersion()
4
- const [ serverRul, localUrl ] = ['http://192.168.50.67:31567/', 'http://192.168.50.67:31567/']
4
+ const [ serverRul, localUrl ] = ['http://121.36.106.17:31467/', 'http://121.36.106.17:31467/']
5
5
  var merge = require('webpack-merge')
6
6
  var baseConfig = require('./webpack.dev.conf')
7
7
  var devConfig = {
@@ -51,10 +51,10 @@ var devConfig = {
51
51
  target: 'http://localhost:8080'
52
52
  },
53
53
  '/api/af-revenue': {
54
- pathRewrite: {
55
- '/api/af-revenue': '/af-revenue'
56
- },
57
- target: "http://localhost:8080"
54
+ // pathRewrite: {
55
+ // '/api/af-revenue': '/af-revenue'
56
+ // },
57
+ target: serverRul
58
58
  },
59
59
  '/api': {
60
60
  target: serverRul
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "4.2.120",
3
+ "version": "4.2.121",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -653,6 +653,54 @@ export default {
653
653
  clean () {
654
654
  this.$dispatch('success', '换表', this.row)
655
655
  },
656
+ // 卡表换表时,保存一条抄表记录(可传入旧表快照,默认用当前 row)
657
+ async saveCardHandRecord (oldRow) {
658
+ // 没有录入旧表底数则不保存
659
+ if (!this.model.f_using_base_old) {
660
+ return
661
+ }
662
+ const row = oldRow || this.row
663
+ const data = {
664
+ f_tablebase: Number(this.model.f_using_base_old), // 本期底数
665
+ // 上期底数(当前档案中的底数即上次抄表底数)
666
+ f_last_tablebase: row.f_meter_base,
667
+ f_operator: this.$login.f.name,
668
+ f_filiale: this.$login.f.f_fengongsi,
669
+ f_outlets: this.$login.f.f_parentname,
670
+ f_meter_state: '已抄表',
671
+ f_hand_state: '有效',
672
+ f_meter_source: '换表结算抄表',
673
+ f_input_date: this.$login.toStandardTimeString(),
674
+ f_last_input_date: row.f_last_input_date ? row.f_last_input_date : this.$login.toStandardTimeString(),
675
+ f_operate_date: this.$login.toStandardTimeString(),
676
+ f_filialeids: this.$login.f.orgid,
677
+ f_orgid: this.$login.f.orgid,
678
+ f_orgname: this.$login.f.orgs,
679
+ f_depid: this.$login.f.depids,
680
+ f_depname: this.$login.f.deps,
681
+ f_operatorid: this.$login.f.id,
682
+ f_user_id: row.f_user_id + '',
683
+ f_total_gas: row.f_total_gas,
684
+ f_total_fee: row.f_total_fee,
685
+ f_userfiles_id: row.f_userfiles_id,
686
+ f_hand_date: this.$login.toStandardTimeString(),
687
+ f_total_usegas_amount: row.f_total_usegas_amount,
688
+ f_price_id: this.row.f_price_id,
689
+ f_meternumber: this.row.f_meternumber,
690
+ f_meter_brand: this.row.f_meter_brand,
691
+ f_meter_classify: this.row.f_meter_type,
692
+ f_user_name: this.row.f_user_name
693
+ }
694
+ try {
695
+ console.log('卡表换表保存抄表记录..', row)
696
+ await this.$resetpost('api/af-revenue/logic/cardCommonEnter', data, {
697
+ resolveMsg: null,
698
+ rejectMsg: '录入数据出错!!!'
699
+ })
700
+ } catch (e) {
701
+ console.log('卡表换表保存抄表记录失败', e)
702
+ }
703
+ },
656
704
  addTask () {
657
705
  if (this.addTaskModel.f_userinfo_code != this.row.f_userinfo_code) {
658
706
  this.$showAlert('请填写正确的用户编号!!!', 'warning', 3000)
@@ -765,6 +813,14 @@ export default {
765
813
  },
766
814
  async saveobj () {
767
815
  try {
816
+ const oldMeterSnapshot = Object.assign({}, this.row)
817
+ // 换表前先保存卡表抄见,随后调整内存中的版本以避免乐观锁冲突
818
+ if (oldMeterSnapshot.f_meter_type == '气量卡表' || oldMeterSnapshot.f_meter_type == '金额卡表') {
819
+ await this.saveCardHandRecord(oldMeterSnapshot)
820
+ if (typeof this.row.version !== 'undefined') {
821
+ this.row.version = (this.row.version || 0) + 1
822
+ }
823
+ }
768
824
  this.model.f_operator = this.$login.f.name
769
825
  this.model.f_operatorid = this.$login.f.id
770
826
  this.model.f_orgid = this.$login.f.orgid
package/src/main.js CHANGED
@@ -2,7 +2,7 @@ import Vue from 'vue'
2
2
  import all from 'vue-client/src/all'
3
3
  import App from './App'
4
4
  import system from 'system-clients/src/system'
5
- import FilialeSale from './filiale/meihekou/sale'
5
+ import FilialeSale from './filiale/yangchun/sale'
6
6
  import sale from './sale'
7
7
  import address from 'address-client/src/address'
8
8
  import ldap from 'ldap-clients/src/ldap'
@@ -1,2 +0,0 @@
1
- #Thu Dec 18 17:45:08 CST 2025
2
- gradle.version=5.2.1
File without changes