半成品盘点

This commit is contained in:
2023-07-04 14:55:11 +08:00
parent a2f373193e
commit fd5a02c087
3 changed files with 16 additions and 13 deletions

View File

@@ -92,7 +92,7 @@
</tr>
</thead>
<tbody>
<tr v-for="(e, i) in dataList" :key="i" :class="{'selected_icon': pkId === e.bill_code}" @click="toRadio(e)">
<tr v-for="(e, i) in dataList" :key="i" :class="{'selected_icon': pkId === e.checkdtl_id}" @click="toRadio(e)">
<td>{{ i + 1 }}</td>
<td>{{e.struct_name}}</td>
<td>{{e.storagevehicle_code}}</td>
@@ -175,9 +175,6 @@ export default {
async _checkGetDtlAll () {
let res = await checkGetDtlAll(this.value1, this.date !== null ? dateTimeFtt(this.date[0]) : '', this.date !== null ? dateTimeFtt(this.date[1]) : '', this.material_code, this.storagevehicle_code, this.struct_code)
this.dataList = [...res.data]
this.dataList.map(el => {
this.$set(el, 'fac_qty', '')
})
},
// 盘点位下拉框
async _checkGetPoint () {
@@ -185,8 +182,8 @@ export default {
this.options2 = [...res.data]
},
toRadio (e) {
this.pkId = this.pkId === e.struct_name ? '' : e.struct_name
this.pkObj = this.pkId === e.struct_name ? e : {}
this.pkId = this.pkId === e.checkdtl_id ? '' : e.checkdtl_id
this.pkObj = this.pkId === e.checkdtl_id ? e : {}
},
// 下发(按钮)
async _checkSendTask () {