点位取货

This commit is contained in:
2026-01-26 16:47:07 +08:00
parent 7c4d2c46b8
commit 7b223b5aa8
2 changed files with 3 additions and 22 deletions

View File

@@ -51,7 +51,7 @@
<td>{{e.material_code}}</td>
<td>{{e.material_name}}</td>
<td>{{e.pcsn}}</td>
<td><input type="number" class="sin_input" v-model="e.qty" @blur="handleBlur(e)"></td>
<td>{{e.qty}}</td>
<td>{{e.qty_unit_name}}</td>
<td>{{e.supp_name}}</td>
<td>{{e.class_name}}</td>
@@ -103,25 +103,6 @@
this.dataList = []
this.disabled = false
},
handleBlur (e) {
if (e.qty) {
if (e.qty < 0) {
e.qty = 0
} else {
e.qty = e.qty.replace(/[^0-9]/g, '')
e.qty = e.qty.replace(/^0+/, '') || '0'
if (e.qty > e.initialQty) {
e.qty = e.initialQty
}
this.num = this.dataList.reduce((sum, item) => sum + Number(item.qty), 0)
}
} else {
// uni.showToast({
// title: '数量必填',
// icon: 'none'
// })
}
},
handleChange (e) {
if (e) {
this._getGroupInfo()