|
|
@ -1,6 +1,24 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-card>
|
|
|
|
<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-form :model="filterQuery" size="mini" label-width="100px" v-show="showSearch">
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="18">
|
|
|
|
<el-col :span="18">
|
|
|
@ -70,17 +88,10 @@
|
|
|
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
|
|
|
<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-refresh" @click="onReset">重置</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="submit">查询</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="submit">查询</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="intentImportUdi"
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="editUdiType">编辑菜单树</el-button>
|
|
|
|
>添加DI信息
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="intentImportUdi">添加DI信息</el-button>
|
|
|
|
</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="intentImportErp"
|
|
|
|
|
|
|
|
>添加产品信息
|
|
|
|
|
|
|
|
</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="intentDetail"
|
|
|
|
|
|
|
|
>关联添加
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
</el-button-group>
|
|
|
|
</el-button-group>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
@ -1129,6 +1140,54 @@
|
|
|
|
:total="total"
|
|
|
|
:total="total"
|
|
|
|
:current-page="filterQuery.page"
|
|
|
|
:current-page="filterQuery.page"
|
|
|
|
></el-pagination>
|
|
|
|
></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>
|
|
|
|
</el-card>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -1153,6 +1212,10 @@ import selectLocalUdi from "./UdiInfoSelectLocalUdi";
|
|
|
|
import selectUdiVersion from "./UdiinfoSelectVersion";
|
|
|
|
import selectUdiVersion from "./UdiinfoSelectVersion";
|
|
|
|
import ProductEdit from "@/views/basic/product/productEdit";
|
|
|
|
import ProductEdit from "@/views/basic/product/productEdit";
|
|
|
|
import ProductSingleEdit from "@/views/basic/product/productSingleEdit";
|
|
|
|
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 {
|
|
|
|
export default {
|
|
|
@ -1170,8 +1233,13 @@ export default {
|
|
|
|
limit: 20,
|
|
|
|
limit: 20,
|
|
|
|
addType: 1,
|
|
|
|
addType: 1,
|
|
|
|
thrPiId: null,
|
|
|
|
thrPiId: null,
|
|
|
|
filterType: null
|
|
|
|
filterType: null,
|
|
|
|
|
|
|
|
diType: 1
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
rId: null,
|
|
|
|
|
|
|
|
selectUdiTypeVisible: false,
|
|
|
|
|
|
|
|
selectHospProductVisible: false,
|
|
|
|
|
|
|
|
selectUnBindHospProductVisible:false,
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
showSearch: true,
|
|
|
|
showSearch: true,
|
|
|
|
productType: null,
|
|
|
|
productType: null,
|
|
|
@ -1183,7 +1251,7 @@ export default {
|
|
|
|
sptm: null,
|
|
|
|
sptm: null,
|
|
|
|
packUnit: null,
|
|
|
|
packUnit: null,
|
|
|
|
measname: null,
|
|
|
|
measname: null,
|
|
|
|
nameCode:null
|
|
|
|
nameCode: null
|
|
|
|
},
|
|
|
|
},
|
|
|
|
pId: 0,
|
|
|
|
pId: 0,
|
|
|
|
productRemarkSet: {},
|
|
|
|
productRemarkSet: {},
|
|
|
@ -1213,6 +1281,7 @@ export default {
|
|
|
|
filterList: [],
|
|
|
|
filterList: [],
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
thirdNo: "",
|
|
|
|
thirdNo: "",
|
|
|
|
|
|
|
|
treeList: [],
|
|
|
|
uuid: "111",
|
|
|
|
uuid: "111",
|
|
|
|
originUuid: null,
|
|
|
|
originUuid: null,
|
|
|
|
thirdId: null,
|
|
|
|
thirdId: null,
|
|
|
@ -1252,7 +1321,8 @@ export default {
|
|
|
|
ggxh: null,
|
|
|
|
ggxh: null,
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 20,
|
|
|
|
limit: 20,
|
|
|
|
addType: 1
|
|
|
|
addType: 1,
|
|
|
|
|
|
|
|
diType: 1
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1304,6 +1374,10 @@ export default {
|
|
|
|
this.detailList = [];
|
|
|
|
this.detailList = [];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
hideForm(){
|
|
|
|
|
|
|
|
this.selectUdiTypeVisible=false;
|
|
|
|
|
|
|
|
this.getTerrList();
|
|
|
|
|
|
|
|
},
|
|
|
|
getThirdSysDetail() {
|
|
|
|
getThirdSysDetail() {
|
|
|
|
let query = {
|
|
|
|
let query = {
|
|
|
|
id: this.relevanceEdit.id,
|
|
|
|
id: this.relevanceEdit.id,
|
|
|
@ -1423,7 +1497,7 @@ export default {
|
|
|
|
type: "success",
|
|
|
|
type: "success",
|
|
|
|
message: "删除成功!",
|
|
|
|
message: "删除成功!",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.editDialogVisible=false;
|
|
|
|
this.editDialogVisible = false;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
this.cancelDialog();
|
|
|
|
this.cancelDialog();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -1572,10 +1646,12 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
closeUdi(val) {
|
|
|
|
closeUdi(val) {
|
|
|
|
|
|
|
|
debugger
|
|
|
|
this.selectUdiDialogVisible = false;
|
|
|
|
this.selectUdiDialogVisible = false;
|
|
|
|
this.selectErpDialogVisible = false;
|
|
|
|
this.selectErpDialogVisible = false;
|
|
|
|
this.selectLocalVisible = false;
|
|
|
|
this.selectLocalVisible = false;
|
|
|
|
this.selectVersionVisible = false;
|
|
|
|
this.selectVersionVisible = false;
|
|
|
|
|
|
|
|
this.selectHospProductVisible=false;
|
|
|
|
this.getThirdSysDetail();
|
|
|
|
this.getThirdSysDetail();
|
|
|
|
if (val) {
|
|
|
|
if (val) {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
@ -1602,7 +1678,7 @@ export default {
|
|
|
|
this.editSingleFormat.sptm = temp.sptm;
|
|
|
|
this.editSingleFormat.sptm = temp.sptm;
|
|
|
|
this.editSingleFormat.packUnit = temp.packUnit;
|
|
|
|
this.editSingleFormat.packUnit = temp.packUnit;
|
|
|
|
this.editSingleFormat.measname = temp.measname;
|
|
|
|
this.editSingleFormat.measname = temp.measname;
|
|
|
|
this.editSingleFormat.nameCode=temp.nameCode;
|
|
|
|
this.editSingleFormat.nameCode = temp.nameCode;
|
|
|
|
this.editSingleDiDialogVisible = true;
|
|
|
|
this.editSingleDiDialogVisible = true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
diEdit(row) {
|
|
|
|
diEdit(row) {
|
|
|
@ -1613,6 +1689,8 @@ export default {
|
|
|
|
this.selectErpDialogVisible = false;
|
|
|
|
this.selectErpDialogVisible = false;
|
|
|
|
this.selectLocalVisible = false;
|
|
|
|
this.selectLocalVisible = false;
|
|
|
|
this.selectVersionVisible = false;
|
|
|
|
this.selectVersionVisible = false;
|
|
|
|
|
|
|
|
this.selectHospProductVisible=false;
|
|
|
|
|
|
|
|
this.selectUnBindHospProductVisible=false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onAddSubmit(relSubmit) {
|
|
|
|
onAddSubmit(relSubmit) {
|
|
|
|
this.editFormat.relSubmit = 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() {
|
|
|
|
mounted() {
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1712,10 +1831,14 @@ export default {
|
|
|
|
selectErp,
|
|
|
|
selectErp,
|
|
|
|
selectLocalUdi,
|
|
|
|
selectLocalUdi,
|
|
|
|
selectUdiVersion,
|
|
|
|
selectUdiVersion,
|
|
|
|
|
|
|
|
productUdiType,
|
|
|
|
|
|
|
|
selectHospProduct,
|
|
|
|
|
|
|
|
selectUnBindHospProduct
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.findBasicProductSet();
|
|
|
|
this.findBasicProductSet();
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.getTerrList();
|
|
|
|
this.selectSysParam();
|
|
|
|
this.selectSysParam();
|
|
|
|
this.getSysFilter();
|
|
|
|
this.getSysFilter();
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1770,4 +1893,6 @@ export default {
|
|
|
|
padding-bottom: 17px;
|
|
|
|
padding-bottom: 17px;
|
|
|
|
padding-top: 17px;
|
|
|
|
padding-top: 17px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|