|
|
|
@ -166,15 +166,21 @@
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="所属线体/标准" align="center" prop="attr2" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-select v-model="scope.row.attr2" placeholder="请选择" clearable @change="selectBelongTo(scope.row)">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in belongToOptions"
|
|
|
|
|
:key="item.typeCode"
|
|
|
|
|
:label="item.typeName"
|
|
|
|
|
:value="item.typeCode"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column fixed="right" align="center" label="操作" width="100">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="small"
|
|
|
|
|
type="danger"
|
|
|
|
|
plain
|
|
|
|
|
@click="deleteUser(scope.row)"
|
|
|
|
|
>
|
|
|
|
|
移除</el-button>
|
|
|
|
|
<el-button size="small" type="danger" plain @click="deleteUser(scope.row)">移除</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -193,8 +199,10 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { listCheckType, getCheckType, delCheckType, addCheckType, updateCheckType } from "@/api/quality/checkType";
|
|
|
|
|
import{ getSelectedUsers, addUserBind, deleteByMaterialCode} from "@/api/quality/userbind";
|
|
|
|
|
import { listCheckType, getCheckType, delCheckType, addCheckType, updateCheckType,
|
|
|
|
|
listBelongToStandars,listBelongToLines
|
|
|
|
|
} from "@/api/quality/checkType";
|
|
|
|
|
import{ getSelectedUsers, addUserBind, deleteByMaterialCode,updateBelongTo} from "@/api/quality/userbind";
|
|
|
|
|
import ItemSelectUser from "./selectUser.vue";
|
|
|
|
|
import ItemConfFile from "./confFile.vue";
|
|
|
|
|
export default {
|
|
|
|
@ -224,6 +232,9 @@ export default {
|
|
|
|
|
checkTypeList: [],
|
|
|
|
|
userList: [],
|
|
|
|
|
userRows: [],
|
|
|
|
|
belongToOptions:[],
|
|
|
|
|
belongToStandars:[],
|
|
|
|
|
belongToLines:[],
|
|
|
|
|
// 弹出层标题
|
|
|
|
|
title: "",
|
|
|
|
|
titleUserBind: "",
|
|
|
|
@ -261,6 +272,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getBelongToLinesList();
|
|
|
|
|
this.getBelongToStandars()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/** 查询检验节点维护列表 */
|
|
|
|
@ -272,6 +285,19 @@ export default {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 查询所属线体选择列表 */
|
|
|
|
|
getBelongToLinesList() {
|
|
|
|
|
listBelongToLines().then(response => {
|
|
|
|
|
this.belongToLines = response;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/** 查询所属标准选择列表 */
|
|
|
|
|
getBelongToStandars() {
|
|
|
|
|
listBelongToStandars().then(response => {
|
|
|
|
|
this.belongToStandars = response;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 取消按钮
|
|
|
|
|
cancel() {
|
|
|
|
|
this.open = false;
|
|
|
|
@ -373,6 +399,15 @@ export default {
|
|
|
|
|
this.attr1 = row.attr1;
|
|
|
|
|
|
|
|
|
|
this.getUserParams.materialCode = row.orderCode;
|
|
|
|
|
|
|
|
|
|
if(row.orderCode == 'checkTypeSC'|| row.orderCode == 'checkTypeSCXJ' ||
|
|
|
|
|
row.orderCode=='checkTypeCPPC' || row.orderCode=='checkTypeCP'){
|
|
|
|
|
this.belongToOptions = this.belongToLines;
|
|
|
|
|
}else if(row.orderCode == 'checkTypeLL'){
|
|
|
|
|
this.belongToOptions = this.belongToStandars;
|
|
|
|
|
}
|
|
|
|
|
console.log("======"+this.belongToOptions)
|
|
|
|
|
|
|
|
|
|
//查询绑定记录表
|
|
|
|
|
getSelectedUsers(this.getUserParams).then(response => {
|
|
|
|
|
this.userList = response.rows;
|
|
|
|
@ -431,7 +466,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.getSelectUserList();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
deleteUser(row) {
|
|
|
|
@ -460,6 +494,16 @@ export default {
|
|
|
|
|
this.$refs.itemConfFile.showFlag = true;
|
|
|
|
|
this.$refs.itemConfFile.getList();
|
|
|
|
|
},
|
|
|
|
|
//
|
|
|
|
|
selectBelongTo(row){
|
|
|
|
|
const data = {
|
|
|
|
|
id: row.id,
|
|
|
|
|
attr2: row.attr2,
|
|
|
|
|
}
|
|
|
|
|
updateBelongTo(data).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("分配成功");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|