|
@@ -17,12 +17,12 @@
|
|
|
</el-button>
|
|
|
</el-col> -->
|
|
|
|
|
|
- <div class="sort pagePadding">
|
|
|
+ <div class="sort pagePadding" style="padding-right: 20px;">
|
|
|
<div class="table__wrapper" v-if="powers.some((i) => i == '001')">
|
|
|
<ex-table
|
|
|
ref="paymentChannelRef"
|
|
|
class="fl"
|
|
|
- style="width:35%"
|
|
|
+ style="width:48%"
|
|
|
v-loading="loadings.paymentChannel"
|
|
|
:table="table"
|
|
|
:data="datas.paymentChannel"
|
|
@@ -60,6 +60,10 @@
|
|
|
@change="pageInfo.paymentChannel.curr = 1;parmValue.paymentChannel.page = 1;onSearchPaymentChannelGrossProfit()"
|
|
|
/>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="fr">
|
|
|
+ <el-button size="mini" type="primary" @click="onSearchPaymentChannelGrossProfit">刷新</el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</ex-table>
|
|
@@ -67,13 +71,14 @@
|
|
|
<ex-table
|
|
|
class="fr"
|
|
|
v-loading="loadings.category"
|
|
|
- style="width:65%"
|
|
|
+ style="width:49%"
|
|
|
v-if="powers.some((i) => i == '001')"
|
|
|
:table="table"
|
|
|
:data="datas.category"
|
|
|
:columns="categoryColumns"
|
|
|
:page="pageInfo.category"
|
|
|
:size="size"
|
|
|
+ :noPagination="true"
|
|
|
@page-curr-change="value => handlePageChange(value,true)"
|
|
|
@page-size-change="value => handleSizeChange(value,true)"
|
|
|
@screen-reset="
|
|
@@ -88,7 +93,8 @@
|
|
|
"
|
|
|
>
|
|
|
<template #table-header="{}">
|
|
|
- <div style="display:inline-flex;align-items: center;">
|
|
|
+ <div style="width:100%">
|
|
|
+ <div style="display:inline-flex;align-items: center;">
|
|
|
<p style="text-align:right;margin-right: 10px;width:160px">一级分类名称:</p>
|
|
|
<el-input size="mini"
|
|
|
v-model="parmValue.category['cat_name']"
|
|
@@ -100,18 +106,27 @@
|
|
|
onSearchcategorylist()"
|
|
|
/>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="fr">
|
|
|
+ <el-button size="mini" @click="parmValue.category.cat_name = '';onSearchcategorylist()">重置</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="onSearchcategorylist">刷新</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template #rate="{scope}">
|
|
|
+ {{Number(scope.row.rate).toFixed(2)}}%
|
|
|
</template>
|
|
|
|
|
|
<template #operation="{ scope }">
|
|
|
- <el-tooltip
|
|
|
+ <!-- <el-tooltip
|
|
|
v-if="powers.some((i) => i == '007')"
|
|
|
effect="dark"
|
|
|
content="查看"
|
|
|
placement="top"
|
|
|
>
|
|
|
<i class="el-icon-view tb-icon" @click="setRate(scope.row, actionTypes.PREVIEW)"></i>
|
|
|
- </el-tooltip>
|
|
|
-
|
|
|
+ </el-tooltip> -->
|
|
|
<el-tooltip
|
|
|
v-if="powers.some((i) => i == '005')"
|
|
|
effect="dark"
|
|
@@ -133,7 +148,7 @@
|
|
|
:sitem="sitemCategory"
|
|
|
@refresh="onSearchcategorylist"
|
|
|
@cancel="showRateModel = false"
|
|
|
- :paymentChannelId="selectedRow.id || ''"
|
|
|
+ :paymentChannel="selectedRow || {}"
|
|
|
:actionType="actionType"
|
|
|
/>
|
|
|
</div>
|
|
@@ -144,7 +159,6 @@ import asyncRequest from "@/apis/service/serviceParam/paymentChannelGrossProfit"
|
|
|
import { statusList } from "@/assets/js/statusList";
|
|
|
import roleLevel from "@/assets/js/roleLevel";
|
|
|
import mixinPage from "@/mixins/elPaginationHandle";
|
|
|
-import companyHelper from "@/mixins/companyHelper";
|
|
|
import resToken from "@/mixins/resToken";
|
|
|
import { mapGetters } from "vuex";
|
|
|
import privateField from "@/mixins/privateField";
|
|
@@ -153,7 +167,7 @@ import { actionTypes } from "@/utils/actionType";
|
|
|
import { paymentChannelColumns,categoryColumns } from "./columns"
|
|
|
export default {
|
|
|
name: "othsearchSort",
|
|
|
- mixins: [mixinPage, resToken, companyHelper, privateField],
|
|
|
+ mixins: [mixinPage, resToken, privateField],
|
|
|
components: {
|
|
|
addEditRate,
|
|
|
},
|
|
@@ -261,7 +275,7 @@ export default {
|
|
|
prop: "",
|
|
|
label: "操作",
|
|
|
fixed: "right",
|
|
|
- width: "140px",
|
|
|
+ width: "60px",
|
|
|
_noset_: true,
|
|
|
_slot_: "operation",
|
|
|
},
|
|
@@ -387,16 +401,17 @@ export default {
|
|
|
async onSearchPaymentChannelGrossProfit(){
|
|
|
if (this.loadings.paymentChannel) return;
|
|
|
|
|
|
- if (!this.currentCompany) {
|
|
|
- this.$message.warning("请选择公司!");
|
|
|
- this.datas.paymentChannel = []
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (!this.currentCompany) {
|
|
|
+ // this.$message.warning("请选择公司!");
|
|
|
+ // this.datas.paymentChannel = []
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // companyNo:this.currentCompany
|
|
|
+
|
|
|
|
|
|
this.loadings.paymentChannel = true;
|
|
|
const { code, data } = await asyncRequest.paymentChannelList({
|
|
|
...this.parmValue.paymentChannel,
|
|
|
- companyNo:this.currentCompany
|
|
|
});
|
|
|
|
|
|
|
|
@@ -404,8 +419,15 @@ export default {
|
|
|
const { list, count } = data ?? {};
|
|
|
this.datas.paymentChannel = list ?? [];
|
|
|
this.datas.category = []
|
|
|
- this.selectedRow = {}
|
|
|
this.pageInfo.paymentChannel.total = count ?? 0;
|
|
|
+
|
|
|
+ if(list.length > 0){
|
|
|
+ this.selectedRow = list[0]
|
|
|
+ }else{
|
|
|
+ this.selectedRow = {}
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}else if (code >= 100 && code <= 104) {
|
|
|
await this.logout();
|
|
|
}else {
|
|
@@ -418,10 +440,10 @@ export default {
|
|
|
async onSearchcategorylist(){
|
|
|
if (this.loading) return;
|
|
|
|
|
|
- if (!this.currentCompany) {
|
|
|
- this.$message.warning("请选择公司!");
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (!this.currentCompany) {
|
|
|
+ // this.$message.warning("请选择公司!");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
|
|
|
this.parmValue.companyNo = this.currentCompany;
|
|
|
this.loadings.category = true;
|
|
@@ -457,7 +479,7 @@ export default {
|
|
|
display: flex;
|
|
|
width: 100%;
|
|
|
overflow:hidden;
|
|
|
- gap: 60px;
|
|
|
+ gap: 20px;
|
|
|
}
|
|
|
|
|
|
.sort {
|