|
@@ -63,11 +63,12 @@
|
|
|
</template>
|
|
|
</s-table>
|
|
|
</a-card>
|
|
|
+ <div style="text-align:right;color:#666;" v-if="showType ==='isEdit' || (showType === 'isAudit'&& !$hasPermissions('B_dealerAudit'))"><span v-if="showType === 'isAudit'&& !$hasPermissions('B_dealerAudit')">待审核,</span>增加的客户显示红色,删除的客户显示绿色</div>
|
|
|
<div class="btn-cont" v-if="showType ==='isEdit'">
|
|
|
<a-button type="primary" class="button-warning" @click="editDealerModal">修改</a-button>
|
|
|
<a-button type="primary" style="margin-left: 15px;" :loading="spinning" id="promotion-modal-save" @click="submitAudit">提交审核</a-button>
|
|
|
</div>
|
|
|
- <div class="btn-cont" v-if="showType === 'isAudit'&& $hasPermissions('B_dealerAudit') ">
|
|
|
+ <div class="btn-cont" v-if="showType === 'isAudit'&& $hasPermissions('B_dealerAudit')">
|
|
|
<a-button @click="handleAudit('AUDIT_REJECT')">审核不通过</a-button>
|
|
|
<a-button type="primary" style="margin-left: 15px;" :loading="spinning" id="promotion-modal-save" @click="handleAudit('AUDIT_PASS')">审核通过</a-button>
|
|
|
</div>
|
|
@@ -184,7 +185,7 @@ export default {
|
|
|
const _this = this
|
|
|
_this.openDealerModal = true
|
|
|
const arr = _this.chooseDealerList
|
|
|
- console.log('111111111111111:',arr)
|
|
|
+ console.log('111111111111111:', arr)
|
|
|
// 选择参与客户回显
|
|
|
_this.$nextTick(() => {
|
|
|
_this.$refs.dealerChoose.pageInit(arr)
|
|
@@ -193,7 +194,7 @@ export default {
|
|
|
// 添加经销商
|
|
|
handleAddDealer (list) {
|
|
|
const newArr = []
|
|
|
- let dealerSnArr= []
|
|
|
+ const dealerSnArr = []
|
|
|
list.forEach(item => {
|
|
|
const obj = {
|
|
|
dealerScope: this.itemSn ? 'SOME_DEALER' : 'ALL_DEALER',
|
|
@@ -250,7 +251,9 @@ export default {
|
|
|
const _this = this
|
|
|
_this.exportLoading = true
|
|
|
_this.spinning = true
|
|
|
- hdExportExcel(dealerExport, _this.queryParam, '促销经销商列表导出', function () {
|
|
|
+ _this.queryParam.dealerSnList = this.chooseDealerList
|
|
|
+ const paramsData = _this.queryParam
|
|
|
+ hdExportExcel(dealerExport, paramsData, '促销经销商列表导出', function () {
|
|
|
_this.exportLoading = false
|
|
|
_this.spinning = false
|
|
|
_this.showExport = true
|