|
|
@@ -1551,17 +1551,18 @@
|
|
|
this.addForm.productLineId = '';
|
|
|
}
|
|
|
this.productLineList = [];
|
|
|
- currentTeam.factoryWorkstationVOList.forEach((item) => {
|
|
|
- if (
|
|
|
- !this.productLineList.find((p) => p.id === item.productionLineId)
|
|
|
- ) {
|
|
|
- this.productLineList.push({
|
|
|
- name: item.productionLineName,
|
|
|
- id: item.productionLineId
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+
|
|
|
if (currentTeam) {
|
|
|
+ currentTeam.factoryWorkstationVOList.forEach((item) => {
|
|
|
+ if (
|
|
|
+ !this.productLineList.find((p) => p.id === item.productionLineId)
|
|
|
+ ) {
|
|
|
+ this.productLineList.push({
|
|
|
+ name: item.productionLineName,
|
|
|
+ id: item.productionLineId
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
// 同步执行人
|
|
|
this.addForm.executeUsers = [
|
|
|
{
|