|
@@ -15,10 +15,10 @@
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<span v-if="profitBtnStatus" class="add-acount-policy-btn">
|
|
<span v-if="profitBtnStatus" class="add-acount-policy-btn">
|
|
- <a-button @click="handleDownloadProfit">下载利润表</a-button>
|
|
|
|
|
|
+ <a-button type="primary" @click="handleDownloadProfit">下载利润表</a-button>
|
|
</span>
|
|
</span>
|
|
<span v-if="settlementBtnStatus" class="add-acount-policy-btn">
|
|
<span v-if="settlementBtnStatus" class="add-acount-policy-btn">
|
|
- <a-button @click="handleDownloadSettlement">下载结算单</a-button>
|
|
|
|
|
|
+ <a-button type="primary" @click="handleDownloadSettlement">下载结算单</a-button>
|
|
</span>
|
|
</span>
|
|
<span v-if="accountBtnStatus" class="add-acount-policy-btn">
|
|
<span v-if="accountBtnStatus" class="add-acount-policy-btn">
|
|
<a-button type="primary" @click="handleUploadAccount">上传截图</a-button>
|
|
<a-button type="primary" @click="handleUploadAccount">上传截图</a-button>
|
|
@@ -184,10 +184,10 @@
|
|
>
|
|
>
|
|
<a-select-option
|
|
<a-select-option
|
|
v-for="item in allAdverListOption"
|
|
v-for="item in allAdverListOption"
|
|
- :key="item.id"
|
|
|
|
- :value="item.id"
|
|
|
|
|
|
+ :key="item.advertiserId"
|
|
|
|
+ :value="item.advertiserId"
|
|
>
|
|
>
|
|
- {{ item.name }}
|
|
|
|
|
|
+ {{ item.advertiserName }}
|
|
</a-select-option>
|
|
</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
@@ -208,7 +208,7 @@
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
<a-form-model-item label="选择媒体">
|
|
<a-form-model-item label="选择媒体">
|
|
- <a-radio-group v-model="policyOperationForm.mediaId" button-style="solid">
|
|
|
|
|
|
+ <a-radio-group v-model="policyOperationForm.mediaId" button-style="solid" @change="handlePolicyUploadChange">
|
|
<a-radio-button :value="1">头条</a-radio-button>
|
|
<a-radio-button :value="1">头条</a-radio-button>
|
|
<a-radio-button :value="2">快手</a-radio-button>
|
|
<a-radio-button :value="2">快手</a-radio-button>
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
@@ -264,10 +264,10 @@
|
|
>
|
|
>
|
|
<a-select-option
|
|
<a-select-option
|
|
v-for="item in allAdverListOption"
|
|
v-for="item in allAdverListOption"
|
|
- :key="item.id"
|
|
|
|
- :value="item.id"
|
|
|
|
|
|
+ :key="item.advertiserId"
|
|
|
|
+ :value="item.advertiserId"
|
|
>
|
|
>
|
|
- {{ item.name }}
|
|
|
|
|
|
+ {{ item.advertiserName }}
|
|
</a-select-option>
|
|
</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
@@ -509,7 +509,7 @@ export default {
|
|
}
|
|
}
|
|
this.handleInitTable();
|
|
this.handleInitTable();
|
|
this.handleGetAllSaleList();
|
|
this.handleGetAllSaleList();
|
|
- this.handleGetAllAdverList();
|
|
|
|
|
|
+ this.handleGetAllAdverList(1);
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapGetters(['userInfo']),
|
|
...mapGetters(['userInfo']),
|
|
@@ -521,8 +521,20 @@ export default {
|
|
handleProductIdChange(e) {
|
|
handleProductIdChange(e) {
|
|
this.handleGetDownLoadAllNum();
|
|
this.handleGetDownLoadAllNum();
|
|
},
|
|
},
|
|
|
|
+ handlePolicyUploadChange(e) {
|
|
|
|
+ this.policyOperationForm.advertiserId = undefined;
|
|
|
|
+ this.allAdverListOption = [];
|
|
|
|
+ this.policyOperationForm.productId = undefined;
|
|
|
|
+ this.allProductListOption = [];
|
|
|
|
+ this.handleGetAllAdverList(e.target.value);
|
|
|
|
+ },
|
|
handleMediaIdChange(e) {
|
|
handleMediaIdChange(e) {
|
|
|
|
+ this.settlementModalForm.advertiserId = undefined;
|
|
|
|
+ this.allAdverListOption = [];
|
|
|
|
+ this.settlementModalForm.productId = undefined;
|
|
|
|
+ this.allProductListOption = [];
|
|
this.handleGetDownLoadAllNum();
|
|
this.handleGetDownLoadAllNum();
|
|
|
|
+ this.handleGetAllAdverList(e.target.value);
|
|
},
|
|
},
|
|
handleGetDownLoadAllNum() {
|
|
handleGetDownLoadAllNum() {
|
|
const {advertiserId, productId, mediaId, uploadYears} = this.settlementModalForm;
|
|
const {advertiserId, productId, mediaId, uploadYears} = this.settlementModalForm;
|
|
@@ -545,14 +557,16 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 获取所有的广告主列表
|
|
// 获取所有的广告主列表
|
|
- handleGetAllAdverList() {
|
|
|
|
|
|
+ handleGetAllAdverList(type) {
|
|
const paramsData = {
|
|
const paramsData = {
|
|
|
|
+ userId: this.userInfo().id,
|
|
|
|
+ mediaId: type,
|
|
pageNo: 1,
|
|
pageNo: 1,
|
|
pageSize: 1000
|
|
pageSize: 1000
|
|
};
|
|
};
|
|
- getAction('/ctop/advertiser/list', paramsData).then(result => {
|
|
|
|
|
|
+ getAction('/ctop/projectMember/participateListV3', paramsData).then(result => {
|
|
if (result.success) {
|
|
if (result.success) {
|
|
- this.allAdverListOption = result.result.records || [];
|
|
|
|
|
|
+ this.allAdverListOption = result.result || [];
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
this.$message.error(result.message);
|
|
this.$message.error(result.message);
|
|
@@ -742,7 +756,7 @@ export default {
|
|
},
|
|
},
|
|
handleFileRemove(file) {
|
|
handleFileRemove(file) {
|
|
let formData = this.policyOperationForm.settlementList;
|
|
let formData = this.policyOperationForm.settlementList;
|
|
- this.policyOperationForm.settlementList = formData.filter(item => file.uid !== item.uid);
|
|
|
|
|
|
+ this.policyOperationForm.settlementList = formData.filter(item => file.id !== item.id);
|
|
},
|
|
},
|
|
beforeUpload(file) {
|
|
beforeUpload(file) {
|
|
let reg = /[\u4E00-\u9FA5]|[A-Za-z]/g;
|
|
let reg = /[\u4E00-\u9FA5]|[A-Za-z]/g;
|
|
@@ -824,6 +838,7 @@ export default {
|
|
}
|
|
}
|
|
that.loadingElse = false;
|
|
that.loadingElse = false;
|
|
that.policyOperationForm.settlementList.push({
|
|
that.policyOperationForm.settlementList.push({
|
|
|
|
+ id: new Date().getTime(),
|
|
uid: file.name,
|
|
uid: file.name,
|
|
name: file.name,
|
|
name: file.name,
|
|
status: 'done',
|
|
status: 'done',
|