sale-client 3.6.228 → 3.6.230

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": "sale-client",
3
- "version": "3.6.228",
3
+ "version": "3.6.230",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -371,7 +371,7 @@
371
371
  let readyGen = async function (self) {
372
372
  await self.$MagLoadParams.loadParam()
373
373
  self.initQueryParam()
374
- await self.$getConfig(self, 'HandManager')
374
+ await self.$getConfig(self, 'manageGetNewMeterBrandAndModel')
375
375
  console.log('表具管理config', self.config)
376
376
  self.getfield = self.config.excelHeaders
377
377
  // self.reflash()
@@ -378,7 +378,7 @@
378
378
  let readyGen = async function (self) {
379
379
  await self.$MagLoadParams.loadParam()
380
380
  self.initQueryParam()
381
- await self.$getConfig(self, 'HandManager')
381
+ await self.$getConfig(self, 'manageGetNewMeterBrandAndModel')
382
382
  console.log('表具管理config', self.config)
383
383
  self.getfield = self.config.excelHeaders
384
384
  // self.reflash()
@@ -310,7 +310,7 @@
310
310
  self.model.f_totalcost = self.model.f_preamount
311
311
  self.model.f_collection = 0
312
312
  } else {
313
- self.model.f_collection = self.config.autoCollection ? self.model.f_totalcost : 0
313
+ self.model.f_collection = self.config.autoCollection ? self.model.f_preamount : 0
314
314
  self.model.f_totalcost = ((self.model.f_totalcost - 0) - (self.dymoney - 0)).toFixed(4)
315
315
  }
316
316
  self.model.f_preamount = (calFee - (self.dymoney - 0)).toFixed(4)
@@ -335,7 +335,7 @@
335
335
  self.model.f_totalcost = getAmount.data.chargenum
336
336
  self.model.f_collection = 0
337
337
  } else {
338
- self.model.f_collection = self.config.autoCollection ? self.model.f_totalcost : 0
338
+ self.model.f_collection = self.config.autoCollection ? getAmount.data.chargenum : 0
339
339
  if(self.config.floor){
340
340
  self.model.f_collection=Math.ceil(self.model.f_collection)
341
341
  }
@@ -102,7 +102,7 @@
102
102
  <div class="col-sm-3 form-group" v-if="row.f_collection_type === '按金额'">
103
103
  <label for="f_collection" class=" font_normal_body">&nbsp;&nbsp;&nbsp;收款&nbsp;&nbsp;&nbsp;</label>
104
104
  <input id="f_collection" class="input_search" style="width:60%" type="number" v-model="model.f_collection"
105
- v-el:sk v-scale="[model.f_collection, 2]" disabled>
105
+ v-el:sk v-scale="[model.f_collection, 4]" disabled>
106
106
  </div>
107
107
  <div class="col-sm-1 form-group">
108
108
  <give-change :curbalance="curbalance" :collection.sync="model.f_collection" v-ref:givechange></give-change>
@@ -303,12 +303,13 @@
303
303
  self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
304
304
  }
305
305
  // self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
306
- self.model.f_collection = self.model.f_totalcost
306
+ self.model.f_collection = (self.model.f_totalcost - 0).toFixed(2)
307
307
  self.model.f_preamount = ((getGas.data.chargenum - 0) - (self.dymoney - 0))
308
308
  if (self.model.f_payment == '赠气') {
309
309
  self.model.f_totalcost = self.model.f_preamount
310
- self.model.f_collection = 0
311
- }
310
+ self.model.f_collection = 0.00
311
+ }
312
+ console.log('self.model.f_collection', self.model.f_collection)
312
313
  self.calText(getGas.data.chargeprice)
313
314
  }
314
315
  // 输入气量,换算金额
@@ -328,11 +329,12 @@
328
329
  if(self.config.floor){
329
330
  self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
330
331
  }
331
- self.model.f_collection = self.model.f_totalcost
332
+ self.model.f_collection = (self.model.f_totalcost - 0).toFixed(2)
332
333
  if (self.model.f_payment == '赠气') {
333
334
  self.model.f_totalcost = getAmount.data.chargenum
334
- self.model.f_collection = 0
335
+ self.model.f_collection = 0.00
335
336
  }
337
+ console.log('self.model.f_collection', self.model.f_collection)
336
338
  self.calText(getAmount.data.chargeprice)
337
339
  }
338
340
  }
@@ -212,7 +212,7 @@
212
212
  self.model.f_totalcost = ((self.row.f_balance - 0) > (getAmount.data.chargenum - 0) ? 0 : ((getAmount.data.chargenum - 0) - (self.row.f_balance - 0)).toFixed(4))
213
213
  Object.assign(self.model, self.model, getAmount.data)
214
214
  self.model.chargeprice = getAmount.data.chargeprice
215
- self.model.f_collection = self.model.f_totalcost
215
+ self.model.f_collection = getAmount.data.chargenum - 0
216
216
  if(self.config.floor){
217
217
  self.model.f_collection=Math.ceil(self.model.f_collection)
218
218
  }
@@ -17,7 +17,7 @@
17
17
  <div class="form-group col-sm-3">
18
18
  <label class="font_normal_body">客户名称</label>
19
19
  <input type="text" class="input_search" style="width:60%" v-model="model.f_user_name" placeholder='客户名称'
20
- @keyup.enter="$parent.$parent.clean()" condition="f_user_name like '%{}%'">
20
+ @keyup.enter="$parent.$parent.clean()" >
21
21
  </div>
22
22
  <!--<div class="row" >-->
23
23
  <div v-show="$parent.$parent.criteriaShow">
@@ -597,7 +597,7 @@
597
597
  curorgid: [this.$login.f.orgid],
598
598
  f_orgid: '',
599
599
  showCardError2: false,
600
- model: new PagedList('rs/sql/sale_getUser', 30, {orderitem: '"' + this.orderitem + ' DESC"'}),
600
+ model: new PagedList('rs/sql/sale_getUser', 30, {f_user_name: 'this.model.f_user_name', orderitem: '"' + this.orderitem + ' DESC"'}),
601
601
  isPager: true,
602
602
  rows: null,
603
603
  cardInfo: '',
@@ -348,6 +348,9 @@
348
348
  <th>
349
349
  <nobr>调压箱名称</nobr>
350
350
  </th>
351
+ <th>
352
+ <nobr>是否单户抄表</nobr>
353
+ </th>
351
354
  <th>
352
355
  <nobr>抄表员</nobr>
353
356
  </th>
@@ -448,6 +451,7 @@
448
451
  </td>
449
452
  <td>{{ row.f_book_name }}</td>
450
453
  <td>{{ row.f_adjustable_name }}</td>
454
+ <td>{{ row.f_isone == '是' ? '是': '否' }}</td>
451
455
  <td>{{ row.f_inputtor }}</td>
452
456
  <td style="text-align: center;">
453
457
  <nobr>
@@ -1049,6 +1053,7 @@ export default {
1049
1053
  f_meter_brand: this.danhu.info.f_meter_brand,
1050
1054
  f_hand_id: res2.data[0].id,
1051
1055
  f_tablebase: this.danhu.f_tablebase,
1056
+ f_isone: '是',
1052
1057
  f_userinfo_id: this.danhu.info.f_userinfo_id
1053
1058
  }
1054
1059
  this.$resetpost('rs/logic/sale_commonEnter', {data: handParam}, {
@@ -372,7 +372,7 @@
372
372
  let readyGen = async function (self) {
373
373
  await self.$MagLoadParams.loadParam()
374
374
  self.initQueryParam()
375
- await self.$getConfig(self, 'HandManager')
375
+ await self.$getConfig(self, 'manageGetNewMeterBrandAndModel')
376
376
  console.log('表具管理config', self.config)
377
377
  self.getfield = self.config.excelHeaders
378
378
  // self.reflash()
@@ -207,11 +207,16 @@
207
207
  </th>
208
208
  <th>
209
209
  <nobr>
210
- <data-order field="f_address" name="基本信息"
211
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
210
+ 用户姓名
212
211
  </nobr>
213
212
  </th>
214
213
  <!-- <th>-->
214
+ <!-- <nobr>-->
215
+ <!-- <data-order field="f_address" name="基本信息"-->
216
+ <!-- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>-->
217
+ <!-- </nobr>-->
218
+ <!-- </th>-->
219
+ <!-- <th>-->
215
220
  <!-- <nobr>用户等级</nobr>-->
216
221
  <!-- </th>-->
217
222
  <th>
@@ -290,7 +295,8 @@
290
295
  <template partial='body'>
291
296
  <td style="text-align: center;">{{$index+1}}</td>
292
297
  <td style="text-align: center;">{{row.f_userinfo_code}}</td>
293
- <td style="text-align: center;">{{row.f_user_name}}&nbsp;&nbsp;{{row.f_gasproperties}}&nbsp;&nbsp;{{row.f_user_phone}}&nbsp;&nbsp;{{row.f_address}}</td>
298
+ <td style="text-align: center;">{{row.f_user_name}}</td>
299
+ <!-- <td style="text-align: center;">{{row.f_gasproperties}}&nbsp;&nbsp;{{row.f_user_phone}}&nbsp;&nbsp;{{row.f_address}}</td>-->
294
300
  <!-- <td>{{row.f_user_level}}</td>-->
295
301
  <td style="text-align: center;">{{row.f_residential_area}}</td>
296
302
  <td style="text-align: center;">{{row.f_meternumber}}</td>
@@ -354,7 +360,19 @@
354
360
 
355
361
 
356
362
  <td style="text-align: center;">{{row.f_actualtablebase}}</td>
357
- <td style="text-align: center;">{{row.f_total_gas-(row.f_tablebase-row.f_initial_base)}}</td>
363
+ <td style="text-align: center;">
364
+ <div class="form-group" style="margin-bottom:0px;"
365
+ v-if="row.f_meter_state === '未抄表' ">
366
+ <input type="text" class="form-control" v-model="row.f_shengyu_gas"
367
+ v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;"
368
+ :disabled="row.state === '开始'"
369
+ @blur="$parent.$parent.$parent.enter(row)"
370
+ >
371
+ </div>
372
+ <div v-else>
373
+ <span >{{ row.f_shengyu_gas }}</span>
374
+ </div>
375
+ </td>
358
376
  <td style="text-align: center;">
359
377
  <div class="form-group" style="margin-bottom:0px;"
360
378
  v-if="row.f_meter_state === '未抄表' ">
@@ -553,7 +571,7 @@ import {HttpResetClass, PagedList} from 'vue-client'
553
571
  cardCentalData: '',
554
572
  getfield: {
555
573
  'f_userinfo_code': '户编号',
556
- 'f_user_name': '基本信息',
574
+ 'f_user_name': '用户姓名',
557
575
  'f_meternumber': '表号',
558
576
  'f_inputtor': '抄表员',
559
577
  'f_total_fee': '总购金额',
@@ -692,7 +710,7 @@ import {HttpResetClass, PagedList} from 'vue-client'
692
710
  enter (row) {
693
711
  if (!row.f_result_state || !row.f_valve_switch || !row.f_controller_power ||
694
712
  !row.f_flowmeter_capacity || !row.f_temperature || !row.f_pressure ||
695
- !row.f_instantaneous_flow || !row.f_hand_date || !row.f_tablebase) {
713
+ !row.f_instantaneous_flow || !row.f_hand_date || !row.f_tablebase | !row.f_shengyu_gas) {
696
714
  return
697
715
  }
698
716
  if (!row.f_tablebase || ((row.f_tablebase - 0) - (row.f_last_tablebase - 0)).toFixed(2) < 0) {
@@ -738,7 +756,7 @@ import {HttpResetClass, PagedList} from 'vue-client'
738
756
  console.log('================================判断前:', row.f_hand_date)
739
757
  row.f_user_id = row.f_user_id + ''
740
758
  // 余气量=累购-(本期指数-表初始指数)
741
- row.f_shengyu_gas = (row.f_total_gas - (row.f_tablebase - row.f_initial_base)).toFixed(2)
759
+ // row.f_shengyu_gas = (row.f_total_gas - (row.f_tablebase - row.f_initial_base)).toFixed(2)
742
760
  console.log('录入完毕。。', row)
743
761
  this.$resetpost('rs/logic/cardhands', row, {resolveMsg: null, rejectMsg: '录入数据出错!!!'}).then((res) => {
744
762
  console.log('返回数据', res)