|
|
|
@ -49,7 +49,13 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" class-name="small-padding fixed-width">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
:disabled="!configParms.basicInv"
|
|
|
|
|
@click.native.stop="handleSubForm( scope.row, 'add')"
|
|
|
|
|
>新增
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
:disabled="!configParms.basicInv"
|
|
|
|
@ -373,6 +379,7 @@ export default {
|
|
|
|
|
// page: 1,
|
|
|
|
|
// limit: 10,
|
|
|
|
|
},
|
|
|
|
|
isShow:false,
|
|
|
|
|
loading: true,
|
|
|
|
|
list: [],
|
|
|
|
|
isExpandAll: true,
|
|
|
|
@ -469,18 +476,31 @@ export default {
|
|
|
|
|
this.formName = formName;
|
|
|
|
|
if (formName === "edit") {
|
|
|
|
|
this.subData = JSON.parse(JSON.stringify(data));
|
|
|
|
|
if(this.subData.parentCode!=null && this.subData.parentCode!=""){
|
|
|
|
|
this.isShow=false;
|
|
|
|
|
}else{
|
|
|
|
|
this.isShow=true
|
|
|
|
|
this.subData.parentCode=null;
|
|
|
|
|
}
|
|
|
|
|
} else if (formName === "add") {
|
|
|
|
|
this.subData = {advanceType: false, spUse: false};
|
|
|
|
|
this.isShow=true
|
|
|
|
|
if(data==null){
|
|
|
|
|
this.subData = {advanceType: false, spUse: false,parentCode:null};
|
|
|
|
|
}else{
|
|
|
|
|
this.subData = {advanceType: false, spUse: false,parentCode:data.code};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.subFormVisible = true;
|
|
|
|
|
this.getSubThrsysDetailData();
|
|
|
|
|
filterSubAll(this.query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
let invList = response.data || [];
|
|
|
|
|
this.invOptions = this.handleTree(invList, "code", "parentCode");
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
if(this.subData.parentCode!=null && this.subData.parentCode!=""){
|
|
|
|
|
filterSubAll(this.query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
let invList = response.data || [];
|
|
|
|
|
this.invOptions = this.handleTree(invList, "code", "parentCode");
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.sysSubList = null;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|