子卷出入站

This commit is contained in:
2022-11-09 13:30:32 +08:00
parent 4d19700411
commit ed086b9bd5
13 changed files with 306 additions and 178 deletions

View File

@@ -42,7 +42,7 @@
</tr>
</thead>
<tbody>
<tr v-for="(e, i) in dataList" :key="i" @click="toCheck(e)" :class="{'checked': e.mfg_order_name === pkId}">
<tr v-for="(e, i) in dataList" :key="i" @click="toCheck(e)" :class="{'checked': e.container_name === pkId}">
<td>{{Number(i) + 1}}</td>
<td>{{e.mfg_order_name}}</td>
<td>{{e.container_name}}</td>
@@ -59,7 +59,7 @@
</view>
</view>
<view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="_inConfirm">上空轴</button>
<button class="submit-button" :class="{'btn-disabled': !index1 || !pkId}" :disabled="disabled" @tap="_inConfirm">上空轴</button>
<button class="submit-button" @tap="_queryMaterialInfo">查询</button>
</view>
</view>
@@ -124,6 +124,14 @@
/** 确认 */
async _inConfirm () {
this.disabled = true
if (!this.index1) {
uni.showToast({
title: '点位不能为空',
icon: 'none'
})
this.disabled = false
return
}
if (!this.pkId) {
this.disabled = false
return
@@ -143,8 +151,8 @@
}
},
toCheck (e) {
this.pkId = this.pkId === e.mfg_order_name ? '' : e.mfg_order_name
this.pkObj = this.pkId === e.mfg_order_name ? e : {}
this.pkId = this.pkId === e.container_name ? '' : e.container_name
this.pkObj = this.pkId === e.container_name ? e : {}
}
}
}