料桶称重

This commit is contained in:
2026-02-01 15:09:09 +08:00
parent d02fc3a26c
commit b8edf4b1a0

View File

@@ -47,6 +47,7 @@
<table> <table>
<thead> <thead>
<tr> <tr>
<th>选择</th>
<th>序号</th> <th>序号</th>
<th>桶号</th> <th>桶号</th>
<th>物料编码</th> <th>物料编码</th>
@@ -55,20 +56,22 @@
<th>类别</th> <th>类别</th>
<th>规格</th> <th>规格</th>
<th>型号</th> <th>型号</th>
<th>点位</th> <th>目的点位</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.bucket_code === pkId}" @tap="toCheck(e)"> <!-- <tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.bucket_code === pkId}" @tap="toCheck(e)"> -->
<tr v-for="(e, i) in dataList" :key="i">
<td @tap="toCheck(e)"><uni-icons :type="e.bucket_code === pkId ? 'checkbox' : 'circle'" size="24" color="#4e6ef2"></uni-icons></td>
<td>{{i+1}}</td> <td>{{i+1}}</td>
<td>{{e.bag_code}}</td> <td>{{e.bucket_code}}</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>{{e.class_name}}</td> <td>{{e.class_name}}</td>
<td>{{e.material_spec}}</td> <td>{{e.material_spec}}</td>
<td>{{e.material_model}}</td> <td>{{e.material_model}}</td>
<td>{{e.struct_code}}</td> <td><input type="text" class="sin_input" v-model="e.station"></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@@ -130,7 +133,8 @@
let res = await getTaskBucketGroupInfo(this.val1) let res = await getTaskBucketGroupInfo(this.val1)
if (res) { if (res) {
this.dataList = [...res.data.row] this.dataList = [...res.data.row]
console.log(this.dataList, 'dataList') this.pkId = this.dataList[0].bucket_code
this.pkObj = this.dataList[0]
this.num = this.dataList.reduce((sum, item) => sum + Number(item.qty), 0) this.num = this.dataList.reduce((sum, item) => sum + Number(item.qty), 0)
} else { } else {
this.dataList = [] this.dataList = []