更新
This commit is contained in:
@@ -72,13 +72,13 @@
|
||||
effect="dark"
|
||||
:type="
|
||||
accountStateEnum.find(
|
||||
(item) => item.value === row.accountState
|
||||
(item) => item.value == row.accountState
|
||||
).type
|
||||
"
|
||||
>
|
||||
{{
|
||||
accountStateEnum.find(
|
||||
(item) => item.value === row.accountState
|
||||
(item) => item.value == row.accountState
|
||||
).label
|
||||
}}
|
||||
</el-tag>
|
||||
@@ -90,7 +90,7 @@
|
||||
<el-table-column label="企业性质" minWidth="120">
|
||||
<template slot-scope="{ row }">
|
||||
{{
|
||||
companyNatureEnum.find((item) => item.value === row.companyNature)
|
||||
companyNatureEnum.find((item) => item.value == row.companyNature)
|
||||
.label
|
||||
}}
|
||||
</template>
|
||||
@@ -176,7 +176,7 @@
|
||||
<p v-if="oilCompanyMatch[0]">
|
||||
{{
|
||||
companyNatureEnum.find(
|
||||
(item) => item.value === oilCompanyMatch[0].companyNature
|
||||
(item) => item.value == oilCompanyMatch[0].companyNature
|
||||
).label
|
||||
}}
|
||||
</p>
|
||||
@@ -195,7 +195,7 @@
|
||||
<p v-if="oilCompanyMatch[1]">
|
||||
{{
|
||||
accountStatusEnum.find(
|
||||
(item) => item.value === oilCompanyMatch[1].accountState
|
||||
(item) => item.value == oilCompanyMatch[1].accountState
|
||||
).label
|
||||
}}
|
||||
</p>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
<template slot-scope="{ row }">
|
||||
<p v-if="!/\W+/.test(row.billType)">
|
||||
{{
|
||||
rechargeTypeEnum.find((item) => item.value === row.billType)
|
||||
rechargeTypeEnum.find((item) => item.value == row.billType)
|
||||
.label
|
||||
}}
|
||||
</p>
|
||||
@@ -143,7 +143,7 @@
|
||||
<p>
|
||||
{{
|
||||
rechargeTypeEnum.find(
|
||||
(item) => item.value === oilCompanyMatch[0].billType
|
||||
(item) => item.value == oilCompanyMatch[0].billType
|
||||
).label
|
||||
}}
|
||||
</p>
|
||||
@@ -204,9 +204,8 @@
|
||||
<template slot-scope="{ row }">
|
||||
<p v-if="!/\W+/.test(row.billType)">
|
||||
{{
|
||||
rechargeTypeEnum.find(
|
||||
(item) => item.value === row.billTypes
|
||||
).label
|
||||
rechargeTypeEnum.find((item) => item.value == row.billTypes)
|
||||
.label
|
||||
}}
|
||||
</p>
|
||||
<p v-else>
|
||||
|
||||
@@ -274,12 +274,7 @@ export default {
|
||||
echoName: this.form.refineryName || "",
|
||||
isDisabled: !!id,
|
||||
};
|
||||
// ? { echoId: id || '', echoName: this.form.refineryName || '', isDisabled: !!id }
|
||||
// : {
|
||||
// echoId: "",
|
||||
// echoName: "",
|
||||
// isDisabled: false,
|
||||
// };
|
||||
|
||||
Object.assign(this.configAutocomplete, configUpdata);
|
||||
},
|
||||
// 公司change
|
||||
|
||||
@@ -44,16 +44,14 @@
|
||||
<template slot="label">
|
||||
<i class="el-icon-bank-card"></i>
|
||||
{{
|
||||
correspondTypeEnum.find(
|
||||
(item) => item.value === form.turnType
|
||||
).label
|
||||
correspondTypeEnum.find((item) => item.value == form.turnType)
|
||||
.label
|
||||
}}
|
||||
</template>
|
||||
{{
|
||||
companyInfo[
|
||||
correspondTypeEnum.find(
|
||||
(item) => item.value === form.turnType
|
||||
).valueKey
|
||||
correspondTypeEnum.find((item) => item.value == form.turnType)
|
||||
.valueKey
|
||||
]
|
||||
}}
|
||||
</el-descriptions-item>
|
||||
@@ -110,7 +108,7 @@ export default {
|
||||
// };
|
||||
let validatortransactionAmount = (rule, value, callback) => {
|
||||
let typeTarget = this.correspondTypeEnum.find(
|
||||
(item) => item.value === this.form.turnType
|
||||
(item) => item.value == this.form.turnType
|
||||
);
|
||||
let superiorLimit = this.companyInfo[typeTarget.valueKey];
|
||||
if (value == "") callback("请输入圈回金额");
|
||||
|
||||
@@ -1,16 +1,6 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
:title="controlWindows.addInfo.title"
|
||||
:visible.sync="controlWindows.examine"
|
||||
width="40%"
|
||||
>
|
||||
<el-input
|
||||
type="textarea"
|
||||
:rows="2"
|
||||
:placeholder="controlWindows.addInfo.placeholder"
|
||||
v-model="auditRemark"
|
||||
>
|
||||
</el-input>
|
||||
<el-dialog :title="controlWindows.addInfo.title" :visible.sync="controlWindows.examine" width="35%" @close="closeWindow">
|
||||
<el-input type="textarea" :rows="2" :placeholder="controlWindows.addInfo.placeholder" v-model="auditRemark"> </el-input>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="closeWindow">取 消</el-button>
|
||||
<el-button type="primary" @click="submit">确 定</el-button>
|
||||
@@ -19,36 +9,35 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import serve from "api/financialCenter/enterpriseRecharge.js";
|
||||
import serve from 'api/financialCenter/enterpriseRecharge.js'
|
||||
export default {
|
||||
props: {
|
||||
controlWindows: Object,
|
||||
controlWindows: Object
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
auditRemark: "",
|
||||
};
|
||||
auditRemark: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
closeWindow() {
|
||||
// this.auditRemark = "";
|
||||
// this.controlWindows.addInfo = {};
|
||||
// this.$emit("closeWindow");
|
||||
this.controlWindows.examine = false;
|
||||
},
|
||||
submit() {
|
||||
serve
|
||||
.audit({
|
||||
auditRemark: this.auditRemark,
|
||||
...this.controlWindows.addInfo,
|
||||
...this.controlWindows.addInfo
|
||||
})
|
||||
.then(res => {
|
||||
this.$message.success(res.msg)
|
||||
this.closeWindow()
|
||||
})
|
||||
.then((res) => {
|
||||
this.$message.success(res.msg);
|
||||
this.closeWindow();
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
closeWindow() {
|
||||
this.auditRemark = ''
|
||||
this.$emit('closeWindow')
|
||||
this.controlWindows.examine = false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
|
||||
@@ -2,54 +2,17 @@
|
||||
<div class="enterprise-recharge">
|
||||
<div class="frame">
|
||||
<!-- 公司名称 -->
|
||||
<autocomplete
|
||||
class="mr20"
|
||||
:params="parameter.params"
|
||||
:config="configAutocomplete"
|
||||
/>
|
||||
<autocomplete class="mr20" :params="parameter.params" :config="configAutocomplete" />
|
||||
<!-- 业务负责人 -->
|
||||
<autocomplete
|
||||
:params="parameter.params"
|
||||
:config="configAutocompleteSec"
|
||||
/>
|
||||
<el-select
|
||||
v-model="parameter.params.transactionType"
|
||||
placeholder="交易类型"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="(item, index) in rechargeTypeEnum"
|
||||
:key="index"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
<autocomplete :params="parameter.params" :config="configAutocompleteSec" />
|
||||
<el-select v-model="parameter.params.transactionType" placeholder="交易类型" clearable>
|
||||
<el-option v-for="(item, index) in rechargeTypeEnum" :key="index" :label="item.label" :value="item.value"> </el-option>
|
||||
</el-select>
|
||||
<el-select
|
||||
v-model="parameter.params.transactionState"
|
||||
placeholder="交易状态"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="(item, index) in rechargeStatusEnum"
|
||||
:key="index"
|
||||
:label="item.label"
|
||||
:value="item.value + ''"
|
||||
>
|
||||
</el-option>
|
||||
<el-select v-model="parameter.params.transactionState" placeholder="交易状态" clearable>
|
||||
<el-option v-for="(item, index) in rechargeStatusEnum" :key="index" :label="item.label" :value="item.value + ''"> </el-option>
|
||||
</el-select>
|
||||
<el-select
|
||||
v-model="parameter.params.auditMark"
|
||||
placeholder="交易审核标识"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="(item, index) in auditMarkEnum"
|
||||
:key="index"
|
||||
:label="item.label"
|
||||
:value="item.value + ''"
|
||||
>
|
||||
</el-option>
|
||||
<el-select v-model="parameter.params.auditMark" placeholder="交易审核标识" clearable>
|
||||
<el-option v-for="(item, index) in auditMarkEnum" :key="index" :label="item.label" :value="item.value + ''"> </el-option>
|
||||
</el-select>
|
||||
<el-date-picker
|
||||
v-model="datetime"
|
||||
@@ -85,13 +48,7 @@
|
||||
<el-table-column type="selection" width="55"> </el-table-column>
|
||||
<el-table-column label="企业名称" show-overflow-tooltip>
|
||||
<template slot-scope="{ row }">
|
||||
<el-tag
|
||||
size="small"
|
||||
type="danger"
|
||||
effect="dark"
|
||||
v-show="row.operationCode"
|
||||
>急</el-tag
|
||||
>
|
||||
<el-tag size="small" type="danger" effect="dark" v-show="row.operationCode">急</el-tag>
|
||||
<span style="margin-left: 10px">{{ row.companyName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -100,28 +57,13 @@
|
||||
<template slot-scope="{ row }">
|
||||
<span>
|
||||
{{
|
||||
row.transactionType === "TURN"
|
||||
? LoopBackTypeEnum.find((item) => item.value === row.turnType)
|
||||
.label
|
||||
: rechargeTypeEnum.find(
|
||||
(item) => item.value === row.transactionType
|
||||
).label
|
||||
row.transactionType === 'TURN'
|
||||
? LoopBackTypeEnum.find(item => item.value == row.turnType).label
|
||||
: rechargeTypeEnum.find(item => item.value == row.transactionType).label
|
||||
}}
|
||||
</span>
|
||||
<el-popover
|
||||
placement="top-start"
|
||||
trigger="click"
|
||||
content="{row.settlementNo}"
|
||||
>
|
||||
<el-tag
|
||||
style="cursor: pointer"
|
||||
slot="reference"
|
||||
size="small"
|
||||
type="p"
|
||||
effect="dark"
|
||||
v-show="row.settlementNo"
|
||||
>结</el-tag
|
||||
>
|
||||
<el-popover placement="top-start" trigger="click" content="{row.settlementNo}">
|
||||
<el-tag style="cursor: pointer" slot="reference" size="small" type="p" effect="dark" v-show="row.settlementNo">结</el-tag>
|
||||
</el-popover>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -129,38 +71,18 @@
|
||||
<el-table-column label="交易状态">
|
||||
<template slot-scope="{ row }">
|
||||
<p>
|
||||
{{
|
||||
rechargeStatusEnum.find(
|
||||
(item) => item.value === row.transactionState
|
||||
).label
|
||||
}}
|
||||
{{ rechargeStatusEnum.find(item => item.value == row.transactionState).label }}
|
||||
</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="transactionAmount"
|
||||
label="交易金额"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="rechargeRebateAmount"
|
||||
label="充值返利比例/金额"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template slot-scope="{ row }">
|
||||
{{ row.rechargeRebate }}/{{ row.rechargeRebateAmount }}
|
||||
</template>
|
||||
<el-table-column prop="transactionAmount" label="交易金额" show-overflow-tooltip> </el-table-column>
|
||||
<el-table-column prop="rechargeRebateAmount" label="充值返利比例/金额" show-overflow-tooltip>
|
||||
<template slot-scope="{ row }"> {{ row.rechargeRebate }}/{{ row.rechargeRebateAmount }} </template>
|
||||
</el-table-column>
|
||||
<el-table-column label="付款/收款公司账户">
|
||||
<template slot-scope="{ row }">
|
||||
<el-tooltip
|
||||
className="item"
|
||||
effect="dark"
|
||||
placement="top"
|
||||
:disabled="!row.internalCompanyName"
|
||||
>
|
||||
<el-tooltip className="item" effect="dark" placement="top" :disabled="!row.internalCompanyName">
|
||||
<div slot="content">
|
||||
<p>收款公司账户:{{ row.internalCompanyName }}</p>
|
||||
<p>收款开户行:{{ row.bankDeposit }}</p>
|
||||
@@ -168,64 +90,40 @@
|
||||
</div>
|
||||
<div>
|
||||
<el-tag size="mini">付</el-tag>
|
||||
<span>{{
|
||||
row.offlinePaymentCompany ? row.offlinePaymentCompany : "暂无"
|
||||
}}</span>
|
||||
<span>{{ row.offlinePaymentCompany ? row.offlinePaymentCompany : '暂无' }}</span>
|
||||
<br />
|
||||
<el-tag size="mini" type="success">收</el-tag>
|
||||
<span>{{
|
||||
row.internalCompanyName ? row.internalCompanyName : "暂无"
|
||||
}}</span>
|
||||
<span>{{ row.internalCompanyName ? row.internalCompanyName : '暂无' }}</span>
|
||||
</div>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="交易审核标识" show-overflow-tooltip>
|
||||
<template slot-scope="{ row }">
|
||||
<el-button
|
||||
@click="examine(row)"
|
||||
:type="
|
||||
auditMarkEnum.find((item) => item.value === row.auditMark).type
|
||||
"
|
||||
size="mini"
|
||||
>{{
|
||||
auditMarkEnum.find((item) => item.value === row.auditMark).label
|
||||
}}</el-button
|
||||
>
|
||||
<el-button @click="examine(row)" :type="auditMarkEnum.find(item => item.value == row.auditMark).type" size="mini">{{
|
||||
auditMarkEnum.find(item => item.value == row.auditMark).label
|
||||
}}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="createTime"
|
||||
label="创建时间"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column prop="createTime" label="创建时间" show-overflow-tooltip> </el-table-column>
|
||||
<el-table-column label="操作">
|
||||
<template slot-scope="{ row }">
|
||||
<span class="el-dropdown-link" @click="detail(row)">详情</span>
|
||||
<el-dropdown
|
||||
@command="
|
||||
(val) => {
|
||||
commandMore(val, row);
|
||||
val => {
|
||||
commandMore(val, row)
|
||||
}
|
||||
"
|
||||
>
|
||||
<span class="el-dropdown-link">
|
||||
更多<i class="el-icon-arrow-down el-icon--right"></i>
|
||||
</span>
|
||||
<span class="el-dropdown-link"> 更多<i class="el-icon-arrow-down el-icon--right"></i> </span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<template v-if="row.transactionType == 'TURN'">
|
||||
<el-dropdown-item
|
||||
command="updateTurn"
|
||||
v-if="row.auditMark === 0"
|
||||
>圈回编辑</el-dropdown-item
|
||||
>
|
||||
<el-dropdown-item command="updateTurn" v-if="row.auditMark === 0">圈回编辑</el-dropdown-item>
|
||||
</template>
|
||||
<template v-else>
|
||||
<el-dropdown-item command="update" v-if="row.auditMark === 0"
|
||||
>编辑</el-dropdown-item
|
||||
>
|
||||
<el-dropdown-item command="update" v-if="row.auditMark === 0">编辑</el-dropdown-item>
|
||||
</template>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
@@ -239,14 +137,10 @@
|
||||
<add :controlWindows="controlWindows" @closeWindow="search" />
|
||||
<!-- 圈回 -->
|
||||
<add-turn :controlWindows="controlWindows" @closeWindow="search" />
|
||||
<!-- 审核 -->
|
||||
<examine :controlWindows="controlWindows" @closeWindow="search" />
|
||||
<!-- 详情 -->
|
||||
<el-drawer
|
||||
title="详情"
|
||||
direction="ltr"
|
||||
size="60%"
|
||||
:withHeader="false"
|
||||
:visible.sync="controlWindows.detail"
|
||||
>
|
||||
<el-drawer title="详情" direction="ltr" size="60%" :withHeader="false" :visible.sync="controlWindows.detail">
|
||||
<general-details
|
||||
title="详情"
|
||||
:isHeader="true"
|
||||
@@ -256,54 +150,35 @@
|
||||
@close="controlWindows.detail = false"
|
||||
>
|
||||
<template #offlineTransactionProof>
|
||||
<el-image
|
||||
style="width: 100px; height: 100px"
|
||||
:src="oilCompanyMatch[0].offlineTransactionProof"
|
||||
/>
|
||||
<el-image style="width: 100px; height: 100px" :src="oilCompanyMatch[0].offlineTransactionProof" />
|
||||
</template>
|
||||
<template #transactionType>
|
||||
<p>
|
||||
{{
|
||||
oilCompanyMatch.transactionType === "TURN"
|
||||
? LoopBackTypeEnum.find(
|
||||
(item) => item.value === oilCompanyMatch[0].turnType
|
||||
).label
|
||||
: rechargeTypeEnum.find(
|
||||
(item) => item.value === oilCompanyMatch[0].transactionType
|
||||
).label
|
||||
oilCompanyMatch.transactionType === 'TURN'
|
||||
? LoopBackTypeEnum.find(item => item.value == oilCompanyMatch[0].turnType).label
|
||||
: rechargeTypeEnum.find(item => item.value == oilCompanyMatch[0].transactionType).label
|
||||
}}
|
||||
</p>
|
||||
</template>
|
||||
<template #transactionState>
|
||||
<p>
|
||||
{{
|
||||
rechargeStatusEnum.find(
|
||||
(item) => item.value === oilCompanyMatch[0].transactionState
|
||||
).label
|
||||
}}
|
||||
{{ rechargeStatusEnum.find(item => item.value == oilCompanyMatch[0].transactionState).label }}
|
||||
</p>
|
||||
</template>
|
||||
<template #auditMark>
|
||||
<p>
|
||||
{{
|
||||
auditMarkEnum.find(
|
||||
(item) => item.value === oilCompanyMatch[0].auditMark
|
||||
).label
|
||||
}}
|
||||
{{ auditMarkEnum.find(item => item.value == oilCompanyMatch[0].auditMark).label }}
|
||||
</p>
|
||||
</template>
|
||||
<template #accountState>
|
||||
<p>
|
||||
{{
|
||||
accountStatusEnum.find(
|
||||
(item) => item.value === oilCompanyMatch[1].accountState
|
||||
).label
|
||||
}}
|
||||
{{ accountStatusEnum.find(item => item.value == oilCompanyMatch[1].accountState).label }}
|
||||
</p>
|
||||
</template>
|
||||
<template #accountType>
|
||||
<p>
|
||||
{{ oilCompanyMatch[1].accountType === "0" ? "基础账户" : "" }}
|
||||
{{ oilCompanyMatch[1].accountType === '0' ? '基础账户' : '' }}
|
||||
</p>
|
||||
</template>
|
||||
<template v-if="controlWindows.addInfo.examineMark" #footer>
|
||||
@@ -312,28 +187,22 @@
|
||||
</template>
|
||||
</general-details>
|
||||
</el-drawer>
|
||||
<!-- 审核 -->
|
||||
<examine :controlWindows="controlWindows" @closeWindow="search" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import serve from "api/financialCenter/enterpriseRecharge.js";
|
||||
import commonServe from "api/common.js";
|
||||
import serve from 'api/financialCenter/enterpriseRecharge.js'
|
||||
import commonServe from 'api/common.js'
|
||||
|
||||
import add from "./components/add.vue";
|
||||
import addTurn from "./components/addTurn.vue";
|
||||
import examine from "./components/examine.vue";
|
||||
import add from './components/add.vue'
|
||||
import addTurn from './components/addTurn.vue'
|
||||
import examine from './components/examine.vue'
|
||||
|
||||
import autocomplete from "components/autocomplete/index.vue";
|
||||
import pagination from "components/pagination/index.vue";
|
||||
import generalDetails from "components/generalDetails/index.vue";
|
||||
import autocomplete from 'components/autocomplete/index.vue'
|
||||
import pagination from 'components/pagination/index.vue'
|
||||
import generalDetails from 'components/generalDetails/index.vue'
|
||||
|
||||
import {
|
||||
rechargeTypeEnum,
|
||||
rechargeStatusEnum,
|
||||
accountStatusEnum,
|
||||
} from "utils/dataType.js";
|
||||
import { rechargeTypeEnum, rechargeStatusEnum, accountStatusEnum } from 'utils/dataType.js'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -343,7 +212,7 @@ export default {
|
||||
|
||||
pagination,
|
||||
autocomplete,
|
||||
generalDetails,
|
||||
generalDetails
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -352,27 +221,27 @@ export default {
|
||||
addTurn: false,
|
||||
addInfo: {},
|
||||
detail: false,
|
||||
examine: false,
|
||||
examine: false
|
||||
},
|
||||
accountStatusEnum: accountStatusEnum,
|
||||
rechargeTypeEnum: rechargeTypeEnum,
|
||||
rechargeStatusEnum: rechargeStatusEnum,
|
||||
auditMarkEnum: [
|
||||
{
|
||||
label: "待审核",
|
||||
label: '待审核',
|
||||
value: 0,
|
||||
type: "warning",
|
||||
type: 'warning'
|
||||
},
|
||||
{
|
||||
label: "审核通过",
|
||||
label: '审核通过',
|
||||
value: 1,
|
||||
type: "success",
|
||||
type: 'success'
|
||||
},
|
||||
{
|
||||
label: "审核失败",
|
||||
label: '审核失败',
|
||||
value: -1,
|
||||
type: "danger",
|
||||
},
|
||||
type: 'danger'
|
||||
}
|
||||
],
|
||||
|
||||
datetime: [],
|
||||
@@ -380,272 +249,255 @@ export default {
|
||||
tableData: [],
|
||||
configAutocomplete: {
|
||||
serveTarget: commonServe.getRefineryCompanyList,
|
||||
autocompleteKey: "name",
|
||||
labelKey: "name",
|
||||
valueKey: "id",
|
||||
placeholder: "企业名称",
|
||||
querykey: "companyId",
|
||||
autocompleteKey: 'name',
|
||||
labelKey: 'name',
|
||||
valueKey: 'id',
|
||||
placeholder: '企业名称',
|
||||
querykey: 'companyId'
|
||||
},
|
||||
configAutocompleteSec: {
|
||||
serveTarget: commonServe.liekQuery,
|
||||
autocompleteKey: "",
|
||||
labelKey: ["id", "nickName", "phone"],
|
||||
valueKey: "id",
|
||||
placeholder: "业务负责人",
|
||||
querykey: "businessLeader",
|
||||
autocompleteKey: '',
|
||||
labelKey: ['id', 'nickName', 'phone'],
|
||||
valueKey: 'id',
|
||||
placeholder: '业务负责人',
|
||||
querykey: 'businessLeader'
|
||||
},
|
||||
parameter: {
|
||||
currentPage: 1,
|
||||
pageSize: 10,
|
||||
total: 0,
|
||||
params: {},
|
||||
params: {}
|
||||
},
|
||||
LoopBackTypeEnum: [
|
||||
{
|
||||
label: "充值圈回",
|
||||
value: 1,
|
||||
label: '充值圈回',
|
||||
value: 1
|
||||
},
|
||||
{
|
||||
label: "赊销圈回",
|
||||
value: 2,
|
||||
label: '赊销圈回',
|
||||
value: 2
|
||||
},
|
||||
{
|
||||
label: "充值返利圈回",
|
||||
value: 3,
|
||||
label: '充值返利圈回',
|
||||
value: 3
|
||||
},
|
||||
{
|
||||
label: "消费返利圈回",
|
||||
value: 4,
|
||||
},
|
||||
label: '消费返利圈回',
|
||||
value: 4
|
||||
}
|
||||
],
|
||||
oilCompanyMatch: [],
|
||||
mappingData: [
|
||||
{
|
||||
carTitle: "",
|
||||
carTitle: '',
|
||||
// 标记
|
||||
carItems: [
|
||||
{ label: "ID", value: "id" },
|
||||
{ label: "交易类型", value: "transactionType" },
|
||||
{ label: "交易状态", value: "transactionState" },
|
||||
{ label: "交易金额", value: "transactionAmount" },
|
||||
{ label: "充值返利比例", value: "rechargeRebate" },
|
||||
{ label: "充值返利金额", value: "rechargeRebateAmount" },
|
||||
{ label: "线下汇款公司账户", value: "offlinePaymentCompany" },
|
||||
{ label: "线下交易发起时间", value: "offlineStartTime" },
|
||||
{ label: "线下交易完成时间", value: "offlineCompleteTime" },
|
||||
{ label: "线下交易凭证", value: "offlineTransactionProof" },
|
||||
{ label: "交易审核标识", value: "auditMark" },
|
||||
{ label: "审核人", value: "auditUserName" },
|
||||
{ label: "交易说明", value: "reverseRemark" },
|
||||
{ label: "审核时间", value: "auditTime" },
|
||||
{ label: "审核系统来源", value: "auditSource" },
|
||||
{ label: "创建用户", value: "createUserName" },
|
||||
{ label: "创建时间", value: "createTime" },
|
||||
{ label: "创建数据来源", value: "createSource" },
|
||||
{ label: "企业收款账户", value: "internalCompanyName" },
|
||||
{ label: "开户行", value: "bankDeposit" },
|
||||
{ label: "银行卡号", value: "bankCardNo" },
|
||||
],
|
||||
{ label: 'ID', value: 'id' },
|
||||
{ label: '交易类型', value: 'transactionType' },
|
||||
{ label: '交易状态', value: 'transactionState' },
|
||||
{ label: '交易金额', value: 'transactionAmount' },
|
||||
{ label: '充值返利比例', value: 'rechargeRebate' },
|
||||
{ label: '充值返利金额', value: 'rechargeRebateAmount' },
|
||||
{ label: '线下汇款公司账户', value: 'offlinePaymentCompany' },
|
||||
{ label: '线下交易发起时间', value: 'offlineStartTime' },
|
||||
{ label: '线下交易完成时间', value: 'offlineCompleteTime' },
|
||||
{ label: '线下交易凭证', value: 'offlineTransactionProof' },
|
||||
{ label: '交易审核标识', value: 'auditMark' },
|
||||
{ label: '审核人', value: 'auditUserName' },
|
||||
{ label: '交易说明', value: 'reverseRemark' },
|
||||
{ label: '审核时间', value: 'auditTime' },
|
||||
{ label: '审核系统来源', value: 'auditSource' },
|
||||
{ label: '创建用户', value: 'createUserName' },
|
||||
{ label: '创建时间', value: 'createTime' },
|
||||
{ label: '创建数据来源', value: 'createSource' },
|
||||
{ label: '企业收款账户', value: 'internalCompanyName' },
|
||||
{ label: '开户行', value: 'bankDeposit' },
|
||||
{ label: '银行卡号', value: 'bankCardNo' }
|
||||
]
|
||||
},
|
||||
{
|
||||
carTitle: "账户信息",
|
||||
carTitle: '账户信息',
|
||||
carItems: [
|
||||
{ label: "账户总余额", value: "balance" },
|
||||
{ label: "待还总金额", value: "totalChargeAmount" },
|
||||
{ label: "账户状态", value: "accountState" },
|
||||
{ label: "账户类型", value: "accountType" },
|
||||
{ label: "账户充值余额", value: "rechargeBalance" },
|
||||
{ label: "充值返利余额", value: "rechargeRebateBalance" },
|
||||
{ label: "消费返利余额", value: "consumeRebateBalance" },
|
||||
{ label: "累计充值金额", value: "totalRechargeAmount" },
|
||||
{ label: "累计充值返利金额", value: "totalRechargeRebateAmount" },
|
||||
{ label: "累计消费返利金额", value: "totalConsumeRebateAmount" },
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
{ label: '账户总余额', value: 'balance' },
|
||||
{ label: '待还总金额', value: 'totalChargeAmount' },
|
||||
{ label: '账户状态', value: 'accountState' },
|
||||
{ label: '账户类型', value: 'accountType' },
|
||||
{ label: '账户充值余额', value: 'rechargeBalance' },
|
||||
{ label: '充值返利余额', value: 'rechargeRebateBalance' },
|
||||
{ label: '消费返利余额', value: 'consumeRebateBalance' },
|
||||
{ label: '累计充值金额', value: 'totalRechargeAmount' },
|
||||
{ label: '累计充值返利金额', value: 'totalRechargeRebateAmount' },
|
||||
{ label: '累计消费返利金额', value: 'totalConsumeRebateAmount' }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.initDateTime();
|
||||
this.getByPage();
|
||||
this.initDateTime()
|
||||
this.getByPage()
|
||||
},
|
||||
updated() {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.multipleTable && this.$refs.multipleTable.doLayout();
|
||||
});
|
||||
this.$refs.multipleTable && this.$refs.multipleTable.doLayout()
|
||||
})
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
this.heightHandle();
|
||||
});
|
||||
window.addEventListener(
|
||||
"resize",
|
||||
this.$utils.debounce(this.heightHandle, 500)
|
||||
);
|
||||
this.heightHandle()
|
||||
})
|
||||
window.addEventListener('resize', this.$utils.debounce(this.heightHandle, 500))
|
||||
},
|
||||
methods: {
|
||||
search() {
|
||||
this.parameter.currentPage = 1;
|
||||
this.getByPage();
|
||||
this.parameter.currentPage = 1
|
||||
this.getByPage()
|
||||
},
|
||||
//table list
|
||||
getByPage() {
|
||||
this.parameter.params["companyAccountType"] = "4";
|
||||
serve.getByPage(this.parameter).then((res) => {
|
||||
this.tableData = res.data.list;
|
||||
this.parameter.total = res.data.totalCount;
|
||||
});
|
||||
this.parameter.params['companyAccountType'] = '4'
|
||||
serve.getByPage(this.parameter).then(res => {
|
||||
this.tableData = res.data.list
|
||||
this.parameter.total = res.data.totalCount
|
||||
})
|
||||
},
|
||||
//新增
|
||||
addition() {
|
||||
this.controlWindows.addInfo = {
|
||||
title: "企业充值",
|
||||
};
|
||||
this.controlWindows.add = true;
|
||||
title: '企业充值'
|
||||
}
|
||||
this.controlWindows.add = true
|
||||
},
|
||||
// 圈回
|
||||
additionTurn() {
|
||||
this.controlWindows.addInfo = {
|
||||
title: "资金圈回",
|
||||
};
|
||||
this.controlWindows.addTurn = true;
|
||||
title: '资金圈回'
|
||||
}
|
||||
this.controlWindows.addTurn = true
|
||||
},
|
||||
// 审核
|
||||
examine(row) {
|
||||
Promise.all([
|
||||
serve.get(row.id),
|
||||
commonServe.getByCompanyIdAccount(row.companyId),
|
||||
]).then(([firstRes, secondRes]) => {
|
||||
this.oilCompanyMatch = [firstRes.data, secondRes.data];
|
||||
Promise.all([serve.get(row.id), commonServe.getByCompanyIdAccount(row.companyId)]).then(([firstRes, secondRes]) => {
|
||||
this.oilCompanyMatch = [firstRes.data, secondRes.data]
|
||||
this.controlWindows.addInfo = {
|
||||
examineMark: row.auditMark === 0,
|
||||
id: row.id,
|
||||
};
|
||||
this.controlWindows.detail = true;
|
||||
});
|
||||
id: row.id
|
||||
}
|
||||
this.controlWindows.detail = true
|
||||
})
|
||||
},
|
||||
// 审核通过
|
||||
examineAdopt() {
|
||||
Object.assign(this.controlWindows.addInfo, {
|
||||
title: "交易审核通过说明",
|
||||
placeholder: "请输入交易审核通过说明",
|
||||
title: '交易审核通过说明',
|
||||
placeholder: '请输入交易审核通过说明',
|
||||
auditMark: 1,
|
||||
updateSource: "REFINERY_OMS_WEB",
|
||||
});
|
||||
this.controlWindows.examine = true;
|
||||
updateSource: 'REFINERY_OMS_WEB'
|
||||
})
|
||||
this.controlWindows.examine = true
|
||||
},
|
||||
// 审核不通过
|
||||
examineFail() {
|
||||
Object.assign(this.controlWindows.addInfo, {
|
||||
title: "交易审核不通过说明",
|
||||
placeholder: "请输入交易审核不通过说明",
|
||||
title: '交易审核不通过说明',
|
||||
placeholder: '请输入交易审核不通过说明',
|
||||
auditMark: -1,
|
||||
updateSource: "REFINERY_OMS_WEB",
|
||||
});
|
||||
this.controlWindows.examine = true;
|
||||
updateSource: 'REFINERY_OMS_WEB'
|
||||
})
|
||||
this.controlWindows.examine = true
|
||||
},
|
||||
// 更多
|
||||
commandMore(val, row) {
|
||||
this.controlWindows.addInfo = {
|
||||
title: "编辑",
|
||||
...row,
|
||||
};
|
||||
if (val === "update") {
|
||||
this.controlWindows.add = true;
|
||||
title: '编辑',
|
||||
...row
|
||||
}
|
||||
if (val === "updateTurn") {
|
||||
this.controlWindows.addTurn = true;
|
||||
if (val === 'update') {
|
||||
this.controlWindows.add = true
|
||||
}
|
||||
if (val === 'updateTurn') {
|
||||
this.controlWindows.addTurn = true
|
||||
}
|
||||
},
|
||||
//详情
|
||||
detail(row) {
|
||||
Promise.all([
|
||||
serve.get(row.id),
|
||||
commonServe.getByCompanyIdAccount(row.companyId),
|
||||
]).then(([firstRes, secondRes]) => {
|
||||
this.oilCompanyMatch = [firstRes.data, secondRes.data];
|
||||
this.controlWindows.addInfo.examineMark = false;
|
||||
this.controlWindows.detail = true;
|
||||
});
|
||||
Promise.all([serve.get(row.id), commonServe.getByCompanyIdAccount(row.companyId)]).then(([firstRes, secondRes]) => {
|
||||
this.oilCompanyMatch = [firstRes.data, secondRes.data]
|
||||
this.controlWindows.addInfo.examineMark = false
|
||||
this.controlWindows.detail = true
|
||||
})
|
||||
},
|
||||
//
|
||||
getSummaries(param) {
|
||||
const { columns, data } = param;
|
||||
const sums = [];
|
||||
let transactionAmount = 0; // 交易金额
|
||||
let rechargeRebateAmount = 0; // 充值返利金额
|
||||
data.forEach((item) => {
|
||||
transactionAmount += item.transactionAmount
|
||||
? item.transactionAmount
|
||||
: 0;
|
||||
rechargeRebateAmount += item.rechargeRebateAmount
|
||||
? item.rechargeRebateAmount
|
||||
: 0;
|
||||
});
|
||||
transactionAmount = transactionAmount.toFixed(2);
|
||||
rechargeRebateAmount = rechargeRebateAmount.toFixed(2);
|
||||
const { columns, data } = param
|
||||
const sums = []
|
||||
let transactionAmount = 0 // 交易金额
|
||||
let rechargeRebateAmount = 0 // 充值返利金额
|
||||
data.forEach(item => {
|
||||
transactionAmount += item.transactionAmount ? item.transactionAmount : 0
|
||||
rechargeRebateAmount += item.rechargeRebateAmount ? item.rechargeRebateAmount : 0
|
||||
})
|
||||
transactionAmount = transactionAmount.toFixed(2)
|
||||
rechargeRebateAmount = rechargeRebateAmount.toFixed(2)
|
||||
columns.forEach((item, index) => {
|
||||
if (index === 1) {
|
||||
sums[index] = "合计";
|
||||
return;
|
||||
sums[index] = '合计'
|
||||
return
|
||||
}
|
||||
switch (item.property) {
|
||||
case "transactionAmount":
|
||||
sums[index] = transactionAmount + "元";
|
||||
break;
|
||||
case "rechargeRebateAmount":
|
||||
sums[index] = rechargeRebateAmount + "元";
|
||||
break;
|
||||
case 'transactionAmount':
|
||||
sums[index] = transactionAmount + '元'
|
||||
break
|
||||
case 'rechargeRebateAmount':
|
||||
sums[index] = rechargeRebateAmount + '元'
|
||||
break
|
||||
|
||||
default:
|
||||
break;
|
||||
break
|
||||
}
|
||||
});
|
||||
return sums;
|
||||
})
|
||||
return sums
|
||||
},
|
||||
//重置
|
||||
reset() {
|
||||
Object.assign(this.parameter, {
|
||||
currentPage: 1,
|
||||
pageSize: 10,
|
||||
params: {},
|
||||
});
|
||||
this.initDateTime();
|
||||
params: {}
|
||||
})
|
||||
this.initDateTime()
|
||||
},
|
||||
// init时间
|
||||
initDateTime() {
|
||||
let now = new Date().getTime();
|
||||
let beforeDay30 = now - 1000 * 60 * 60 * 24 * 30;
|
||||
let nowRes = this.$utils.parseTime(now);
|
||||
let beforeDay30Res = this.$utils.parseTime(beforeDay30);
|
||||
let { y, M, d } = nowRes;
|
||||
let { y: beforey, M: beforeM, d: befored } = beforeDay30Res;
|
||||
this.datetime = [
|
||||
`${beforey}-${beforeM}-${befored} 00:00:00`,
|
||||
`${y}-${M}-${d} 23:59:59`,
|
||||
];
|
||||
this.changeDateTime(this.datetime);
|
||||
let now = new Date().getTime()
|
||||
let beforeDay30 = now - 1000 * 60 * 60 * 24 * 30
|
||||
let nowRes = this.$utils.parseTime(now)
|
||||
let beforeDay30Res = this.$utils.parseTime(beforeDay30)
|
||||
let { y, M, d } = nowRes
|
||||
let { y: beforey, M: beforeM, d: befored } = beforeDay30Res
|
||||
this.datetime = [`${beforey}-${beforeM}-${befored} 00:00:00`, `${y}-${M}-${d} 23:59:59`]
|
||||
this.changeDateTime(this.datetime)
|
||||
},
|
||||
changeDateTime(val) {
|
||||
if (val) {
|
||||
this.parameter.params.createTimeStart = val[0];
|
||||
this.parameter.params.createTimeEnd = val[1];
|
||||
this.parameter.params.createTimeStart = val[0]
|
||||
this.parameter.params.createTimeEnd = val[1]
|
||||
}
|
||||
},
|
||||
// table height
|
||||
heightHandle() {
|
||||
let bodyHeight = document.body.clientHeight;
|
||||
let frameHeight = this.obtainElement(".frame").clientHeight;
|
||||
let operationHeight = this.obtainElement(".operation").clientHeight;
|
||||
let paginationHeight = this.obtainElement(".el-pagination").clientHeight;
|
||||
this.tableHeight =
|
||||
bodyHeight - frameHeight - operationHeight - paginationHeight - 145;
|
||||
let bodyHeight = document.body.clientHeight
|
||||
let frameHeight = this.obtainElement('.frame').clientHeight
|
||||
let operationHeight = this.obtainElement('.operation').clientHeight
|
||||
let paginationHeight = this.obtainElement('.el-pagination').clientHeight
|
||||
this.tableHeight = bodyHeight - frameHeight - operationHeight - paginationHeight - 145
|
||||
},
|
||||
obtainElement(className) {
|
||||
return document.documentElement.querySelector(className);
|
||||
},
|
||||
},
|
||||
};
|
||||
return document.documentElement.querySelector(className)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
@@ -81,10 +81,10 @@
|
||||
<p>
|
||||
{{
|
||||
row.transactionType === "TURN"
|
||||
? LoopBackTypeEnum.find((item) => item.value === row.turnType)
|
||||
? LoopBackTypeEnum.find((item) => item.value == row.turnType)
|
||||
.label
|
||||
: rechargeTypeEnum.find(
|
||||
(item) => item.value === row.transactionType
|
||||
(item) => item.value == row.transactionType
|
||||
).label
|
||||
}}
|
||||
</p>
|
||||
@@ -96,7 +96,7 @@
|
||||
<p>
|
||||
{{
|
||||
rechargeStatusEnum.find(
|
||||
(item) => item.value === row.transactionState
|
||||
(item) => item.value == row.transactionState
|
||||
).label
|
||||
}}
|
||||
</p>
|
||||
@@ -164,10 +164,10 @@
|
||||
{{
|
||||
oilCompanyMatch[0].transactionType === "TURN"
|
||||
? LoopBackTypeEnum.find(
|
||||
(item) => item.value === oilCompanyMatch[0].turnType
|
||||
(item) => item.value == oilCompanyMatch[0].turnType
|
||||
).label
|
||||
: rechargeTypeEnum.find(
|
||||
(item) => item.value === oilCompanyMatch[0].transactionType
|
||||
(item) => item.value == oilCompanyMatch[0].transactionType
|
||||
).label
|
||||
}}
|
||||
</p>
|
||||
@@ -176,7 +176,7 @@
|
||||
<p>
|
||||
{{
|
||||
rechargeStatusEnum.find(
|
||||
(item) => item.value === oilCompanyMatch[0].transactionState
|
||||
(item) => item.value == oilCompanyMatch[0].transactionState
|
||||
).label
|
||||
}}
|
||||
</p>
|
||||
@@ -185,7 +185,7 @@
|
||||
<p>
|
||||
{{
|
||||
auditMarkEnum.find(
|
||||
(item) => item.value === oilCompanyMatch[0].auditMark
|
||||
(item) => item.value == oilCompanyMatch[0].auditMark
|
||||
).label
|
||||
}}
|
||||
</p>
|
||||
@@ -200,7 +200,7 @@
|
||||
<p>
|
||||
{{
|
||||
accountStatusEnum.find(
|
||||
(item) => item.value === oilCompanyMatch[1].accountState
|
||||
(item) => item.value == oilCompanyMatch[1].accountState
|
||||
).label
|
||||
}}
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user