耗材字典院内分类功能代码提交

prod
郑明梁 2 years ago
parent d57f1780b4
commit 4988381692

@ -1,6 +1,24 @@
<template>
<div>
<el-card>
<el-row>
<el-col :span="2" v-show="showSearch">
<div style="height: 100%">
<el-tree :data="treeList"
class="tree"
@node-click="handleNodeClick"
:expand-on-click-node="false">
<span class="custom-tree-node" slot-scope="{ node, data }">
<span style="">{{ node.label }}</span>
<span v-if="data.code!=10000">
<el-button style="margin-left: 20px;" type="text" @click="() => addHospProduct(data)">绑定</el-button>
<el-button type="text" @click="() => removeHospProduct(data)">解绑</el-button>
</span>
</span>
</el-tree>
</div>
</el-col>
<el-col :span="22">
<el-form :model="filterQuery" size="mini" label-width="100px" v-show="showSearch">
<el-row>
<el-col :span="18">
@ -70,17 +88,10 @@
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="submit"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="intentImportUdi"
>添加DI信息
</el-button
>
<el-button type="primary" icon="el-icon-plus" @click="intentImportErp"
>添加产品信息
</el-button
>
<el-button type="primary" icon="el-icon-plus" @click="intentDetail"
>关联添加
</el-button>
<el-button type="primary" icon="el-icon-plus" @click="editUdiType"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="intentImportUdi">DI</el-button>
<el-button type="primary" icon="el-icon-plus" @click="intentImportErp"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="intentDetail"></el-button>
</el-button-group>
</div>
<el-divider style="margin: 15px"></el-divider>
@ -1129,6 +1140,54 @@
:total="total"
:current-page="filterQuery.page"
></el-pagination>
<el-dialog
title="编辑-耗材菜单"
:visible.sync="selectUdiTypeVisible"
:before-close="hideForm"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="60%"
v-if="selectUdiTypeVisible"
>
<productUdiType
:closeDialog="closeDialog"
@closeUdi="closeUdi"
></productUdiType>
</el-dialog>
<el-dialog
title="绑定-耗材产品"
:visible.sync="selectHospProductVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="80%"
v-if="selectHospProductVisible"
>
<selectHospProduct
:closeDialog="closeDialog"
:rId="rId"
></selectHospProduct>
</el-dialog>
<el-dialog
title="解绑-耗材产品"
:visible.sync="selectUnBindHospProductVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="80%"
v-if="selectUnBindHospProductVisible"
>
<selectUnBindHospProduct
:closeDialog="closeDialog"
:rId="rId"
></selectUnBindHospProduct>
</el-dialog>
</el-col>
</el-row>
</el-card>
</div>
</template>
@ -1153,6 +1212,10 @@ import selectLocalUdi from "./UdiInfoSelectLocalUdi";
import selectUdiVersion from "./UdiinfoSelectVersion";
import ProductEdit from "@/views/basic/product/productEdit";
import ProductSingleEdit from "@/views/basic/product/productSingleEdit";
import productUdiType from "@/views/basic/product/productUdiType"
import selectHospProduct from "@/views/basic/product/bindHospProduct";
import selectUnBindHospProduct from "@/views/basic/product/unbindHospProduct";
import {getBasicHospType, getListTree} from "@/api/basic/basicHospType";
export default {
@ -1170,8 +1233,13 @@ export default {
limit: 20,
addType: 1,
thrPiId: null,
filterType: null
filterType: null,
diType: 1
},
rId: null,
selectUdiTypeVisible: false,
selectHospProductVisible: false,
selectUnBindHospProductVisible:false,
loading: false,
showSearch: true,
productType: null,
@ -1213,6 +1281,7 @@ export default {
filterList: [],
total: 0,
thirdNo: "",
treeList: [],
uuid: "111",
originUuid: null,
thirdId: null,
@ -1252,7 +1321,8 @@ export default {
ggxh: null,
page: 1,
limit: 20,
addType: 1
addType: 1,
diType: 1
};
this.getList();
},
@ -1304,6 +1374,10 @@ export default {
this.detailList = [];
});
},
hideForm(){
this.selectUdiTypeVisible=false;
this.getTerrList();
},
getThirdSysDetail() {
let query = {
id: this.relevanceEdit.id,
@ -1572,10 +1646,12 @@ export default {
});
},
closeUdi(val) {
debugger
this.selectUdiDialogVisible = false;
this.selectErpDialogVisible = false;
this.selectLocalVisible = false;
this.selectVersionVisible = false;
this.selectHospProductVisible=false;
this.getThirdSysDetail();
if (val) {
this.getList();
@ -1613,6 +1689,8 @@ export default {
this.selectErpDialogVisible = false;
this.selectLocalVisible = false;
this.selectVersionVisible = false;
this.selectHospProductVisible=false;
this.selectUnBindHospProductVisible=false;
},
onAddSubmit(relSubmit) {
this.editFormat.relSubmit = relSubmit;
@ -1702,6 +1780,47 @@ export default {
});
},
editUdiType() {
this.selectUdiTypeVisible = true;
},
getTerrList() {
getListTree(this.query)
.then((response) => {
var invlist = response.data || [];
this.treeList = this.handleTree(invlist, "code", "parentCode");
})
.catch(() => {
});
},
addHospProduct(data) {
this.rId = data.code
if(data.code!=10000){
this.filterQuery.bindCode = data.code
}else{
this.filterQuery.bindCode = null;
}
this.selectHospProductVisible = true;
},
removeHospProduct(data){
this.rId = data.code
if(data.code!=10000){
this.filterQuery.bindCode = data.code
}else{
this.filterQuery.bindCode = null;
}
this.selectUnBindHospProductVisible = true;
},
handleNodeClick(data) {
this.rId = data.code
if(data.code!=10000){
this.filterQuery.bindCode = data.code
}else{
this.filterQuery.bindCode = null;
}
this.getList();
}
},
mounted() {
},
@ -1712,10 +1831,14 @@ export default {
selectErp,
selectLocalUdi,
selectUdiVersion,
productUdiType,
selectHospProduct,
selectUnBindHospProduct
},
created() {
this.findBasicProductSet();
this.getList();
this.getTerrList();
this.selectSysParam();
this.getSysFilter();
},
@ -1770,4 +1893,6 @@ export default {
padding-bottom: 17px;
padding-top: 17px;
}
</style>

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save