sale-client 3.6.106 → 3.6.108

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.
@@ -1,5 +1,5 @@
1
1
  var path = require('path')
2
- const [serverRul, localUrl ] = ['http://192.168.50.4:8400/', 'http://127.0.0.1:8080/']
2
+ const [serverRul, localUrl ] = ['http://121.36.106.17:8400/', 'http://121.36.106.17:8400/']
3
3
  var merge = require('webpack-merge')
4
4
  var baseConfig = require('./webpack.dev.conf')
5
5
  var devConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.106",
3
+ "version": "3.6.108",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -47,7 +47,7 @@
47
47
  <div class="row">
48
48
  <div class="col-sm-4" :class="{'has-success':row.f_unitprice,'has-error':!row.f_unitprice}">
49
49
  <label style="" for="f_unitprice" class=" font_normal_body">*单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;价</label>
50
- <input class="input_search" style="width:60%" type="number" min="1" @blur.prevent="getcollection()"
50
+ <input class="input_search" style="width:60%" type="number" min="1" @input.prevent="getcollection()"
51
51
  v-model="row.f_unitprice"
52
52
  :value.sync="row.f_unitprice"
53
53
  v-validate:f_unitprice='{required: true}'
@@ -56,7 +56,7 @@
56
56
  </div>
57
57
  <div class="col-sm-4" :class="{'has-success':row.f_number,'has-error':!row.f_number}">
58
58
  <label style="" for="f_number" class="font_normal_body">*数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;量</label>
59
- <input class="input_search" style="width:60%" type="number" min='1' @blur.prevent="getcollection()"
59
+ <input class="input_search" style="width:60%" type="number" min='1' @input.prevent="getcollection()"
60
60
  v-validate:f_number='{required: true, dctest: [0, ">" ] }'
61
61
  v-model="row.f_number"
62
62
  :value.sync="row.f_number"
@@ -538,8 +538,12 @@ export default {
538
538
  let flag = true
539
539
  this.model.otherdetail.forEach((item) => {
540
540
  if (!item.f_number || item.f_number == '0') flag = false
541
+ if (!item.f_unitprice || item.f_unitprice == '0') flag = false
541
542
  if (item.f_unitprice && item.f_number) {
542
543
  money += ((item.f_unitprice - 0) * (item.f_number - 0)) - 0
544
+ } else {
545
+ flag = false
546
+ this.model.f_collection = 0
543
547
  }
544
548
  })
545
549
  if (money != 0) {
@@ -553,8 +557,8 @@ export default {
553
557
  },
554
558
  delthisdetail (index) {
555
559
  if (this.model.otherdetail.length > 1) {
556
- this.getcollection()
557
560
  this.model.otherdetail.splice(index, 1)
561
+ this.getcollection()
558
562
  }
559
563
  },
560
564
  async userfees (userinfoid, feetype) {
@@ -47,7 +47,7 @@
47
47
  <div class="row">
48
48
  <div class="col-sm-4" :class="{'has-success':row.f_unitprice,'has-error':!row.f_unitprice}">
49
49
  <label style="" for="f_unitprice" class=" font_normal_body">*单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;价</label>
50
- <input class="input_search" style="width:60%" type="number" min="1" @blur.prevent="getcollection()"
50
+ <input class="input_search" style="width:60%" type="number" min="1" @input.prevent="getcollection()"
51
51
  v-model="row.f_unitprice"
52
52
  v-validate:f_unitprice='{required: true}'
53
53
  :value.sync="row.f_unitprice"
@@ -56,7 +56,7 @@
56
56
  </div>
57
57
  <div class="col-sm-4" :class="{'has-success':row.f_number,'has-error':!row.f_number}">
58
58
  <label style="" for="f_number" class="font_normal_body">*数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;量</label>
59
- <input class="input_search" style="width:60%" type="number" min='1' @blur.prevent="getcollection()"
59
+ <input class="input_search" style="width:60%" type="number" min='1' @input.prevent="getcollection()"
60
60
  v-validate:f_number='{required: true, dctest: [0, ">" ] }'
61
61
  v-model="row.f_number"
62
62
  :value.sync="row.f_number"
@@ -492,8 +492,12 @@ export default {
492
492
  let flag = true
493
493
  this.model.otherdetail.forEach((item) => {
494
494
  if (!item.f_number || item.f_number == '0') flag = false
495
+ if (!item.f_unitprice || item.f_unitprice == '0') flag = false
495
496
  if (item.f_unitprice && item.f_number) {
496
497
  money += ((item.f_unitprice - 0) * (item.f_number - 0)) - 0
498
+ } else {
499
+ flag = false
500
+ this.model.f_collection = 0
497
501
  }
498
502
  })
499
503
  if (money != 0) {
@@ -507,8 +511,8 @@ export default {
507
511
  },
508
512
  delthisdetail (index) {
509
513
  if (this.model.otherdetail.length > 1) {
510
- this.getcollection()
511
514
  this.model.otherdetail.splice(index, 1)
515
+ this.getcollection()
512
516
  }
513
517
  },
514
518
  async userfees (userinfoid, feetype) {