生产变更

yangwl
zhaoxiaolin 1 year ago
parent 5401d44d53
commit c15e1162d7

@ -106,12 +106,12 @@
</el-row> </el-row>
<el-table <el-table
style="width: 100%"
height="480"
v-if="refreshTable" v-if="refreshTable"
v-loading="loading" v-loading="loading"
:data="orderList" :data="orderList"
row-key="orderCode" row-key="orderCode"
style="width: 100%"
max-height="480"
:tree-props="{children: 'children', hasChildren: 'hasChildren'}" :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
> >

@ -8,7 +8,7 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['mes:pro:processcontent:add']"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -19,7 +19,7 @@
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['mes:pro:processcontent:edit']"
>修改</el-button> >修改</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -30,7 +30,7 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['mes:pro:processcontent:remove']"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -40,7 +40,7 @@
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['mes:pro:processcontent:export']"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@ -60,14 +60,14 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['mes:pro:processcontent:edit']"
>修改</el-button> >修改</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['mes:pro:processcontent:remove']"
>删除</el-button> >删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -129,14 +129,16 @@
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<ItemSelect ref="itemSelect" @onSelected="onItemSelected" > </ItemSelect>
</div> </div>
</template> </template>
<script> <script>
import { listProcesscontent, getProcesscontent, delProcesscontent, addProcesscontent, updateProcesscontent } from "@/api/mes/pro/processcontent"; import { listProcesscontent, getProcesscontent, delProcesscontent, addProcesscontent, updateProcesscontent } from "@/api/mes/pro/processcontent";
import ItemSelect from "@/components/itemSelect/index.vue";
export default { export default {
name: "Processcontent", name: "Processcontent",
components: { ItemSelect },
data() { data() {
return { return {
// //

@ -132,9 +132,6 @@
<!-- 添加或修改生产工序对话框 --> <!-- 添加或修改生产工序对话框 -->
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body > <el-dialog :title="title" :visible.sync="open" width="960px" append-to-body >
<div>
<UseType :key="useTypeKey"/>
</div>
<el-form ref="form" :model="form" :rules="rules" label-width="100px" > <el-form ref="form" :model="form" :rules="rules" label-width="100px" >
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
@ -206,10 +203,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="线体设备" prop="workCenter"> <el-form-item label="工作中心" prop="workCenter">
<el-input v-model="form.workCenter" placeholder="请选择线体设备" > <el-input v-model="form.workCenter" type="input" placeholder="请输入工作中心" />
<el-button slot="append" @click="handleBoundeEuipment" icon="el-icon-search"></el-button>
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">

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

@ -8,7 +8,7 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['pro:routeprocess:add']"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -19,7 +19,7 @@
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['pro:routeprocess:edit']"
>修改</el-button> >修改</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -30,7 +30,7 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['pro:routeprocess:remove']"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@ -53,14 +53,14 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['mes:pro:routeprocess:edit']"
>修改</el-button> >修改</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['mes:pro:routeprocess:remove']"
>删除</el-button> >删除</el-button>
</template> </template>
</el-table-column> </el-table-column>

Loading…
Cancel
Save