|
|
@ -39,6 +39,14 @@
|
|
|
|
@click="() => remove(node, data)">
|
|
|
|
@click="() => remove(node, data)">
|
|
|
|
-
|
|
|
|
-
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
v-if="node.level == 1"
|
|
|
|
|
|
|
|
class="btn-tree"
|
|
|
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
size="medium"
|
|
|
|
|
|
|
|
@click="handleUpdate(data)">
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
v-if="node.level == 1"
|
|
|
|
v-if="node.level == 1"
|
|
|
|
class="btn-tree"
|
|
|
|
class="btn-tree"
|
|
|
@ -64,10 +72,10 @@
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row >
|
|
|
|
<el-row >
|
|
|
|
<el-col :span="16">
|
|
|
|
<el-col :span="16">
|
|
|
|
<el-form-item label="物料组" prop="groupName">
|
|
|
|
<el-form-item label="标准模板" prop="groupName">
|
|
|
|
<el-select v-model="form.groupCode" filterable clearable placeholder="请选择物料组">
|
|
|
|
<el-select v-model="form.groupCode" filterable clearable placeholder="请选择物料组">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="(item,index) in OriginalGroupList"
|
|
|
|
v-for="(item,index) in standarList"
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
|
:label="item.groupName"
|
|
|
|
:label="item.groupName"
|
|
|
|
:value="item.groupCode">
|
|
|
|
:value="item.groupCode">
|
|
|
@ -98,6 +106,7 @@ import {
|
|
|
|
delMaterialGroup,
|
|
|
|
delMaterialGroup,
|
|
|
|
updateMaterialGroup,
|
|
|
|
updateMaterialGroup,
|
|
|
|
materialTreeSelect,
|
|
|
|
materialTreeSelect,
|
|
|
|
|
|
|
|
getMaterialGroup
|
|
|
|
} from "@/api/quality/materialGroup";
|
|
|
|
} from "@/api/quality/materialGroup";
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
addMaterialGroupDetail,
|
|
|
|
addMaterialGroupDetail,
|
|
|
@ -133,7 +142,7 @@ export default {
|
|
|
|
// 物料组表格数据
|
|
|
|
// 物料组表格数据
|
|
|
|
materialGroupList: [],
|
|
|
|
materialGroupList: [],
|
|
|
|
// 物料组原始数据
|
|
|
|
// 物料组原始数据
|
|
|
|
OriginalGroupList: [],
|
|
|
|
standarList: [],
|
|
|
|
//当前点击的节点数据
|
|
|
|
//当前点击的节点数据
|
|
|
|
nodeData: {},
|
|
|
|
nodeData: {},
|
|
|
|
// 弹出层标题
|
|
|
|
// 弹出层标题
|
|
|
@ -197,7 +206,7 @@ export default {
|
|
|
|
/** 获取初始物料组 */
|
|
|
|
/** 获取初始物料组 */
|
|
|
|
getOriginalGroup() {
|
|
|
|
getOriginalGroup() {
|
|
|
|
getOriginalGroupList(this.queryParams).then((response) => {
|
|
|
|
getOriginalGroupList(this.queryParams).then((response) => {
|
|
|
|
this.OriginalGroupList = response.rows;
|
|
|
|
this.standarList = response.rows;
|
|
|
|
//this.loading = false;
|
|
|
|
//this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -246,10 +255,9 @@ export default {
|
|
|
|
this.title = "添加物料组";
|
|
|
|
this.title = "添加物料组";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
handleUpdate(row) {
|
|
|
|
handleUpdate(data) {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
const id = row.id || this.ids;
|
|
|
|
getMaterialGroup(data.id).then((response) => {
|
|
|
|
getMaterialGroup(id).then((response) => {
|
|
|
|
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "修改物料组";
|
|
|
|
this.title = "修改物料组";
|
|
|
@ -380,7 +388,7 @@ export default {
|
|
|
|
padding-right: 8px;
|
|
|
|
padding-right: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.custom-tree-node .btn-tree {
|
|
|
|
.custom-tree-node .btn-tree {
|
|
|
|
margin: 0 8px;
|
|
|
|
margin: 0 0px;/**左边树按钮间距**/
|
|
|
|
font-size: 20px;
|
|
|
|
font-size: 20px;
|
|
|
|
font: bolder;
|
|
|
|
font: bolder;
|
|
|
|
}
|
|
|
|
}
|
|
|
|