|
@@ -1,8 +1,22 @@
|
|
<template>
|
|
<template>
|
|
<!-- 配送目录管理 -->
|
|
<!-- 配送目录管理 -->
|
|
<div style="display: flex">
|
|
<div style="display: flex">
|
|
|
|
+ <el-card style="width:18%;margin-right:18px;border-radius:6px;">
|
|
|
|
+ <el-tabs v-model="activeNametree" type="card" @tab-click="tabClick" stretch>
|
|
|
|
+ <!-- <el-tab-pane label="按分类" name="grp"></el-tab-pane> -->
|
|
|
|
+ <el-tab-pane label="按机构" name="org"></el-tab-pane>
|
|
|
|
+ </el-tabs>
|
|
|
|
+ <el-tree
|
|
|
|
+ :data="data"
|
|
|
|
+ :props="defaultProps"
|
|
|
|
+ node-key="spdId"
|
|
|
|
+ @node-click="handleNodeClick"
|
|
|
|
+ default-expand-all="true"
|
|
|
|
+ style="margin-top:10px;"
|
|
|
|
+ ></el-tree>
|
|
|
|
+ </el-card>
|
|
<div class="right-common-box">
|
|
<div class="right-common-box">
|
|
- <el-form :model="listQuery" ref="listQuery" :inline="true" label-width="100px">
|
|
|
|
|
|
+ <el-form :model="listQuery" ref="listQuery" :inline="true" label-width="150px">
|
|
<el-form-item label="耗材编码" prop="materialId" class="long">
|
|
<el-form-item label="耗材编码" prop="materialId" class="long">
|
|
<el-input
|
|
<el-input
|
|
v-model="listQuery.materialId"
|
|
v-model="listQuery.materialId"
|
|
@@ -152,6 +166,7 @@
|
|
<el-table-column label="注册证号" prop="regcertno" width="80" />
|
|
<el-table-column label="注册证号" prop="regcertno" width="80" />
|
|
<el-table-column label="生产企业" prop="prodEntp" width="80" />
|
|
<el-table-column label="生产企业" prop="prodEntp" width="80" />
|
|
<el-table-column label="采购价" prop="purcPric" width="80" />
|
|
<el-table-column label="采购价" prop="purcPric" width="80" />
|
|
|
|
+ <el-table-column label="驳回原因" prop="rejtRea" width="80" />
|
|
<el-table-column label="当前状态" prop="status" width="80" fixed="right">
|
|
<el-table-column label="当前状态" prop="status" width="80" fixed="right">
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
<span v-if="row.status == 'A'">待审核</span>
|
|
<span v-if="row.status == 'A'">待审核</span>
|
|
@@ -338,10 +353,10 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="fasBtch" label="集采批次"> </el-table-column>
|
|
<el-table-column prop="fasBtch" label="集采批次"> </el-table-column>
|
|
- <el-table-column prop="splb" label="商品类别" width="120">
|
|
|
|
|
|
+ <!-- <el-table-column prop="splb" label="商品类别" width="120">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="spfl" label="商品分类" width="120">
|
|
<el-table-column prop="spfl" label="商品分类" width="120">
|
|
- </el-table-column>
|
|
|
|
|
|
+ </el-table-column> -->
|
|
<el-table-column prop="spec" label="规格"> </el-table-column>
|
|
<el-table-column prop="spec" label="规格"> </el-table-column>
|
|
<el-table-column prop="mol" label="型号"> </el-table-column>
|
|
<el-table-column prop="mol" label="型号"> </el-table-column>
|
|
<el-table-column prop="matl" label="材质"> </el-table-column>
|
|
<el-table-column prop="matl" label="材质"> </el-table-column>
|
|
@@ -443,6 +458,7 @@ import {
|
|
QuerySplerDrugList,
|
|
QuerySplerDrugList,
|
|
DrugMatch,
|
|
DrugMatch,
|
|
CancMatch,
|
|
CancMatch,
|
|
|
|
+ selectSpdList
|
|
} from "@/api/consumCataManage-sup/index";
|
|
} from "@/api/consumCataManage-sup/index";
|
|
import rulesR from "@/utils/rules";
|
|
import rulesR from "@/utils/rules";
|
|
import ylUpload from "@/components/yl-upload";
|
|
import ylUpload from "@/components/yl-upload";
|
|
@@ -455,11 +471,11 @@ export default {
|
|
return {
|
|
return {
|
|
activeName: "grp",
|
|
activeName: "grp",
|
|
rulesR,
|
|
rulesR,
|
|
- hospId: null,
|
|
|
|
|
|
+ spdId: null,
|
|
data: [],
|
|
data: [],
|
|
defaultProps: {
|
|
defaultProps: {
|
|
children: "children",
|
|
children: "children",
|
|
- label: "hospName",
|
|
|
|
|
|
+ label: "spdName",
|
|
},
|
|
},
|
|
listQuery: {
|
|
listQuery: {
|
|
current: 1,
|
|
current: 1,
|
|
@@ -504,6 +520,7 @@ export default {
|
|
{value:"A",name:"待审核"},
|
|
{value:"A",name:"待审核"},
|
|
{value:"B",name:"审核中"},
|
|
{value:"B",name:"审核中"},
|
|
{value:"C",name:"审核通过"},
|
|
{value:"C",name:"审核通过"},
|
|
|
|
+ {value:"R",name:"驳回"},
|
|
],
|
|
],
|
|
dialogPrice: false,
|
|
dialogPrice: false,
|
|
dialogDui: false,
|
|
dialogDui: false,
|
|
@@ -604,19 +621,21 @@ export default {
|
|
totalC: false,
|
|
totalC: false,
|
|
addLoading: false,
|
|
addLoading: false,
|
|
insertMcsList: [],
|
|
insertMcsList: [],
|
|
|
|
+ // tree
|
|
|
|
+ activeNametree:"org",
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- // tabClick(tab){
|
|
|
|
- // if(tab.label == "按机构"){
|
|
|
|
- // this.getData();
|
|
|
|
- // this.defaultProps.label = 'hospName'
|
|
|
|
- // }else if(tab.label == "按分类"){
|
|
|
|
- // // this.getData4();
|
|
|
|
- // // this.defaultProps.label = 'orgGrpName'
|
|
|
|
- // // this.listQuery.type = 'grp';
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
|
|
+ tabClick(tab){
|
|
|
|
+ if(tab.label == "按机构"){
|
|
|
|
+ this.defaultProps.label = 'hospName'
|
|
|
|
+ }
|
|
|
|
+ // else if(tab.label == "按分类"){
|
|
|
|
+ // // this.getData4();
|
|
|
|
+ // // this.defaultProps.label = 'orgGrpName'
|
|
|
|
+ // // this.listQuery.type = 'grp';
|
|
|
|
+ // }
|
|
|
|
+ },
|
|
// 上传文件
|
|
// 上传文件
|
|
getUpload(id) {
|
|
getUpload(id) {
|
|
this.temp.fileId = id;
|
|
this.temp.fileId = id;
|
|
@@ -641,29 +660,28 @@ export default {
|
|
return result;
|
|
return result;
|
|
},
|
|
},
|
|
// 搜索获取医院药品列表
|
|
// 搜索获取医院药品列表
|
|
- getHospConsum(type) {
|
|
|
|
- if (type == "search") {
|
|
|
|
- this.listQuery.current = 1;
|
|
|
|
- }
|
|
|
|
- this.listLoading = true;
|
|
|
|
- // this.listQuery.hospId = this.hospId;
|
|
|
|
- selectSplerMcsList(this.listQuery)
|
|
|
|
- .then((res) => {
|
|
|
|
- this.list = res.data.records;
|
|
|
|
- this.total = res.data.total;
|
|
|
|
- this.listLoading = false;
|
|
|
|
- })
|
|
|
|
- .catch((err) => {
|
|
|
|
- this.listLoading = false;
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
|
|
+ // getHospConsum(type) {
|
|
|
|
+ // if (type == "search") {
|
|
|
|
+ // this.listQuery.current = 1;
|
|
|
|
+ // }
|
|
|
|
+ // this.listLoading = true;
|
|
|
|
+ // selectSplerMcsList(this.listQuery)
|
|
|
|
+ // .then((res) => {
|
|
|
|
+ // this.list = res.data.records;
|
|
|
|
+ // this.total = res.data.total;
|
|
|
|
+ // this.listLoading = false;
|
|
|
|
+ // })
|
|
|
|
+ // .catch((err) => {
|
|
|
|
+ // this.listLoading = false;
|
|
|
|
+ // });
|
|
|
|
+ // },
|
|
// 获取新增目录弹框数据
|
|
// 获取新增目录弹框数据
|
|
getdialog(type) {
|
|
getdialog(type) {
|
|
if (type == "search") {
|
|
if (type == "search") {
|
|
this.listQueryadd.current = 1;
|
|
this.listQueryadd.current = 1;
|
|
}
|
|
}
|
|
this.listdialogLoading = true;
|
|
this.listdialogLoading = true;
|
|
- // this.listQuery.hospId = this.hospId;
|
|
|
|
|
|
+ // this.listQuery.spdId = this.spdId;
|
|
selectMcsList(this.listQueryadd)
|
|
selectMcsList(this.listQueryadd)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
this.consumableData = res.data.records;
|
|
this.consumableData = res.data.records;
|
|
@@ -676,9 +694,11 @@ export default {
|
|
},
|
|
},
|
|
// 点击获取医院药品列表
|
|
// 点击获取医院药品列表
|
|
handleNodeClick(data) {
|
|
handleNodeClick(data) {
|
|
|
|
+ console.log(data,"data")
|
|
this.listLoading = true;
|
|
this.listLoading = true;
|
|
- this.hospId = data.hospId;
|
|
|
|
- selectSplerMcsList({ hospId: data.hospId })
|
|
|
|
|
|
+ this.spdId = data.spdId;
|
|
|
|
+ this.listQuery.spdId = this.spdId;
|
|
|
|
+ selectSplerMcsList(this.listQuery)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
this.list = res.data.records;
|
|
this.list = res.data.records;
|
|
this.total = res.data.total;
|
|
this.total = res.data.total;
|
|
@@ -690,19 +710,20 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 获取医院列表
|
|
// 获取医院列表
|
|
- // getData(type) {
|
|
|
|
- // this.data = [];
|
|
|
|
- // this.listLoading = true;
|
|
|
|
- // QueryHospList()
|
|
|
|
- // .then(res => {
|
|
|
|
- // this.listQuery.hospId = res.data[0].hospId;
|
|
|
|
- // this.data = res.data
|
|
|
|
- // this.listLoading = false;
|
|
|
|
- // })
|
|
|
|
- // .catch(err => {
|
|
|
|
- // this.listLoading = false;
|
|
|
|
- // });
|
|
|
|
- // },
|
|
|
|
|
|
+ getData(type) {
|
|
|
|
+ this.data = [];
|
|
|
|
+ this.listLoading = true;
|
|
|
|
+ selectSpdList()
|
|
|
|
+ .then(res => {
|
|
|
|
+ this.listQuery.spdId = res.data[0].spdId;
|
|
|
|
+ this.data = res.data
|
|
|
|
+ console.log(this.data,"dadad")
|
|
|
|
+ this.listLoading = false;
|
|
|
|
+ })
|
|
|
|
+ .catch(err => {
|
|
|
|
+ this.listLoading = false;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
|
|
reset(type) {
|
|
reset(type) {
|
|
if (type === "consumableData") {
|
|
if (type === "consumableData") {
|
|
@@ -821,7 +842,7 @@ export default {
|
|
pricInit: this.temp.pricInit,
|
|
pricInit: this.temp.pricInit,
|
|
pricCurr: this.temp.pricCurr,
|
|
pricCurr: this.temp.pricCurr,
|
|
appyRea: this.temp.appyRea,
|
|
appyRea: this.temp.appyRea,
|
|
- hospId: this.hospId,
|
|
|
|
|
|
+ spdId: this.spdId,
|
|
fileId: this.temp.fileId,
|
|
fileId: this.temp.fileId,
|
|
};
|
|
};
|
|
PricChg(data)
|
|
PricChg(data)
|
|
@@ -850,7 +871,7 @@ export default {
|
|
// this.consumableData = [];
|
|
// this.consumableData = [];
|
|
// this.consumableData.push(row);
|
|
// this.consumableData.push(row);
|
|
// this.supLoading = true;
|
|
// this.supLoading = true;
|
|
- // QuerySplerDrugList({ hospId: row.hospId })
|
|
|
|
|
|
+ // QuerySplerDrugList({ spdId: row.spdId })
|
|
// .then((res) => {
|
|
// .then((res) => {
|
|
// this.form.splerData = res.data.records;
|
|
// this.form.splerData = res.data.records;
|
|
// this.total = res.data.total;
|
|
// this.total = res.data.total;
|
|
@@ -863,7 +884,7 @@ export default {
|
|
// 对码操作
|
|
// 对码操作
|
|
handleClick(item, index) {
|
|
handleClick(item, index) {
|
|
let DrugMatchObj = {
|
|
let DrugMatchObj = {
|
|
- hospId: this.hospId,
|
|
|
|
|
|
+ spdId: this.spdId,
|
|
drugListId: this.consumableData[0].drugListId,
|
|
drugListId: this.consumableData[0].drugListId,
|
|
splerDrugListId: item.splerDrugListId,
|
|
splerDrugListId: item.splerDrugListId,
|
|
convrat: item.convrat,
|
|
convrat: item.convrat,
|
|
@@ -894,7 +915,7 @@ export default {
|
|
type: "warning",
|
|
type: "warning",
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- CancMatch({ hospId: this.hospId, drugListId: row.drugListId }).then((res) => {
|
|
|
|
|
|
+ CancMatch({ spdId: this.spdId, drugListId: row.drugListId }).then((res) => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
this.getHospConsum();
|
|
this.getHospConsum();
|
|
this.$message({
|
|
this.$message({
|
|
@@ -909,7 +930,7 @@ export default {
|
|
//搜索供应商列表
|
|
//搜索供应商列表
|
|
searchSup() {
|
|
searchSup() {
|
|
this.supLoading = true;
|
|
this.supLoading = true;
|
|
- this.supQuery.hospId = this.hospId;
|
|
|
|
|
|
+ this.supQuery.spdId = this.spdId;
|
|
QuerySplerDrugList(this.supQuery)
|
|
QuerySplerDrugList(this.supQuery)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
this.form.splerData = res.data.records;
|
|
this.form.splerData = res.data.records;
|
|
@@ -922,7 +943,8 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- this.getHospConsum();
|
|
|
|
|
|
+ this.getData()
|
|
|
|
+ // this.getHospConsum();
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|