工令
This commit is contained in:
@@ -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 !== '') {
|
||||
|
||||
Reference in New Issue
Block a user