sale-client 3.6.107 → 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.
package/package.json
CHANGED
|
@@ -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">*单 价</label>
|
|
50
|
-
<input class="input_search" style="width:60%" type="number" min="1" @
|
|
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">*数 量</label>
|
|
59
|
-
<input class="input_search" style="width:60%" type="number" min='1' @
|
|
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,9 +538,11 @@ 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
|
|
543
544
|
} else {
|
|
545
|
+
flag = false
|
|
544
546
|
this.model.f_collection = 0
|
|
545
547
|
}
|
|
546
548
|
})
|
|
@@ -555,8 +557,8 @@ export default {
|
|
|
555
557
|
},
|
|
556
558
|
delthisdetail (index) {
|
|
557
559
|
if (this.model.otherdetail.length > 1) {
|
|
558
|
-
this.getcollection()
|
|
559
560
|
this.model.otherdetail.splice(index, 1)
|
|
561
|
+
this.getcollection()
|
|
560
562
|
}
|
|
561
563
|
},
|
|
562
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">*单 价</label>
|
|
50
|
-
<input class="input_search" style="width:60%" type="number" min="1" @
|
|
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">*数 量</label>
|
|
59
|
-
<input class="input_search" style="width:60%" type="number" min='1' @
|
|
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,9 +492,11 @@ 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
|
|
497
498
|
} else {
|
|
499
|
+
flag = false
|
|
498
500
|
this.model.f_collection = 0
|
|
499
501
|
}
|
|
500
502
|
})
|
|
@@ -509,8 +511,8 @@ export default {
|
|
|
509
511
|
},
|
|
510
512
|
delthisdetail (index) {
|
|
511
513
|
if (this.model.otherdetail.length > 1) {
|
|
512
|
-
this.getcollection()
|
|
513
514
|
this.model.otherdetail.splice(index, 1)
|
|
515
|
+
this.getcollection()
|
|
514
516
|
}
|
|
515
517
|
},
|
|
516
518
|
async userfees (userinfoid, feetype) {
|