代码更新
This commit is contained in:
@@ -482,13 +482,33 @@ export default {
|
||||
},
|
||||
setPoint() {
|
||||
if (this.form2.point_code === '') {
|
||||
this.crud.notify('请先选择检验站点!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
this.crud.notify('请先选择站点!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
if (this.currentDis.point_code) {
|
||||
this.crud.notify('站点已设置!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
if (this.currentDis.work_status !== '00') {
|
||||
this.crud.notify('任务已生成!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
// 根据此仓位的 ‘相同块、相同排、相同层’ 判断上一个任务是否生成
|
||||
const tab = this.tabledis
|
||||
for (let i = 0; i < tab.length; i++) {
|
||||
debugger
|
||||
const item = tab[i]
|
||||
if (this.currentDis.block_num === item.block_num && this.currentDis.row_num === item.row_num && this.currentDis.layer_num === item.layer_num) {
|
||||
const out_order_seq = parseInt(this.currentDis.out_order_seq) - 1
|
||||
if (parseInt(item.out_order_seq) === out_order_seq) {
|
||||
if (item.work_status === '00') {
|
||||
this.crud.notify('请先生成上一个任务:' + item.struct_code, CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this.currentDis.iostorinvdis_id !== null) {
|
||||
this.currentDis.point_code = this.form2.point_code
|
||||
checkoutbill.setPoint(this.currentDis).then(res => {
|
||||
|
||||
Reference in New Issue
Block a user