sale-client 4.3.2 → 4.3.3

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://121.36.106.17:31467/', 'http://121.36.106.17:31467/']
4
+ const [ serverRul, localUrl ] = ['http://222.83.114.229:31785/', 'http://222.83.114.229:31785/']
5
5
  var merge = require('webpack-merge')
6
6
  var baseConfig = require('./webpack.dev.conf')
7
7
  var devConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "4.3.2",
3
+ "version": "4.3.3",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -116,6 +116,14 @@
116
116
  type="text"
117
117
  v-model="model.f_olduserinfo_code">
118
118
  </div>
119
+ <div
120
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
121
+ class="form-group">
122
+ <label class="font_normal_body">客户类型</label>
123
+ <v-select :options='$parent.$parent.user_type' :value.sync="model.f_user_type"
124
+ close-on-select condition="f_user_type='{}'" :value-single="true" @change="$parent.$parent.userTypeChange()"
125
+ placeholder='客户类型' v-model="model.f_user_type"></v-select>
126
+ </div>
119
127
  <div
120
128
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
121
129
  class="form-group">
@@ -374,7 +382,11 @@ let loadParamGem = async function (self) {
374
382
  orderFields: {
375
383
  f_userinfo_id: 'no'
376
384
  },
377
-
385
+ user_type: this.$appdata.getParam('用户类型') ? [{
386
+ label: '全部',
387
+ value: ''
388
+ }, ...this.$appdata.getParam('用户类型')] : [],
389
+ gasproperties: [],
378
390
  createFile: false,
379
391
 
380
392
  curorgid: [this.$login.f.orgid],
@@ -396,7 +408,7 @@ let loadParamGem = async function (self) {
396
408
 
397
409
  criteriaShow: false,
398
410
 
399
- gasproperties: this.$appdata.getParam('用气性质') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')] : [],
411
+ // gasproperties: this.$appdata.getParam('用气性质') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')] : [],
400
412
  userstates: this.$appdata.getParam('预备客户状态参数') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('预备客户状态参数')] : [{label: '预备', value: '预备'}],
401
413
  f_user_state: '预备',
402
414
  showselectaddress: false,
@@ -457,6 +469,15 @@ let loadParamGem = async function (self) {
457
469
  },
458
470
  showFileInfo () {
459
471
 
472
+ },
473
+ userTypeChange () {
474
+ this.gasproperties = []
475
+ if (this.$refs.paged.$refs.criteria.model !== null) {
476
+ this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
477
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type)
478
+ } else {
479
+ this.gasproperties = [{label: '全部', value: ''}]
480
+ }
460
481
  },
461
482
  closemodal () {
462
483
  this.batchMeterShow = false
@@ -80,6 +80,12 @@
80
80
  condition="f_meter_brand = '{}'"
81
81
  close-on-select style="width: 60%"></v-select>
82
82
  </div>
83
+ <div class="form-group col-sm-3">
84
+ <label class="font_normal_body">客户类型</label>
85
+ <v-select :options='$parent.$parent.user_type' :value.sync="model.f_user_type" style="width: 60%"
86
+ close-on-select condition="u.f_user_type='{}'" @change="$parent.$parent.userTypeChange()"
87
+ placeholder='客户类型' v-model="model.f_user_type"></v-select>
88
+ </div>
83
89
  <div class="form-group col-sm-3">
84
90
  <label class="font_normal_body">用气性质</label>
85
91
  <v-select v-model="model.f_gasproperties"
@@ -687,6 +693,11 @@ let cardBtnGen = async function (self, val) {
687
693
  orderFields: {
688
694
  f_userinfo_id: 'no'
689
695
  },
696
+ gasproperties: [],
697
+ user_type: this.$appdata.getParam('用户类型') ? [{
698
+ label: '全部',
699
+ value: ''
700
+ }, ...this.$appdata.getParam('用户类型')] : [],
690
701
  filiale: '',
691
702
  outlet: '',
692
703
  fields: {
@@ -713,7 +724,7 @@ let cardBtnGen = async function (self, val) {
713
724
  fileStates: this.$appdata.getParam('档案状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('档案状态')] : [],
714
725
 
715
726
  // userTypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
716
- gasproperties: this.$appdata.getParam('用气性质') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')] : [],
727
+ // gasproperties: this.$appdata.getParam('用气性质') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')] : [],
717
728
 
718
729
  meterbrand: [],
719
730
  userlevel: this.$appdata.getParam('用户等级') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')] : [],
@@ -865,12 +876,10 @@ let cardBtnGen = async function (self, val) {
865
876
  },
866
877
  userTypeChange () {
867
878
  this.gasproperties = []
868
- if (this.$refs.paged.$refs.cri.model.f_user_type.length === 1) {
869
- if (this.$refs.paged.$refs.cri.model.f_user_type[0]) {
870
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
871
- } else {
872
- this.$refs.paged.$refs.cri.model.f_gasproperties = ''
873
- }
879
+ if (this.$refs.paged.$refs.cri.model.f_user_type !== null) {
880
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type)
881
+ } else {
882
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
874
883
  }
875
884
  },
876
885
  async hasGasContinue () {
@@ -143,7 +143,7 @@
143
143
  <label class="font_normal_body">用户类型</label>
144
144
  <v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
145
145
  :options='$parent.$parent.usertypes' placeholder='用户类型'
146
- close-on-select :search='true'
146
+ close-on-select :search='true' @change="$parent.$parent.userTypeChange()"
147
147
  condition="f_user_type = '{}'"></v-select>
148
148
  </div>
149
149
  <div class="col-sm-2 form-group">
@@ -483,7 +483,8 @@ import {HttpResetClass, PagedList} from 'vue-client'
483
483
  user: []
484
484
  },
485
485
  shengyu: this.$appdata.getSingleValue('在线抄表计算剩余气量') ? this.$appdata.getSingleValue('在线抄表计算剩余气量') : 'true',
486
- orgCondtionStr: ''
486
+ orgCondtionStr: '',
487
+ gasproperties: []
487
488
  }
488
489
  },
489
490
  ready () {
@@ -497,6 +498,15 @@ import {HttpResetClass, PagedList} from 'vue-client'
497
498
  })
498
499
  },
499
500
  methods: {
501
+ userTypeChange () {
502
+ this.gasproperties = []
503
+ if (this.$refs.paged.$refs.criteria.model !== null) {
504
+ this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
505
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type)
506
+ } else {
507
+ this.gasproperties = [{label: '全部', value: ''}]
508
+ }
509
+ },
500
510
  hidden () {
501
511
  this.criteriaShow = !this.criteriaShow
502
512
  },
@@ -782,9 +792,9 @@ import {HttpResetClass, PagedList} from 'vue-client'
782
792
  ventilationstate () {
783
793
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('通气手续')]
784
794
  },
785
- gasproperties () {
786
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
787
- },
795
+ // gasproperties () {
796
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
797
+ // },
788
798
  pricenames () {
789
799
  let arr = []
790
800
  AppData.getOnlyPrice().forEach((item) => {
@@ -13,11 +13,26 @@
13
13
  <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
14
14
  condition="tbd.f_user_name = '{}'" placeholder='用户姓名'>
15
15
  </div>
16
- <div class="form-group col-sm-2" v-if="!$parent.$parent.chargeShow" >
17
- <label class="font_normal_body"><nobr>用气性质</nobr></label>
18
- <input type="text" style="width:60%" class="input_search" v-model="model.f_gasproperties"
19
- condition="uf.f_gasproperties='{}'" placeholder='用气性质'>
16
+ <div
17
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
18
+ class="form-group">
19
+ <label class="font_normal_body">客户类型</label>
20
+ <v-select :options='$parent.$parent.user_type' :value.sync="model.f_user_type"
21
+ close-on-select condition="f_user_type='{}'" :value-single="true" @change="$parent.$parent.userTypeChange()"
22
+ placeholder='客户类型' v-model="model.f_user_type"></v-select>
23
+ </div>
24
+ <div
25
+ class="form-group col-sm-2" v-if="!$parent.$parent.chargeShow">
26
+ <label class="font_normal_body">用气性质</label>
27
+ <v-select :options='$parent.$parent.gasproperties' :value.sync="model.f_gasproperties"
28
+ close-on-select condition="uf.f_gasproperties='{}'"
29
+ placeholder='用气性质' v-model="model.f_gasproperties"></v-select>
20
30
  </div>
31
+ <!-- <div class="form-group col-sm-2" v-if="!$parent.$parent.chargeShow" >-->
32
+ <!-- <label class="font_normal_body"><nobr>用气性质</nobr></label>-->
33
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_gasproperties"-->
34
+ <!-- condition="uf.f_gasproperties='{}'" placeholder='用气性质'>-->
35
+ <!-- </div>-->
21
36
 
22
37
  <div class="span" style="float:right;">
23
38
  <button class="button_export button_spacing" @click="$parent.$parent.importToSuccess()">一键生成补扣费记录</button>
@@ -114,6 +129,11 @@ export default {
114
129
  return {
115
130
  criteriaShow: false,
116
131
  model: new PagedList('api/af-revenue/sql/getDeductionRecord', 30 ,{}),
132
+ gasproperties: [],
133
+ user_type: this.$appdata.getParam('用户类型') ? [{
134
+ label: '全部',
135
+ value: ''
136
+ }, ...this.$appdata.getParam('用户类型')] : [],
117
137
  fileShow: false,
118
138
  condition: '',
119
139
  searchEd: false,
@@ -134,6 +154,15 @@ export default {
134
154
  let downurl = 'api/af-revenue/downloadfile/file?filename=' + this.templateName
135
155
  this.$downFile(downurl, this.templateName + '.xlsx')
136
156
  },
157
+ userTypeChange () {
158
+ this.gasproperties = []
159
+ if (this.$refs.paged.$refs.criteria.model !== null) {
160
+ this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
161
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type)
162
+ } else {
163
+ this.gasproperties = [{label: '全部', value: ''}]
164
+ }
165
+ },
137
166
  selfSearch (args) {
138
167
  this.condition = args.condition
139
168
  this.model.search(args.condition, this.model)
@@ -59,6 +59,7 @@
59
59
  placeholder='用户类型'
60
60
  :value.sync="model.f_user_type"
61
61
  :options='$parent.$parent.getusertype'
62
+ @change="$parent.$parent.userTypeChange()"
62
63
  condition="f_user_type = '{}'"
63
64
  style="width: 60%"
64
65
  close-on-select >
@@ -356,10 +357,11 @@ export default {
356
357
 
357
358
  { label: '民用', value: '民用' },
358
359
  { label: '非民用', value: '非民用' }],
359
- gasproperties: this.$appdata.getParam('用气性质') ? [{
360
- label: '全部',
361
- value: ''
362
- }, ...this.$appdata.getParam('用气性质')] : [],
360
+ // gasproperties: this.$appdata.getParam('用气性质') ? [{
361
+ // label: '全部',
362
+ // value: ''
363
+ // }, ...this.$appdata.getParam('用气性质')] : [],
364
+ gasproperties: [],
363
365
  f_whether: '全部',
364
366
  pcdslist: [],
365
367
  isFirst: true
@@ -397,6 +399,15 @@ export default {
397
399
  }
398
400
  },
399
401
  methods: {
402
+ userTypeChange () {
403
+ this.gasproperties = []
404
+ if (this.$refs.paged.$refs.cri.model !== null) {
405
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
406
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type)
407
+ } else {
408
+ this.gasproperties = [{label: '全部', value: ''}]
409
+ }
410
+ },
400
411
  loadMeterBooks () {
401
412
  let meterbrand = this.$GetSaleParam.getGasbrand()
402
413
  for (let row of meterbrand) {
@@ -130,7 +130,7 @@
130
130
  class="form-group">
131
131
  <label class="font_normal_body">客户类型</label>
132
132
  <v-select :options='$parent.$parent.user_type' :value.sync="model.f_user_type"
133
- close-on-select condition="f_user_type='{}'"
133
+ close-on-select condition="f_user_type='{}'" :value-single="true" @change="$parent.$parent.userTypeChange()"
134
134
  placeholder='客户类型' v-model="model.f_user_type"></v-select>
135
135
  </div>
136
136
  <div
@@ -640,10 +640,7 @@ let loadParamGem = async function (self) {
640
640
  label: '全部',
641
641
  value: ''
642
642
  }, ...this.$appdata.getParam('工业备注')] : [],
643
- gasproperties: this.$appdata.getParam('用气性质') ? [{
644
- label: '全部',
645
- value: ''
646
- }, ...this.$appdata.getParam('用气性质')] : [],
643
+ gasproperties: [],
647
644
  user_type: this.$appdata.getParam('用户类型') ? [{
648
645
  label: '全部',
649
646
  value: ''
@@ -734,6 +731,15 @@ let loadParamGem = async function (self) {
734
731
  cancel () {
735
732
  this.isShowDetailInfo = false
736
733
  },
734
+ userTypeChange () {
735
+ this.gasproperties = []
736
+ if (this.$refs.paged.$refs.criteria.model !== null) {
737
+ this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
738
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type)
739
+ } else {
740
+ this.gasproperties = [{label: '全部', value: ''}]
741
+ }
742
+ },
737
743
  /**
738
744
  * 展示用户详细信息
739
745
  * @param obj 传递的row
@@ -144,7 +144,7 @@
144
144
  <label class="font_normal_body">用户类型</label>
145
145
  <v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
146
146
  :options='$parent.$parent.usertypes' placeholder='用户类型'
147
- close-on-select :search='true'
147
+ close-on-select :search='true' @change="$parent.$parent.userTypeChange()"
148
148
  condition="f_user_type = '{}'"></v-select>
149
149
  </div>
150
150
  <div class="col-sm-2 form-group">
@@ -517,7 +517,8 @@ export default {
517
517
  },
518
518
  meterbrands: [{label: '全部', value: ''}],
519
519
  upshow: false,
520
- orgCondtionStr: ''
520
+ orgCondtionStr: '',
521
+ gasproperties: []
521
522
  }
522
523
  },
523
524
  beforeDestroy () {
@@ -530,6 +531,15 @@ export default {
530
531
  loadParamGem(this)
531
532
  },
532
533
  methods: {
534
+ userTypeChange () {
535
+ this.gasproperties = []
536
+ if (this.$refs.paged.$refs.criteria.model !== null) {
537
+ this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
538
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type)
539
+ } else {
540
+ this.gasproperties = [{label: '全部', value: ''}]
541
+ }
542
+ },
533
543
  downloadFiles () {
534
544
  let downurl = 'api/af-revenue/downloadfile/file?filename=德信卡表批量抄表导入模板'
535
545
  this.$downFile(downurl,'卡表批量抄表导入模板.xlsx')
@@ -814,9 +824,9 @@ export default {
814
824
  ventilationstate () {
815
825
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('通气手续')]
816
826
  },
817
- gasproperties () {
818
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
819
- },
827
+ // gasproperties () {
828
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
829
+ // },
820
830
  pricenames () {
821
831
  let arr = []
822
832
  AppData.getOnlyPrice().forEach((item) => {
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/HuaiLai/sale'
5
+ import FilialeSale from './filiale/dexin/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'