|
|
|
@ -111,6 +111,11 @@
|
|
|
|
|
<el-table-column label="工艺路线名称" align="center" prop="routeName" />
|
|
|
|
|
<el-table-column label="工艺路线说明" align="center" prop="routeDesc" />
|
|
|
|
|
<el-table-column label="工艺路线版本" align="center" prop="routeVersion" />
|
|
|
|
|
<el-table-column label="是否需要首检" align="center" prop="needCheck">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.needCheck"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="是否启用" align="center" prop="enableFlag">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.enableFlag"/>
|
|
|
|
@ -193,6 +198,24 @@
|
|
|
|
|
<el-input v-model="form.routeVersion" :disabled="true"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="需要首检" prop="needCheck">
|
|
|
|
|
<el-radio-group v-model="form.needCheck" 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.needCheck" 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="24">
|
|
|
|
@ -221,7 +244,7 @@
|
|
|
|
|
<Routeprocess v-if="form.routeId !=null" :optType="optType" :routeId="form.routeId"></Routeprocess>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
<el-tab-pane label="关联产品">
|
|
|
|
|
<Routeprodproduct v-if="form.routeId !=null" :optType="optType" :routeId="form.routeId"></Routeprodproduct>
|
|
|
|
|
<Routeprodline v-if="form.routeId !=null" :optType="optType" :routeId="form.routeId"></Routeprodline>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
@ -265,7 +288,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { listProroute, getProroute, delProroute, addProroute, updateProroute,importProroute} from "@/api/mes/pro/proroute";
|
|
|
|
|
import { listProroute, getProroute, delProroute, addProroute, updateProroute } from "@/api/mes/pro/proroute";
|
|
|
|
|
import Routeprocess from "./routeprocess";
|
|
|
|
|
import Routeprodproduct from "./routeprodproduct";
|
|
|
|
|
export default {
|
|
|
|
@ -322,8 +345,7 @@ export default {
|
|
|
|
|
{ required: true, message: "是否启用不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
fileList:'',
|
|
|
|
|
idList:''
|
|
|
|
|
fileList:''
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
@ -457,7 +479,7 @@ export default {
|
|
|
|
|
if(Array.isArray(this.form.fileList)){
|
|
|
|
|
this.form.fileList = this.listToString(this.form.fileList);
|
|
|
|
|
}
|
|
|
|
|
//this.form.idList = this.listToString(this.form.idList);
|
|
|
|
|
|
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if (this.form.routeId != null) {
|
|
|
|
|