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