|
|
@@ -668,24 +668,26 @@ export default {
|
|
|
},
|
|
|
chooseTime(current, timeList) {
|
|
|
|
|
|
+
|
|
|
let tableList = []
|
|
|
tableList = this.$refs.table.getData()
|
|
|
|
|
|
tableList.forEach(e => {
|
|
|
if (e.id == current.detailId) {
|
|
|
-
|
|
|
e.materialList.forEach(m => {
|
|
|
- if (m.id == current.id) {
|
|
|
- m.timeList = timeList || null
|
|
|
+ if (m.categoryId == current.categoryId) {
|
|
|
+ m.timeList = timeList || []
|
|
|
}
|
|
|
})
|
|
|
|
|
|
|
|
|
-
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+
|
|
|
+
|
|
|
this.$refs.table.setData([...tableList]);
|
|
|
+ this.$forceUpdate()
|
|
|
}
|
|
|
}
|
|
|
};
|