|
|
@ -89,6 +89,14 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="工序名称" align="center" prop="processName" :show-overflow-tooltip="true"/>
|
|
|
|
<el-table-column label="工序名称" align="center" prop="processName" :show-overflow-tooltip="true"/>
|
|
|
|
|
|
|
|
<el-table-column label="拆分&合并" align="center" prop="splitMerge">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<dict-tag :options="dict.type.split_merge" :value="scope.row.splitMerge"/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<!--<el-table-column label="拆合值" align="center" prop="splitMergNum" :show-overflow-tooltip="true"/>-->
|
|
|
|
|
|
|
|
<el-table-column label="工作中心" align="center" prop="workCenter" :show-overflow-tooltip="true"/>
|
|
|
|
|
|
|
|
<el-table-column label="工作时长" align="center" prop="workTime" :show-overflow-tooltip="true"/>
|
|
|
|
<el-table-column label="是否启用" align="center" prop="enableFlag">
|
|
|
|
<el-table-column label="是否启用" align="center" prop="enableFlag">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.enableFlag"/>
|
|
|
|
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.enableFlag"/>
|
|
|
@ -159,7 +167,7 @@
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="拆分&合并">
|
|
|
|
<el-form-item label="拆分&合并" prop="splitMerge">
|
|
|
|
<el-select v-model="form.splitMerge" placeholder="请选择">
|
|
|
|
<el-select v-model="form.splitMerge" placeholder="请选择">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="dict in dict.type.split_merge"
|
|
|
|
v-for="dict in dict.type.split_merge"
|
|
|
@ -170,12 +178,12 @@
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
<el-col :span="7">
|
|
|
|
<el-col :span="7">
|
|
|
|
<el-form-item label="工序名称" prop="splitMergeNum">
|
|
|
|
<el-form-item label="拆合值" prop="splitMergeNum">
|
|
|
|
<el-input v-model="form.splitMergeNum" placeholder="请输入拆分&合并数量" />
|
|
|
|
<el-input v-model="form.splitMergeNum" placeholder="请输入拆分&合并数量" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>-->
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label="可多单运行" prop="sync">
|
|
|
|
<el-form-item label="可多单运行" prop="sync">
|
|
|
|
<el-radio-group v-model="form.sync" disabled v-if="optType=='view'">
|
|
|
|
<el-radio-group v-model="form.sync" disabled v-if="optType=='view'">
|
|
|
@ -296,9 +304,6 @@ export default {
|
|
|
|
splitMerge: [
|
|
|
|
splitMerge: [
|
|
|
|
{ required: true, message: "拆分&合并不能为空", trigger: "blur" }
|
|
|
|
{ required: true, message: "拆分&合并不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
],
|
|
|
|
splitMergeNum: [
|
|
|
|
|
|
|
|
{ required: true, message: "拆分&合并数量不能为空", trigger: "blur" }
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
sync: [
|
|
|
|
sync: [
|
|
|
|
{ required: true, message: "可多单运行不能为空", trigger: "blur" }
|
|
|
|
{ required: true, message: "可多单运行不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -337,7 +342,7 @@ export default {
|
|
|
|
createTime: null,
|
|
|
|
createTime: null,
|
|
|
|
updateBy: null,
|
|
|
|
updateBy: null,
|
|
|
|
updateTime: null,
|
|
|
|
updateTime: null,
|
|
|
|
fileList:[]
|
|
|
|
fileList:''
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.autoGenFlag = false;
|
|
|
|
this.autoGenFlag = false;
|
|
|
|
this.resetForm("form");
|
|
|
|
this.resetForm("form");
|
|
|
@ -382,6 +387,16 @@ export default {
|
|
|
|
const processId = row.processId || this.ids
|
|
|
|
const processId = row.processId || this.ids
|
|
|
|
getProcess(processId).then(response => {
|
|
|
|
getProcess(processId).then(response => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
|
|
|
|
if(response.data.files != null){
|
|
|
|
|
|
|
|
var newFiles = [];
|
|
|
|
|
|
|
|
response.data.files.forEach(item =>{
|
|
|
|
|
|
|
|
var newfile = {};
|
|
|
|
|
|
|
|
newfile.name = item.fileName;
|
|
|
|
|
|
|
|
newfile.url = item.fileAddress;
|
|
|
|
|
|
|
|
newFiles.push(newfile);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.form.fileList = newFiles;
|
|
|
|
|
|
|
|
}
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "修改生产工序";
|
|
|
|
this.title = "修改生产工序";
|
|
|
|
this.optType = "edit";
|
|
|
|
this.optType = "edit";
|
|
|
|