change
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
title: '',
|
||||
val1: '',
|
||||
dataList: [],
|
||||
// dataList: [{material_name: 'name1', checked: false, qty:1, pcsn:'p001'},{material_name: 'name2', checked: false},{material_name: 'name3', checked: false}],
|
||||
// dataList: [{material_id: 'n1', material_name: 'name1', checked: false, qty:1, pcsn:'p001'},{material_id: 'n2', material_name: 'name2', qty:2, checked: false},{material_id: 'n3', material_name: 'name3', qty:1, checked: false}],
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
allCheck: false,
|
||||
@@ -92,10 +92,10 @@
|
||||
e.qty = e.qty.replace(/^0+/, '') || '0'
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '数量必填',
|
||||
icon: 'none'
|
||||
})
|
||||
// uni.showToast({
|
||||
// title: '数量必填',
|
||||
// icon: 'none'
|
||||
// })
|
||||
}
|
||||
},
|
||||
searchList () {
|
||||
@@ -154,16 +154,8 @@
|
||||
if (!this.checkedArr.length) {
|
||||
return
|
||||
}
|
||||
const allValid = this.checkedArr.every(item => item.qty !== '');
|
||||
if (allValid) {
|
||||
this.$store.dispatch('setPublicArr', this.checkedArr)
|
||||
uni.navigateBack()
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '数量必填',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
this.$store.dispatch('setPublicArr', this.checkedArr)
|
||||
uni.navigateBack()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user