Commit 4b401567 authored by 张伯涛's avatar 张伯涛

包装和包装测试翻页不能影响勾选的物料

parent 4f672d73
......@@ -1046,6 +1046,16 @@ export default {
handleSelectionChangeMaterial(data) {
if (this.type === '2' && (this.form.modelType === '2' || this.form.modelType === '3')) {
this.addMaterialList = data
data.forEach(item => {
this.addMaterialMap[item.businessId] = item
})
// 获取所有分页勾选的数据
this.addMaterialList = []
for (const key in this.addMaterialMap) {
this.addMaterialList.push(this.addMaterialMap[key])
}
// 勾选改变后最终的list也变
this.endMaterialList = this.addMaterialList
} else {
if (data.length === 0) {
this.selectPartNum.forEach(item => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment