This commit is contained in:
2022-12-27 14:06:26 +08:00
parent d8cfc3e422
commit 59ac0a0e41

View File

@@ -8,7 +8,7 @@
<tr>
<th>发货日期</th>
</tr>
<tr v-for="e in dataList" :key="e.material_code" @click="toCheck(e)" :class="{'checked': e.material_code === pkId}">
<tr v-for="e in dataList" :key="e.workorder_code" @click="toCheck(e)" :class="{'checked': e.workorder_code === pkId}">
<td>{{e.send_date}}</td>
</tr>
</table>
@@ -23,7 +23,7 @@
<th>所属组织</th>
<th>工令号</th>
</tr>
<tr v-for="e in dataList" :key="e.material_code" @click="toCheck(e)" :class="{'checked': e.material_code === pkId}">
<tr v-for="e in dataList" :key="e.workorder_code" @click="toCheck(e)" :class="{'checked': e.workorder_code === pkId}">
<td>{{e.material_code}}</td>
<td>{{e.material_name}}</td>
<td>{{e.pcsn}}</td>
@@ -67,8 +67,8 @@ export default {
},
methods: {
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.workorder_code ? '' : e.workorder_code
this.pkObj = this.pkId === e.workorder_code ? e : {}
},
toSure () {
if (this.pkId !== '') {