1.修改导出文件格式为UDI

ywj_dev
x_z 2 years ago
parent 42550fa7cc
commit 6370603e99

@ -1,265 +1,261 @@
<template> <template>
<div> <div>
<el-card class="el-card"> <el-card class="el-card">
<el-form :model="query" class="query-form" size="mini" label-width="100px" v-show="showSearch"> <el-form :model="query" class="query-form" size="mini" label-width="100px" v-show="showSearch">
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="记录ID:"> <el-form-item label="记录ID:">
<el-input v-model="filterQuery.genKey" style="width: 90%" placeholder="请输入记录ID" clearable></el-input> <el-input v-model="filterQuery.genKey" style="width: 90%" placeholder="请输入记录ID" clearable></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<div class="top-right-btn"> <div class="top-right-btn">
<el-button-group style="display:flex;"> <el-button-group style="display:flex;">
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button> <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</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="getList"></el-button> <el-button type="primary" icon="el-icon-search" @click="getList"></el-button>
<el-button type="primary" icon="el-icon-upload2" @click="exportExcel"></el-button> <el-button type="primary" icon="el-icon-upload2" @click="exportExcel"></el-button>
</el-button-group> </el-button-group>
</div> </div>
<el-divider style="margin: 15px"></el-divider> <el-divider style="margin: 15px"></el-divider>
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row
<el-table-column label="序号" type="index"></el-table-column> @selection-change="handleSelectionChange">
<el-table-column label="记录ID" prop="genKey" show-overflow-tooltip></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="更新日期" prop="updateTime" show-overflow-tooltip></el-table-column> <el-table-column label="记录ID" prop="genKey" show-overflow-tooltip></el-table-column>
<el-table-column label="状态" prop="status" show-overflow-tooltip> <el-table-column label="更新日期" prop="updateTime" show-overflow-tooltip></el-table-column>
<template slot-scope="scope"> <el-table-column label="状态" prop="status" show-overflow-tooltip>
<el-tag :type="statusFilterType(scope.row.status)">{{ status[scope.row.status] }}</el-tag > <template slot-scope="scope">
</template> <el-tag :type="statusFilterType(scope.row.status)">{{ status[scope.row.status] }}</el-tag>
</el-table-column> </template>
<el-table-column label="下载次数" prop="dlCount" show-overflow-tooltip></el-table-column> </el-table-column>
<el-table-column label="下载信息" prop="remark" show-overflow-tooltip></el-table-column> <el-table-column label="下载次数" prop="dlCount" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" width="120"> <el-table-column label="下载信息" prop="remark" show-overflow-tooltip></el-table-column>
<template slot-scope="scope"> <el-table-column label="操作" width="120">
<el-button type="text" size="small" @click.native.stop="downloadExcel(scope.row)">下载</el-button> <template slot-scope="scope">
<el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row.id)">删除</el-button> <el-button type="text" size="small" @click.native.stop="downloadExcel(scope.row)">下载</el-button>
</template> <el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row.id)">删除</el-button>
</el-table-column> </template>
</el-table> </el-table-column>
</el-table>
<el-dialog <el-dialog
title="导出往来单位信息" title="导出往来单位信息"
:visible.sync="corpImportDetailVisible" :visible.sync="corpImportDetailVisible"
width="80%" width="80%"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
v-if="corpImportDetailVisible" v-if="corpImportDetailVisible"
> >
<corpSelect :selectType="selectType" v-on:cancelDialog="cancelDialog" <corpSelect :selectType="selectType" v-on:cancelDialog="cancelDialog"
></corpSelect> ></corpSelect>
</el-dialog> </el-dialog>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
:page.sync="filterQuery.page" :page.sync="filterQuery.page"
:limit.sync="filterQuery.limit" :limit.sync="filterQuery.limit"
@pagination="handleCurrentChange" @pagination="handleCurrentChange"
></pagination> ></pagination>
</el-card> </el-card>
</div> </div>
</template> </template>
<script> <script>
import {filterLog, deleteLog} from "@/api/basic/corpExport"; import {filterLog, deleteLog} from "@/api/basic/corpExport";
import corpSelect from "./corpSelect"; import corpSelect from "./corpSelect";
import axios from "axios"; import axios from "axios";
import {formatDate} from "@/utils/date"; import {formatDate} from "@/utils/date";
export default {
data() {
return {
showSearch: true,
filterQuery: {
genKey: null,
status: null,
fromType: null,
page: 1,
limit: 20,
type: 3,
thirdSysFk: null,
},
selectType: 0,
corpImportDetailVisible: false,
list: [],
detailList: [],
thirdSys: [],
thirdSysDetail: null,
total: 0,
editQuery: null,
fromStatus: {
0: "产品信息",
1: "库存信息",
2: "异常第三方上传"
},
status: {
0: "等待处理",
1: "正在处理",
2: "处理异常",
3: "处理完成"
},
uploadFileUrl: null,
uploadData: {
thirdSys: "thirdId",
},
};
},
methods: { export default {
onReset() { data() {
this.$router.push({ return {
path: "", showSearch: true,
}); filterQuery: {
this.filterQuery = { genKey: null,
fromType: null, status: null,
genKey: null, fromType: null,
status: null, page: 1,
page: 1, limit: 20,
type: 3, type: 3,
limit: 20, thirdSysFk: null,
thirdSysFk: null, },
}; selectType: 0,
this.getList(); corpImportDetailVisible: false,
}, list: [],
hideSearch() { detailList: [],
this.showSearch = !this.showSearch; thirdSys: [],
}, thirdSysDetail: null,
getList() { total: 0,
this.loading = true; editQuery: null,
filterLog(this.filterQuery) fromStatus: {
.then((response) => { 0: "产品信息",
this.loading = false; 1: "库存信息",
this.list = response.data.list || []; 2: "异常第三方上传"
this.total = response.data.total || 0; },
}) status: {
.catch(() => { 0: "等待处理",
this.loading = false; 1: "正在处理",
this.list = []; 2: "处理异常",
this.total = 0; 3: "处理完成"
}); },
}, uploadFileUrl: null,
uploadData: {
exportExcel() { thirdSys: "thirdId",
this.selectType = 0; },
this.corpImportDetailVisible = true; };
}, },
uploadSmp() {
this.selectType = 1;
this.corpImportDetailVisible = true;
},
downloadExcel(row) {
axios.get("./config.json").then(res => {
let baseUrl = res.data.BASE_URL;
let href = baseUrl + "/udiwms/corps/exportLog/download" +
"?genKey=" + row.genKey;
console.log("href = " + href);
let a = document.createElement("a");
var timestamp = formatDate(new Date(), "yyyyMMddhhmmss")
fetch(href)
.then((res) => res.blob())
.then((blob) => {
a.href = URL.createObjectURL(blob);
console.log(a.href);
a.download = "BaseCorp_" + timestamp + ".UpperIn";
document.body.appendChild(a);
a.click();
this.getList();
});
});
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
fromType: null,
genKey: null,
status: null,
page: 1,
type: 3,
limit: 20,
thirdSysFk: null,
};
this.getList();
},
hideSearch() {
this.showSearch = !this.showSearch;
},
getList() {
this.loading = true;
filterLog(this.filterQuery)
.then((response) => {
this.loading = false;
this.list = response.data.list || [];
this.total = response.data.total || 0;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
},
}, exportExcel() {
this.selectType = 0;
this.corpImportDetailVisible = true;
},
uploadSmp() {
this.selectType = 1;
this.corpImportDetailVisible = true;
},
downloadExcel(row) {
let href = process.env.VUE_APP_BASE_API + "/udiwms/corps/exportLog/download" +
"?genKey=" + row.genKey;
let a = document.createElement("a");
var timestamp = formatDate(new Date(), "yyyyMMddhhmmss")
fetch(href)
.then((res) => res.blob())
.then((blob) => {
a.href = URL.createObjectURL(blob);
console.log(a.href);
a.download = "BaseCorp_" + timestamp + ".udi";
document.body.appendChild(a);
a.click();
this.getList();
});
},
cancelDialog(val) { cancelDialog(val) {
this.corpImportDetailVisible = false; this.corpImportDetailVisible = false;
if (val) { if (val) {
this.getList(); this.getList();
} }
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.filterQuery.page = val.page; this.filterQuery.page = val.page;
this.getList(); this.getList();
}, },
deleteDialog(rowId) { deleteDialog(rowId) {
this.$confirm("此操作将删除该往来单位信息, 是否继续?", "提示", { this.$confirm("此操作将删除该往来单位信息, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
let dQuery = { let dQuery = {
id: rowId, id: rowId,
}; };
deleteLog(dQuery) deleteLog(dQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
if (response.code == 20000) { if (response.code == 20000) {
this.$message.success("删除成功"); this.$message.success("删除成功");
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
this.getList(); this.getList();
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
}); });
}) })
.catch(() => { .catch(() => {
}); });
}, },
handleChange(response, files, fileList) { handleChange(response, files, fileList) {
console.log(response); console.log(response);
if (response.code != 20000) { if (response.code != 20000) {
this.$message.error(response.message); this.$message.error(response.message);
} else { } else {
console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]); console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success("文件上传成功,请稍后刷新查看!"); this.$message.success("文件上传成功,请稍后刷新查看!");
} }
}, },
statusFilterType(status) { statusFilterType(status) {
const statusMap = { const statusMap = {
0: "warning", 0: "warning",
1: "warning", 1: "warning",
2: "danger", 2: "danger",
3: "success", 3: "success",
}; };
return statusMap[status]; return statusMap[status];
}, },
}, },
mounted() { mounted() {
}, },
components: {corpSelect}, components: {corpSelect},
created() { created() {
// this.getBasicThirdSys(); // this.getBasicThirdSys();
this.getList(); this.getList();
}, },
}; };
</script> </script>
<style> <style>
.itemTag { .itemTag {
float: left; float: left;
text-align: left; text-align: left;
margin-top: 10px; margin-top: 10px;
width: 100px; width: 100px;
} }
.text { .text {
font-size: 13px; font-size: 13px;
font-family: "Microsoft YaHei"; font-family: "Microsoft YaHei";
} }
.el-row { .el-row {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.el-col { .el-col {
border-radius: 4px; border-radius: 4px;
flex-wrap: wrap; flex-wrap: wrap;
} }
</style> </style>

@ -1,88 +1,89 @@
<template> <template>
<div> <div>
<el-card class="el-card"> <el-card class="el-card">
<el-form :model="query" label-width="100px" v-show="showSearch" size="mini"> <el-form :model="query" label-width="100px" v-show="showSearch" size="mini">
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="记录ID:"> <el-form-item label="记录ID:">
<el-input v-model="filterQuery.genKey" style="width: 90%" placeholder="请输入记录ID"></el-input> <el-input v-model="filterQuery.genKey" style="width: 90%" placeholder="请输入记录ID"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="处理状态:"> <el-form-item label="处理状态:">
<el-select v-model="filterQuery.status" style="width: 90%" placeholder="请选择处理状态"> <el-select v-model="filterQuery.status" style="width: 90%" placeholder="请选择处理状态">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="处理中" value="0"></el-option> <el-option label="处理中" value="0"></el-option>
<el-option label="已处理" value="1"></el-option> <el-option label="已处理" value="1"></el-option>
<el-option label="异常" value="2"></el-option> <el-option label="异常" value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<div class="top-right-btn"> <div class="top-right-btn">
<el-button-group style="display:flex;"> <el-button-group style="display:flex;">
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button> <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</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="getList"></el-button> <el-button type="primary" icon="el-icon-search" @click="getList"></el-button>
<el-upload <el-upload
:action="uploadFileUrl" :action="uploadFileUrl"
multiple multiple
:limit="1" :limit="1"
:data="uploadData" :data="uploadData"
:show-file-list="false" :show-file-list="false"
:on-success="handleChange" :on-success="handleChange"
:file-list="fileList" :file-list="fileList"
> >
<el-button icon="el-icon-upload2" type="primary">导入往来单位信息</el-button> <el-button icon="el-icon-upload2" type="primary">导入往来单位信息</el-button>
</el-upload> </el-upload>
</el-button-group> </el-button-group>
</div> </div>
<el-divider style="margin: 15px"></el-divider> <el-divider style="margin: 15px"></el-divider>
<el-table v-loading="loading" :data="list" style="width: 100%" @selection-change="handleSelectionChange" border highlight-current-row> <el-table v-loading="loading" :data="list" style="width: 100%" @selection-change="handleSelectionChange" border
<el-table-column label="序号" type="index"></el-table-column> highlight-current-row>
<el-table-column label="记录ID" prop="genKey" show-overflow-tooltip></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="来源" prop="fromType" show-overflow-tooltip></el-table-column> <el-table-column label="记录ID" prop="genKey" show-overflow-tooltip></el-table-column>
<el-table-column label="更新日期" prop="updateTime" show-overflow-tooltip></el-table-column> <el-table-column label="来源" prop="fromType" show-overflow-tooltip></el-table-column>
<el-table-column label="导入信息" prop="remark" show-overflow-tooltip></el-table-column> <el-table-column label="更新日期" prop="updateTime" show-overflow-tooltip></el-table-column>
<el-table-column label="状态" prop="status" show-overflow-tooltip> <el-table-column label="导入信息" prop="remark" show-overflow-tooltip></el-table-column>
<template slot-scope="scope"> <el-table-column label="状态" prop="status" show-overflow-tooltip>
<el-tag :type="statusFilterType(scope.row.status)">{{ status[scope.row.status] }}</el-tag> <template slot-scope="scope">
</template> <el-tag :type="statusFilterType(scope.row.status)">{{ status[scope.row.status] }}</el-tag>
</el-table-column> </template>
<!--<el-table-column label="操作" width="120">--> </el-table-column>
<!-- <template slot-scope="scope">--> <!--<el-table-column label="操作" width="120">-->
<!-- <el-button type="text" @click.native.stop="handleDetailClick(scope.row)">详情</el-button>--> <!-- <template slot-scope="scope">-->
<!-- <el-button type="text" @click.native.stop="deleteDialog(scope.row.id)"></el-button>--> <!-- <el-button type="text" @click.native.stop="handleDetailClick(scope.row)">详情</el-button>-->
<!-- </template>--> <!-- <el-button type="text" @click.native.stop="deleteDialog(scope.row.id)"></el-button>-->
<!--</el-table-column>--> <!-- </template>-->
</el-table> <!--</el-table-column>-->
</el-table>
<el-dialog <el-dialog
title="往来单位信息导入详情" title="往来单位信息导入详情"
:visible.sync="corpImportDetailVisible" :visible.sync="corpImportDetailVisible"
width="80%" width="80%"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
v-if="corpImportDetailVisible" v-if="corpImportDetailVisible"
> >
<corpImportDetail :currentRow="currentRow" :closeDialog="corpImportDetail"></corpImportDetail> <corpImportDetail :currentRow="currentRow" :closeDialog="corpImportDetail"></corpImportDetail>
</el-dialog> </el-dialog>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
:page.sync="filterQuery.page" :page.sync="filterQuery.page"
:limit.sync="filterQuery.limit" :limit.sync="filterQuery.limit"
@pagination="handleCurrentChange" @pagination="handleCurrentChange"
></pagination> ></pagination>
</el-card> </el-card>
</div> </div>
</template> </template>
<script> <script>
@ -92,189 +93,187 @@ import {getBasicThirdSys} from "@/api/basic/basicThirdSys";
import corpImportDetail from "./corpImportDetail"; import corpImportDetail from "./corpImportDetail";
export default { export default {
data() { data() {
return { return {
showSearch: true, showSearch: true,
filterQuery: { filterQuery: {
genKey: null, genKey: null,
status: null, status: null,
fromType: null, fromType: null,
page: 1, page: 1,
limit: 20, limit: 20,
thirdSysFk: null, thirdSysFk: null,
}, },
corpImportDetailVisible: false, corpImportDetailVisible: false,
checked: false, checked: false,
list: [], list: [],
detailList: [], detailList: [],
thirdSys: [], thirdSys: [],
thirdSysDetail: null, thirdSysDetail: null,
total: 0, total: 0,
currentRow: null, currentRow: null,
status: { status: {
0: "等待处理", 0: "等待处理",
1: "正在处理", 1: "正在处理",
2: "处理异常", 2: "处理异常",
3: "处理完成" 3: "处理完成"
}, },
uploadFileUrl: null, uploadFileUrl: null,
uploadData: { uploadData: {
thirdSys: "thirdId", thirdSys: "thirdId",
},
templateDlUrl: null,
};
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
fromType: null,
genKey: null,
status: null,
page: 1,
limit: 20,
thirdSysFk: null,
};
this.getList();
},
hideSearch() {
this.showSearch = !this.showSearch;
}, },
getList() { templateDlUrl: null,
this.loading = true; fileList: []
filterLog(this.filterQuery) };
.then((response) => { },
this.loading = false;
this.list = response.data.list || []; methods: {
this.total = response.data.total || 0; onReset() {
}) this.$router.push({
.catch(() => { path: "",
this.loading = false; });
this.list = []; this.filterQuery = {
this.total = 0; fromType: null,
}); genKey: null,
}, status: null,
page: 1,
limit: 20,
thirdSysFk: null,
};
this.getList();
},
hideSearch() {
this.showSearch = !this.showSearch;
},
getList() {
this.loading = true;
filterLog(this.filterQuery)
.then((response) => {
this.loading = false;
this.list = response.data.list || [];
this.total = response.data.total || 0;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
},
handleDetailClick(row) { handleDetailClick(row) {
this.currentRow = row; this.currentRow = row;
console.log(this.currentRow.genKey) console.log(this.currentRow.genKey)
this.corpImportDetailVisible = true; this.corpImportDetailVisible = true;
}, },
cancelDialog() { cancelDialog() {
this.corpImportDetailVisible = false; this.corpImportDetailVisible = false;
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.filterQuery.page = val; this.filterQuery.page = val;
this.getList(); this.getList();
}, },
deleteDialog(rowId) { deleteDialog(rowId) {
this.$confirm("此操作将删除该往来单位信息, 是否继续?", "提示", { this.$confirm("此操作将删除该往来单位信息, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
})
.then(() => {
let dQuery = {
id: rowId,
};
deleteLog(dQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("删除成功");
} else {
this.$message.error(response.message);
}
this.getList();
}) })
.then(() => { .catch(() => {
let dQuery = { this.loading = false;
id: rowId,
};
deleteLog(dQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("删除成功");
} else {
this.$message.error(response.message);
}
this.getList();
})
.catch(() => {
this.loading = false;
});
})
.catch(() => {
});
},
getBasicThirdSys() {
let query = {
enabled: true,
};
getBasicThirdSys(query)
.then((response) => {
this.thirdSys = response.data.list || [];
// this.filterQuery.thirdSysFk = this.thirdSys[0].thirdId;
this.getList();
})
.catch(() => {
this.loading = false;
this.list = [];
});
axios.get("./config.json").then(res => {
//
let response = res.data.BASE_URL;
this.uploadFileUrl = response + "/udiwms/corps/importLog/upload";
}); });
axios.get("./config.json").then(res => { })
let response = res.data.SERVER_IP; .catch(() => {
this.templateDlUrl = response + "/已对照往来单位模板.xlsx"; });
});
},
jumpDl() {
window.open(this.templateDlUrl, '_blank');
},
handleChange(response, files, fileList) {
console.log(response);
if (response.code != 20000) {
this.$message.error(response.message);
} else {
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success(response.data);
this.getList();
}
},
statusFilterType(status) {
const statusMap = {
0: "warning",
1: "warning",
2: "danger",
3: "success",
};
return statusMap[status];
},
}, },
mounted() { getBasicThirdSys() {
let query = {
enabled: true,
};
getBasicThirdSys(query)
.then((response) => {
this.thirdSys = response.data.list || [];
// this.filterQuery.thirdSysFk = this.thirdSys[0].thirdId;
this.getList();
})
.catch(() => {
this.loading = false;
this.list = [];
});
//
this.uploadFileUrl = process.env.VUE_APP_BASE_API + "/udiwms/corps/importLog/upload";
axios.get("./config.json").then(res => {
let response = res.data.SERVER_IP;
this.templateDlUrl = response + "/已对照往来单位模板.xlsx";
});
}, },
components: {corpImportDetail}, jumpDl() {
created() { window.open(this.templateDlUrl, '_blank');
this.getBasicThirdSys(); },
handleChange(response, files, fileList) {
console.log(response);
if (response.code != 20000) {
this.$message.error(response.message);
} else {
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success(response.data);
this.getList(); this.getList();
}
},
statusFilterType(status) {
const statusMap = {
0: "warning",
1: "warning",
2: "danger",
3: "success",
};
return statusMap[status];
}, },
},
mounted() {
},
components: {corpImportDetail},
created() {
this.getBasicThirdSys();
this.getList();
},
}; };
</script> </script>
<style> <style>
.itemTag { .itemTag {
float: left; float: left;
text-align: left; text-align: left;
margin-top: 10px; margin-top: 10px;
width: 100px; width: 100px;
} }
.text { .text {
font-size: 13px; font-size: 13px;
font-family: "Microsoft YaHei"; font-family: "Microsoft YaHei";
} }
.el-row { .el-row {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.el-col { .el-col {
border-radius: 4px; border-radius: 4px;
flex-wrap: wrap; flex-wrap: wrap;
} }
</style> </style>

@ -166,7 +166,7 @@ export default {
.then((blob) => { .then((blob) => {
a.href = URL.createObjectURL(blob); a.href = URL.createObjectURL(blob);
console.log(a.href); console.log(a.href);
a.download = "BaseProduct_" + timestamp + ".UpperIn"; a.download = "BaseProduct_" + timestamp + ".udi";
document.body.appendChild(a); document.body.appendChild(a);
a.click(); a.click();
this.getList(); this.getList();

@ -165,7 +165,7 @@ export default {
.then((blob) => { .then((blob) => {
a.href = URL.createObjectURL(blob); a.href = URL.createObjectURL(blob);
console.log(a.href); console.log(a.href);
a.download = "ThirdCorp_" + timestamp + ".UpperIn"; a.download = "ThirdCorp_" + timestamp + ".udi";
document.body.appendChild(a); document.body.appendChild(a);
a.click(); a.click();
this.getList(); this.getList();

@ -168,7 +168,7 @@ export default {
.then((blob) => { .then((blob) => {
a.href = URL.createObjectURL(blob); a.href = URL.createObjectURL(blob);
console.log(a.href); console.log(a.href);
a.download = "ThirdOrder_" + timestamp + ".UpperIn"; a.download = "ThirdOrder_" + timestamp + ".udi";
document.body.appendChild(a); document.body.appendChild(a);
a.click(); a.click();
this.getList(); this.getList();

@ -168,7 +168,7 @@ export default {
.then((blob) => { .then((blob) => {
a.href = URL.createObjectURL(blob); a.href = URL.createObjectURL(blob);
console.log(a.href); console.log(a.href);
a.download = "ThirdProduct_" + timestamp + ".UpperIn"; a.download = "ThirdProduct_" + timestamp + ".udi";
document.body.appendChild(a); document.body.appendChild(a);
a.click(); a.click();
this.getList(); this.getList();

Loading…
Cancel
Save