|
|
|
@ -213,19 +213,6 @@ export default {
|
|
|
|
|
this.chinaCosmetics(1);
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// convertFileStreamToBinary(fileStream) {
|
|
|
|
|
// return new Promise((resolve, reject) => {
|
|
|
|
|
// const reader = new FileReader();
|
|
|
|
|
// reader.onload = function (event) {
|
|
|
|
|
// const binaryData = event.target.result;
|
|
|
|
|
// resolve(binaryData);
|
|
|
|
|
// };
|
|
|
|
|
// reader.onerror = function (event) {
|
|
|
|
|
// reject(event.target.error);
|
|
|
|
|
// };
|
|
|
|
|
// reader.readAsArrayBuffer(fileStream);
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
openDC() {
|
|
|
|
|
this.showCK = false;
|
|
|
|
|
this.loadA = Loading.service({
|
|
|
|
@ -234,16 +221,21 @@ export default {
|
|
|
|
|
background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
|
});
|
|
|
|
|
dcyp(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");
|
|
|
|
|
link.href = window.URL.createObjectURL(blob);
|
|
|
|
|
link.style.display = 'none'
|
|
|
|
|
link.download = "药品"+ '.xlsx';
|
|
|
|
|
link.style.display = "none";
|
|
|
|
|
link.download = "药品" + ".xlsx";
|
|
|
|
|
link.click();
|
|
|
|
|
this.loadA.close();
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "导出成功",
|
|
|
|
|
}).catch((err) => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "info",
|
|
|
|
|
message: "导出失败",
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
@ -300,8 +292,8 @@ export default {
|
|
|
|
|
//重置
|
|
|
|
|
reset() {
|
|
|
|
|
this.form1 = {
|
|
|
|
|
//产品名称
|
|
|
|
|
cpmc: "",
|
|
|
|
|
//产品名称
|
|
|
|
|
cpmc: "",
|
|
|
|
|
//剂型
|
|
|
|
|
jx: "",
|
|
|
|
|
//批准文号
|
|
|
|
|