|
@@ -25,7 +25,7 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<div class="top">
|
|
|
-
|
|
|
+
|
|
|
<el-input placeholder="用户所在公司" class="input-demo" v-model="companyName"></el-input>
|
|
|
<el-input placeholder="批次号" class="input-demo" v-model="batchNum"></el-input>
|
|
|
<el-button style="margin-left: 1%;" @click="DownloadTemplate">下载模板</el-button>
|
|
@@ -188,10 +188,10 @@
|
|
|
label="是否成功"
|
|
|
show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
-
|
|
|
+
|
|
|
<span v-if="scope.row.billwayStatus == -2 || scope.row.billwayStatus == -3" style="color: red">失败</span>
|
|
|
<span v-else-if="scope.row.billwayStatus != -2 && scope.row.billwayStatus != -3" style="color: green">成功</span>
|
|
|
-
|
|
|
+
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -273,7 +273,7 @@ export default{
|
|
|
},
|
|
|
// 列表展示
|
|
|
async loadData() {
|
|
|
-
|
|
|
+
|
|
|
const formData = new FormData();
|
|
|
formData.append('current', this.current);
|
|
|
formData.append('size', this.pagesize);
|
|
@@ -309,8 +309,12 @@ export default{
|
|
|
this.$message.error('上传文件大小不能超过50MB!');
|
|
|
return false;
|
|
|
}
|
|
|
- this.$message.success('系统正在努力接收中,过程大概需要几分钟的时间,请您耐心等待...');
|
|
|
- this.fullscreenLoading = true;
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '系统正在努力接收中,过程大概需要几分钟的时间,请您耐心等待...',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ });
|
|
|
const formData = new FormData();
|
|
|
formData.append('customerName', this.formUserList.customerName);
|
|
|
formData.append('file', this.formUserList.file);
|
|
@@ -318,13 +322,13 @@ export default{
|
|
|
var {data: { code, msg, data }} = response;
|
|
|
if(code === 0 && msg === 'success') {
|
|
|
this.loadData();
|
|
|
- this.fullscreenLoading = false;
|
|
|
+ loading.close();
|
|
|
this.$message.success('上传成功');
|
|
|
}else if(code === 1 && msg == null && data == null) {
|
|
|
- this.fullscreenLoading = false;
|
|
|
+ loading.close();
|
|
|
this.$message.error('数据存在错误,请检查文件中数据');
|
|
|
}else {
|
|
|
- this.fullscreenLoading = false;
|
|
|
+ loading.close();
|
|
|
this.$message.error(msg);
|
|
|
}
|
|
|
},
|
|
@@ -344,7 +348,7 @@ export default{
|
|
|
},
|
|
|
// 查看实时数据
|
|
|
async loadDataCar() {
|
|
|
-
|
|
|
+
|
|
|
const formData = new FormData();
|
|
|
formData.append('current', this.currenttwo);
|
|
|
formData.append('size', this.pagesizetwo);
|
|
@@ -365,7 +369,7 @@ export default{
|
|
|
async exportExcel() {
|
|
|
let curr = this.currenttwo;
|
|
|
let pagesize1 = this.pagesizetwo;
|
|
|
- this.currenttwo = 1;
|
|
|
+ this.currenttwo = 1;
|
|
|
this.pagesizetwo = this.totaltwo;
|
|
|
await this.loadDataCar();
|
|
|
// 设置当前日期
|
|
@@ -394,7 +398,7 @@ export default{
|
|
|
} catch (e) {
|
|
|
if (typeof console !== "undefined") console.log(e, wbout);
|
|
|
}
|
|
|
- this.currenttwo = curr;
|
|
|
+ this.currenttwo = curr;
|
|
|
this.pagesizetwo = pagesize1;
|
|
|
this.loadDataCar();
|
|
|
return wbout;
|