This commit is contained in:
2025-10-10 15:47:45 +08:00
parent fc9b4933a1
commit 7f28dabc1d
5 changed files with 20 additions and 9 deletions

View File

@@ -28,7 +28,7 @@
</tr>
</thead>
<tbody>
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.material_code === pkId}" @tap="toCheck(e)">
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.struct_code === pkId}" @tap="toCheck(e)">
<td>{{e.material_code}}</td>
<td>{{e.material_name}}</td>
<td>{{e.struct_code}}</td>
@@ -124,8 +124,8 @@
}
},
toCheck (e) {
this.pkId = this.pkId === e.material_code ? '' : e.material_code
this.pkObj = this.pkId === e.material_code ? e : {}
this.pkId = this.pkId === e.struct_code ? '' : e.struct_code
this.pkObj = this.pkId === e.struct_code ? e : {}
},
toEmpty () {
this.val1 = ''