master
李劲龙 1 year ago
parent 20f1b5ed91
commit b2c1855816

@ -48,4 +48,14 @@ export function entrustedEnterexport(query) {
responseType: 'blob' responseType: 'blob'
}); });
}
//条件导出原料药数据
export function vRdgYpwhGxwzexportYly(query) {
return request({
url: "/pharmaceuticals/vRdgYpwhGxwz/exportYly",
method: "GET",
params: query,
responseType: 'blob'
});
} }

@ -81,7 +81,7 @@ export const constantRoutes = [
name: "yaopinbapz", name: "yaopinbapz",
icon: require("@/assets/images/tree4.svg"), icon: require("@/assets/images/tree4.svg"),
component: () => import("@/views/productsMsg/drugArchives/yaopinbapz.vue"), component: () => import("@/views/productsMsg/drugArchives/yaopinbapz.vue"),
meta: { title: "注册备案品种", keepAlive: true }, meta: { title: "注册备案品种", keepAlive: true,},
}, { }, {
path: "/drugArchives/yaopinstscpz", path: "/drugArchives/yaopinstscpz",
name: "yaopinstscpz", name: "yaopinstscpz",

@ -203,7 +203,7 @@
</template> </template>
<script> <script>
import { download, dcyp } from "../../../api/archives/updata"; import { download, vRdgYpwhGxwzexportYly } from "../../../api/archives/updata";
import { Notification, MessageBox, Message, Loading, TabPane } from "element-ui"; import { Notification, MessageBox, Message, Loading, TabPane } from "element-ui";
// import MapCars from "@/views/components/MapCars.vue"; // import MapCars from "@/views/components/MapCars.vue";
@ -221,7 +221,7 @@ export default {
tableData: [], tableData: [],
total: 0, total: 0,
form1: { form1: {
qymc:"", qymc: "",
pzName: "", // pzName: "", //
jx: "", // jx: "", //
cpSource: "", // cpSource: "", //
@ -317,7 +317,7 @@ export default {
spinner: "el-icon-loading", spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0.7)", background: "rgba(0, 0, 0, 0.7)",
}); });
dcyp(this.form1).then((res) => { vRdgYpwhGxwzexportYly(this.form1).then((res) => {
const blob = new Blob([res], { type: res.type }); const blob = new Blob([res], { type: res.type });
const link = document.createElement("a"); const link = document.createElement("a");
link.href = window.URL.createObjectURL(blob); link.href = window.URL.createObjectURL(blob);
@ -347,8 +347,9 @@ export default {
// //
exportList() { exportList() {
this.src = `确定导出${this.form1.pzName ? `产品名称为${this.form1.pzName}` : "" this.src = `确定导出${this.form1.pzName ? `产品名称为${this.form1.pzName}` : ""
}${this.form1.ypfl ? `药品分类为${this.form1.ypfl}` : ""}${this.form1.cpSource ? `批准文号为${this.form1.cpSource}` : "" }${this.form1.ypfl ? `产品来源为${this.form1.cpSource}` : ""}${this.form1.cpSource ? `登记号为${this.form1.djh}` : ""
}${this.form1.djh ? `生产单位为${this.form1.djh}` : ""}${this.form1.jx ? `剂型为${this.form1.jx}` : "" }${this.form1.djh ? `企业名称${this.form1.qymc}` : ""}${this.form1.jx ? `生产许可证
${this.form1.scxkz}` : ""
}数据吗?`; }数据吗?`;
this.showCK = true; this.showCK = true;
}, },
@ -391,7 +392,7 @@ export default {
reset(type) { reset(type) {
this.form1 = { this.form1 = {
qymc:"", qymc: "",
// //
pzName: "", pzName: "",
// //

Loading…
Cancel
Save