物资字典分类代码提交

ywj_dev
郑明梁 2 years ago
parent de96553e12
commit 863b199fd0

@ -13,7 +13,7 @@
<el-button-group style="margin-left: 10px;display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="handleSubForm( null, 'add')">新增</el-button>
<el-button type="primary" icon="el-icon-plus" @click="handleSubForm( pCode, 'add')">新增</el-button>
</el-button-group>
</el-form-item>
</el-form>
@ -24,6 +24,7 @@
row-key="id"
:default-expand-all="isExpandAll"
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
@current-change="getTreeName"
>
<el-table-column label="序号" type="index" ref="dataForm"></el-table-column>
<el-table-column prop="name" label="名称"></el-table-column>
@ -177,7 +178,7 @@ export default {
checkSubThrWarehouseRow: null,
selectHospProductVisible: false,
selectUnBindHospProductVisible:false,
pCode:null,
subTotal: 0,
sysList: [],
sysSubList: [],
@ -219,7 +220,7 @@ export default {
if (formName === "edit") {
this.subData = JSON.parse(JSON.stringify(data));
} else if (formName === "add") {
this.subData = {advanceType: false,};
this.subData.parentCode = JSON.parse(JSON.stringify(this.pCode));
}
this.getTreeselect();
this.subFormVisible = true;
@ -325,6 +326,9 @@ export default {
});
}
},
getTreeName(obj){
this.pCode=obj.parentCode;
},
addHospProduct(data) {
this.rId = data.code
this.selectHospProductVisible = true;

Loading…
Cancel
Save