|
|
@@ -156,16 +156,19 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
-
|
|
|
<el-col :span="8" style="margin-bottom: 22px">
|
|
|
<el-form-item label="状态:" prop="">
|
|
|
<el-select v-model="form.status" placeholder="" filterable>
|
|
|
- <el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+ <el-option
|
|
|
+ v-for="item in statusList"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
</el-row>
|
|
|
</el-card>
|
|
|
<el-card
|
|
|
@@ -224,12 +227,10 @@
|
|
|
|
|
|
deleteUserIds: [],
|
|
|
|
|
|
-
|
|
|
statusList: [
|
|
|
-
|
|
|
- { label: '失效', value: 0 },
|
|
|
- { label: '生效', value: 1 }
|
|
|
- ],
|
|
|
+ { label: '失效', value: 0 },
|
|
|
+ { label: '生效', value: 1 }
|
|
|
+ ],
|
|
|
|
|
|
// 表单数据
|
|
|
form: { ...defaultForm() },
|
|
|
@@ -288,7 +289,7 @@
|
|
|
async open(type, row) {
|
|
|
this.type = type;
|
|
|
this.visible = true;
|
|
|
- this.deleteUserIds = []
|
|
|
+ this.deleteUserIds = [];
|
|
|
|
|
|
if (type == 'edit') {
|
|
|
for (const key of Object.keys(this.form)) {
|
|
|
@@ -310,12 +311,11 @@
|
|
|
|
|
|
// 获取下拉列表
|
|
|
await this.getlistWorkshopByParentId();
|
|
|
- await this.getlistCf()
|
|
|
+ await this.getlistCf();
|
|
|
await this.getlistFactoryLineByParentId();
|
|
|
- await this.getlistByProductionLineId();
|
|
|
+ await this.getlistByProductionLineId();
|
|
|
}
|
|
|
this.getVersionList();
|
|
|
-
|
|
|
},
|
|
|
deleteIds(ids) {
|
|
|
this.deleteUserIds = ids || [];
|
|
|
@@ -328,7 +328,7 @@
|
|
|
}
|
|
|
this.loading = true;
|
|
|
let userIds = this.$refs.userTable.datasource.map((n) => n.id);
|
|
|
-
|
|
|
+
|
|
|
if (userIds.length <= 0) {
|
|
|
this.$message.error('请选择员工');
|
|
|
this.loading = false;
|
|
|
@@ -383,16 +383,15 @@
|
|
|
|
|
|
// 获取厂房
|
|
|
change_factoryId() {
|
|
|
-
|
|
|
- this.form.workshopPlanId = ''
|
|
|
+ this.form.workshopPlanId = '';
|
|
|
this.workshopPlanList = [];
|
|
|
this.form.workshopId = '';
|
|
|
this.options.workshopId = [];
|
|
|
this.form.productionLineId = '';
|
|
|
this.options.productionLineId = [];
|
|
|
|
|
|
- this.getlistCf()
|
|
|
- this.form.workCenterIds = ''
|
|
|
+ this.getlistCf();
|
|
|
+ this.form.workCenterIds = '';
|
|
|
this.options.workCenterIds = [];
|
|
|
|
|
|
this.getlistWorkshopPlanId();
|
|
|
@@ -407,7 +406,6 @@
|
|
|
getFactoryarea(par).then((res) => {
|
|
|
this.workshopPlanList = res.list;
|
|
|
});
|
|
|
-
|
|
|
},
|
|
|
|
|
|
// 获取车间
|
|
|
@@ -434,14 +432,16 @@
|
|
|
},
|
|
|
// 获取工位
|
|
|
getlistByProductionLineId() {
|
|
|
- return work.list({ pageNum: 1, size: -1, factoryId: this.form.factoryId }).then((res) => {
|
|
|
- this.options.workCenterIds = res.list.map((n) => {
|
|
|
- return {
|
|
|
- value: n.id,
|
|
|
- label: n.name
|
|
|
- };
|
|
|
+ return work
|
|
|
+ .list({ pageNum: 1, size: -1, factoryId: this.form.factoryId })
|
|
|
+ .then((res) => {
|
|
|
+ this.options.workCenterIds = res.list.map((n) => {
|
|
|
+ return {
|
|
|
+ value: n.id,
|
|
|
+ label: n.name
|
|
|
+ };
|
|
|
+ });
|
|
|
});
|
|
|
- });
|
|
|
},
|
|
|
|
|
|
change_workshopPlanId() {
|