|
@@ -231,6 +231,7 @@
|
|
:file-list="policyOperationForm.settlementList"
|
|
:file-list="policyOperationForm.settlementList"
|
|
:before-upload="beforeUpload"
|
|
:before-upload="beforeUpload"
|
|
:remove="handleFileRemove"
|
|
:remove="handleFileRemove"
|
|
|
|
+ :multiple="true"
|
|
>
|
|
>
|
|
<a-button><a-icon type="upload"/>文件上传</a-button>
|
|
<a-button><a-icon type="upload"/>文件上传</a-button>
|
|
</a-upload>
|
|
</a-upload>
|
|
@@ -676,10 +677,10 @@ export default {
|
|
this.$message.error(result.message);
|
|
this.$message.error(result.message);
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
- this.$message.success('正在下载利润单,请稍后...', 4);
|
|
|
|
-
|
|
|
|
|
|
+ this.profitModalStatus = false;
|
|
|
|
+ this.handleProfitModalnCancel();
|
|
|
|
+ this.$message.success('正在下载利润表,请稍后...', 4);
|
|
window.location.href = `${urlAcount}${urlData}?startTime=${paramsData.startTime}&endTime=${paramsData.endTime}`;
|
|
window.location.href = `${urlAcount}${urlData}?startTime=${paramsData.startTime}&endTime=${paramsData.endTime}`;
|
|
- this.handleSettlementModalnCancel();
|
|
|
|
|
|
|
|
// this.handleDownUpdate(url);
|
|
// this.handleDownUpdate(url);
|
|
}
|
|
}
|
|
@@ -742,9 +743,9 @@ export default {
|
|
this.$message.error(result.message);
|
|
this.$message.error(result.message);
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
|
|
+ this.handleSettlementModalnCancel();
|
|
this.$message.success('正在下载结算单,请稍后...', 4);
|
|
this.$message.success('正在下载结算单,请稍后...', 4);
|
|
window.location.href = `${urlAcount}${urlData}?advertiserId=${advertiserId}&productId=${productId}&mediaId=${mediaId}&uploadYears=${paramsData.uploadYears}`;
|
|
window.location.href = `${urlAcount}${urlData}?advertiserId=${advertiserId}&productId=${productId}&mediaId=${mediaId}&uploadYears=${paramsData.uploadYears}`;
|
|
- this.handleSettlementModalnCancel();
|
|
|
|
}
|
|
}
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
console.log(error, 'eeee');
|
|
console.log(error, 'eeee');
|
|
@@ -804,7 +805,8 @@ export default {
|
|
},
|
|
},
|
|
beforeUpload(file) {
|
|
beforeUpload(file) {
|
|
let reg = /[\u4E00-\u9FA5]|[A-Za-z]/g;
|
|
let reg = /[\u4E00-\u9FA5]|[A-Za-z]/g;
|
|
- const name = file.name.split('.')[0];
|
|
|
|
|
|
+ const lastPosition = file.name.lastIndexOf('.');
|
|
|
|
+ const name = file.name.slice(0, lastPosition);
|
|
let finallyResult = name.match(reg);
|
|
let finallyResult = name.match(reg);
|
|
const isZip = file.type.includes('png') || file.type.includes('jpeg');
|
|
const isZip = file.type.includes('png') || file.type.includes('jpeg');
|
|
if (!isZip) {
|
|
if (!isZip) {
|