manage-client 3.3.97 → 3.3.99-sx

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.
@@ -145,6 +145,21 @@
145
145
  condition="f_gasproperties = '{}'"
146
146
  close-on-select></v-select>
147
147
  </div>
148
+ <div class="col-sm-2 form-group">
149
+ <label class="font_normal_body">气价类型</label>
150
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
151
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
152
+ close-on-select v-ref:type>
153
+ </v-select>
154
+ </div>
155
+ <div class="col-sm-2 form-group">
156
+ <label class="font_normal_body">气价名称</label>
157
+ <v-select :value.sync="model.f_price_name"
158
+ v-model="model.f_price_name"
159
+ :options="$parent.$parent.getPricenames"
160
+ condition="f_price_name = '{}'"
161
+ close-on-select></v-select>
162
+ </div>
148
163
  <!--表册片区-->
149
164
  <div class="col-sm-2 form-group">
150
165
  <label class="font_normal_body">表册片区</label>
@@ -230,6 +245,9 @@
230
245
  <th>
231
246
  <nobr>气表类型</nobr>
232
247
  </th>
248
+ <th>
249
+ <nobr>气价名称</nobr>
250
+ </th>
233
251
  <th>
234
252
  <nobr>气价详情</nobr>
235
253
  </th>
@@ -314,6 +332,9 @@
314
332
  <td style="text-align: center;">
315
333
  <nobr>{{row.f_meter_classify}}</nobr>
316
334
  </td>
335
+ <td style="text-align: center;">
336
+ <nobr>{{row.f_price_name}}</nobr>
337
+ </td>
317
338
  <td style="text-align: center;">
318
339
  <nobr>{{row.f_price_value}}</nobr>
319
340
  </td>
@@ -735,6 +756,51 @@ import exportConfig from './../exportConfig'
735
756
  credentials () {
736
757
  return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('证件类型')]
737
758
  },
759
+ pricetypes() {
760
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
761
+ },
762
+ // 获取气价
763
+ getPricenames() {
764
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
765
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
766
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
767
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
768
+ if(this.$refs.paged.$refs.cri.model !==null) {
769
+ let rs = []
770
+ let priceArr = []
771
+ if ( pricetype.length >0) {
772
+ let params = {
773
+ f_price_type: pricetype[0],
774
+ filter: this.f_filialeid,
775
+ prices: this.prices
776
+ }
777
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
778
+ let temp = {}
779
+ temp.label = item.label
780
+ temp.value = item.value.f_price_name
781
+ if(f_user_type && f_user_type.length >0){
782
+ if(f_user_type== item.value.f_user_type) {
783
+ if (f_gasproperties && f_gasproperties !=='') {
784
+ if (f_gasproperties == item.value.f_gasproperties) {
785
+ priceArr.push(temp)
786
+ }
787
+ } else {
788
+ priceArr.push(temp)
789
+ }
790
+ }
791
+ }else {
792
+ priceArr.push(temp)
793
+ }
794
+ })
795
+ rs = [{label: '全部', value: ''}, ...priceArr]
796
+ }
797
+ if (rs.length === 0) {
798
+ console.log('rs读出来是空')
799
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
800
+ }
801
+ return rs
802
+ }
803
+ },
738
804
  metertype () {
739
805
  return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
740
806
  }
@@ -414,6 +414,7 @@ export default{
414
414
  "f_meternumber": "表号",
415
415
  "f_meter_brand": "气表品牌",
416
416
  "f_meter_classify": "气表类型",
417
+ "f_price_name": "气价名称",
417
418
  "f_price_value": "气价详情",
418
419
  "f_balance": "账户余额",
419
420
  "f_pregas": "预购气量",