|
@@ -1,10 +1,12 @@
|
|
<template>
|
|
<template>
|
|
<div class="policy-management-content">
|
|
<div class="policy-management-content">
|
|
<div class="control-con-title">
|
|
<div class="control-con-title">
|
|
- <div><span class="policy-export-btn">销售政策列表</span></div>
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <span class="policy-export-btn">销售政策列表</span>
|
|
|
|
+ </div>
|
|
<div>
|
|
<div>
|
|
<span v-if="userInfo().roleName !== '财务'" class="add-acount-policy-btn">
|
|
<span v-if="userInfo().roleName !== '财务'" class="add-acount-policy-btn">
|
|
- <a-button type="primary" @click="handleAddAccountPolicy">创建账户政策</a-button>
|
|
|
|
|
|
+ <a-button type="primary" @click="handleAddAccountPolicy">新增政策</a-button>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -38,7 +40,11 @@
|
|
<a-input v-model="configForm.productName" placeholder="请输入产品名称" allow-clear/>
|
|
<a-input v-model="configForm.productName" placeholder="请输入产品名称" allow-clear/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<a-form-item label="媒体:">
|
|
<a-form-item label="媒体:">
|
|
- <a-select v-model="configForm.creativeMedia" style="width: 100px" allow-clear>
|
|
|
|
|
|
+ <a-select
|
|
|
|
+ v-model="configForm.creativeMedia"
|
|
|
|
+ style="width: 100px"
|
|
|
|
+ allow-clear
|
|
|
|
+ >
|
|
<a-select-option
|
|
<a-select-option
|
|
v-for="item in creativeMediaOptions"
|
|
v-for="item in creativeMediaOptions"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
@@ -49,7 +55,11 @@
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<a-form-item label="返点类型:">
|
|
<a-form-item label="返点类型:">
|
|
- <a-select v-model="configForm.creativeRebate" style="width: 140px" allow-clear>
|
|
|
|
|
|
+ <a-select
|
|
|
|
+ v-model="configForm.creativeRebate"
|
|
|
|
+ style="width: 140px"
|
|
|
|
+ allow-clear
|
|
|
|
+ >
|
|
<a-select-option
|
|
<a-select-option
|
|
v-for="item in creativeRebateOptions"
|
|
v-for="item in creativeRebateOptions"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
@@ -86,17 +96,17 @@
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<a-form-item label="运营方式:">
|
|
<a-form-item label="运营方式:">
|
|
- <a-select v-model="configForm.creativeOperate" style="width: 100px" allow-clear>
|
|
|
|
|
|
+ <a-select
|
|
|
|
+ v-model="configForm.creativeOperate"
|
|
|
|
+ style="width: 100px"
|
|
|
|
+ allow-clear
|
|
|
|
+ >
|
|
<a-select-option value="no">不限</a-select-option>
|
|
<a-select-option value="no">不限</a-select-option>
|
|
<a-select-option :value="0">自运营</a-select-option>
|
|
<a-select-option :value="0">自运营</a-select-option>
|
|
<a-select-option :value="1">代运营</a-select-option>
|
|
<a-select-option :value="1">代运营</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
- <a-form-item
|
|
|
|
- class="grid-form-item"
|
|
|
|
- label="时间:"
|
|
|
|
- :colon="false"
|
|
|
|
- >
|
|
|
|
|
|
+ <a-form-item class="grid-form-item" label="时间:" :colon="false">
|
|
<a-range-picker
|
|
<a-range-picker
|
|
v-model="configForm.time"
|
|
v-model="configForm.time"
|
|
format="YYYY-MM-DD"
|
|
format="YYYY-MM-DD"
|
|
@@ -104,7 +114,11 @@
|
|
/>
|
|
/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<a-form-item label="状态:">
|
|
<a-form-item label="状态:">
|
|
- <a-select v-model="configForm.searchStatus" style="width: 100px" allow-clear>
|
|
|
|
|
|
+ <a-select
|
|
|
|
+ v-model="configForm.searchStatus"
|
|
|
|
+ style="width: 100px"
|
|
|
|
+ allow-clear
|
|
|
|
+ >
|
|
<a-select-option
|
|
<a-select-option
|
|
v-for="item in searchStatusOptions"
|
|
v-for="item in searchStatusOptions"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
@@ -150,7 +164,7 @@
|
|
<span>{{ text === 0 ? '否' : '是' }}</span>
|
|
<span>{{ text === 0 ? '否' : '是' }}</span>
|
|
</span>
|
|
</span>
|
|
<span slot="isDianPay" slot-scope="text">
|
|
<span slot="isDianPay" slot-scope="text">
|
|
- <span>{{ text === 0 ? '否' : '是' }}</span>
|
|
|
|
|
|
+ <span>{{ calculationScope(text) }}</span>
|
|
</span>
|
|
</span>
|
|
<span slot="updateApprovedStatus" slot-scope="text">
|
|
<span slot="updateApprovedStatus" slot-scope="text">
|
|
<a>{{ text }}</a>
|
|
<a>{{ text }}</a>
|
|
@@ -159,10 +173,13 @@
|
|
<span>{{ text ? text : '-' }}</span>
|
|
<span>{{ text ? text : '-' }}</span>
|
|
</span>
|
|
</span>
|
|
<span slot="dianPayCompanyRebateRate" slot-scope="text">
|
|
<span slot="dianPayCompanyRebateRate" slot-scope="text">
|
|
- <span>{{ text ? text : '-' }}</span>
|
|
|
|
|
|
+ <span>{{ text ? text + '%' : '-' }}</span>
|
|
</span>
|
|
</span>
|
|
<span slot="accountingPeriod" slot-scope="text">
|
|
<span slot="accountingPeriod" slot-scope="text">
|
|
- <span>{{ text }}</span>
|
|
|
|
|
|
+ <span>{{ text ? text + '天' : '-' }}</span>
|
|
|
|
+ </span>
|
|
|
|
+ <span slot="rebateRate" slot-scope="text">
|
|
|
|
+ <span>{{ text ? text + '%' : '-' }}</span>
|
|
</span>
|
|
</span>
|
|
<span slot="policyStartDate" slot-scope="text, record">
|
|
<span slot="policyStartDate" slot-scope="text, record">
|
|
<span>{{ text }} 至 {{ record.policyEndDate }}</span>
|
|
<span>{{ text }} 至 {{ record.policyEndDate }}</span>
|
|
@@ -200,24 +217,31 @@
|
|
<a-modal
|
|
<a-modal
|
|
v-if="rejectionReasonStatus"
|
|
v-if="rejectionReasonStatus"
|
|
title="审核不通过"
|
|
title="审核不通过"
|
|
- :visible="rejectionReasonStatus"
|
|
|
|
dialog-class="rejection-reason-class"
|
|
dialog-class="rejection-reason-class"
|
|
- @ok="handleModeSure"
|
|
|
|
- @cancel="handleModeCancel"
|
|
|
|
|
|
+ :visible="rejectionReasonStatus"
|
|
|
|
+ :footer="null"
|
|
|
|
+ :closable="false"
|
|
>
|
|
>
|
|
<div>
|
|
<div>
|
|
|
|
+ <span class="audit-policy-icon" @click="handleModeCancel"><a-icon type="close"/></span>
|
|
<div class="reason-class-header">审核不通过的理由:</div>
|
|
<div class="reason-class-header">审核不通过的理由:</div>
|
|
- <div>{{ rejectionReasonList.approvalContent }}</div>
|
|
|
|
|
|
+ <div class="reason-class-content">{{ rejectionReasonList.approvalContent }}</div>
|
|
|
|
+ <div solt="footer" class="audit-policy-footer">
|
|
|
|
+ <div></div>
|
|
|
|
+ <div>
|
|
|
|
+ <a-button type="default" class="cancel-btn" @click="handleModeCancel">取消</a-button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</a-modal>
|
|
</a-modal>
|
|
<!-- 查看详情 -->
|
|
<!-- 查看详情 -->
|
|
<a-modal
|
|
<a-modal
|
|
v-if="auditPolicyStatus"
|
|
v-if="auditPolicyStatus"
|
|
title="审核政策"
|
|
title="审核政策"
|
|
|
|
+ dialog-class="audit-policy-class"
|
|
:visible="auditPolicyStatus"
|
|
:visible="auditPolicyStatus"
|
|
:closable="false"
|
|
:closable="false"
|
|
:footer="null"
|
|
:footer="null"
|
|
- dialog-class="audit-policy-class"
|
|
|
|
>
|
|
>
|
|
<div>
|
|
<div>
|
|
<span class="audit-policy-icon" @click="handleCloseAuditPolicy"><a-icon type="close"/></span>
|
|
<span class="audit-policy-icon" @click="handleCloseAuditPolicy"><a-icon type="close"/></span>
|
|
@@ -279,12 +303,12 @@
|
|
</div>
|
|
</div>
|
|
<div class="policy-line-right">
|
|
<div class="policy-line-right">
|
|
<span class="line-left-spn">返点比例:</span>
|
|
<span class="line-left-spn">返点比例:</span>
|
|
- <span class="line-right-spn">{{ queryByIdList.rebateRate }}</span>
|
|
|
|
|
|
+ <span class="line-right-spn">{{ queryByIdList.rebateRate + '%' }}</span>
|
|
</div>
|
|
</div>
|
|
<div v-if="queryByIdList.advancePay === 0">
|
|
<div v-if="queryByIdList.advancePay === 0">
|
|
<div class="policy-line-right">
|
|
<div class="policy-line-right">
|
|
<span class="line-left-spn">账期:</span>
|
|
<span class="line-left-spn">账期:</span>
|
|
- <span class="line-right-spn">{{ queryByIdList.accountingPeriod }}</span>
|
|
|
|
|
|
+ <span class="line-right-spn">{{ queryByIdList.accountingPeriod && queryByIdList.accountingPeriod + '天' }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="policy-line-right">
|
|
<div class="policy-line-right">
|
|
<span class="line-left-spn">是否第三方垫付:</span>
|
|
<span class="line-left-spn">是否第三方垫付:</span>
|
|
@@ -297,7 +321,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="policy-line-right">
|
|
<div class="policy-line-right">
|
|
<span class="line-left-spn">垫付返点:</span>
|
|
<span class="line-left-spn">垫付返点:</span>
|
|
- <span class="line-right-spn">{{ queryByIdList.dianPayCompanyRebateRate }}</span>
|
|
|
|
|
|
+ <span class="line-right-spn">{{ queryByIdList.dianPayCompanyRebateRate && queryByIdList.dianPayCompanyRebateRate + '%' }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -324,8 +348,8 @@
|
|
<a-modal
|
|
<a-modal
|
|
v-if="rejectAuditStatus"
|
|
v-if="rejectAuditStatus"
|
|
title="审核不通过"
|
|
title="审核不通过"
|
|
- :visible="rejectAuditStatus"
|
|
|
|
dialog-class="rejection-reason-class"
|
|
dialog-class="rejection-reason-class"
|
|
|
|
+ :visible="rejectAuditStatus"
|
|
@ok="handleRejectSure"
|
|
@ok="handleRejectSure"
|
|
@cancel="handleRejectCancel"
|
|
@cancel="handleRejectCancel"
|
|
>
|
|
>
|
|
@@ -350,9 +374,9 @@
|
|
<!-- 新增、编辑政策 -->
|
|
<!-- 新增、编辑政策 -->
|
|
<a-modal
|
|
<a-modal
|
|
v-if="policyOperationStatus"
|
|
v-if="policyOperationStatus"
|
|
|
|
+ dialog-class="policy-operation-class"
|
|
:title="addType === 'add' ? '新增政策' : '编辑政策'"
|
|
:title="addType === 'add' ? '新增政策' : '编辑政策'"
|
|
:visible="policyOperationStatus"
|
|
:visible="policyOperationStatus"
|
|
- dialog-class="policy-operation-class"
|
|
|
|
:confirmLoading="confirmLoading"
|
|
:confirmLoading="confirmLoading"
|
|
@ok="handlePolicyOperationSure"
|
|
@ok="handlePolicyOperationSure"
|
|
@cancel="handlePolicyOperationCancel"
|
|
@cancel="handlePolicyOperationCancel"
|
|
@@ -381,21 +405,47 @@
|
|
allow-clear
|
|
allow-clear
|
|
/>
|
|
/>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
- <div class="product-name-class" v-for="(item, index) in policyOperationForm.defaultFormList" :key="item.id">
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="product-name-class"
|
|
|
|
+ v-for="(item, index) in policyOperationForm.defaultFormList"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ >
|
|
<a-form-model-item
|
|
<a-form-model-item
|
|
:label="index === 0 ? '产品名称' : ''"
|
|
:label="index === 0 ? '产品名称' : ''"
|
|
:class="{'isActive': index > 0 }"
|
|
:class="{'isActive': index > 0 }"
|
|
:prop="'defaultFormList.' + index + '.value'"
|
|
:prop="'defaultFormList.' + index + '.value'"
|
|
:rules="changeRules"
|
|
:rules="changeRules"
|
|
>
|
|
>
|
|
- <a-input class="input-common-short" v-model="item.value" placeholder="请输入" allow-clear/>
|
|
|
|
- <a-icon v-if="index === 0" class="circle-icon-class circle-icon-plus" type="plus-circle" @click="handleAddOrigin"/>
|
|
|
|
- <a-icon v-if="policyOperationForm.defaultFormList.length > 1 && index === 0" class="circle-icon-class circle-icon-minus" type="minus-circle" @click="handleDelOrigin(item)"/>
|
|
|
|
- <a-icon v-if="policyOperationForm.defaultFormList.length > 1 && index > 0" class="circle-icon-class circle-icon-plus" type="minus-circle" @click="handleDelOrigin(item)"/>
|
|
|
|
|
|
+ <a-input
|
|
|
|
+ class="input-common-short"
|
|
|
|
+ v-model="item.value"
|
|
|
|
+ placeholder="请输入"
|
|
|
|
+ allow-clear
|
|
|
|
+ />
|
|
|
|
+ <a-icon
|
|
|
|
+ v-if="index === 0"
|
|
|
|
+ class="circle-icon-class circle-icon-plus"
|
|
|
|
+ type="plus-circle"
|
|
|
|
+ @click="handleAddOrigin"
|
|
|
|
+ />
|
|
|
|
+ <a-icon
|
|
|
|
+ v-if="policyOperationForm.defaultFormList.length > 1 && index === 0" class="circle-icon-class circle-icon-minus"
|
|
|
|
+ type="minus-circle"
|
|
|
|
+ @click="handleDelOrigin(item)"
|
|
|
|
+ />
|
|
|
|
+ <a-icon
|
|
|
|
+ v-if="policyOperationForm.defaultFormList.length > 1 && index > 0" class="circle-icon-class circle-icon-plus"
|
|
|
|
+ type="minus-circle"
|
|
|
|
+ @click="handleDelOrigin(item)"
|
|
|
|
+ />
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</div>
|
|
</div>
|
|
<a-form-model-item label="媒体" prop="mediaType">
|
|
<a-form-model-item label="媒体" prop="mediaType">
|
|
- <a-select v-model="policyOperationForm.mediaType" placeholder="请选择投放媒体" allow-clear>
|
|
|
|
|
|
+ <a-select
|
|
|
|
+ v-model="policyOperationForm.mediaType"
|
|
|
|
+ placeholder="请选择投放媒体"
|
|
|
|
+ allow-clear
|
|
|
|
+ >
|
|
<a-select-option :value="1">头条</a-select-option>
|
|
<a-select-option :value="1">头条</a-select-option>
|
|
<a-select-option :value="2">快手</a-select-option>
|
|
<a-select-option :value="2">快手</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
@@ -404,9 +454,9 @@
|
|
<a-select
|
|
<a-select
|
|
v-model="policyOperationForm.createUserId"
|
|
v-model="policyOperationForm.createUserId"
|
|
style="width: 100px"
|
|
style="width: 100px"
|
|
- :filter-option="handleFilterOption"
|
|
|
|
show-search
|
|
show-search
|
|
allow-clear
|
|
allow-clear
|
|
|
|
+ :filter-option="handleFilterOption"
|
|
>
|
|
>
|
|
<a-select-option
|
|
<a-select-option
|
|
v-for="item in saleShowOption"
|
|
v-for="item in saleShowOption"
|
|
@@ -418,7 +468,11 @@
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
<a-form-model-item label="区域" prop="areaInfo">
|
|
<a-form-model-item label="区域" prop="areaInfo">
|
|
- <a-select v-model="policyOperationForm.areaInfo" placeholder="请选择区域" allow-clear>
|
|
|
|
|
|
+ <a-select
|
|
|
|
+ v-model="policyOperationForm.areaInfo"
|
|
|
|
+ placeholder="请选择区域"
|
|
|
|
+ allow-clear
|
|
|
|
+ >
|
|
<a-select-option
|
|
<a-select-option
|
|
v-for="item in addAreaList"
|
|
v-for="item in addAreaList"
|
|
:key="item"
|
|
:key="item"
|
|
@@ -432,9 +486,9 @@
|
|
<a-select
|
|
<a-select
|
|
v-model="policyOperationForm.companySubjectName"
|
|
v-model="policyOperationForm.companySubjectName"
|
|
placeholder="请选择我司主体"
|
|
placeholder="请选择我司主体"
|
|
- :filter-option="handleFilterOption"
|
|
|
|
show-search
|
|
show-search
|
|
allow-clear
|
|
allow-clear
|
|
|
|
+ :filter-option="handleFilterOption"
|
|
>
|
|
>
|
|
<a-select-option
|
|
<a-select-option
|
|
v-for="item in addSubjectList"
|
|
v-for="item in addSubjectList"
|
|
@@ -445,31 +499,53 @@
|
|
</a-select-option>
|
|
</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
- <a-form-model-item label="运营方式" prop="promotionType">
|
|
|
|
|
|
+ <a-form-model-item
|
|
|
|
+ class="promotion-type-class"
|
|
|
|
+ label="运营方式"
|
|
|
|
+ prop="promotionType"
|
|
|
|
+ >
|
|
<a-radio-group v-model="policyOperationForm.promotionType" button-style="solid">
|
|
<a-radio-group v-model="policyOperationForm.promotionType" button-style="solid">
|
|
<a-radio-button :value="0">自运营</a-radio-button>
|
|
<a-radio-button :value="0">自运营</a-radio-button>
|
|
<a-radio-button :value="1">代运营</a-radio-button>
|
|
<a-radio-button :value="1">代运营</a-radio-button>
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
|
|
+ <a-tooltip>
|
|
|
|
+ <template slot="title">自运营是客户自己运营,代运营由我们帮助客户运营账户</template>
|
|
|
|
+ <a-icon class="settlement-header-icon" type="question-circle"/>
|
|
|
|
+ </a-tooltip>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
- <a-form-model-item label="集团简称">
|
|
|
|
- <a-input
|
|
|
|
- v-model="policyOperationForm.groupAbbreviation"
|
|
|
|
- placeholder="请输入集团简称"
|
|
|
|
- allow-clear
|
|
|
|
- @change="handleGroupAbbreviationChange"
|
|
|
|
- />
|
|
|
|
- </a-form-model-item>
|
|
|
|
- <div v-if="subTitleMsgStatus" style="color: #f00;margin-left: 140px">只能输入30个汉字</div>
|
|
|
|
|
|
+ <div class="group-abbreviation-class">
|
|
|
|
+ <a-tooltip>
|
|
|
|
+ <template slot="title">由销售人员自行定义的集团系列产品简称</template>
|
|
|
|
+ <a-icon class="settlement-header-icon" type="question-circle"/>
|
|
|
|
+ </a-tooltip>
|
|
|
|
+ <a-form-model-item label="集团简称">
|
|
|
|
+ <a-input
|
|
|
|
+ v-model="policyOperationForm.groupAbbreviation"
|
|
|
|
+ placeholder="请输入集团简称"
|
|
|
|
+ allow-clear
|
|
|
|
+ @change="handleGroupAbbreviationChange"
|
|
|
|
+ />
|
|
|
|
+ </a-form-model-item>
|
|
|
|
+ <div v-if="subTitleMsgStatus" style="color: #f00;margin-left: 140px">只能输入30个汉字</div>
|
|
|
|
+ </div>
|
|
</a-row>
|
|
</a-row>
|
|
<a-row class="policy-operation-form-right">
|
|
<a-row class="policy-operation-form-right">
|
|
<a-form-model-item label="是否预付" prop="advancePay">
|
|
<a-form-model-item label="是否预付" prop="advancePay">
|
|
- <a-radio-group v-model="policyOperationForm.advancePay" button-style="solid" @change="handlePrepaidNotChange">
|
|
|
|
|
|
+ <a-radio-group
|
|
|
|
+ v-model="policyOperationForm.advancePay"
|
|
|
|
+ button-style="solid"
|
|
|
|
+ @change="handlePrepaidNotChange"
|
|
|
|
+ >
|
|
<a-radio-button :value="1">是</a-radio-button>
|
|
<a-radio-button :value="1">是</a-radio-button>
|
|
<a-radio-button :value="0">否</a-radio-button>
|
|
<a-radio-button :value="0">否</a-radio-button>
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
<a-form-model-item label="返点类型:" prop="rebateType">
|
|
<a-form-model-item label="返点类型:" prop="rebateType">
|
|
- <a-select v-model="policyOperationForm.rebateType" placeholder="请选择返点类型" allow-clear>
|
|
|
|
|
|
+ <a-select
|
|
|
|
+ v-model="policyOperationForm.rebateType"
|
|
|
|
+ placeholder="请选择返点类型"
|
|
|
|
+ allow-clear
|
|
|
|
+ >
|
|
<a-select-option :value="0">返现</a-select-option>
|
|
<a-select-option :value="0">返现</a-select-option>
|
|
<a-select-option :value="1">返货</a-select-option>
|
|
<a-select-option :value="1">返货</a-select-option>
|
|
<a-select-option :value="2">返现+返货</a-select-option>
|
|
<a-select-option :value="2">返现+返货</a-select-option>
|
|
@@ -482,15 +558,20 @@
|
|
:precision="2"
|
|
:precision="2"
|
|
/> %
|
|
/> %
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
- <a-form-model-item v-if="policyOperationForm.advancePay === 0" label="账期" prop="accountingPeriod">
|
|
|
|
- <a-input-number
|
|
|
|
- v-model="policyOperationForm.accountingPeriod"
|
|
|
|
- :precision="0"
|
|
|
|
- /> 天
|
|
|
|
|
|
+ <a-form-model-item
|
|
|
|
+ v-if="policyOperationForm.advancePay === 0"
|
|
|
|
+ label="账期"
|
|
|
|
+ prop="accountingPeriod"
|
|
|
|
+ >
|
|
|
|
+ <a-input-number v-model="policyOperationForm.accountingPeriod" :precision="0"/> 天
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
<div v-if="policyOperationForm.advancePay === 0">
|
|
<div v-if="policyOperationForm.advancePay === 0">
|
|
- <a-form-model-item label="是否第三方垫付" prop="isDianPay" @change="handleIsDianPayChange">
|
|
|
|
- <a-radio-group v-model="policyOperationForm.isDianPay" button-style="solid">
|
|
|
|
|
|
+ <a-form-model-item label="是否第三方垫付" prop="isDianPay">
|
|
|
|
+ <a-radio-group
|
|
|
|
+ v-model="policyOperationForm.isDianPay"
|
|
|
|
+ button-style="solid"
|
|
|
|
+ @change="handleIsDianPayChange"
|
|
|
|
+ >
|
|
<a-radio-button :value="1">是</a-radio-button>
|
|
<a-radio-button :value="1">是</a-radio-button>
|
|
<a-radio-button :value="0">否</a-radio-button>
|
|
<a-radio-button :value="0">否</a-radio-button>
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
@@ -535,9 +616,10 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
|
|
+import moment from 'moment';
|
|
|
|
+
|
|
import {getAction, postAction} from '@/api/manage';
|
|
import {getAction, postAction} from '@/api/manage';
|
|
import {mapGetters} from 'vuex';
|
|
import {mapGetters} from 'vuex';
|
|
-import moment from 'moment';
|
|
|
|
import {urlAcount} from './policy-management-server.js';
|
|
import {urlAcount} from './policy-management-server.js';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -744,7 +826,8 @@ export default {
|
|
title: '返点比例',
|
|
title: '返点比例',
|
|
align: 'center',
|
|
align: 'center',
|
|
dataIndex: 'rebateRate',
|
|
dataIndex: 'rebateRate',
|
|
- width: 150
|
|
|
|
|
|
+ width: 150,
|
|
|
|
+ scopedSlots: {customRender: 'rebateRate'}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '是否垫付',
|
|
title: '是否垫付',
|
|
@@ -814,7 +897,7 @@ export default {
|
|
creativeAdvance: undefined,
|
|
creativeAdvance: undefined,
|
|
creativeSale: undefined,
|
|
creativeSale: undefined,
|
|
creativeOperate: 'no',
|
|
creativeOperate: 'no',
|
|
- time: [],
|
|
|
|
|
|
+ time: [moment().subtract(6, 'days').format('YYYY-MM-DD'), moment().format('YYYY-MM-DD')],
|
|
searchStatus: 'no'
|
|
searchStatus: 'no'
|
|
},
|
|
},
|
|
tablePag: {
|
|
tablePag: {
|
|
@@ -839,6 +922,20 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
...mapGetters(['userInfo']),
|
|
...mapGetters(['userInfo']),
|
|
moment,
|
|
moment,
|
|
|
|
+ calculationScope(data) {
|
|
|
|
+ let defaultScope = '';
|
|
|
|
+ switch (data) {
|
|
|
|
+ case 0:
|
|
|
|
+ defaultScope = '否';
|
|
|
|
+ break;
|
|
|
|
+ case 1:
|
|
|
|
+ defaultScope = '是';
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ defaultScope = '-';
|
|
|
|
+ }
|
|
|
|
+ return defaultScope;
|
|
|
|
+ },
|
|
handleLaunchData(date, dateString) {
|
|
handleLaunchData(date, dateString) {
|
|
this.configForm.time = dateString;
|
|
this.configForm.time = dateString;
|
|
},
|
|
},
|
|
@@ -1006,14 +1103,14 @@ export default {
|
|
handleIsDianPayChange(e) {
|
|
handleIsDianPayChange(e) {
|
|
if (e.target.value === 0) {
|
|
if (e.target.value === 0) {
|
|
this.policyOperationForm.dianPayCompanyName = '';
|
|
this.policyOperationForm.dianPayCompanyName = '';
|
|
- this.policyOperationForm.dianPayCompanyRebateRate = '';
|
|
|
|
|
|
+ this.policyOperationForm.dianPayCompanyRebateRate = 0;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handlePrepaidNotChange(e) {
|
|
handlePrepaidNotChange(e) {
|
|
if (e.target.value === 1) {
|
|
if (e.target.value === 1) {
|
|
this.policyOperationForm.accountingPeriod = '';
|
|
this.policyOperationForm.accountingPeriod = '';
|
|
this.policyOperationForm.dianPayCompanyName = '';
|
|
this.policyOperationForm.dianPayCompanyName = '';
|
|
- this.policyOperationForm.dianPayCompanyRebateRate = '';
|
|
|
|
|
|
+ this.policyOperationForm.dianPayCompanyRebateRate = 0;
|
|
this.policyOperationForm.isDianPay = undefined;
|
|
this.policyOperationForm.isDianPay = undefined;
|
|
}
|
|
}
|
|
else if (e.target.value === 0) {
|
|
else if (e.target.value === 0) {
|
|
@@ -1189,7 +1286,6 @@ export default {
|
|
this.handleRejectCancel();
|
|
this.handleRejectCancel();
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
- console.log('error submit!!');
|
|
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -1277,7 +1373,7 @@ export default {
|
|
creativeAdvance: undefined,
|
|
creativeAdvance: undefined,
|
|
creativeSale: undefined,
|
|
creativeSale: undefined,
|
|
creativeOperate: 'no',
|
|
creativeOperate: 'no',
|
|
- time: [],
|
|
|
|
|
|
+ time: [moment().subtract(6, 'days').format('YYYY-MM-DD'), moment().format('YYYY-MM-DD')],
|
|
searchStatus: 'no'
|
|
searchStatus: 'no'
|
|
};
|
|
};
|
|
this.tablePag = {
|
|
this.tablePag = {
|