点位取货
This commit is contained in:
@@ -44,10 +44,10 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>序号</th>
|
<th>序号</th>
|
||||||
<th>袋号</th>
|
<th>袋号</th>
|
||||||
|
<th>出库数量</th>
|
||||||
<th>物料编码</th>
|
<th>物料编码</th>
|
||||||
<th>物料名称</th>
|
<th>物料名称</th>
|
||||||
<th>批号</th>
|
<th>批号</th>
|
||||||
<th>出库数量</th>
|
|
||||||
<th>单位</th>
|
<th>单位</th>
|
||||||
<th>供应商</th>
|
<th>供应商</th>
|
||||||
<th>类别</th>
|
<th>类别</th>
|
||||||
@@ -61,10 +61,10 @@
|
|||||||
<tr v-for="(e, i) in dataList" :key="i">
|
<tr v-for="(e, i) in dataList" :key="i">
|
||||||
<td>{{i+1}}</td>
|
<td>{{i+1}}</td>
|
||||||
<td>{{e.bag_code}}</td>
|
<td>{{e.bag_code}}</td>
|
||||||
|
<td><input type="number" class="sin_input" v-model="e.qty" @blur="handleBlur(e)"></td>
|
||||||
<td>{{e.material_code}}</td>
|
<td>{{e.material_code}}</td>
|
||||||
<td>{{e.material_name}}</td>
|
<td>{{e.material_name}}</td>
|
||||||
<td>{{e.pcsn}}</td>
|
<td>{{e.pcsn}}</td>
|
||||||
<td><input type="number" class="sin_input" v-model="e.qty" @blur="handleBlur(e)"></td>
|
|
||||||
<td>{{e.qty_unit_name}}</td>
|
<td>{{e.qty_unit_name}}</td>
|
||||||
<td>{{e.supp_name}}</td>
|
<td>{{e.supp_name}}</td>
|
||||||
<td>{{e.class_name}}</td>
|
<td>{{e.class_name}}</td>
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
<td>{{e.material_code}}</td>
|
<td>{{e.material_code}}</td>
|
||||||
<td>{{e.material_name}}</td>
|
<td>{{e.material_name}}</td>
|
||||||
<td>{{e.pcsn}}</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.qty_unit_name}}</td>
|
||||||
<td>{{e.supp_name}}</td>
|
<td>{{e.supp_name}}</td>
|
||||||
<td>{{e.class_name}}</td>
|
<td>{{e.class_name}}</td>
|
||||||
@@ -103,25 +103,6 @@
|
|||||||
this.dataList = []
|
this.dataList = []
|
||||||
this.disabled = false
|
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) {
|
handleChange (e) {
|
||||||
if (e) {
|
if (e) {
|
||||||
this._getGroupInfo()
|
this._getGroupInfo()
|
||||||
|
|||||||
Reference in New Issue
Block a user