Commit cc201344 by 前端

Merge branch 'dev_v4.23.0' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into dev_v4.23.0
2 parents 785bb1e8 df911eb4
......@@ -34,6 +34,7 @@ const request = (
"dj.smartcarlife": "axios",
dj: "axios",
scrm: "axios2",
merchants: "axios3",
"glsx.accounts.biz.common.pictureUpload": "common"
}
const baseApiName = mappingName[apiName]
......
......@@ -302,7 +302,7 @@ export const routerName = {
addRoutePath: [
{
authId: "90611",
name: "申请虚拟对账账户",
name: "申请虚拟账户成本",
parentId: "90610"
}
]
......@@ -322,7 +322,7 @@ export const routerName = {
path: "/applyAccount_new",
name: "applyAccount_new",
meta: {
title: "申请虚拟对账账户",
title: "申请虚拟账户成本",
authId: "90611",
parentId: "90610",
cache: false,
......
......@@ -58,7 +58,7 @@
</el-table-column>
<el-table-column prop="outputValue" label="驻店负责人" width="150">
<template slot-scope="scope">
<el-select clearable value-key="userId" v-model="scope.row['residentManager']" class="select"
<el-select clearable filterable value-key="userId" v-model="scope.row['residentManager']" class="select"
@focus="getSelectList(scope.row, scope.$index,)" collapse-tags placeholder="请选择">
<el-option v-for="item in scope.row['residentManagerOptionsList']" :key="item.userId"
:label="item.userName" :value="item">
......
<template>
<div>
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config" @closeDialog="handleDetailClose(false)">
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose(false)">
<div class="edit-order-dialog" v-if="dialogShow">
<div class="addressTitle">
<img src="../images/addressIcon.webp" alt="" class="icon">
......@@ -12,11 +13,18 @@
<span class="address">收货地址:<span class="label">{{ detailInfo.contactAddress }}</span></span>
</div>
<div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage" @refreshTable="refreshTable" :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage"
@refreshTable="refreshTable" :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
<div slot="nowPurNum" slot-scope="scope">
<div v-if="detailInfo.tableData[scope.index].purchaseNumber == detailInfo.tableData[scope.index].goodsNumber">{{ detailInfo.tableData[scope.index].shipper || '未分配'}}</div>
<div v-else-if="detailInfo.tableData[scope.index].shipper && detailInfo.tableData[scope.index].purchaseNumber != 0">{{ detailInfo.tableData[scope.index].shipper }}</div>
<div v-else-if="detailInfo.tableData[scope.index].purchaseNumber != 0 && !detailInfo.tableData[scope.index].shipper">未分配</div>
<div
v-if="detailInfo.tableData[scope.index].purchaseNumber == detailInfo.tableData[scope.index].goodsNumber">
{{ detailInfo.tableData[scope.index].shipper || '未分配' }}</div>
<div
v-else-if="detailInfo.tableData[scope.index].shipper && detailInfo.tableData[scope.index].purchaseNumber != 0">
{{ detailInfo.tableData[scope.index].shipper }}</div>
<div
v-else-if="detailInfo.tableData[scope.index].purchaseNumber != 0 && !detailInfo.tableData[scope.index].shipper">
未分配</div>
<el-select v-else v-model="nowPurNumList[scope.index]" placeholder="请选择" clearable>
<el-option v-for="item in staffList" :key="item.uuid" :label="item.staffName" :value="item.uuid">
</el-option>
......@@ -26,11 +34,13 @@
</div>
<div class="footer">
<el-button @click="handleDetailClose(false)">取消</el-button>
<el-button @click="submit" type="primary" v-preventReClick :loading="$store.state.d2admin.loading.value">确定</el-button>
<el-button @click="submit" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确定</el-button>
</div>
</div>
</baseDialog>
<card-dialog v-if="cardVisible" :card-visible="cardVisible" :order-info="orderInfo" :selected-list="selectedCardList" @handleClose="handleCardDialog" @handleConfirm="handleCardConfirm"></card-dialog>
<card-dialog v-if="cardVisible" :card-visible="cardVisible" :order-info="orderInfo" :selected-list="selectedCardList"
@handleClose="handleCardDialog" @handleConfirm="handleCardConfirm"></card-dialog>
</div>
</template>
......@@ -211,7 +221,7 @@ export default {
}
</script>
<style lang="scss">
<style lang="scss" scoped>
.addressTitle {
display: flex;
align-items: center;
......@@ -243,7 +253,7 @@ export default {
font-size: 14px;
color: #666666;
> span {
>span {
margin-right: 20px;
margin-bottom: 10px;
}
......@@ -269,7 +279,7 @@ export default {
display: flex;
justify-content: end;
}
.edit-order-dialog .el-input--medium.border-red .el-input__inner {
border: 1px solid #eb4e4e;
}
</style>
}</style>
......@@ -331,7 +331,7 @@ export default {
}
</script>
<style lang="scss">
<style lang="scss" scoped>
.addressTitle {
display: flex;
align-items: center;
......
<template>
<baseDialog :is-show.sync="dialogShow"
:config="dialogConfig.setting"
:dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose">
<div class="detail-content"
v-if="dialogShow">
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose">
<div class="detail-content" v-if="dialogShow">
<div class="addressTitle">
<img src="../images/addressIcon.webp"
alt=""
class="icon">
<img src="../images/addressIcon.webp" alt="" class="icon">
<span class="title">{{ paramsObj.merchantName }}</span>
</div>
<div class="address-info">
......@@ -21,31 +16,23 @@
<span class="address">驳回原因:<span class="label">{{ detailInfo.rejectCause }}</span></span>
</div> -->
<div class="table-class">
<d2-table ref="purchaseOrderDetailTable"
:table-params="tableParams"
@refreshTable="refreshTable"
:table-data="detailInfo.tableData"
:table-total="detailInfo.tableTotal">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" @refreshTable="refreshTable"
:table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
</d2-table>
</div>
<div class="examine-record"
v-if="detailInfo.auditDetaiList && !paramsObj.factoryType">
<div class="examine-record" v-if="detailInfo.auditDetaiList && !paramsObj.factoryType">
<div class="title">审核记录</div>
<div class="record-div">
<div class="record-div-d"
v-for="(item, index) in detailInfo.auditDetaiList"
:key="index">
<div class="record-div-d" v-for="(item, index) in detailInfo.auditDetaiList" :key="index">
<span class="dot"></span>
<span
class="span-txt-one">{{ item.status ? $$(statusForShow, [item.status], 'text') : '' }}</span><span
class="span-txt-two">
<span class="span-txt-one">{{ item.status ? $$(statusForShow, [item.status], 'text') : '' }}</span><span
class="span-txt-two">
<span :class="item.status ? examineStatusClass[item.status] : ''">
{{ item.status ? $$(statusForShow, [item.status], 'status') : '' }}</span>
</span>
<span class="span-txt-two">审核人:{{ item.reviewedBy }}</span>
<span class="span-txt-two">审核时间:{{ item.reviewedDateFormat }}</span>
<span class="span-txt-two"
v-if="[4, 6, 7].includes(item.status)">驳回原因:{{ item.rejectCause }}</span>
<span class="span-txt-two" v-if="[4, 6, 7].includes(item.status)">驳回原因:{{ item.rejectCause }}</span>
</div>
<!-- <div class="record-div-d"><span class="dot"></span><span
class="span-txt-one">运营审核</span><span class="span-txt-two">通过</span><span
......@@ -279,7 +266,7 @@ export default {
font-size: 14px;
color: #666666;
> span {
>span {
margin-right: 20px;
margin-bottom: 10px;
}
......
<!-- 采购发货 -->
<template>
<d2-container class="container">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData">
<div class="header" slot="header">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary"
handle>
<el-button :id="tableParams.btnId" size="small" type="primary" handle>
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
......@@ -28,76 +20,50 @@
<auth-button category="Button" />
</span>
<span>
<el-button type="primary"
size="mini"
@click="handleExport">
<el-button type="primary" size="mini" @click="handleExport">
导出
</el-button>
</span>
</d2-table-header>
<d2-table ref="purchaseAndDeliveryTable"
:search-form="tableSearchForm"
:table-params="tableParams"
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope"
width="300">
<d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams"
:table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
<div slot="auth-button" slot-scope="scope" width="300">
<!-- 查看 -->
<span style="margin-right: 10px;">
<auth-button :data="scope.scope"
:show-btn-ids="['9090401']" />
<auth-button :data="scope.scope" :show-btn-ids="['9090401']" />
</span>
<!-- 确认发货 -->
<span v-show="scope.scope.deliveryStatus != 2"
style="margin-right: 10px;">
<auth-button :data="scope.scope"
:show-btn-ids="['9090402']" />
<span v-show="scope.scope.deliveryStatus != 2" style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9090402']" />
</span>
<!-- 分配 -->
<span v-show="scope.scope.deliveryStatus != 2"
style="margin-right: 10px;">
<span v-show="scope.scope.deliveryStatus != 2" style="margin-right: 10px;">
<!-- <el-button :data="scope.scope" type="text" @click="handleAllocat(scope.scope)">分配</el-button> -->
<auth-button :data="scope.scope"
:show-btn-ids="['9090404']" />
<auth-button :data="scope.scope" :show-btn-ids="['9090404']" />
</span>
<!-- 驳回 -->
<span v-show="scope.scope.deliveryStatus == 1 && scope.scope.status == 5">
<auth-button :data="scope.scope"
:show-btn-ids="['9090403']" />
<auth-button :data="scope.scope" :show-btn-ids="['9090403']" />
</span>
</div>
</d2-table>
</div>
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible" :is-empty-edit="true" :visible.sync="editVisible" :params-obj="dialogData" @editClose="editClose">
<EditOrderDialog v-if="editVisible" :is-empty-edit="true" :visible.sync="editVisible" :params-obj="dialogData"
@editClose="editClose">
</EditOrderDialog>
<AllocateDialog v-if="allocateVisible"
:visible.sync="allocateVisible"
:params-obj="allocateData"
@editClose="allocateClose">
<AllocateDialog v-if="allocateVisible" :visible.sync="allocateVisible" :params-obj="allocateData"
@editClose="allocateClose">
</AllocateDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"-->
<baseDialog :is-show.sync="rejectVisible"
:dialog-config="rejectConfig.config"
@handleClick="handleRejectConfirm">
<baseDialog :is-show.sync="rejectVisible" :dialog-config="rejectConfig.config" @handleClick="handleRejectConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> -->
<div class="reject-dialog">
<el-form :rules="rejectRules"
:model="rejectData"
label-width="150px"
ref="delivery-dialog-form">
<el-form-item label="驳回原因:"
prop="rejectCause">
<el-input type="textarea"
placeholder="请输入驳回原因"
maxlength="50"
:rows="3"
show-word-limit
v-model.trim="rejectData.rejectCause"
class="dis-in-block reject-input" />
<el-form :rules="rejectRules" :model="rejectData" label-width="150px" ref="delivery-dialog-form">
<el-form-item label="驳回原因:" prop="rejectCause">
<el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" :rows="3" show-word-limit
v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" />
</el-form-item>
</el-form>
</div>
......@@ -427,6 +393,7 @@ export default {
}
}
params.method = 'dj.api.smarcarlife.purchaseOrder.export.async'
params.sortType = 3
const list = [
...this.dowloadList,
{
......
......@@ -2,22 +2,14 @@
<template>
<div>
<d2-container>
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
labelWidth="100px"
:search-form="searchForm"
:form-data="showFormData" />
<div class="header" slot="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" label-width="100px" :search-form="searchForm"
:form-data="showFormData" />
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
......@@ -26,33 +18,17 @@
<d2-table-header>
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
<baseDialog :is-show.sync="rejectVisible"
:dialog-config="rejectConfig.config"
@handleClick="handleRejectConfirm">
<baseDialog :is-show.sync="rejectVisible" :dialog-config="rejectConfig.config" @handleClick="handleRejectConfirm">
<div class="reject-dialog">
<el-form :rules="rejectRules"
:model="rejectData"
label-width="150px"
ref="delivery-dialog-form">
<el-form-item label="驳回原因:"
prop="rejectedReason">
<el-input type="textarea"
placeholder="请输入驳回原因"
maxlength="50"
:rows="3"
show-word-limit
v-model.trim="rejectData.rejectedReason"
class="dis-in-block reject-input" />
<el-form :rules="rejectRules" :model="rejectData" label-width="150px" ref="delivery-dialog-form">
<el-form-item label="驳回原因:" prop="rejectedReason">
<el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" :rows="3" show-word-limit
v-model.trim="rejectData.rejectedReason" class="dis-in-block reject-input" />
</el-form-item>
</el-form>
</div>
......@@ -127,6 +103,20 @@ export default {
prop: 'phone',
width: '120px'
}, {
label: '商户地址',
prop: '',
width: '200px',
formatter: (cellValue) => {
return (cellValue.provinceName || '') + (cellValue.cityName || '') + (cellValue.merchantAddress || '')
}
}, {
label: '主营品牌',
prop: '',
width: '200px',
formatter: (cellValue) => {
return cellValue.merchantBrandNameList ? cellValue.merchantBrandNameList.join('/') : '-'
}
}, {
label: '商户类型',
prop: 'merchantType',
width: '100px',
......@@ -179,7 +169,7 @@ export default {
]
},
baseData: {
applyStatus: applyStatus,
applyStatus: applyStatus
},
recordInfo: null,
rejectVisible: false,
......@@ -201,7 +191,7 @@ export default {
},
rejectRules: {
rejectedReason: [{ required: true, message: '请输入驳回原因', trigger: 'blur' }]
},
}
}
},
computed: {
......@@ -300,7 +290,7 @@ export default {
})
}
})
},
}
}
}
......
<!-- 虚拟对账账户 -->
<!-- 虚拟账户成本 -->
<template>
<d2-container class="account-list">
<div class="header"
slot="header">
<d2-search ref="showSearch"
:search-form="searchForm"
:form-data="showFormData">
<div class="header" slot="header">
<d2-search ref="showSearch" :search-form="searchForm" :form-data="showFormData">
<!-- :slot-scope="item" -->
<template slot="channelType">
<el-cascader style="width: 50%;"
:options="merchantLevelOptions[nameToOption[searchForm.channelType]]"
:props="{ checkStrictly: true, value: 'id', label: 'merchantName' }"
:show-all-levels="false"
v-model="merchantLevelVal"
clearable
filterable />
<el-cascader style="width: 50%;" :options="merchantLevelOptions[nameToOption[searchForm.channelType]]"
:props="{ checkStrictly: true, value: 'id', label: 'merchantName' }" :show-all-levels="false"
v-model="merchantLevelVal" clearable filterable />
</template>
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
<div class="d2-container-content">
<span slot="left">
<auth-button category="Button"
:show-btn-ids="['9061003']" />
<auth-button category="Button" :show-btn-ids="['9061003']" />
</span>
<d2-table ref="merchantTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
<d2-table ref="merchantTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
<!-- width="70%"
......@@ -51,13 +35,10 @@
@confirmDialog="handleDetailClose"
noCancel="true" -->
<!-- v-if="accountDetailVisible" -->
<baseDialog :is-show.sync="accountDetailVisible"
:config="dialogConfig.setting"
:dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose">
<account-detail v-if="accountDetailVisible"
:account-detail-visible="accountDetailVisible"
:merchant-row="merchantRow" />
<baseDialog :is-show.sync="accountDetailVisible" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose">
<account-detail v-if="accountDetailVisible" :account-detail-visible="accountDetailVisible"
:merchant-row="merchantRow" />
</baseDialog>
<!-- <settingDetail :show="settingDetailVisible"></settingDetail> -->
</d2-container>
......
<!-- 申请虚拟对账账户 -->
<!-- 申请虚拟账户成本 -->
<template>
<div class="apply-account">
<edit-form ref="editFormRef" :title="formTitle" :current-page="custType" :settlement-page="editForm.settlementType"
......@@ -46,7 +46,7 @@
txt-descript="被授权人身份证反面照" @handleImgChange="handleImgChange" @handleImgRemove="handleImgRemove"
:show="editForm.settlementType == 3" />
</div>
<!-- <span
<!-- <span
class="img-explain">1、法人身份证号、法人身份证照、法人手机号三者必须匹配。<br />2、身份证照片必须清晰可见。图片大小在1MB内支持png、jpg格式。</span> -->
<span class="img-explain">身份证照片必须清晰可见,图片大小在1M以内,支持jpg\png格式。</span>
</div>
......
<!-- 财务分账测试 -->
<template>
<d2-dialog title="分账测试"
:is-visible="verificationCodeVisible"
class="verificationCode"
width="900px"
@closeDialog="handleClose"
@confirmDialog="handleConfirm">
<d2-dialog title="分账测试" :is-visible="verificationCodeVisible" class="verificationCode" width="1000px"
@closeDialog="handleClose" @confirmDialog="handleConfirm">
<!-- <d2-container> -->
<el-form ref="form"
border
:model="form"
:rules="rules"
label-width="100px">
<el-form ref="form" border :model="form" :rules="rules" label-width="100px">
<div class="formItem">
<el-form-item label="商品售价:"
prop="totalPrice"
required>
<el-input v-model="form.totalPrice"
@input="handleInput($event,'totalPrice')" />
<el-form-item label="商品售价:" prop="totalPrice" required>
<el-input v-model="form.totalPrice" @input="handleInput($event, 'totalPrice')" />
</el-form-item>
<el-form-item label="商品成本:"
prop="goodsCost"
required>
<el-input v-model="form.goodsCost"
@input="handleInput($event,'goodsCost')" />
<el-form-item label="商品成本:" prop="goodsCost" required>
<el-input v-model="form.goodsCost" @input="handleInput($event, 'goodsCost')" />
</el-form-item>
<el-form-item label="虚拟对账成本:" label-width="120px" prop="virtualAccountCost" required>
<el-input v-model="form.virtualAccountCost" @input="handleInput($event, 'virtualAccountCost')" />
</el-form-item>
<el-form-item label="回收成本:" prop="recoveryCost" required>
<el-input v-model="form.recoveryCost" @input="handleInput($event, 'recoveryCost')" />
</el-form-item>
<!-- prop="goodsCost" @input="handleInput($event,'goodsCost')"-->
<el-form-item label="手续费:"
required>
<el-input :value="categoryTableData.serviceCharge"
disabled>
<el-form-item label="手续费:" required>
<el-input :value="categoryTableData.serviceCharge" disabled>
<!-- <i slot="suffix"
class="suffix">%</i> -->
</el-input>
</el-form-item>
<el-button class="subBtn"
@click="submitForm"
type="primary">提交测试</el-button>
<el-button class="subBtn" @click="submitForm" type="primary">提交测试</el-button>
</div>
</el-form>
......@@ -44,63 +32,47 @@
分账结果
</p>
<div class="tableHeader"><span class="serviceCharge item">手续费计算(仅针对线上支付订单)</span><span
class="diversionSide item">导流方分润<span
v-if="rulesTestParams.goodsTypeGroupRule.shop4sDeductChargeFlag != 'Y'">不</span>扣除手续费;服务商分润<span
v-if="rulesTestParams.goodsTypeGroupRule.partnerDeductChargeFlag!= 'Y'">不</span>扣除手续费</span>
class="diversionSide item">导流方分润<span
v-if="rulesTestParams.goodsTypeGroupRule.shop4sDeductChargeFlag != 'Y'">不</span>扣除手续费;服务商分润<span
v-if="rulesTestParams.goodsTypeGroupRule.partnerDeductChargeFlag != 'Y'">不</span>扣除手续费</span>
</div>
<el-table :header-cell-style="{background:'#F2F4F7','text-align':'center','color': '#333333'}"
:cell-style="{'text-align':'center','color': '#666666;'}"
border
:span-method="objectSpanMethod"
:data="categoryTableData.expenseCategoryCalculatedItemForRuleTestsResults">
<el-table-column prop="targetType"
label="类型"
width="143">
<el-table :header-cell-style="{ background: '#F2F4F7', 'text-align': 'center', 'color': '#333333' }"
:cell-style="{ 'text-align': 'center', 'color': '#666666;' }" border :span-method="objectSpanMethod"
:data="categoryTableData.expenseCategoryCalculatedItemForRuleTestsResults">
<el-table-column prop="targetType" label="类型" width="143">
<template slot-scope="scope">
{{ targetType[scope.row.targetType] }}
</template>
</el-table-column>
<el-table-column prop="expenseCategoryName"
label="分账类目"
width="143" />
<el-table-column prop="calculateMode"
label="计算模式"
width="143">
<el-table-column prop="expenseCategoryName" label="分账类目" width="143" />
<el-table-column prop="calculateMode" label="计算模式" width="143">
<template slot-scope="scope">
<span>{{ scope.row.calculateMode == 1 ? '按类目计算' : scope.row.calculateMode == 2 ? '按整单计算' : '-' }}</span>
</template>
</el-table-column>
<el-table-column prop="expenseCategoryCalculateType"
label="分账规则">
<el-table-column prop="expenseCategoryCalculateType" label="分账规则">
<!-- width="180" -->
<template slot-scope="scope">
<!-- {{ scope.row.expenseCategoryCalculateType }} -->
<span> {{ severSelectOptionsLabel[scope.row.expenseCategoryCalculateType] }}</span>
<span> {{ scope.row.expenseCategoryValue }}</span>
<span v-if="scope.row.expenseCategoryValue">
{{ scope.row.expenseCategoryCalculateType==3?'' :'%' }}</span>
<span
v-else-if="scope.row.targetType==4">收入-流量方分润-服务商分润-其他费用({{ rulesTestParams.goodsTypeGroupRule.goodsCostFlag=='Y'?'':'不' }}包含成本)</span>
{{ scope.row.expenseCategoryCalculateType == 3 ? '' : '%' }}</span>
<span v-else-if="scope.row.targetType == 4">收入-流量方分润-服务商分润-其他费用({{
rulesTestParams.goodsTypeGroupRule.goodsCostFlag == 'Y' ? '' : '不' }}包含成本)</span>
<!-- <span v-else-if="scope.row.targetType==4">收入-流量方分润-服务商分润-产品成本-安装成本</span> -->
<span v-else>--</span>
</template>
</el-table-column>
<el-table-column prop="expenseCategoryResult"
label="分账金额"
text-align="center"
width="200" />
<el-table-column prop="expenseCategoryResult" label="分账金额" text-align="center" width="200" />
</el-table>
<p class="edit-sub-title">
实际到账结果
</p>
<d2-table :table-data="resultTableData"
:has-num="false"
:has-page="false"
:row-style="{height: '40px'}"
:header-cell-style="{background:'#F2F4F7','text-align':'center','color': '#333333'}"
:cell-style="{'text-align':'center','color': '#666666;'}"
:table-params="tableParams" />
<d2-table :table-data="resultTableData" :has-num="false" :has-page="false" :row-style="{ height: '40px' }"
:header-cell-style="{ background: '#F2F4F7', 'text-align': 'center', 'color': '#333333' }"
:cell-style="{ 'text-align': 'center', 'color': '#666666;' }" :table-params="tableParams" />
<!-- </d2-container> -->
</d2-dialog>
......@@ -164,7 +136,9 @@ export default {
form: {
// model: ''
totalPrice: '',
goodsCost: ''
goodsCost: '',
virtualAccountCost: '',
recoveryCost: ''
},
oldVal: {
totalPrice: 0,
......@@ -172,6 +146,8 @@ export default {
},
rules: {
totalPrice: [{ required: true, message: '请输入商品价格', trigger: ['change', 'blur'] }],
virtualAccountCost: [{ required: true, message: '请输虚拟对账成本', trigger: ['change', 'blur'] }],
recoveryCost: [{ required: true, message: '请输回收成本', trigger: ['change', 'blur'] }],
goodsCost: [{ required: true, message: '请输入商品成本', trigger: ['change', 'blur'] },
{
validator: (rule, value, callback) => {
......@@ -348,18 +324,23 @@ export default {
border: 1px solid #e8e8ea;
border-bottom: none;
margin-bottom: -4px;
.item {
flex: 1;
padding: 10px 0;
text-align: center;
}
.item + .item {
.item+.item {
border-left: 1px solid #e8e8ea;
}
}
.formItem {
display: flex;
flex-wrap: wrap;
}
.subBtn {
margin-left: 20px;
height: 36px;
......
......@@ -82,9 +82,11 @@
:goods-type-group-rules="financialObj['goodsTypeGroupRules'][idx]" :goods-select-list="goodsSelectList"
:financial-ledger-party="financialLedgerParty" :tabindex="idx" :tab-item="item"
:service-merchant-list="serviceMerchantList" :router-info="routerInfo"
:classification-obj-select="classificationObj" @rulesTest="rulesTest" @assignGoodsTypeList="assignGoodsTypeList"
@deleteGoodsTypeItem="deleteGoodsTypeItem" @checkSuccess="checkSuccess(idx)" :upgradeGoodsList="upgradeGoodsList"
@deleteUpgradeGoodsItem="deleteUpgradeGoodsItem" @assignUpgradeGoodsList="assignUpgradeGoodsList" :selectUpgradeGoodsList="selectUpgradeGoodsList"/>
:classification-obj-select="classificationObj" @rulesTest="rulesTest"
@assignGoodsTypeList="assignGoodsTypeList" @deleteGoodsTypeItem="deleteGoodsTypeItem"
@checkSuccess="checkSuccess(idx)" :upgrade-goods-list="upgradeGoodsList"
@deleteUpgradeGoodsItem="deleteUpgradeGoodsItem" @assignUpgradeGoodsList="assignUpgradeGoodsList"
:select-upgrade-goods-list="selectUpgradeGoodsList" />
</div>
</el-tab-pane>
<el-tab-pane key="add" v-if="addVisible" name="add">
......@@ -318,9 +320,14 @@ export default {
} else if (applicationObjectType == 2) {
prev.serviceProvider.push(obj)
} else if (applicationObjectType == 3) {
if ((obj.id != 3 && obj.applicationObjectName != '产品成本') && (obj.id != 4)) {
// 过滤掉 产品成本 虚拟对账成本 回收成本
const filterIdList = [3, 4, 300, 301]
if (!filterIdList.includes(obj.id)) {
prev.platformPublic.push(obj)
}
// if ((obj.id != 3 && obj.applicationObjectName != '产品成本') && (obj.id != 4)) {
// }
}
return prev
}, {
......@@ -364,7 +371,7 @@ export default {
// }
// }
// goodsTypeGroupRules = goodsTypeGroupRules.sort(compare('groupType'))
let upgradeArr = []
const upgradeArr = []
goodsTypeGroupRules && goodsTypeGroupRules.forEach((item, index) => {
this.editableTabs[index] = {
title: index ? '特殊品类' + index : '全部品类',
......@@ -552,7 +559,7 @@ export default {
pageSize: this.pageSize
}).then(res => {
this.allPages = res.pages
let resArr = []
const resArr = []
res.list && res.list.forEach(val => {
val.upgradeGoodsList.forEach(v => {
resArr.push({
......@@ -568,9 +575,9 @@ export default {
}).catch(() => {
})
},
unique(arr){
const res= new Map()
return arr.filter((a)=> !res.has(a.upgradeGoodsId) && res.set(a.upgradeGoodsId,1))
unique(arr) {
const res = new Map()
return arr.filter((a) => !res.has(a.upgradeGoodsId) && res.set(a.upgradeGoodsId, 1))
},
getParams() {
var realityPlatform = this.baseData.PlatformLevelList.find(item => item.merchantId == this.financialObj.realityPlatformMerchantId)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!