|
@@ -246,6 +246,7 @@
|
|
v-if="settlementModalStatus"
|
|
v-if="settlementModalStatus"
|
|
title="下载结算单"
|
|
title="下载结算单"
|
|
:visible="settlementModalStatus"
|
|
:visible="settlementModalStatus"
|
|
|
|
+ :confirmLoading="settlementConfirmLoad"
|
|
dialog-class="information-modal-class"
|
|
dialog-class="information-modal-class"
|
|
@ok="handleSettlementModalSure"
|
|
@ok="handleSettlementModalSure"
|
|
@cancel="handleSettlementModalnCancel"
|
|
@cancel="handleSettlementModalnCancel"
|
|
@@ -325,6 +326,7 @@
|
|
v-if="profitModalStatus"
|
|
v-if="profitModalStatus"
|
|
title="下载利润单"
|
|
title="下载利润单"
|
|
:visible="profitModalStatus"
|
|
:visible="profitModalStatus"
|
|
|
|
+ :confirmLoading="profitConfirmLoad"
|
|
dialog-class="information-modal-class"
|
|
dialog-class="information-modal-class"
|
|
@ok="handleProfitModalSure"
|
|
@ok="handleProfitModalSure"
|
|
@cancel="handleProfitModalnCancel"
|
|
@cancel="handleProfitModalnCancel"
|
|
@@ -375,6 +377,8 @@ export default {
|
|
return {
|
|
return {
|
|
userOperateList: ['快手运营总监', '运营助理', '运营专员', '头条运营经理', '外部运营经理', '快手运营', '商务运营', '运营总经理', '直播运营', '头条运营总监', '快手运营助理', '快手运营经理', '头条运营', '头条运营助理'],
|
|
userOperateList: ['快手运营总监', '运营助理', '运营专员', '头条运营经理', '外部运营经理', '快手运营', '商务运营', '运营总经理', '直播运营', '头条运营总监', '快手运营助理', '快手运营经理', '头条运营', '头条运营助理'],
|
|
userSaleList: ['外部销售', '销售总监', '销售', '销售助理', '销售支持经理', '销售AM'],
|
|
userSaleList: ['外部销售', '销售总监', '销售', '销售助理', '销售支持经理', '销售AM'],
|
|
|
|
+ settlementConfirmLoad: false,
|
|
|
|
+ profitConfirmLoad: false,
|
|
profitBtnStatus: false,
|
|
profitBtnStatus: false,
|
|
settlementBtnStatus: false,
|
|
settlementBtnStatus: false,
|
|
accountBtnStatus: false,
|
|
accountBtnStatus: false,
|
|
@@ -528,7 +532,7 @@ export default {
|
|
this.mode2 = [mode[0] === 'date' ? 'month' : mode[0], mode[1] === 'date' ? 'month' : mode[1]];
|
|
this.mode2 = [mode[0] === 'date' ? 'month' : mode[0], mode[1] === 'date' ? 'month' : mode[1]];
|
|
},
|
|
},
|
|
handleProductIdChange(e) {
|
|
handleProductIdChange(e) {
|
|
- if (!this.settlementModalForm.uploadYears) {
|
|
|
|
|
|
+ if (this.settlementModalForm.uploadYears) {
|
|
this.handleGetDownLoadAllNum();
|
|
this.handleGetDownLoadAllNum();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -664,6 +668,7 @@ export default {
|
|
handleProfitModalSure() {
|
|
handleProfitModalSure() {
|
|
this.$refs.profitModalForm.validate(valid => {
|
|
this.$refs.profitModalForm.validate(valid => {
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
+ this.profitConfirmLoad = true;
|
|
const {mediaId, launchDateRange} = this.profitModalForm;
|
|
const {mediaId, launchDateRange} = this.profitModalForm;
|
|
const paramsData = {
|
|
const paramsData = {
|
|
mediaId,
|
|
mediaId,
|
|
@@ -685,6 +690,8 @@ export default {
|
|
}
|
|
}
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
console.log(error, 'eeee');
|
|
console.log(error, 'eeee');
|
|
|
|
+ }).finally(() => {
|
|
|
|
+ this.profitConfirmLoad = false;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
@@ -729,6 +736,7 @@ export default {
|
|
handleSettlementModalSure() {
|
|
handleSettlementModalSure() {
|
|
this.$refs.settlementModalForm.validate(valid => {
|
|
this.$refs.settlementModalForm.validate(valid => {
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
+ this.settlementConfirmLoad = true;
|
|
const {advertiserId, productId, mediaId, uploadYears} = this.settlementModalForm;
|
|
const {advertiserId, productId, mediaId, uploadYears} = this.settlementModalForm;
|
|
const paramsData = {
|
|
const paramsData = {
|
|
advertiserId,
|
|
advertiserId,
|
|
@@ -749,6 +757,8 @@ export default {
|
|
}
|
|
}
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
console.log(error, 'eeee');
|
|
console.log(error, 'eeee');
|
|
|
|
+ }).finally(() => {
|
|
|
|
+ this.settlementConfirmLoad = false;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
@@ -763,6 +773,7 @@ export default {
|
|
mediaId: 1,
|
|
mediaId: 1,
|
|
uploadYears: ''
|
|
uploadYears: ''
|
|
};
|
|
};
|
|
|
|
+ this.allProductListOption = [];
|
|
this.downLoadAccountNum = 0;
|
|
this.downLoadAccountNum = 0;
|
|
this.downLoadImgNum = 0;
|
|
this.downLoadImgNum = 0;
|
|
this.settlementModalStatus = false;
|
|
this.settlementModalStatus = false;
|
|
@@ -776,6 +787,10 @@ export default {
|
|
if (this.settlementModalForm.productId) {
|
|
if (this.settlementModalForm.productId) {
|
|
this.handleGetDownLoadAllNum();
|
|
this.handleGetDownLoadAllNum();
|
|
}
|
|
}
|
|
|
|
+ if (!dateString) {
|
|
|
|
+ this.downLoadAccountNum = 0;
|
|
|
|
+ this.downLoadImgNum = 0;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 查询的按钮
|
|
// 查询的按钮
|
|
handleQueryList() {
|
|
handleQueryList() {
|