人员绑定物料修改

master
shaoyong 1 year ago
parent fd76285b78
commit f82ec137e5

@ -1,14 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="流程编号" prop="order">
<el-input
v-model="queryParams.order"
placeholder="请输入流程编号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="名称" prop="checkName"> <el-form-item label="名称" prop="checkName">
<el-input <el-input
v-model="queryParams.checkName" v-model="queryParams.checkName"
@ -17,8 +9,8 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="类型名称" prop="typeName"> <el-form-item label="类型名称" prop="typeCode">
<el-select v-model="form.typeName" placeholder="请输入类型名称" > <el-select v-model="queryParams.typeCode" clearable placeholder="请输入类型名称" >
<el-option <el-option
v-for="dict in dict.type.check_type" v-for="dict in dict.type.check_type"
:key="dict.value" :key="dict.value"
@ -121,7 +113,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="15"> <el-col :span="15">
<el-form-item label="类型名称" prop="typeName"> <el-form-item label="类型名称" prop="typeCode">
<el-select v-model="form.typeCode" placeholder="请输入类型名称" > <el-select v-model="form.typeCode" placeholder="请输入类型名称" >
<el-option <el-option
v-for="dict in dict.type.check_type" v-for="dict in dict.type.check_type"

@ -24,18 +24,10 @@
v-show="showSearch" v-show="showSearch"
label-width="100px" label-width="100px"
> >
<el-form-item label="预留字段1" prop="attr1"> <el-form-item label="检验规则名称" prop="ruleName">
<el-input <el-input
v-model="queryParams.attr1" v-model="queryParams.ruleName"
placeholder="请输入预留字段1" placeholder="请输入检验规则名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="工厂编码" prop="factoryCode">
<el-input
v-model="queryParams.factoryCode"
placeholder="请输入工厂编码"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
@ -286,9 +278,6 @@ export default {
projectId: [ projectId: [
{ required: true, message: "检验项目id不能为空", trigger: "blur" }, { required: true, message: "检验项目id不能为空", trigger: "blur" },
], ],
factoryCode: [
{ required: true, message: "工厂编码不能为空", trigger: "blur" },
],
}, },
}; };
}, },

@ -9,10 +9,10 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="物料名称" prop="materialName"> <el-form-item label="联系方式" prop="phonenumber">
<el-input <el-input
v-model="queryParams.materialName" v-model="queryParams.phonenumber"
placeholder="请输入物料名称" placeholder="请输入联系方式"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
@ -79,11 +79,8 @@
<!-- 添加或修改人员物料绑定对话框 --> <!-- 添加或修改人员物料绑定对话框 -->
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="员工编码" prop="userCodes"> <el-form-item label="用户编码" prop="userCodes">
<el-input v-model="form.userCodes" placeholder="请输入员工编码" /> <el-input v-model="form.userCodes" disabled placeholder="请输入用户编码" />
</el-form-item>
<el-form-item label="员工名称" prop="userName">
<el-input v-model="form.userName" placeholder="请输入员工名称" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-tabs type="border-card" v-if="form.userCodes != null"> <el-tabs type="border-card" v-if="form.userCodes != null">
@ -101,11 +98,11 @@
<script> <script>
import { listMaterial, getMaterial, delMaterial, addMaterial, updateMaterial } from "@/api/quality/material"; import { listMaterial, getMaterial, delMaterial, addMaterial, updateMaterial } from "@/api/quality/material";
import Userbind from "./UserBind.vue"; import UserBind from "./UserBind.vue";
export default { export default {
name: "Material", name: "Material",
components: {Userbind}, components: {UserBind},
data() { data() {
return { return {
// //
@ -136,10 +133,10 @@ export default {
materialCode: null, materialCode: null,
materialName: null, materialName: null,
materialNames: null, materialNames: null,
phonenumber: null,
attr1: null, attr1: null,
attr2: null, attr2: null,
attr3: null, attr3: null,
attr4: null,
factoryCode: null, factoryCode: null,
}, },
// //
@ -169,6 +166,7 @@ export default {
cancel() { cancel() {
this.open = false; this.open = false;
this.reset(); this.reset();
this.getList();
}, },
// //
reset() { reset() {
@ -180,10 +178,10 @@ export default {
materialCode: null, materialCode: null,
materialName: null, materialName: null,
materialNames: null, materialNames: null,
phonenumber: null,
attr1: null, attr1: null,
attr2: null, attr2: null,
attr3: null, attr3: null,
attr4: null,
createBy: null, createBy: null,
createTime: null, createTime: null,
updateBy: null, updateBy: null,

@ -84,7 +84,7 @@
import { getListProduct,getRightList ,addProduct, updateProduct, getProduct, delProduct} from "@/api/quality/userbind"; import { getListProduct,getRightList ,addProduct, updateProduct, getProduct, delProduct} from "@/api/quality/userbind";
export default { export default {
name: "Userbind", name: "UserBind",
data() { data() {
return { return {

Loading…
Cancel
Save