sale-client 3.6.307 → 3.6.308

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.307",
3
+ "version": "3.6.308",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -165,6 +165,16 @@
165
165
  v-ref:measure>
166
166
  </v-select>
167
167
  </div>
168
+ <div class="col-sm-4 form-group" :class="[$m.f_usetype.required ? 'has-error' : '']"
169
+ v-show="(formconfig && formconfig.f_usetype && formconfig.f_usetype.required) || !onlyshowmust"
170
+ v-if="getConfigShowItem('f_usetype')">
171
+ <label for="f_usetype" class="font_normal_body" title="参数:使用类型">&ensp;{{getConfigLabelName('f_usetype','使用类型')}}</label>
172
+ <input type="text" v-model="row.f_usetype" v-show="false"
173
+ v-validate:f_usetype=getConfigValidate("f_usetype",false)>
174
+ <v-select :value.sync="row.f_usetype" v-model="row.f_usetype"
175
+ :options='usetype' placeholder='使用类型'
176
+ close-on-select></v-select>
177
+ </div>
168
178
  </div>
169
179
  <div>
170
180
  <a style="font-size: 16px;font-weight: 500;">气价信息</a>&nbsp;<a style="color: #999999;text-decoration: none"></a>
@@ -421,17 +431,7 @@
421
431
  close-on-select
422
432
  condition="f_inputtor like '%{}%'" v-el:cc></v-select>
423
433
  </div>
424
- <div class="col-sm-4 form-group" :class="[$m.f_usetype.required ? 'has-error' : '']"
425
- v-show="(formconfig && formconfig.f_usetype && formconfig.f_usetype.required) || !onlyshowmust"
426
- v-if="getConfigShowItem('f_usetype')">
427
- <label for="f_usetype" class="font_normal_body" title="参数:使用类型">&ensp;{{getConfigLabelName('f_usetype','使用类型')}}</label>
428
- <input type="text" v-model="row.f_usetype" v-show="false"
429
- v-validate:f_usetype=getConfigValidate("f_usetype",false)>
430
- <v-select :value.sync="row.f_usetype" v-model="row.f_usetype"
431
- :options='usetype' placeholder='使用类型'
432
- close-on-select></v-select>
433
- </div>
434
- <div class="col-sm-4 form-group" :class="[$m.f_usetype.required ? 'has-error' : '']"
434
+ <div class="col-sm-4 form-group" :class="[$m.f_usestate.required ? 'has-error' : '']"
435
435
  v-show="(formconfig && formconfig.f_usestate && formconfig.f_usestate.required) || !onlyshowmust"
436
436
  v-if="getConfigShowItem('f_usestate')">
437
437
  <label for="f_position" class="font_normal_body" title="参数:使用状态">&ensp;{{getConfigLabelName('f_usestate','使用状态')}}</label>
@@ -442,8 +442,8 @@
442
442
  close-on-select></v-select>
443
443
  </div>
444
444
  <div class="col-sm-4 form-group" :class="[$m.f_limit_sms.required ? 'has-error' : '']"
445
- v-show="(formconfig && formconfig.f_usetype && formconfig.f_usetype.required) || !onlyshowmust"
446
- v-if="getConfigShowItem('f_usetype')">
445
+ v-show="(formconfig && formconfig.f_limit_sms && formconfig.f_limit_sms.required) || !onlyshowmust"
446
+ v-if="getConfigShowItem('f_limit_sms')">
447
447
  <label for="f_limit_sms" class="font_normal_body">&ensp;{{getConfigLabelName('f_limit_sms','短信限定')}}</label>
448
448
  <input type="text" class="input_search" style="width:60%" v-model="row.f_limit_sms"
449
449
  v-validate:f_limit_sms=getConfigValidate("f_limit_sms",false)
@@ -79,12 +79,12 @@
79
79
  <th><nobr>用气金额 </nobr></th>
80
80
  <th><nobr>本期余额</nobr></th>
81
81
  <th v-if="!row.f_meter_type.includes('物联网表')"><nobr>是否缴费 </nobr></th>
82
- <th><nobr>一阶单价 </nobr></th>
83
- <th><nobr>一阶气量 </nobr></th>
84
- <th><nobr>二阶单价 </nobr></th>
85
- <th><nobr>二阶气量 </nobr></th>
86
- <th><nobr>三阶单价 </nobr></th>
87
- <th><nobr>三阶气量 </nobr></th>
82
+ <th v-if="!f_calculation.includes('表端结算')"><nobr>一阶单价 </nobr></th>
83
+ <th v-if="!f_calculation.includes('表端结算')"><nobr>一阶气量 </nobr></th>
84
+ <th v-if="!f_calculation.includes('表端结算')"><nobr>二阶单价 </nobr></th>
85
+ <th v-if="!f_calculation.includes('表端结算')"><nobr>二阶气量 </nobr></th>
86
+ <th v-if="!f_calculation.includes('表端结算')"><nobr>三阶单价 </nobr></th>
87
+ <th v-if="!f_calculation.includes('表端结算')"><nobr>三阶气量 </nobr></th>
88
88
  <th><nobr>抄表状态 </nobr></th>
89
89
  <th><nobr>抄表结果状态 </nobr></th>
90
90
  <th><nobr>表单状态 </nobr></th>
@@ -105,12 +105,12 @@
105
105
  <td style="text-align:center">{{row.f_oughtfee}}</td>
106
106
  <td style="text-align:center">{{row.f_curbalance}}</td>
107
107
  <td style="text-align:center" v-if="!row.f_meter_type.includes('物联网表')">{{row.f_whether_pay}}</td>
108
- <td style="text-align:center">{{row.f_stair1price}}</td>
109
- <td style="text-align:center">{{row.f_stairamount1}}</td>
110
- <td style="text-align:center">{{row.f_stair2price}}</td>
111
- <td style="text-align:center">{{row.f_stair2amount}}</td>
112
- <td style="text-align:center">{{row.f_stair3price}}</td>
113
- <td style="text-align:center">{{row.f_stair3amount}}</td>
108
+ <td style="text-align:center" v-if="!f_calculation.includes('表端结算')">{{row.f_stair1price}}</td>
109
+ <td style="text-align:center" v-if="!f_calculation.includes('表端结算')">{{row.f_stairamount1}}</td>
110
+ <td style="text-align:center" v-if="!f_calculation.includes('表端结算')">{{row.f_stair2price}}</td>
111
+ <td style="text-align:center" v-if="!f_calculation.includes('表端结算')">{{row.f_stair2amount}}</td>
112
+ <td style="text-align:center" v-if="!f_calculation.includes('表端结算')">{{row.f_stair3price}}</td>
113
+ <td style="text-align:center" v-if="!f_calculation.includes('表端结算')">{{row.f_stair3amount}}</td>
114
114
  <td style="text-align:center">{{row.f_meter_state}}</td>
115
115
  <td style="text-align:center">{{row.f_result_state?row.f_result_state:''}}</td>
116
116
  <td style="text-align:center">{{row.f_hand_state}}</td>
@@ -135,22 +135,22 @@
135
135
  <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
136
136
  用气金额合计:&emsp;{{model.sums.f_oughtfee}}
137
137
  </td>
138
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
138
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
139
139
  一阶用气量合计:&emsp;{{model.sums.f_stairamount1}}
140
140
  </td>
141
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
141
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
142
142
  一阶用气金额合计:&emsp;{{model.sums.f_stair1fee}}
143
143
  </td>
144
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
144
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
145
145
  二阶用气量合计:&emsp;{{model.sums.f_stair2amount}}
146
146
  </td>
147
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
147
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
148
148
  二阶用气金额合计:&emsp;{{model.sums.f_stair2fee}}
149
149
  </td>
150
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
150
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
151
151
  三阶用气量合计:&emsp;{{model.sums.f_stair3amount}}
152
152
  </td>
153
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
153
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
154
154
  三阶用气金额合计:&emsp;{{model.sums.f_stair3fee}}
155
155
  </td>
156
156
  </tr>
@@ -178,6 +178,7 @@
178
178
  f_stair3fee: 0
179
179
  }),
180
180
  show: false,
181
+ f_calculation: '',
181
182
  lists: [],
182
183
  meterstates: this.$appdata.getParam('抄表状态') ? [{
183
184
  label: '全部',
@@ -232,6 +233,7 @@
232
233
  props: ['row'],
233
234
  ready () {
234
235
  this.$refs.paged.$refs.criteria.model.f_hand_state = ['有效']
236
+ this.f_calculation = this.row.f_calculation
235
237
  this.$refs.paged.$refs.criteria.search()
236
238
  // this.sumgasandmoney= this.$refs.paged.$refs.grid.model.sums
237
239
  for (let i in this.all) {
@@ -72,13 +72,14 @@ export default {
72
72
  * @param retry
73
73
  * @returns {Promise<void>} 如果查到返回url
74
74
  */
75
- async openETicket (id, model, f_charge_type, invoice_type, retry, is_tax) {
75
+ async openETicket (id, model, f_charge_type, invoice_type, retry, is_tax, handplanTableName) {
76
76
  console.log('>>> f_invoice_type', invoice_type)
77
77
  try {
78
78
  let result = await axios.post('/invoice/rs/logic/getInvoice', Object.assign({
79
79
  id,
80
80
  f_charge_type,
81
81
  retry,
82
+ handplanTableName,
82
83
  isTax: is_tax === '不征税' ? 0 : 1,
83
84
  eticket_id: retry ? model.id : null,
84
85
  invoice_kind: invoice_type,
@@ -327,6 +327,12 @@
327
327
  this.$showMessage(res.data.msg)
328
328
  return
329
329
  }
330
+ if ((row.type === '卡表收费' || row.type === '物联网收费' || row.type === '机表收费') && row.f_operator === '微信公众号') {
331
+ if (!this.authArr.includes('微信缴费撤销')) {
332
+ this.$showAlert('当前用户没有【微信缴费撤销】权限,请联系管理员获取此权限后再进行该操作!', 'warning', 3000)
333
+ return
334
+ }
335
+ }
330
336
  if (row.type === '卡表收费') {
331
337
  if (!this.authArr.includes('无卡收费撤销权限')) {
332
338
  this.$showAlert('当前用户没有【无卡收费撤销权限】,请联系管理员获取此权限后再进行该操作!', 'warning', 3000)
@@ -28,14 +28,14 @@
28
28
  <input class="input_search" style="width:60%" type="number" v-el:fpregas
29
29
  @keyup.enter="pregas('enter')" @blur="pregas()" v-model="model.f_pregas" placeholder="预购气量"
30
30
  v-scale="[model.f_pregas, row.f_gas_decimal||4 ]"
31
- v-next-el='fcollection' :disabled="config.calculatePreByCollection"/>
31
+ v-next-el='fcollection' :disabled="true"/>
32
32
  </div>
33
33
  <div class="col-sm-4"
34
34
  :class="[$v.f_preamount.required || $v.f_preamount.dctest || model.f_preamount === 0 ? 'has-error' : 'has-success']">
35
35
  <label for="f_pregas" class=" font_normal_body">*预购金额</label>
36
36
  <input class="input_search" style="width:60%" type="number"
37
37
  @blur="preamount()" v-model="model.f_preamount"
38
- :disabled="config.calculatePreByCollection"
38
+ :disabled="true"
39
39
  v-scale="[model.f_preamount, row.f_fee_decimal||4 ]"
40
40
  v-validate:f_preamount='{required: true, dctest: [maxmoney, "<=" ]}' placeholder="预购金额">
41
41
  </div><!--
@@ -101,9 +101,10 @@
101
101
  :class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error' : 'has-success']">
102
102
  <label for="f_collection" class=" font_normal_body">*收&emsp;&emsp;款</label>
103
103
  <input id="f_collection" class="input_search" style="width:60%" type="number" v-model="model.f_collection"
104
- v-validate:f_collection='{required: true, dctest: [(model.f_totalcost - 0), ">=" ] }'
104
+ v-validate:f_collection='{required: true, dctest: [(model.f_collection - 0), ">=" ] }'
105
+ @blur="calculatePreByCollection()"
105
106
  v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))"
106
- v-scale="[model.f_totalcost, row.f_fee_decimal||4]" :disabled="$refs.givechange.promptText != ''"/>
107
+ v-scale="[model.f_collection, row.f_fee_decimal||4]" :disabled="$refs.givechange.promptText != ''"/>
107
108
  </div>
108
109
  <div class="col-sm-3" v-if="row.f_collection_type === '按气量' && model.f_payment!='赠气' && row.f_meter_type.includes('卡表') && config.calculatePreByCollection"
109
110
  :class="[$v.f_collection.required ? 'has-error' : 'has-success']">
@@ -118,13 +119,13 @@
118
119
  :class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error' : 'has-success']">
119
120
  <label for="f_collection" class=" font_normal_body"><font size="4px" style="font-weight:bold">*收&emsp;款</font></label>
120
121
  <input id="f_collection" class="input_search" style="width:60%;font-size: 18px;font-weight:bold;" type="number" v-model="model.f_collection"
121
- @blur="config.calculatePreByCollection && calculatePreByCollection()"
122
- v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))" v-scale="[model.f_totalcost, row.f_fee_decimal||4]" :disabled="$refs.givechange.promptText != ''">
122
+ @blur="calculatePreByCollection()"
123
+ v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))" v-scale="[model.f_collection, row.f_fee_decimal||4]" :disabled="$refs.givechange.promptText != ''">
123
124
  </div>
124
125
  <div class="col-sm-3" v-if="row.f_collection_type === '按金额' && row.f_meter_type.includes('卡表')">
125
126
  <label for="f_collection" class=" font_normal_body"><font size="4px" style="font-weight:bold">*收&emsp;款</font></label>
126
127
  <input id="f_collection" class="input_search" style="width:50%;font-size: 18px;font-weight:bold;" type="number" v-model="model.f_collection"
127
- @blur="config.calculatePreByCollection && calculatePreByCollection()"
128
+ @blur="calculatePreByCollection()"
128
129
  v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))" v-scale="[model.f_collection, row.f_fee_decimal||4]" :disabled="$refs.givechange.promptText != ''">
129
130
  </div>
130
131
  <div class="col-sm-4" v-if="!row.f_meter_type.includes('卡表')">
@@ -243,7 +244,6 @@
243
244
  </template>
244
245
  <script>
245
246
  import {HttpResetClass} from 'vue-client'
246
- import XML from '../../plugins/ObjTree'
247
247
  /**
248
248
  *综合业务
249
249
  *卡表收费组件
@@ -675,8 +675,9 @@
675
675
  // 根据收款金额计算划价信息
676
676
  // 需要配置 calculatePreByCollection = true
677
677
  async calculatePreByCollection () {
678
+ console.log('调用了')
678
679
  try {
679
- this.model.f_collection = (this.model.f_collection - 0)
680
+ // this.model.f_collection = (this.model.f_collection - 0)
680
681
  let calFee = ((this.model.f_collection - 0) + (this.row.f_balance)).toFixed(4)
681
682
  // 通过收款进行划价
682
683
  let getGas = await this.$CommonService.feeCalculate(this.model, calFee)
@@ -684,7 +685,7 @@
684
685
  let dymoney2 = await this.$CommonService.gasCalculate(this.model, this.model.f_pregas)
685
686
  this.model.chargeprice = dymoney2.data.chargeprice
686
687
  Object.assign(this.model, this.model, dymoney2.data)
687
- this.model.f_totalcost = dymoney2.data.chargenum
688
+ this.model.f_totalcost = ((this.row.f_balance - 0) > (dymoney2.data.chargenum - 0) ? 0 : ((dymoney2.data.chargenum - 0) - (this.row.f_balance - 0)).toFixed(this.row.f_fee_decimal || 4))
688
689
  this.model.f_preamount = dymoney2.data.chargenum
689
690
  this.calText(dymoney2.data.chargeprice)
690
691
  } catch (error) {
@@ -868,6 +869,7 @@
868
869
  }
869
870
  this.privilegeCalculate()
870
871
  }
872
+ console.log(this.model.f_collection)
871
873
  },
872
874
  // 优惠计算
873
875
  async privilegeCalculate () {
@@ -278,7 +278,7 @@ export default {
278
278
  confirm () {
279
279
  this.eticket_msg = false
280
280
  this.eticket_show = true
281
- this.$refs.eticketbill.openETicket(this.selecteds.length === 0 ? this.row.id : this.selecteds.map(item => item.id), this.row, '物联网收费', this.row.f_paper_type, false, this.invoice_is_pax)
281
+ this.$refs.eticketbill.openETicket(this.selecteds.length === 0 ? this.row.id : this.selecteds.map(item => item.id), this.row, '物联网结算', this.row.f_paper_type, false, this.invoice_is_pax, 't_web_handplan')
282
282
  },
283
283
  selfSearch (args) {
284
284
  this.selecteds = []