检验节点人员绑定

master
shaoyong 5 months ago
parent c7996bd83f
commit c01ce52351

@ -73,6 +73,14 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="二级类型" align="center" prop="attr1" width="150">
<template slot-scope="scope">
<dict-tag
:options="dict.type.order_type_ll"
:value="scope.row.attr1"
/>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -138,6 +146,20 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col :span="15">
<el-form-item v-if="form.typeCode=='material'" label="来料类别" prop="attr1">
<el-select v-model="form.attr1" placeholder="请输入来料类别" >
<el-option
v-for="dict in dict.type.order_type_ll"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
@ -184,7 +206,7 @@ import{ getSelectedUsers, addUserBind,deleteByMaterialCode} from "@/api/quality/
import ItemSelectUser from "./selectUser.vue"; import ItemSelectUser from "./selectUser.vue";
export default { export default {
name: "CheckType", name: "CheckType",
dicts: ["check_type"], dicts: ["check_type","order_type_ll"],
components: { components: {
ItemSelectUser ItemSelectUser
}, },
@ -202,6 +224,9 @@ export default {
// //
showSearch: true, showSearch: true,
openUserBind: false, openUserBind: false,
materialCode: "",
materialName: "",
attr1: "",
// //
total: 0, total: 0,
// //
@ -352,12 +377,13 @@ export default {
//this.reset(); //this.reset();
this.userloading = true; this.userloading = true;
let sr = row; let sr = row;
// //使
this.materialCode = sr.orderCode; this.materialCode = sr.orderCode;
this.materialName = sr.checkName; this.materialName = sr.checkName;
this.attr1 = sr.attr1;
this.getUserParams.materialCode = sr.orderCode; this.getUserParams.materialCode = sr.orderCode;
// //
getSelectedUsers(this.getUserParams).then(response => { getSelectedUsers(this.getUserParams).then(response => {
this.userList = response.rows; this.userList = response.rows;
this.openUserBind = true; this.openUserBind = true;
@ -398,6 +424,7 @@ export default {
let data = { let data = {
materialCode: this.materialCode, materialCode: this.materialCode,
materialName: this.materialName, materialName: this.materialName,
attr1: this.attr1,
userCodes: [], userCodes: [],
userNames: [], userNames: [],
} }

Loading…
Cancel
Save