sale-client 4.2.57 → 4.2.59

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": "4.2.57",
3
+ "version": "4.2.59",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -124,7 +124,11 @@
124
124
  </div>
125
125
  <div class="row" v-if="data.f_meter_type.includes('卡表')">
126
126
  <label class = "col-sm-5 " style="color: brown">累购写卡金额</label>
127
- <span class = "col-sm-7" style="color: brown">{{data?data.f_write_totalfee:dafault.f_total_fee}}</span>
127
+ <span class = "col-sm-7" style="color: brown">{{data?data.f_write_totalfee:dafault.f_total_fee}}
128
+ <span v-if="data && this.$login.r.includes('收费页面修改累购')" @click.stop="changeMeterWriteFee"
129
+ class="glyphicon glyphicon-pencil click-change" title="修改累购写卡金额">
130
+ </span>
131
+ </span>
128
132
  </div>
129
133
  <div class="row">
130
134
  <label class = "col-sm-5 " >表封号</label>
@@ -225,16 +229,16 @@
225
229
  <div class="form-horizontal">
226
230
  <div class="row">
227
231
  <div class="col-sm-12 form-group">
228
- <label class="font_normal_body">旧表累购金额</label>
232
+ <label class="font_normal_body">原累购金额</label>
229
233
  <input readonly type="text" style="width:80%" class="input_search"
230
- v-model="data.f_total_fee" placeholder='旧表累购金额'>
234
+ v-model="data.f_total_fee" placeholder='原累购金额' disabled>
231
235
  </div>
232
236
  </div>
233
237
  <div class="row">
234
238
  <div class="col-sm-12 form-group">
235
- <label class="font_normal_body">旧表累购金额</label>
239
+ <label class="font_normal_body">修改后累购金额</label>
236
240
  <input type="text" style="width:80%" class="input_search" v-model="newMeterFee"
237
- placeholder='旧表累购金额'>
241
+ placeholder='修改后累购金额'>
238
242
  </div>
239
243
  </div>
240
244
  </div>
@@ -244,20 +248,45 @@
244
248
  <button type="button" class="button_clear" @click='close'>取消</button>
245
249
  </footer>
246
250
  </modal>
251
+ <modal v-if="showSelectUserWriteFee" :show.sync="showSelectUserWriteFee" width="40%" title="修正表累购写卡金额"
252
+ v-ref:modal large backdrop="false">
253
+ <article slot="modal-body" class="modal-body">
254
+ <div class="form-horizontal">
255
+ <div class="row">
256
+ <div class="col-sm-12 form-group">
257
+ <label class="font_normal_body">原表累购写卡金额</label>
258
+ <input readonly type="text" style="width:80%" class="input_search"
259
+ v-model="data.f_write_totalfee" placeholder='原表累购写卡金额' disabled>
260
+ </div>
261
+ </div>
262
+ <div class="row">
263
+ <div class="col-sm-12 form-group">
264
+ <label class="font_normal_body">修改后累购写卡金额</label>
265
+ <input type="text" style="width:80%" class="input_search" v-model="newMeterWriteFee"
266
+ placeholder='修改后累购写卡金额'>
267
+ </div>
268
+ </div>
269
+ </div>
270
+ </article>
271
+ <footer slot="modal-footer" class="modal-footer">
272
+ <button class="button_search" :disabled='!$m.valid ' @click="modifyUserFile('累购写卡金额')">确定</button>
273
+ <button type="button" class="button_clear" @click='close'>取消</button>
274
+ </footer>
275
+ </modal>
247
276
  <modal v-if="showSelectUserGas" :show.sync="showSelectUserGas" width="40%" title="修正表累购气量"
248
277
  v-ref:modal large backdrop="false">
249
278
  <article slot="modal-body" class="modal-body">
250
279
  <div class="form-horizontal">
251
280
  <div class="row">
252
281
  <div class="col-sm-12 form-group">
253
- <label class="font_normal_body">旧表累购气量</label>
282
+ <label class="font_normal_body">原表累购气量</label>
254
283
  <input readonly type="text" style="width:80%" class="input_search"
255
- v-model="data.f_total_gas" placeholder='旧表累购气量'>
284
+ v-model="data.f_total_gas" placeholder='原表累购气量' disabled>
256
285
  </div>
257
286
  </div>
258
287
  <div class="row">
259
288
  <div class="col-sm-12 form-group">
260
- <label class="font_normal_body">新表累购气量</label>
289
+ <label class="font_normal_body">修改后累购气量</label>
261
290
  <input type="text" style="width:80%" class="input_search" v-model="newMeterGas"
262
291
  placeholder='新表累购气量'>
263
292
  </div>
@@ -315,13 +344,14 @@ export default {
315
344
  },
316
345
  f_arrears_fee: 0,
317
346
  model: null,
318
- f_arrears_fee: 0,
319
347
  showselectncuserfile: false,
320
348
  showSelectUserFee: false,
349
+ showSelectUserWriteFee: false,
321
350
  showSelectUserGas: false,
322
351
  newmetertitles: '',
323
352
  newMeterGas: 0,
324
- newMeterFee: 0
353
+ newMeterFee: 0,
354
+ newMeterWriteFee: 0
325
355
  }
326
356
  },
327
357
  props: ['data'],
@@ -341,9 +371,9 @@ export default {
341
371
  }
342
372
  }
343
373
  this.list = res.data
344
- if (this.data.f_meter_type == '物联网表') {
374
+ if (this.data.f_meter_type === '物联网表') {
345
375
  this.f_arrears_fee = (this.data.f_balance_amount - arrearsFee) > 0 ? 0 : 0 - (this.data.f_balance_amount - arrearsFee)
346
- } else if (this.data.f_meter_type == '机表') {
376
+ } else if (this.data.f_meter_type === '机表') {
347
377
  this.f_arrears_fee = (this.data.f_balance - arrearsFee) > 0 ? 0 : 0 - (this.data.f_balance - arrearsFee)
348
378
  } else {
349
379
  this.f_arrears_fee = (this.data.f_balance - arrearsFee) > 0 ? 0 : 0 - (this.data.f_balance - arrearsFee)
@@ -366,6 +396,10 @@ export default {
366
396
  // 修改累购金额
367
397
  this.showSelectUserFee = true
368
398
  },
399
+ changeMeterWriteFee () {
400
+ // 修改累购写卡金额
401
+ this.showSelectUserWriteFee = true
402
+ },
369
403
  async modifyUserFile (type) {
370
404
  let param = {
371
405
  f_userinfo_id: this.data.f_userinfo_id,
@@ -378,21 +412,25 @@ export default {
378
412
  f_depid: this.$login.f.depids,
379
413
  f_depname: this.$login.f.deps
380
414
  }
381
- if (type == '表封号') {
415
+ if (type === '表封号') {
382
416
  param.new_metertitles = this.newmetertitles
383
- } else if (type == '累购气量') {
417
+ } else if (type === '累购气量') {
384
418
  param.new_metergas = this.newMeterGas
385
- } else if (type == '累购金额') {
419
+ } else if (type === '累购金额') {
386
420
  param.new_meterfee = this.newMeterFee
421
+ } else if (type === '累购写卡金额') {
422
+ param.new_meterwritefee = this.newMeterWriteFee
387
423
  }
388
424
  await this.$resetpost('/api/af-revenue/logic/changeuserfilesmetertitles', {data: param}, {resolveMsg: '修正成功', rejectMsg: null})
389
425
  this.data.f_metertitles = this.newmetertitles
390
- if (type == '表封号') {
426
+ if (type === '表封号') {
391
427
  this.data.f_metertitles = this.newmetertitles
392
- } else if (type == '累购气量') {
428
+ } else if (type === '累购气量') {
393
429
  this.data.f_total_gas = this.newMeterGas
394
- } else if (type == '累购金额') {
430
+ } else if (type === '累购金额') {
395
431
  this.data.f_total_fee = this.newMeterFee
432
+ } else if (type === '累购写卡金额') {
433
+ this.data.f_write_totalfee = this.newMeterWriteFee
396
434
  }
397
435
  this.$parent.$parent.close()
398
436
  this.$parent.$parent.clean()
@@ -406,6 +444,7 @@ export default {
406
444
  this.newmetertitles = 0
407
445
  this.newMeterGas = 0
408
446
  this.newMeterFee = 0
447
+ this.newMeterWriteFee = 0
409
448
  }
410
449
  },
411
450
  watch: {
@@ -73,13 +73,13 @@
73
73
  <div class="col-sm-3 form-group" v-if="config.hasfindaReail" :class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error select-error' : '']">
74
74
  <label for="f_collection" class="font_normal_body">燃气收款</label>
75
75
  <input id="f_collection" class="input_search" style="width:60%" type="number" v-model="data.f_collection"
76
- v-validate:f_collection='{required: true, dctest: [0, ">=" ]}' v-scale = "[data.f_collection, 2]"
76
+ v-validate:f_collection='{required: true, dctest: [data.f_totalcost, ">=" ]}' v-scale = "[data.f_collection, 2]"
77
77
  @mousewheel.native.prevent @keyup.enter="confirm()" :disabled="$refs.givechange.promptText != ''">
78
78
  </div>
79
79
  <div class="col-sm-4 form-group" v-if="!config.hasfindaReail" :class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error select-error' : '']">
80
80
  <label for="f_collection" class="font_normal_body">燃气收款</label>
81
81
  <input id="f_collection" class="input_search" style="width:60%" type="number" v-model="data.f_collection"
82
- v-validate:f_collection='{required: true, dctest: [0, ">=" ]}' v-scale = "[data.f_collection, 2]"
82
+ v-validate:f_collection='{required: true, dctest: [data.f_totalcost, ">=" ]}' v-scale = "[data.f_collection, 2]"
83
83
  @mousewheel.native.prevent @keyup.enter="confirm()" :disabled="$refs.givechange.promptText != ''">
84
84
  </div>
85
85
  <div class="col-sm-1 form-group" v-if="config.hasfindaReail">
@@ -151,36 +151,6 @@
151
151
  <button class="button_clear btn-gn" @click="clean()">取消</button>
152
152
  </div>
153
153
  </validator>
154
- <!--<modal :show.sync="showOverdueModal" v-ref:modal backdrop="false">-->
155
- <!--<header slot="modal-header" class="modal-header">-->
156
- <!--<button type="button" class="close" @click="closeOverdue"><span>&times;</span></button>-->
157
- <!--<h4 class="modal-title">修改违约金</h4>-->
158
- <!--</header>-->
159
- <!--<article slot="modal-body" class="modal-body">-->
160
- <!--<validator name='m'>-->
161
- <!--<form class="form-horizontal">-->
162
- <!--<div class="row">-->
163
- <!--<div class="col-sm-6">-->
164
- <!--<label for="oldOverdue" class="font_normal_body">原违约金</label>-->
165
- <!--<input type="text" class="input_search" style="width:60%" v-once v-model="overdueModal.f_old_overdue" disabled>-->
166
- <!--</div>-->
167
- <!--</div>-->
168
- <!--<div class="row">-->
169
- <!--<div class="col-sm-6" :class="[$m.f_new_overdue.required ? 'has-error select-error' : '']">-->
170
- <!--<label for="newOverdue" class="font_normal_body">新违约金</label>-->
171
- <!--<input type="text" class="input_search" style="width:60%" v-model="overdueModal.f_new_overdue"-->
172
- <!--v-validate:f_new_overdue='{required: true}'>-->
173
- <!--</div>-->
174
- <!--</div>-->
175
- <!--</form>-->
176
- <!--</validator>-->
177
- <!--</article>-->
178
-
179
- <!--<footer slot="modal-footer" class="modal-footer">-->
180
- <!--<button type="button" class="button_search" :disabled='!$m.valid' @click='confirmOverdue()'>确认</button>-->
181
- <!--<button type="button" class="button_clear" @click='closeOverdue'>取消</button>-->
182
- <!--</footer>-->
183
- <!--</modal>-->
184
154
  <payment-code v-ref:paymentcode :payment="data.f_payment" :row="row" :money="data.f_after_discount"></payment-code>
185
155
  </div>
186
156
  <upload :blodid="row.f_userinfo_id" v-if="config.showupload" :businessid="randomBusinessId" isremark="true" fusetype="机表收费"></upload>