diff --git a/src/api/udchs/common.js b/src/api/udchs/common.js new file mode 100644 index 0000000..729f048 --- /dev/null +++ b/src/api/udchs/common.js @@ -0,0 +1,31 @@ +import request from "@/utils/request"; +import { Loading } from 'element-ui'; +export function GetFile(path,fileName){ + const loading = Loading.service({ + lock: true, + text: 'Loading', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); + request({ + method:"get", + url:path, + responseType: "blob" + }).then(res=>{ + download(res,fileName); + loading.close(); + }).catch((error)=>{console.log(error)}) +} + +function download(data,fileName){ + if(!data) return; + console.log(fileName); + let url=window.URL.createObjectURL(new Blob([data])); + let link = document.createElement("a"); + link.style.display = "none"; + link.href=url; + link.setAttribute('download',fileName); + document.body.appendChild(link); + link.click(); + link.remove(); +} diff --git a/src/api/udchs/udchsYbHcfl.js b/src/api/udchs/udchsYbHcfl.js new file mode 100644 index 0000000..c63ab9c --- /dev/null +++ b/src/api/udchs/udchsYbHcfl.js @@ -0,0 +1,11 @@ +import request from "@/utils/request"; +import {GetFile} from "./common"; + +export function GetList(param){ + return request({ + url: "/udchs/ybHcfl/list", + method: "post", + data: param + }); +} + diff --git a/src/api/udchs/udchsYbHcxx.js b/src/api/udchs/udchsYbHcxx.js new file mode 100644 index 0000000..06fd61f --- /dev/null +++ b/src/api/udchs/udchsYbHcxx.js @@ -0,0 +1,11 @@ +import request from "@/utils/request"; +import {GetFile} from "./common"; + +export function GetList(param){ + return request({ + url: "/udchs/ybHcxx/list", + method: "post", + data: param + }); +} + diff --git a/src/api/udchs/udchsYbHcxxGg.js b/src/api/udchs/udchsYbHcxxGg.js new file mode 100644 index 0000000..1c78c82 --- /dev/null +++ b/src/api/udchs/udchsYbHcxxGg.js @@ -0,0 +1,10 @@ +import request from "@/utils/request"; +import {GetFile} from "./common"; + +export function GetList(param){ + return request({ + url: "/udchs/ybHcxxGg/list", + method: "post", + data: param + }); +} diff --git a/src/router/index.js b/src/router/index.js index 01ae4bf..894dedb 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -36,7 +36,10 @@ import udplatLog from '../views/udplat/udplatLog'; import udplatGoodsMatch from '../views/udplat/udplatGoodsMatch'; import udiDataUpdate from "@/views/UDIDownload/udiDataUpdate"; - +//国家医保数据 +import udchsYbHcfl from '../views/udchs/udchsYbHcfl'; +import udchsYbHcxx from '../views/udchs/udchsYbHcxx'; +import udchsYbHcxxGg from '../views/udchs/udchsYbHcxxGg'; // import UdiInfoSearch from '../views/external/UdiInfoSearch'; @@ -267,7 +270,7 @@ export const asyncRouterMap = [ { path: "/UdplatDownload", component: nested, - redirect: "/UDIDownload/udplatDistributor", + redirect: "/UdplatDownload/udplatDistributor", name: "阳光平台", noDropdown: false, hidden: false, @@ -280,7 +283,7 @@ export const asyncRouterMap = [ path: "udplatDistributor", component: udplatDistributor, meta: { - authRule: ["UDIDownload/udplatDistributor"] + authRule: ["UdplatDownload/udplatDistributor"] } }, { @@ -288,7 +291,7 @@ export const asyncRouterMap = [ path: "udplatHospital", component: udplatHospital, meta: { - authRule: ["UDIDownload/udplatHospital"] + authRule: ["UdplatDownload/udplatHospital"] } }, { @@ -296,7 +299,7 @@ export const asyncRouterMap = [ path: "udplatManufacture", component: udplatManufacture, meta: { - authRule: ["UDIDownload/udplatManufacture"] + authRule: ["UdplatDownload/udplatManufacture"] } }, { @@ -304,7 +307,7 @@ export const asyncRouterMap = [ path: "udplatGoods", component: udplatGoods, meta: { - authRule: ["UDIDownload/udplatGoods"] + authRule: ["UdplatDownload/udplatGoods"] } }, { @@ -312,7 +315,7 @@ export const asyncRouterMap = [ path: "udplatLog", component: udplatLog, meta: { - authRule: ["UDIDownload/udplatLog"] + authRule: ["UdplatDownload/udplatLog"] } }, { @@ -320,7 +323,44 @@ export const asyncRouterMap = [ path: "udplatGoodsMatch", component: udplatGoodsMatch, meta: { - authRule: ["UDIDownload/udplatGoodsMatch"] + authRule: ["UdplatDownload/udplatGoodsMatch"] + } + } + ] + }, + { + path: "/UdchsDownload", + component: nested, + redirect: "/UdchsDownload/udchsYbHcfl", + name: "国家医保信息", + noDropdown: false, + hidden: false, + meta: { + authRule: ["UdchsDownload"] + }, + children: [ + { + name: "耗材分类目录", + path: "udchsYbHcfl", + component: udchsYbHcfl, + meta: { + authRule: ["UdchsDownload/udchsYbHcfl"] + } + }, + { + name: "医用耗材", + path: "udchsYbHcxx", + component: udchsYbHcxx, + meta: { + authRule: ["UdchsDownload/udchsYbHcxx"] + } + }, + { + name: "医用耗材规格", + path: "udchsYbHcxxGg", + component: udchsYbHcxxGg, + meta: { + authRule: ["UdchsDownload/udchsYbHcxxGg"] } } ] diff --git a/src/views/udchs/minixs/commMinixs.js b/src/views/udchs/minixs/commMinixs.js new file mode 100644 index 0000000..474c2f5 --- /dev/null +++ b/src/views/udchs/minixs/commMinixs.js @@ -0,0 +1,73 @@ +export default { + data(){ + return{ + dateRange: [], + loading: false, + list: [], + total: 0, + queryParams: { + page: 1, + limit: 10, + specificationCode: "", + codeShow: "" + }, + pickerOptions: { + shortcuts: [ + { + text: "最近一周", + onClick(picker) { + const end = new Date(); + const start = new Date(); + start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); + picker.$emit("pick", [start, end]); + }, + }, + { + text: "最近一个月", + onClick(picker) { + const end = new Date(); + const start = new Date(); + start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); + picker.$emit("pick", [start, end]); + }, + }, + { + text: "最近三个月", + onClick(picker) { + const end = new Date(); + const start = new Date(); + start.setTime(start.getTime() - 3600 * 1000 * 24 * 90); + picker.$emit("pick", [start, end]); + }, + }, + ], + }, + } + }, + created() { + this.getList(); + }, + methods:{ + + handleCurrentChange(val) { + this.queryParams.page = val; + this.getList(); + }, + onReset() { + this.$router.push({ + path: "", + }); + this.queryParams = { + page: 1, + limit: 10, + name: "" + }; + this.dateRange = []; + this.getList(); + }, + onSubmit() { + this.queryParams.page = 1; + this.getList(); + }, + } +} diff --git a/src/views/udchs/udchsYbHcfl.vue b/src/views/udchs/udchsYbHcfl.vue new file mode 100644 index 0000000..1dd63e2 --- /dev/null +++ b/src/views/udchs/udchsYbHcfl.vue @@ -0,0 +1,89 @@ + + + + + diff --git a/src/views/udchs/udchsYbHcxx.vue b/src/views/udchs/udchsYbHcxx.vue new file mode 100644 index 0000000..d90aaad --- /dev/null +++ b/src/views/udchs/udchsYbHcxx.vue @@ -0,0 +1,81 @@ + + + + + diff --git a/src/views/udchs/udchsYbHcxxGg.vue b/src/views/udchs/udchsYbHcxxGg.vue new file mode 100644 index 0000000..5b191d9 --- /dev/null +++ b/src/views/udchs/udchsYbHcxxGg.vue @@ -0,0 +1,86 @@ + + + + +