manage-client 3.3.232 → 3.3.234

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.3.232",
3
+ "version": "3.3.234",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -10,7 +10,8 @@ export default {
10
10
  'f_idnumber': '身份证号',
11
11
  'f_balance': '账户余额',
12
12
  'f_user_level': '客户等级',
13
- 'f_user_type': '用户类型',
13
+ 'f_user_type': '客户类型',
14
+ 'f_gasproperties': '用气性质',
14
15
  'f_address': '客户地址',
15
16
  'f_residential_area': '小区',
16
17
  'f_building': '楼栋',
@@ -66,9 +66,17 @@
66
66
  <label class="font_normal_body">客户类型</label>
67
67
  <v-select :value.sync="model.f_user_type"
68
68
  v-model="model.f_user_type" condition="f_user_type = '{}'"
69
+ @change="$parent.$parent.userTypeChange()"
69
70
  :options='$parent.$parent.userTypes' placeholder='请选择'
70
71
  close-on-select></v-select>
71
72
  </div>
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">用气性质</label>
75
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
76
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
77
+ condition="f_gasproperties = '{}'"
78
+ close-on-select></v-select>
79
+ </div>
72
80
  <div class="col-sm-2 form-group">
73
81
  <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人数&nbsp;&nbsp;&nbsp;&nbsp;</label>
74
82
  <input type="text" style="width:60%" class="input_search" v-model="model.f_people_num"
@@ -335,6 +343,9 @@
335
343
  <th>
336
344
  <nobr>客户类型</nobr>
337
345
  </th>
346
+ <th>
347
+ <nobr>用气性质</nobr>
348
+ </th>
338
349
  <th>
339
350
  <data-order field="f_address" name="客户地址"
340
351
  :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
@@ -434,6 +445,9 @@
434
445
  <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
435
446
  <nobr>{{row.f_user_type}}</nobr>
436
447
  </td>
448
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
449
+ <nobr>{{row.f_gasproperties}}</nobr>
450
+ </td>
437
451
  <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
438
452
  <nobr>{{row.f_address}}</nobr>
439
453
  </td>
@@ -589,6 +603,7 @@
589
603
  printshow: false,
590
604
  all: false,
591
605
  fields: {},
606
+ gasproperties: [],
592
607
  //排序
593
608
  orderitem:'f_userinfo_code desc',
594
609
  orderFields: {
@@ -718,6 +733,16 @@
718
733
  cancel(obj) {
719
734
  this.show = false
720
735
  },
736
+ userTypeChange() {
737
+ this.gasproperties = []
738
+ if (this.$refs.paged.$refs.cri.model !== null) {
739
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
740
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
741
+ } else {
742
+ this.gasproperties = [{label: '全部', value: ''}]
743
+ }
744
+ },
745
+
721
746
  showmsg(obj){
722
747
 
723
748
  this.rowdata=obj
@@ -369,8 +369,8 @@ export default {
369
369
  getheader() {
370
370
  this.other=[];
371
371
  let date = []
372
- date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
373
- date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
372
+ date.push(`起始时间:${this.$refs.paged.$refs.criteria.model.startDate}`)
373
+ date.push(`终止时间:${this.$refs.paged.$refs.criteria.model.endDate}`)
374
374
  this.other.push(date)
375
375
  },
376
376
  initParams() {
@@ -8,7 +8,9 @@ let loadParamGen = async function (f_filialeid) {
8
8
 
9
9
  if (GetSaleParam.gasbrands.length === 0 && GetSaleParam.prices.length === 0 && GetSaleParam.adjustables.length === 0 ) {
10
10
  let getParams = await http.load('POST','api/af-revenue/logic/getSaleInitData', {data: {f_orgid: f_filialeid?f_filialeid: Vue.$login.f.orgid}}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
11
- if (getParams.data) {
11
+ if (getParams.data && getParams.data.data) {
12
+ MagLoadParams.organizeData(getParams.data.data)
13
+ }else if (getParams.data) {
12
14
  MagLoadParams.organizeData(getParams.data)
13
15
  }
14
16
  } else {
@@ -16,9 +18,11 @@ let loadParamGen = async function (f_filialeid) {
16
18
  GetSaleParam.prices = []
17
19
  GetSaleParam.adjustables = []
18
20
  let getParams = await http.load('POST','api/af-revenue/logic/getSaleInitData', {data: {f_orgid: f_filialeid ? f_filialeid : Vue.$login.f.orgid}}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
19
- if (getParams.data) {
20
- MagLoadParams.organizeData(getParams.data)
21
- }
21
+ if (getParams.data && getParams.data.data) {
22
+ MagLoadParams.organizeData(getParams.data.data)
23
+ }else if (getParams.data) {
24
+ MagLoadParams.organizeData(getParams.data)
25
+ }
22
26
  }
23
27
  }
24
28