物资字典维护 默认隐藏分类

ywj_dev
CTP 2 years ago
parent b473e38b47
commit b5c3b26cee

@ -2,7 +2,8 @@
<div> <div>
<el-card> <el-card>
<el-row type="flex" style="flex-wrap: nowrap"> <el-row type="flex" style="flex-wrap: nowrap">
<el-col v-show="showSearch" style="width: 300px"> <el-col style="flex: 1" v-show="Dictionary">
<el-col v-show="showSearch" style="min-width: 200px; max-width: 100%">
<el-tree <el-tree
:data="treeList" :data="treeList"
class="tree" class="tree"
@ -17,6 +18,24 @@
> >
</el-tree> </el-tree>
</el-col> </el-col>
</el-col>
<el-button
type="success"
@click="Dictionary = !Dictionary"
icon="el-icon-arrow-left"
v-show="Dictionary"
class="iconButton"
>
</el-button>
<el-button
type="success"
@click="Dictionary = !Dictionary"
icon="el-icon-arrow-right"
v-show="!Dictionary"
class="iconButton"
>
</el-button>
<el-col style="border-left: 3px solid #dddddd; overflow-y: hidden"> <el-col style="border-left: 3px solid #dddddd; overflow-y: hidden">
<el-form <el-form
:model="filterQuery" :model="filterQuery"
@ -165,38 +184,32 @@
<el-button-group> <el-button-group>
<el-button icon="el-icon-view" type="primary" @click="hideSearch" <el-button icon="el-icon-view" type="primary" @click="hideSearch"
>显示/隐藏搜索栏 >显示/隐藏搜索栏
</el-button </el-button>
>
<el-button type="primary" icon="el-icon-refresh" @click="onReset" <el-button type="primary" icon="el-icon-refresh" @click="onReset"
>重置 >重置
</el-button </el-button>
>
<el-button type="primary" icon="el-icon-search" @click="submit" <el-button type="primary" icon="el-icon-search" @click="submit"
>查询 >查询
</el-button </el-button>
>
<!-- <el-button type="primary" icon="el-icon-plus" @click="editUdiType"></el-button>--> <!-- <el-button type="primary" icon="el-icon-plus" @click="editUdiType"></el-button>-->
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@click="intentImportUdi" @click="intentImportUdi"
>选入DI信息 >选入DI信息
</el-button </el-button>
>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@click="intentImportErp" @click="intentImportErp"
>添加院内字典 >添加院内字典
</el-button </el-button>
>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@click="intentDetail" @click="intentDetail"
>关联添加 >关联添加
</el-button </el-button>
>
</el-button-group> </el-button-group>
</div> </div>
<el-divider style="margin: 15px"></el-divider> <el-divider style="margin: 15px"></el-divider>
@ -1237,7 +1250,10 @@
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="2" class="el-col"> <el-col :span="2" class="el-col">
<el-button type="text" size="small" @click.native.stop="updateVersion()" <el-button
type="text"
size="small"
@click.native.stop="updateVersion()"
:loading="updateLoading" :loading="updateLoading"
style="margin-left: 5%" style="margin-left: 5%"
>更新当前版本信息 >更新当前版本信息
@ -1450,13 +1466,14 @@ import {
spcombie, spcombie,
lockStatus, lockStatus,
removeDiRl, removeDiRl,
disableUdi, syncOnline, disableUdi,
syncOnline,
} from "@/api/basic/product/udiRelevance"; } from "@/api/basic/product/udiRelevance";
import { import {
selectSysParamByKey, selectSysParamByKey,
finProductSet, finProductSet,
} from "@/api/param/systemParamConfig"; } from "@/api/param/systemParamConfig";
import {filterByUuid} from "@/api/basic/product/udiInfo"; import { filterByUuid } from "@/api/basic/product/udiInfo";
import selectUdi from "./UdiInfoSelectRel.vue"; import selectUdi from "./UdiInfoSelectRel.vue";
import selectErp from "./udiInfoselectErpUdi"; import selectErp from "./udiInfoselectErpUdi";
@ -1467,12 +1484,13 @@ import ProductSingleEdit from "@/views/basic/product/productSingleEdit";
import productUdiType from "@/views/basic/product/productUdiType"; import productUdiType from "@/views/basic/product/productUdiType";
import selectHospProduct from "@/views/basic/product/bindHospProduct"; import selectHospProduct from "@/views/basic/product/bindHospProduct";
import selectUnBindHospProduct from "@/views/basic/product/unbindHospProduct"; import selectUnBindHospProduct from "@/views/basic/product/unbindHospProduct";
import {getBasicHospType, getListTree} from "@/api/basic/basicHospType"; import { getBasicHospType, getListTree } from "@/api/basic/basicHospType";
import {dlLastVersionByDi} from "@/api/basic/udiInfo"; import { dlLastVersionByDi } from "@/api/basic/udiInfo";
export default { export default {
data() { data() {
return { return {
Dictionary: false, //
filterQuery: { filterQuery: {
lockStatus: null, lockStatus: null,
unionCode: null, unionCode: null,
@ -1563,7 +1581,7 @@ export default {
selectVersionVisible: false, selectVersionVisible: false,
selectLocalVisible: false, //UDI selectLocalVisible: false, //UDI
isUseDyCheck: false, isUseDyCheck: false,
lockStatusMap: {1: "未提交", 2: "已提交", 3: "已锁定"}, lockStatusMap: { 1: "未提交", 2: "已提交", 3: "已锁定" },
activeNames: ["1"], activeNames: ["1"],
useNumEnable: true, useNumEnable: true,
updateLoading: false, updateLoading: false,
@ -1694,8 +1712,7 @@ export default {
this.$message.error(response.message); this.$message.error(response.message);
} }
}) })
.catch(() => { .catch(() => {});
});
}, },
deleteDialog(rowId) { deleteDialog(rowId) {
@ -1707,8 +1724,7 @@ export default {
.then(() => { .then(() => {
this.deleteOrders(rowId); this.deleteOrders(rowId);
}) })
.catch(() => { .catch(() => {});
});
}, },
intentDetail() { intentDetail() {
@ -1746,11 +1762,9 @@ export default {
this.$message.error(response.message); this.$message.error(response.message);
} }
}) })
.catch(() => { .catch(() => {});
});
}) })
.catch(() => { .catch(() => {});
});
}, },
removeDi() { removeDi() {
@ -1777,11 +1791,9 @@ export default {
this.$message.error(response.message); this.$message.error(response.message);
} }
}) })
.catch(() => { .catch(() => {});
});
}) })
.catch(() => { .catch(() => {});
});
}, },
intentSelectErp(val) { intentSelectErp(val) {
@ -2067,8 +2079,7 @@ export default {
var invlist = response.data || []; var invlist = response.data || [];
this.treeList = this.handleTree(invlist, "code", "parentCode"); this.treeList = this.handleTree(invlist, "code", "parentCode");
}) })
.catch(() => { .catch(() => {});
});
}, },
addHospProduct(data) { addHospProduct(data) {
@ -2106,9 +2117,12 @@ export default {
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
debugger debugger;
this.updateLoading = true; this.updateLoading = true;
let query = {uuid: this.editQuery.uuid, originUuid: this.editQuery.originUuid}; let query = {
uuid: this.editQuery.uuid,
originUuid: this.editQuery.originUuid,
};
syncOnline(query) syncOnline(query)
.then((response) => { .then((response) => {
this.updateLoading = false; this.updateLoading = false;
@ -2125,13 +2139,10 @@ export default {
this.total = 0; this.total = 0;
}); });
}) })
.catch(() => { .catch(() => {});
});
},
}, },
mounted() {
}, },
mounted() {},
components: { components: {
ProductSingleEdit, ProductSingleEdit,
ProductEdit, ProductEdit,
@ -2153,10 +2164,12 @@ export default {
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.iconButton {
margin-left: -2px;
height: 30px;
}
.tree { .tree {
::v-deep .el-tree-node { ::v-deep .el-tree-node {
white-space: normal;
.el-tree-node__content { .el-tree-node__content {
height: 100%; height: 100%;
align-items: start; align-items: start;

Loading…
Cancel
Save