Commit c1dbf112 by 前端

新增转账选择服务商时流量方默认选中全部

1 parent 3fe2958f
<!-- 新增转账 -->
<template>
<baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog" @handleClick="handleAddConfirm">
<baseDialog :dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm">
<div class="add-dialog">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="150px" default-width="400px"
:form-ref="editChildRef" :form-obj="infoForm" :form-data="editFormData" :form-rules="formRules">
<div slot="expenseTypeHtml" slot-scope="scope">
<el-checkbox-group v-model="infoForm.expenseType" @change="handleCheckChange">
<el-checkbox v-for="(item, index) in baseData.expenseTypes" :key="index" :label="item.confId">{{
<glsx-combi-form class="edit-form-container"
ref="editFormRef"
label-width="150px"
default-width="400px"
:form-ref="editChildRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules">
<div slot="expenseTypeHtml"
slot-scope="scope">
<el-checkbox-group v-model="infoForm.expenseType"
@change="handleCheckChange">
<el-checkbox v-for="(item, index) in baseData.expenseTypes"
:key="index"
:label="item.confId">{{
item.confValue }}</el-checkbox>
</el-checkbox-group>
</div>
<div slot="expenseTypeHtml2" slot-scope="scope" style="width:400px">
<el-checkbox-group v-model="infoForm.expenseType" @change="handleCheckChange2">
<el-checkbox v-for="(item, index) in baseData.expenseTypes2" :key="index" :label="item.confId">
<div slot="expenseTypeHtml2"
slot-scope="scope"
style="width:400px">
<el-checkbox-group v-model="infoForm.expenseType"
@change="handleCheckChange2">
<el-checkbox v-for="(item, index) in baseData.expenseTypes2"
:key="index"
:label="item.confId">
{{ item.confValue }}
</el-checkbox>
</el-checkbox-group>
</div>
<div slot="installCostHtml" slot-scope="scope">
<el-input v-model="infoForm.installCost" style="width:400px" disabled placeholder="选择场景、对账方、对账周期、费用类型后自动获取" />
<el-button type="text" class="down-cla" @click="downloadDetail('7', '2')">下载明细</el-button>
<div slot="installCostHtml"
slot-scope="scope">
<el-input v-model="infoForm.installCost"
style="width:400px"
disabled
placeholder="选择场景、对账方、对账周期、费用类型后自动获取" />
<el-button type="text"
class="down-cla"
@click="downloadDetail('7', '2')">下载明细</el-button>
</div>
<div slot="marketingCostHtml" slot-scope="scope">
<el-input v-model="infoForm.marketingCost" style="width:400px" disabled placeholder="选择场景、对账方、对账周期、费用类型后自动获取" />
<el-button type="text" class="down-cla" @click="downloadDetail('7', '3')">下载明细</el-button>
<div slot="marketingCostHtml"
slot-scope="scope">
<el-input v-model="infoForm.marketingCost"
style="width:400px"
disabled
placeholder="选择场景、对账方、对账周期、费用类型后自动获取" />
<el-button type="text"
class="down-cla"
@click="downloadDetail('7', '3')">下载明细</el-button>
</div>
<div slot="rewardAndPenaltyCostHtml" slot-scope="scope">
<el-input v-model="infoForm.rewardAndPenaltyCost" style="width:400px" disabled
placeholder="选择场景、对账方、对账周期、费用类型后自动获取" />
<el-button type="text" class="down-cla" @click="downloadDetail('7', '3')">下载明细</el-button>
<div slot="rewardAndPenaltyCostHtml"
slot-scope="scope">
<el-input v-model="infoForm.rewardAndPenaltyCost"
style="width:400px"
disabled
placeholder="选择场景、对账方、对账周期、费用类型后自动获取" />
<el-button type="text"
class="down-cla"
@click="downloadDetail('7', '3')">下载明细</el-button>
</div>
<div slot="shopTrafficMoneyHtml" slot-scope="scope">
<el-input v-model="infoForm.shopTrafficMoney" style="width:400px" disabled
placeholder="选择场景、对账方、对账周期、费用类型后自动获取" />
<el-button type="text" class="down-cla" @click="downloadDetail('2')">下载明细</el-button>
<div slot="shopTrafficMoneyHtml"
slot-scope="scope">
<el-input v-model="infoForm.shopTrafficMoney"
style="width:400px"
disabled
placeholder="选择场景、对账方、对账周期、费用类型后自动获取" />
<el-button type="text"
class="down-cla"
@click="downloadDetail('2')">下载明细</el-button>
</div>
<div slot="transferTotalAmountHtml" slot-scope="scope">
<el-input placeholder="请输入转账金额" v-model="infoForm.transferTotalAmount" style="width:400px" clearable
@input="handleUpgradeNum">
<div slot="transferTotalAmountHtml"
slot-scope="scope">
<el-input placeholder="请输入转账金额"
v-model="infoForm.transferTotalAmount"
style="width:400px"
clearable
@input="handleUpgradeNum">
</el-input>
</div>
<!-- <div slot="voucherListHtml"
slot-scope="scope">
</div> -->
<template slot="voucherListHtml" slot-scope="scope">
<el-upload action="" accept=".xlsx,.xls" class="upload-file" drag :show-file-list="false"
:file-list="uploadFileList" :limit="5" :auto-upload="false" :on-remove="importFileChange"
:on-change="(file, fileList) => handleFileChange(file, fileList, scope.scope)" :on-exceed="hanldeOnExceed"
multiple>
<template slot="voucherListHtml"
slot-scope="scope">
<el-upload action=""
accept=".xlsx,.xls"
class="upload-file"
drag
:show-file-list="false"
:file-list="uploadFileList"
:limit="5"
:auto-upload="false"
:on-remove="importFileChange"
:on-change="(file, fileList) => handleFileChange(file, fileList, scope.scope)"
:on-exceed="hanldeOnExceed"
multiple>
<i class="el-icon-upload"></i>
<div class="el-upload__text">点击或将文件拖拽到此区域上传</div>
<div class="item-tips text-tips">支持格式:.xlsx .xls,单个文件不能超过10M </div>
......@@ -56,17 +109,27 @@
</el-upload>
<!-- 文件列表区域 -->
<div class="file-box">
<div v-for="(subItem, subIndex) in infoForm.voucherList" :key="subIndex">
<div class="file-item" v-if="!filterEmpty(subItem.uploadProgress) || subItem.voucherFileUrl">
<div class="file-content" @click="handleFileView(subItem)">
<el-progress define-back-color="#F5F7FA" :text-inside="true" text-color="#333333" :show-text="false"
:stroke-width="26" stroke-linecap="butt" :percentage="subItem.uploadProgress"></el-progress>
<div v-for="(subItem, subIndex) in infoForm.voucherList"
:key="subIndex">
<div class="file-item"
v-if="!filterEmpty(subItem.uploadProgress) || subItem.voucherFileUrl">
<div class="file-content"
@click="handleFileView(subItem)">
<el-progress define-back-color="#F5F7FA"
:text-inside="true"
text-color="#333333"
:show-text="false"
:stroke-width="26"
stroke-linecap="butt"
:percentage="subItem.uploadProgress"></el-progress>
<div class="file-name">{{ subItem.fileName }}</div>
</div>
<i v-if="!subItem.voucherFileUrl" class="el-icon-close del-icon"
@click="doCancel(scope.scope, subIndex)"></i>
<i v-if="subItem.voucherFileUrl" class="el-icon-delete"
@click="handleFileDelete(scope.scope, subIndex)"></i>
<i v-if="!subItem.voucherFileUrl"
class="el-icon-close del-icon"
@click="doCancel(scope.scope, subIndex)"></i>
<i v-if="subItem.voucherFileUrl"
class="el-icon-delete"
@click="handleFileDelete(scope.scope, subIndex)"></i>
</div>
</div>
</div>
......@@ -198,7 +261,7 @@ export default {
optionsName: 'merchantList',
changeAttr: (value, targetItem) => {
this.infoForm.yqMerchantId = ''
this.baseData.shopMerchantList = []
this.baseData.shopMerchantList = [{ merchantId: '', merchantName: '全部' }]
this.infoForm.shopMerchantId = ''
this.getOptionsList('editFormData', true, 'shopMerchantId')
this.baseData.yqMerchantList = targetItem.optionList.find(item => item.partnerMerchantId == value).subMerchantsInfo
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!