manage-client 3.3.52 → 3.3.54

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.52",
3
+ "version": "3.3.54",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -155,7 +155,7 @@
155
155
  <v-select :value.sync="model.f_price_name"
156
156
  v-model="model.f_price_name"
157
157
  multiple
158
- :options="$parent.$parent.getPricenames"
158
+ :options="$parent.$parent.pricenames"
159
159
  condition="f_price_name in {}"
160
160
  ></v-select>
161
161
  </div>
@@ -963,8 +963,36 @@
963
963
  })
964
964
  },
965
965
  methods: {
966
- pricetypechanged(){
966
+ async pricetypechanged(){
967
967
  this.$refs.paged.$refs.cri.model.f_price_name = []
968
+ this.pricenames = []
969
+ if (this.$refs.paged.$refs.cri.model.pricetype) {
970
+ let http = new HttpResetClass()
971
+ let param = {
972
+ items: 'f_price_name',
973
+ tablename: 't_stairprice',
974
+ condition: `f_price_type = '${this.$refs.paged.$refs.cri.model.pricetype[0]}' and f_orgid = '${this.$login.f.orgid}'`,
975
+ orderitem: 'id'
976
+ }
977
+ var res = await http.load('POST', 'rs/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取设备列表失败!'})
978
+ let uniqueMap = {}
979
+ let arr = []
980
+ for (var i = 0; i < res.data.length; i++) {
981
+ let item = res.data[i];
982
+ if (!uniqueMap[item.f_price_name]) {
983
+ arr.push(item);
984
+ uniqueMap[item.f_price_name] = true;
985
+ }
986
+ }
987
+ console.log('arr',arr)
988
+ if (arr.length > 0) {
989
+ arr.forEach(row => {
990
+ this.pricenames.push({label: row.f_price_name,value: row.f_price_name})
991
+ })
992
+ } else {
993
+ this.pricenames.push({label: '全部', value: ''})
994
+ }
995
+ }
968
996
  },
969
997
  // 获取设备下拉选
970
998
  async getEquipment () {
@@ -1244,39 +1272,6 @@
1244
1272
  }
1245
1273
  return aaa
1246
1274
  },
1247
- getPricenames() {
1248
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
1249
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
1250
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
1251
- console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
1252
- if(this.$refs.paged.$refs.cri.model !==null) {
1253
- let rs = []
1254
- let priceArr = []
1255
- if ( pricetype.length >0) {
1256
- let params = {
1257
- f_price_type: pricetype[0],
1258
- filter: this.f_filialeid,
1259
- prices: this.prices
1260
- }
1261
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
1262
- let temp = {}
1263
- temp.label = item.label
1264
- temp.value = item.value.f_price_name
1265
- priceArr.push(temp)
1266
- })
1267
- if(priceArr.length == 0 ){
1268
- rs= [{label: '全部', value: ''}]
1269
- }else{
1270
- rs = [ ...priceArr]
1271
- }
1272
- }
1273
- if (rs.length === 0) {
1274
- console.log('rs读出来是空')
1275
- this.$refs.paged.$refs.cri.model.f_price_name = ''
1276
- }
1277
- return rs
1278
- }
1279
- },
1280
1275
  getCondition() {
1281
1276
  return {
1282
1277
  startDate: this.$refs.paged.$refs.cri.model.startDate,
@@ -502,7 +502,7 @@
502
502
  <th colspan="6">
503
503
  <nobr>燃气表</nobr>
504
504
  </th>
505
- <th colspan="62">
505
+ <th colspan="63">
506
506
  <nobr>其他</nobr>
507
507
  </th>
508
508
  </tr>
@@ -581,7 +581,7 @@
581
581
  <nobr>{{row.f_tablebase }}</nobr>
582
582
  </td>
583
583
  <td style="text-align: center;">
584
- <nobr>{{row.f_pregas}}</nobr>
584
+ <nobr>{{(row.f_pregas-0).toFixed(2)}}</nobr>
585
585
  </td>
586
586
  <td style="text-align: center;">
587
587
  <nobr>{{row.fee}}</nobr>
@@ -694,7 +694,7 @@
694
694
  <nobr>{{row.f_corr_operate_date}}</nobr>
695
695
  </td>
696
696
  <td style="text-align: center;">
697
- <nobr>{{row.f_stairamount1}}</nobr>
697
+ <nobr>{{(row.f_stairamount1 - 0).toFixed(2)}}</nobr>
698
698
  </td>
699
699
  <td style="text-align: center;">
700
700
  <nobr>{{row.conutnum>1?'--':row.f_stair1price}}</nobr>
@@ -703,7 +703,7 @@
703
703
  <nobr>{{(row.f_stair1fee - 0).toFixed(2)}}</nobr>
704
704
  </td>
705
705
  <td style="text-align: center;">
706
- <nobr>{{row.f_stair2amount}}</nobr>
706
+ <nobr>{{(row.f_stair2amount - 0).toFixed(2)}}</nobr>
707
707
  </td>
708
708
  <td style="text-align: center;">
709
709
  <nobr>{{row.conutnum>1?'--':row.f_stair2price}}</nobr>
@@ -712,7 +712,7 @@
712
712
  <nobr>{{(row.f_stair2fee - 0).toFixed(2)}}</nobr>
713
713
  </td>
714
714
  <td style="text-align: center;">
715
- <nobr>{{row.f_stair3amount}}</nobr>
715
+ <nobr>{{(row.f_stair3amount - 0).toFixed(2)}}</nobr>
716
716
  </td>
717
717
  <td style="text-align: center;">
718
718
  <nobr>{{row.conutnum>1?'--':row.f_stair3price}}</nobr>
@@ -755,19 +755,19 @@
755
755
  优惠合计:&emsp;{{sumsmodel.f_privilege_money}}
756
756
  </td>
757
757
  <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
758
- 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1}}
758
+ 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1.toFixed(2)}}
759
759
  </td>
760
760
  <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
761
761
  一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
762
762
  </td>
763
763
  <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
764
- 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
764
+ 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount.toFixed(2)}}
765
765
  </td>
766
766
  <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
767
767
  二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
768
768
  </td>
769
769
  <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
770
- 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
770
+ 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount.toFixed(2)}}
771
771
  </td>
772
772
  <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
773
773
  三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
@@ -454,6 +454,24 @@
454
454
  condition="f_network_valve='{}'">
455
455
  </v-select>
456
456
  </div>
457
+ <div class="col-sm-2 form-group" >
458
+ <label for="endDate4" class="font_normal_body" title='未购气开始时间'>开始时间</label>
459
+ <datepicker id="endDate4" placeholder="未购气开始时间" style="width:60%"
460
+ v-model="model.startDate5"
461
+ :value.sync="model.startDate5"
462
+ :format="'yyyy-MM-dd'"
463
+ :show-reset-button="true">
464
+ </datepicker>
465
+ </div>
466
+ <div class="col-sm-2 form-group" >
467
+ <label for="endDate4" class="font_normal_body" title="未购气结束时间">结束时间</label>
468
+ <datepicker id="endDate4" placeholder="未购气结束时间" style="width:60%"
469
+ v-model="model.endDate5"
470
+ :value.sync="model.endDate5"
471
+ :format="'yyyy-MM-dd'"
472
+ :show-reset-button="true">
473
+ </datepicker>
474
+ </div>
457
475
  </div>
458
476
  </div>
459
477
  </criteria>
@@ -473,7 +491,7 @@
473
491
  <th colspan="6">
474
492
  <nobr>燃气表</nobr>
475
493
  </th>
476
- <th colspan="62">
494
+ <th colspan="65">
477
495
  <nobr>其他</nobr>
478
496
  </th>
479
497
  </tr>
@@ -488,7 +506,7 @@
488
506
  <nobr>身份证号</nobr>
489
507
  </th>
490
508
  <th>
491
- <nobr>详细地址</nobr>
509
+ <data-order field="f_address" name="详细地址" :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
492
510
  </th>
493
511
  <th>
494
512
  <nobr>联系电话</nobr>
@@ -665,6 +683,15 @@
665
683
  <th>
666
684
  <nobr>灶具信息</nobr>
667
685
  </th>
686
+ <th>
687
+ <nobr>上次安检时间</nobr>
688
+ </th
689
+ ><th>
690
+ <nobr>上次安检状态</nobr>
691
+ </th>
692
+ <th>
693
+ <nobr>上次购气时间</nobr>
694
+ </th>
668
695
  <th>
669
696
  <nobr>备注</nobr>
670
697
  </th>
@@ -795,6 +822,9 @@
795
822
  <td style="text-align: center;"><nobr>{{row.f_alarm_code}}</nobr></td>
796
823
  <td style="text-align: center;"><nobr>{{row.f_maxdate}}</nobr></td>
797
824
  <td style="text-align: center;"><nobr>{{row.f_devices_type}}</nobr></td>
825
+ <td style="text-align: center;"><nobr>{{row.f_last_check_date}}</nobr></td>
826
+ <td style="text-align: center;"><nobr>{{row.f_last_check_result}}</nobr></td>
827
+ <td style="text-align: center;"><nobr>{{row.f_last_gas_date}}</nobr></td>
798
828
  <td style="text-align: center;"><nobr>{{row.f_comments}}</nobr></td>
799
829
  </template>
800
830
  <template partial='foot'>
@@ -880,7 +910,7 @@ let readySomething = async function (self) {
880
910
  self.getPricenames();
881
911
  self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
882
912
  // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
883
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
913
+ self.$refs.paged.$refs.cri.model.endDate5 = self.$login.toStandardDateString()
884
914
  // await self.$refs.paged.$refs.cri.search()
885
915
  }
886
916
  export default {
@@ -892,7 +922,10 @@ export default {
892
922
  isSingleUser: null,
893
923
  other:[],
894
924
  footer:[],
895
- model: new PagedList('rs/sql/compreQuery', 20,{orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_residential_area desc,f_building desc,f_unit desc,f_floor desc,f_room desc'`},{f_yiguabiao:0,f_weiguabiao:0}),
925
+ model: new PagedList('rs/sql/compreQuery', 20,
926
+ {startDate5: 'this.model.startDate5', endDate5: 'this.model.endDate5',
927
+ orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_residential_area asc,f_building asc,f_unit asc,f_floor asc,f_room asc'`},
928
+ {f_yiguabiao:0,f_weiguabiao:0}),
896
929
  criteriaShow: false,
897
930
  orgCondtionStr:'',
898
931
  residentialArea: [],
@@ -908,7 +941,7 @@ export default {
908
941
  tfoot: '',
909
942
  defaultfield: [],
910
943
  //排序
911
- orderitem: 'f_residential_area desc,f_building desc,f_unit desc,f_floor desc,f_room desc',
944
+ orderitem: 'f_residential_area asc,f_building asc,f_unit asc,f_floor asc,f_room asc',
912
945
  orderFields: {
913
946
  f_operate_date: 'no'
914
947
  },
@@ -226,7 +226,7 @@ export default{
226
226
  'f_fillcard_times': '补卡次数', 'f_sendsuccess': '表同步状态', 'f_isband': '微信绑定', 'f_cost_type': '缴费类型',
227
227
  'f_bank_accopen': '银行户名', 'f_bank_name': '银行名称', 'f_bank_account': '银行账号',
228
228
  'f_bank_idnumber': '银行身份证号', 'f_bank_pay_number': '缴费编号', 'f_maxdate': '换表时间', 'f_devices_type': '灶具信息', 'f_network_valve': '自动阀控',
229
- 'f_defendcard': '防盗卡号', 'f_factory_date': '生产年月'
229
+ 'f_defendcard': '防盗卡号', 'f_factory_date': '生产年月', 'f_last_check_date': '上次安检时间', 'f_last_check_result': '上次安检状态', 'f_last_gas_date': '上次购气时间'
230
230
  },
231
231
 
232
232
  compreConfigGY: {
@@ -133,6 +133,20 @@
133
133
  <th>
134
134
  <nobr>地址</nobr>
135
135
  </th>
136
+
137
+ <th>
138
+ <nobr>奥枫个性化金额</nobr>
139
+ </th>
140
+ <th>
141
+ <nobr>奥枫补贴项金额</nobr>
142
+ </th>
143
+ <th>
144
+ <nobr>宜达个性化金额</nobr>
145
+ </th>
146
+ <th>
147
+ <nobr>宜达补贴项金额</nobr>
148
+ </th>
149
+
136
150
  <th>
137
151
  <nobr>与收费比对结果</nobr>
138
152
  </th>
@@ -163,6 +177,20 @@
163
177
  <td style="text-align: center;">
164
178
  <nobr>{{row.textfield_li9rszuo}}</nobr>
165
179
  </td>
180
+
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.afgxhje}}</nobr>
183
+ </td>
184
+ <td style="text-align: center;">
185
+ <nobr>{{row.afbtxjec}}</nobr>
186
+ </td>
187
+ <td style="text-align: center;">
188
+ <nobr>{{row.afbtxje}}</nobr>
189
+ </td>
190
+ <td style="text-align: center;">
191
+ <nobr>{{row.ydbtxje}}</nobr>
192
+ </td>
193
+
166
194
  <td style="text-align: center;">
167
195
  <nobr>{{row.matchedaofeng}}</nobr>
168
196
  </td>
@@ -223,7 +223,7 @@ export default{
223
223
  qnAqzzYsmx:{
224
224
  'title':'标题','createtimegmt':'发起时间','originator':'发起人','modifiedtimegmt':'验收时间','modifyuser':'验收人',
225
225
  'textfield_li9rszui':'用户编号','textfield_li9rszuj':'用户姓名',
226
- 'textfield_li9rszuo':'地址','matchedaofeng':'与收费比对结果'
226
+ 'textfield_li9rszuo':'地址','afgxhje':'奥枫个性化金额','afbtxje':'奥枫补贴项金额','ydgxhje':'宜达个性化金额','ydbtxje':'宜达补贴项金额','matchedaofeng':'与收费比对结果'
227
227
  },
228
228
  }
229
229