|
|
@@ -57,7 +57,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col :span="8" style="margin-bottom: 22px">
|
|
|
+ <!-- <el-col :span="8" style="margin-bottom: 22px">
|
|
|
<el-form-item label="所属厂房:" prop="workshopPlanId">
|
|
|
<el-select
|
|
|
v-model="form.workshopPlanId"
|
|
|
@@ -97,7 +97,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
<el-col :span="8" style="margin-bottom: 22px">
|
|
|
<el-form-item label="产线:" prop="productionLineId">
|
|
|
<el-select
|
|
|
@@ -194,7 +194,8 @@
|
|
|
listWorkshopByParentId,
|
|
|
listFactoryLine,
|
|
|
saveteam,
|
|
|
- updateteam
|
|
|
+ updateteam,
|
|
|
+ listFactoryLineByFactoryId
|
|
|
} from '@/api/workforceManagement/team';
|
|
|
import { pageList } from '@/api/technology/version/version.js';
|
|
|
import work from '@/api/technology/work';
|
|
|
@@ -214,10 +215,10 @@
|
|
|
productionLineId: [],
|
|
|
userIds: '',
|
|
|
userNumber: '',
|
|
|
- workshopPlanId: null,
|
|
|
+ // workshopPlanId: null,
|
|
|
workCenterId: null,
|
|
|
workCenterIds: [],
|
|
|
- workshopId: [],
|
|
|
+ // workshopId: [],
|
|
|
factoryId: '',
|
|
|
produceVersionId: '',
|
|
|
status: 1
|
|
|
@@ -243,12 +244,12 @@
|
|
|
factoryId: [
|
|
|
{ required: true, message: '请选择所属工厂', trigger: 'change' }
|
|
|
],
|
|
|
- workshopPlanId: [
|
|
|
- { required: true, message: '请选择', trigger: 'change' }
|
|
|
- ],
|
|
|
- workshopId: [
|
|
|
- { required: true, message: '请输入', trigger: 'change' }
|
|
|
- ],
|
|
|
+ // workshopPlanId: [
|
|
|
+ // { required: true, message: '请选择', trigger: 'change' }
|
|
|
+ // ],
|
|
|
+ // workshopId: [
|
|
|
+ // { required: true, message: '请输入', trigger: 'change' }
|
|
|
+ // ],
|
|
|
productionLineId: [
|
|
|
{ required: true, message: '请输入', trigger: 'change' }
|
|
|
],
|
|
|
@@ -316,8 +317,8 @@
|
|
|
});
|
|
|
|
|
|
// 获取下拉列表
|
|
|
- await this.getlistWorkshopByParentId();
|
|
|
- await this.getlistCf();
|
|
|
+ // await this.getlistWorkshopByParentId();
|
|
|
+ // await this.getlistCf();
|
|
|
await this.getlistFactoryLineByParentId();
|
|
|
await this.getlistByProductionLineId();
|
|
|
}
|
|
|
@@ -391,14 +392,15 @@
|
|
|
|
|
|
// 获取厂房
|
|
|
change_factoryId() {
|
|
|
- this.form.workshopPlanId = '';
|
|
|
+ // this.form.workshopPlanId = '';
|
|
|
this.workshopPlanList = [];
|
|
|
- this.form.workshopId = '';
|
|
|
+ // this.form.workshopId = '';
|
|
|
this.options.workshopId = [];
|
|
|
this.form.productionLineId = '';
|
|
|
this.options.productionLineId = [];
|
|
|
|
|
|
- this.getlistCf();
|
|
|
+ // this.getlistCf();
|
|
|
+ this.getlistFactoryLineByParentId();
|
|
|
this.form.workCenterId = null
|
|
|
this.form.workCenterIds = [];
|
|
|
this.options.workCenterList = [];
|
|
|
@@ -429,12 +431,23 @@
|
|
|
});
|
|
|
},
|
|
|
// 获取产线
|
|
|
+ // getlistFactoryLineByParentId() {
|
|
|
+ // return listFactoryLine(this.form.workshopId).then((res) => {
|
|
|
+ // this.options.productionLineId = res.map((n) => {
|
|
|
+ // return {
|
|
|
+ // value: n.id,
|
|
|
+ // label: n.name
|
|
|
+ // };
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // 获取产线
|
|
|
getlistFactoryLineByParentId() {
|
|
|
- return listFactoryLine(this.form.workshopId).then((res) => {
|
|
|
+ return listFactoryLineByFactoryId([this.form.factoryId]).then((res) => {
|
|
|
this.options.productionLineId = res.map((n) => {
|
|
|
return {
|
|
|
value: n.id,
|
|
|
- label: n.name
|
|
|
+ label: n.pathName
|
|
|
};
|
|
|
});
|
|
|
});
|