|
@@ -22,10 +22,35 @@
|
|
|
<el-tab-pane label="业务详情" name="1">
|
|
|
<el-collapse v-model="activeNames" style="margin: -18px 0 0 0">
|
|
|
<el-collapse-item title="平台订单信息" name="1">
|
|
|
- <el-row>
|
|
|
- <el-col :span="6"></el-col>
|
|
|
- <el-col :span="9"></el-col>
|
|
|
- <el-col :span="9"></el-col>
|
|
|
+ <el-row class="tab-title">
|
|
|
+ <el-col :span="3">字段</el-col>
|
|
|
+ <el-col :span="4">文件导入数据</el-col>
|
|
|
+ <el-col :span="7">系统解析数据</el-col>
|
|
|
+ <el-col :span="10">确认后的数据</el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row class="tab-title">
|
|
|
+ <el-col :span="3">平台订单号</el-col>
|
|
|
+ <el-col :span="4">文件导入数据</el-col>
|
|
|
+ <el-col :span="7">系统解析数据</el-col>
|
|
|
+ <el-col :span="10">确认后的数据</el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row class="tab-title">
|
|
|
+ <el-col :span="3">平台订单下单时间</el-col>
|
|
|
+ <el-col :span="4">文件导入数据</el-col>
|
|
|
+ <el-col :span="7">系统解析数据</el-col>
|
|
|
+ <el-col :span="10">确认后的数据</el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row class="tab-title">
|
|
|
+ <el-col :span="3">平台商品编号</el-col>
|
|
|
+ <el-col :span="4">文件导入数据</el-col>
|
|
|
+ <el-col :span="7">系统解析数据</el-col>
|
|
|
+ <el-col :span="10">确认后的数据</el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row class="tab-title">
|
|
|
+ <el-col :span="3">销售渠道</el-col>
|
|
|
+ <el-col :span="4">文件导入数据</el-col>
|
|
|
+ <el-col :span="7">系统解析数据</el-col>
|
|
|
+ <el-col :span="10">确认后的数据</el-col>
|
|
|
</el-row>
|
|
|
</el-collapse-item>
|
|
|
</el-collapse>
|
|
@@ -87,54 +112,7 @@ export default {
|
|
|
this.initData();
|
|
|
},
|
|
|
methods: {
|
|
|
- //导出文件 (需要修改)
|
|
|
- download() {
|
|
|
- if (!this.loading) {
|
|
|
- this.loading = true;
|
|
|
- // let httpType = `aplication/zip`;
|
|
|
- let model = {};
|
|
|
- axios({
|
|
|
- method: "post",
|
|
|
- url: this.fileUrl + "admin/checkexport",
|
|
|
- responseType: "blob",
|
|
|
- data: model,
|
|
|
- // headers: {
|
|
|
- // Accept: httpType,
|
|
|
- // },
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- if (res && res.status == 200 && res.data) {
|
|
|
- let url = window.URL.createObjectURL(
|
|
|
- new Blob([res.data], {
|
|
|
- type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8",
|
|
|
- })
|
|
|
- );
|
|
|
- let link = document.createElement("a");
|
|
|
- link.style.display = "none";
|
|
|
- link.href = url;
|
|
|
- let excelName = "测试.xlsx";
|
|
|
- link.setAttribute("download", excelName);
|
|
|
- document.body.appendChild(link);
|
|
|
- link.click();
|
|
|
- link.remove();
|
|
|
- window.URL.revokeObjectURL(url); //释放掉blob对象
|
|
|
- this.$message.success(`${message}导出成功!`);
|
|
|
- setTimeout(() => {
|
|
|
- this.loading = false;
|
|
|
- }, 500);
|
|
|
- } else {
|
|
|
- this.$message.error(res.data.message);
|
|
|
- setTimeout(() => {
|
|
|
- this.loading = false;
|
|
|
- }, 500);
|
|
|
- }
|
|
|
- })
|
|
|
- .catch((error) => {
|
|
|
- console.log(error);
|
|
|
- this.loading = false;
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
+
|
|
|
getNewTime() {
|
|
|
this.newTime = new Date().valueOf();
|
|
|
},
|