|
|
|
@ -157,35 +157,61 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="工作中心" prop="attention">
|
|
|
|
|
<el-input v-model="form.attention" type="input" placeholder="请输入内容" />
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="拆分&合并">
|
|
|
|
|
<el-select v-model="form.splitMerge" placeholder="请选择">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.split_merge"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="工作时间" prop="attention">
|
|
|
|
|
<el-input v-model="form.attention" type="input" placeholder="请输入内容" />
|
|
|
|
|
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
<el-form-item label="工序名称" prop="splitMergeNum">
|
|
|
|
|
<el-input v-model="form.splitMergeNum" placeholder="请输入拆分&合并数量" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="可多单运行" prop="sync">
|
|
|
|
|
<el-radio-group v-model="form.sync" disabled v-if="optType=='view'">
|
|
|
|
|
<el-radio
|
|
|
|
|
v-for="dict in dict.type.sys_yes_no"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
<el-radio-group v-model="form.sync" v-else>
|
|
|
|
|
<el-radio
|
|
|
|
|
v-for="dict in dict.type.sys_yes_no"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="工资费用" prop="attention">
|
|
|
|
|
<el-input v-model="form.attention" type="input" placeholder="请输入内容" />
|
|
|
|
|
<el-form-item label="工作中心" prop="workCenter">
|
|
|
|
|
<el-input v-model="form.workCenter" type="input" placeholder="请输入工作中心" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="检验情况" prop="attention">
|
|
|
|
|
<el-input v-model="form.attention" type="input" placeholder="请输入内容" />
|
|
|
|
|
<el-form-item label="工作时间" prop="workTime">
|
|
|
|
|
<el-input v-model="form.workTime" type="input" placeholder="请输入工作时长" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="工序SOP" prop="attention">
|
|
|
|
|
<el-input v-model="form.attention" type="textarea" placeholder="请输入内容" />
|
|
|
|
|
<el-form-item label="工序SOP" prop="fileList">
|
|
|
|
|
<FileUpload v-model="form.fileList"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -221,7 +247,7 @@ import Processcontent from "./content.vue";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "Process",
|
|
|
|
|
dicts: ['sys_yes_no'],
|
|
|
|
|
dicts: ['sys_yes_no','split_merge'],
|
|
|
|
|
components: {Processcontent},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -267,7 +293,17 @@ export default {
|
|
|
|
|
enableFlag: [
|
|
|
|
|
{ required: true, message: "是否启用不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
splitMerge: [
|
|
|
|
|
{ required: true, message: "拆分&合并不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
splitMergeNum: [
|
|
|
|
|
{ required: true, message: "拆分&合并数量不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
sync: [
|
|
|
|
|
{ required: true, message: "可多单运行不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
fileList:[]
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
@ -300,7 +336,8 @@ export default {
|
|
|
|
|
createBy: null,
|
|
|
|
|
createTime: null,
|
|
|
|
|
updateBy: null,
|
|
|
|
|
updateTime: null
|
|
|
|
|
updateTime: null,
|
|
|
|
|
fileList:[]
|
|
|
|
|
};
|
|
|
|
|
this.autoGenFlag = false;
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|