软废袋重量

This commit is contained in:
2022-07-13 18:27:12 +08:00
parent 2c81f3c6fe
commit 407390a793

View File

@@ -29,7 +29,7 @@
<div class="bottom-filter-tip">
<div class="filter-label txtjustify">重量</div>
<div class="fxcol mgl20">
<input type="text" class="filter-input filter-scan-input" v-model="val4">
<input type="number" class="filter-input filter-scan-input" v-model="val4">
</div>
<div class="mgl20">{{result.qty_unit_name}}</div>
</div>
@@ -96,7 +96,7 @@ export default {
open: false,
val2: '',
val3: '',
val4: '0.000',
val4: '',
val5: this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).nick_name : '',
val6: '1',
result: {},
@@ -215,6 +215,11 @@ export default {
/** 组袋 */
async _groupBag (tt) {
this.disabled1 = true
if (parseFloat(this.val4) <= 0 || isNaN(parseFloat(this.val4))) {
this.toast('重量必须大于0')
this.disabled1 = false
return
}
if (this.val2 === '' || this.val2 === undefined) {
this.toast('粉料编码不能为空')
this.disabled1 = false