患者信息,处方信息下载,首次登录选择当前部门仓库问题

20231126-yw
anthonywj 2 years ago
parent 3dd3db0524
commit 42e8475e8e

@ -16,3 +16,14 @@ export function detail(query) {
params: query params: query
}); });
} }
export function downloadPrescribe(query) {
return axios({
url: "/udiwms/basic/sk/prescribe/download",
method: "post",
data: query
});
}

@ -8,3 +8,14 @@ export function page(query) {
params: query params: query
}); });
} }
export function downloadSick(query) {
return axios({
url: "/udiwms/basic/sk/sicker/download",
method: "post",
data: query
});
}

@ -370,7 +370,7 @@
.el-form-item { .el-form-item {
margin-right: 10px; margin-right: 10px;
margin-bottom: 1px; margin-bottom: 1px;
margin-top: -5px; margin-top: 1px;
} }

@ -13,7 +13,9 @@
style="margin: 10px;color: #2d8cf0;font-size: 14px;">部门&nbsp:&nbsp{{ deptName }}</span> style="margin: 10px;color: #2d8cf0;font-size: 14px;">部门&nbsp:&nbsp{{ deptName }}</span>
<span <span
style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;">仓库&nbsp:&nbsp{{ inv }}</span> style="margin-right: 18px;margin-left:8px;color: #2d8cf0;font-size: 14px;">仓库&nbsp:&nbsp{{ inv }}</span>
<span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{ this.companyName }}</span> <span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp{{
this.companyName
}}</span>
<span <span
style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px">({{ style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px">({{
this.userName this.userName
@ -446,6 +448,11 @@ export default {
}; };
this.getInputQuery(); this.getInputQuery();
this.getDeptList(); this.getDeptList();
if (this.userInfo.locInvCode == null) {
this.selInvVisible = true;
}
//this.getInvList() //this.getInvList()
} }

@ -1,5 +1,5 @@
import {page} from "@/api/basic/sicker/skPersonApi"; import {downloadSick, page} from "@/api/basic/sicker/skPersonApi";
import {detail, page as prescribePage} from "@/api/basic/sicker/prescribeApi"; import {detail, downloadPrescribe, page as prescribePage} from "@/api/basic/sicker/prescribeApi";
let query = { let query = {
name: "", name: "",
@ -19,6 +19,8 @@ export default {
data() { data() {
return { return {
fullscreenLoading: false, fullscreenLoading: false,
dlSickLoading: false,
updatePrecribeLoading: false,
showSearch: true, showSearch: true,
filterQuery: {...query}, filterQuery: {...query},
editType: "", editType: "",
@ -104,6 +106,34 @@ export default {
this.fullscreenLoading = false this.fullscreenLoading = false
this.$message.error("数据加载失败") this.$message.error("数据加载失败")
}) })
},
onDownload() {
this.dlSickLoading = true;
downloadSick({thidSys: "thirdId"}).then(res => {
this.dlSickLoading = false
if (res.code != 20000) {
this.$message.error(res.message)
return
}
}).catch(() => {
this.dlSickLoading = false
this.$message.error("数据加载失败")
})
},
updatePrecribe() {
this.updatePrecribeLoading = true;
downloadPrescribe({sickCode: this.sickerInfo.code}).then(res => {
this.updatePrecribeLoading = false
if (res.code != 20000) {
this.$message.error(res.message)
return
} }
}).catch(() => {
this.updatePrecribeLoading = false
this.$message.error("数据加载失败")
})
},
} }
} }

@ -22,6 +22,8 @@
</el-form> </el-form>
<el-button-group class="top-right-btn"> <el-button-group class="top-right-btn">
<el-button type="primary" icon="el-icon-refresh" @click="showSearch = !showSearch">显示/隐藏搜索栏</el-button> <el-button type="primary" icon="el-icon-refresh" @click="showSearch = !showSearch">显示/隐藏搜索栏</el-button>
<el-button type="primary" icon="el-icon-download" :loading="dlSickLoading" @click="onDownload">
</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="onSubmit"></el-button> <el-button type="primary" icon="el-icon-search" @click="onSubmit"></el-button>
</el-button-group> </el-button-group>
@ -58,6 +60,11 @@
<template slot="header"> <template slot="header">
{{ '处方信息' + (sickerInfo ? '--' + sickerInfo.name + `(${sickerInfo.code})` : "") }} {{ '处方信息' + (sickerInfo ? '--' + sickerInfo.name + `(${sickerInfo.code})` : "") }}
</template> </template>
<el-button-group class="top-right-btn" style="margin-top: -10px">
<el-button type="primary" icon="el-icon-download" :loading="dlSickLoading" @click="updatePrecribe">
</el-button>
</el-button-group>
<el-table v-loading="prescribeLoading" :data="prescribeList" style="width: 100%"> <el-table v-loading="prescribeLoading" :data="prescribeList" style="width: 100%">
<el-table-column label="序号" type="index" width="50"/> <el-table-column label="序号" type="index" width="50"/>
<el-table-column label="处方编号" prop="code" width="120"/> <el-table-column label="处方编号" prop="code" width="120"/>

Loading…
Cancel
Save