Commit 6cf8eb38 by 前端

功能代码提交

1 parent 716f9bf3
import request from "./request"
import RequestMethods from "./request.methods"
const path = "dj.api.smartcarlife."
// 驻店管理标签明细
export function staffLabelDetail(data) {
data.method = `${path}staff.labelDetail`
return request(data, RequestMethods.POST)
}
// 分页查询驻店管理
export function staffPage(data) {
data.method = `${path}staff.page`
return request(data, RequestMethods.POST)
}
// 获取员工标签树
export function queryLabelGroupTree(data) {
data.method = `${path}staff.queryLabelGroupTree`
return request(data, RequestMethods.POST)
}
......@@ -61,3 +61,9 @@ export function updateStaffBatch(data) {
data.method = `merchants.api.staff.updateStaffBatch`
return request(data)
}
// 查询业务负责人
export function findSellerMerchantStaffList(data) {
data.method = `${path}workbench.findSellerMerchantStaffList`
return request(data)
}
......@@ -678,8 +678,15 @@ export const applyStatus = [
// 店面配置 业务性质
export const businessNature = [
{ confId: 1, confName: "直营渠道" },
{ confId: 2, confName: "直营4S店" }
{ confId: 2, confName: "直营4S店" },
{ confId: 3, confName: "合资收购" }
]
// 店面配置 业务性质
export const businessNatureShow = {
1: "直营渠道",
2: "直营4S店",
3: "合资收购"
}
// 店面配置 门店类型
export const storeType = [
{ confId: 1, confName: "嘀加" },
......@@ -763,8 +770,8 @@ export const stockManagementModeList = [
// 转账管理-预警状态
export const warningStatus = [
{ confId: 1, confValue: "正常" },
{ confId: 2, confValue: "异常" }
{ confId: "Y", confValue: "正常" },
{ confId: "N", confValue: "异常" }
]
// 规则审核-类型
......@@ -772,6 +779,10 @@ export const ruleReview_type = [
{ confId: 1, confValue: "清分" },
{ confId: 3, confValue: "对账" }
]
export const ruleReview_type_show = {
1: "清分",
3: "对账"
}
// 规则审核-状态
export const ruleReview_status = [
......
......@@ -910,5 +910,24 @@ export const routerName = {
activePath: "/ruleReview"
},
component: _import("systemConfig/ruleReview/examineDetail")
},
90626: {
path: "/inStoreManage",
name: "inStoreManage",
meta: {
title: "驻店管理",
authId: "90626",
parentId: "906",
cache: false
},
auth: [
{
authId: "9062601",
parentId: "90626",
label: "查看标签",
handle: "handleViewLabel"
}
],
component: _import("systemConfig/inStoreManage/index")
}
}
......@@ -161,7 +161,8 @@ export default {
withdrawTradeNo: '',
transferAccountsDate: '',
transferType: '',
platformMerchantId: ''
platformMerchantId: '',
warnStatus: ''
},
searchFormSearch: {},
showFormData: [{
......@@ -238,7 +239,7 @@ export default {
optionsName: 'PlatformMerchantList'
}, {
label: '预警状态',
name: 'warningStatus',
name: 'warnStatus',
type: 'select',
isClear: true,
optionList: [],
......@@ -386,18 +387,18 @@ export default {
},
{
label: '预警状态',
prop: 'status',
prop: 'warnStatus',
width: '100px',
formatter: (cellValue) => {
return this.baseData.statusList.find(item => item.confId === cellValue.status)?.confValue
return this.baseData.warningStatusList.find(item => item.confId === cellValue.warnStatus)?.confValue
}
},
{
label: '预警原因',
prop: 'status',
prop: 'warnReason',
width: '100px',
formatter: (cellValue) => {
return cellValue.transferTime ? Util.dateFormate(cellValue.transferTime, 'YYYY-MM-DD HH:mm:ss') : '--'
return cellValue.warnReason ? cellValue.warnReason : '--'
}
},
{
......@@ -523,7 +524,8 @@ export default {
withdrawTradeNo: '',
transferAccountsDate: '',
transferType: '',
platformMerchantId: ''
platformMerchantId: '',
warnStatus: ''
}
this.$refs.recordTable.refreshTable(false, true)
},
......
......@@ -54,10 +54,14 @@
width="200" />
<el-table-column prop="merchantId"
label="商户号"
width="200" />
<el-table-column prop="merchantId"
width="120" />
<el-table-column prop="businessType"
label="业务性质"
width="200" />
width="120">
<template slot-scope="scope">
<span>{{ scope.row.businessType ? businessNatureShow[scope.row.businessType] : '' }}</span>
</template>
</el-table-column>
<!-- <el-table-column prop="outputValue" label="场景在营" width="220">
<template slot-scope="scope">
<el-select v-model="scope.row['businessScene']" class="select" multiple collapse-tags placeholder="请选择">
......@@ -221,7 +225,7 @@
<script>
import { limitPrice } from '@/common/format'
import { sceneCodeList } from '@/common/constants'
import { sceneCodeList, businessNatureShow } from '@/common/constants'
import { downLoadFile } from '@/common/util'
// import moment from 'moment'
// import orderManage from "@api/orderManage"
......@@ -274,8 +278,9 @@ export default {
},
hasPage: true,
// 分页组件配置
layout: 'sizes,total,->,prev,pager,next,jumper'
layout: 'sizes,total,->,prev,pager,next,jumper',
// outputVisible: true
businessNatureShow: businessNatureShow
}
},
computed: {
......
......@@ -103,26 +103,26 @@
<span class="item-tips">注:设置店面的驻店负责人,可配置驻店月份绩效</span>
</el-form-item>
<el-form-item label="1.1业务负责人:"
prop="residentManager">
<el-select v-model="form.businessType"
prop="boutiqueDirectorUserId">
<el-select v-model="form.shopMerchantConfig.boutiqueDirectorUserId"
placeholder="请选择"
class="el_select itd">
<el-option v-for="item in businessNature"
:key="item.confId"
:value="item.confId"
:label="item.confName" />
<el-option v-for="item in sellerMerchantStaffList"
:key="item.userId"
:label="item.userName"
:value="item.userId" />
</el-select>
<span class="item-tips">注:获取账户中心创建在广联数科下的员工,角色类型选广联销售</span>
</el-form-item>
<el-form-item label="2.1业务负责人:"
prop="residentManager">
<el-select v-model="form.businessType"
prop="quotationDirectorUserId">
<el-select v-model="form.shopMerchantConfig.quotationDirectorUserId"
placeholder="请选择"
class="el_select itd">
<el-option v-for="item in businessNature"
:key="item.confId"
:value="item.confId"
:label="item.confName" />
<el-option v-for="item in sellerMerchantStaffList"
:key="item.userId"
:label="item.userName"
:value="item.userId" />
</el-select>
</el-form-item>
<el-form-item>
......@@ -203,17 +203,37 @@
</el-form-item>
<el-form-item label="阳光激励费:"
prop="sunlightIncentiveCost">
<el-input class="rateInput_t"
v-model="form.sunlightIncentiveCost"
@input="sunlightIncentiveCost_handleInput"
placeholder="请输入比例" />&nbsp;%
<div>
<span class="rateInput_s">精品升级</span>
<el-input class="rateInput_t"
v-model="form.shopMerchantConfig.boutiqueSunshineInspiration"
@input="boutiqueSunshineInspiration_handleInput"
placeholder="请输入比例" />&nbsp;%
</div>
<div class="rateInput_d">
<span class="rateInput_s">会员权益升级</span>
<el-input class="rateInput_t"
v-model="form.shopMerchantConfig.quotationSunshineInspiration"
@input="quotationSunshineInspiration_handleInput"
placeholder="请输入比例" />&nbsp;%
</div>
</el-form-item>
<el-form-item label="市场激励费:"
prop="marketIncentiveCost">
<el-input class="rateInput_t"
v-model="form.marketIncentiveCost"
@input="marketIncentiveCost_handleInput"
placeholder="请输入比例" />&nbsp;%
<div>
<span class="rateInput_s">精品升级</span>
<el-input class="rateInput_t"
v-model="form.shopMerchantConfig.boutiqueMarketInspiration"
@input="boutiqueMarketInspiration_handleInput"
placeholder="请输入比例" />&nbsp;%
</div>
<div class="rateInput_d">
<span class="rateInput_s">会员权益升级</span>
<el-input class="rateInput_t"
v-model="form.shopMerchantConfig.quotationMarketInspiration"
@input="quotationMarketInspiration_handleInput"
placeholder="请输入比例" />&nbsp;%
</div>
</el-form-item>
<el-form-item>
<div class="btnCon">
......@@ -235,7 +255,7 @@
<script>
import { deepClone } from '@/common/util'
import { getShopSetting, listByMerchantIdAndYear, shopSetting } from '@/api/shopConfig.js'
import { getShopSetting, listByMerchantIdAndYear, shopSetting, findSellerMerchantStaffList } from '@/api/shopConfig.js'
import { serviceGetMerchantList } from '@api/merchant'
import { findMerchantStaffList } from '@api/index'
import { businessNature, sceneForShop } from '@/common/constants.js'
......@@ -265,8 +285,13 @@ export default {
currentMonthOutputValue: '',
nextMonthOutputValue: '',
serviceMerchantServiceChargeConfig: {},
sunlightIncentiveCost: '',
marketIncentiveCost: ''
shopMerchantConfig: {}
// boutiqueSunshineInspiration: '',
// quotationSunshineInspiration: '',
// boutiqueMarketInspiration: '',
// quotationMarketInspiration: '',
// boutiqueDirectorUserId: '',
// quotationDirectorUserId: ''
},
outputValueListByYear: [],
year: '',
......@@ -300,9 +325,12 @@ export default {
oldVal: {
passageServiceChargeFlag: '',
gasCardServiceChargeFlag: '',
sunlightIncentiveCost: '',
marketIncentiveCost: ''
boutiqueSunshineInspiration: '',
quotationSunshineInspiration: '',
boutiqueMarketInspiration: '',
quotationMarketInspiration: ''
},
sellerMerchantStaffList: []
}
},
......@@ -322,6 +350,7 @@ export default {
this.findMerchantStaffList()
this.getSelectList(this.info)
this.listByMerchantIdAndYear(this.year)
this.findSellerMerchantStaffList()
},
methods: {
......@@ -342,6 +371,9 @@ export default {
//未设置过时,手续费默认为打开并且费率为2
this.form.serviceMerchantServiceChargeConfig = { 'passageServiceCharge': 2, 'passageServiceChargeFlag': 'Y', 'gasCardServiceCharge': 2, 'gasCardServiceChargeFlag': 'Y' }
}
if (!this.form.shopMerchantConfig) {
this.form.shopMerchantConfig = { 'boutiqueDirectorUserId': '', 'quotationDirectorUserId': '', 'boutiqueSunshineInspiration': '', 'quotationSunshineInspiration': '', 'boutiqueMarketInspiration': '', 'quotationMarketInspiration': '' }
}
console.log(this.form)
if (this.form.list && this.form.list.length > 0) {
this.form.list = this.form.list.map(item => {
......@@ -548,6 +580,19 @@ export default {
return
}
}
let shopMerchantConfig = _params.shopMerchantConfig
_params.boutiqueDirectorUserId = shopMerchantConfig.boutiqueDirectorUserId
if (shopMerchantConfig.boutiqueDirectorUserId) {
_params.boutiqueDirectorName = this.sellerMerchantStaffList.find(item => item.userId === shopMerchantConfig.boutiqueDirectorUserId)?.userName
}
_params.quotationDirectorUserId = shopMerchantConfig.quotationDirectorUserId
if (shopMerchantConfig.quotationDirectorUserId) {
_params.quotationDirectorName = this.sellerMerchantStaffList.find(item => item.userId === shopMerchantConfig.quotationDirectorUserId)?.userName
}
_params.boutiqueSunshineInspiration = shopMerchantConfig.boutiqueSunshineInspiration
_params.quotationSunshineInspiration = shopMerchantConfig.quotationSunshineInspiration
_params.boutiqueMarketInspiration = shopMerchantConfig.boutiqueMarketInspiration
_params.quotationMarketInspiration = shopMerchantConfig.quotationMarketInspiration
console.log(_params)
shopSetting({ dataString: JSON.stringify(_params) }).then(res => {
this.notice.okTips()
......@@ -588,17 +633,36 @@ export default {
}
},
gasCardServiceCharge_handleInput(newVal) {
this.form.serviceMerchantServiceChargeConfig.gasCardServiceCharge = limitPrice(newVal, this.oldVal.gasCardServiceCharge, 3, 2, 0, 100)
this.form.shopMerchantConfig.serviceMerchantServiceChargeConfig.gasCardServiceCharge = limitPrice(newVal, this.oldVal.gasCardServiceCharge, 3, 2, 0, 100)
this.oldVal.gasCardServiceCharge = this.form.serviceMerchantServiceChargeConfig.gasCardServiceCharge
},
sunlightIncentiveCost_handleInput(newVal) {
this.form.sunlightIncentiveCost = limitPrice(newVal, this.oldVal.sunlightIncentiveCost, 3, 2, 0, 100)
this.oldVal.sunlightIncentiveCost = this.form.sunlightIncentiveCost
boutiqueSunshineInspiration_handleInput(newVal) {
this.form.shopMerchantConfig.boutiqueSunshineInspiration = limitPrice(newVal, this.oldVal.boutiqueSunshineInspiration, 3, 2, 0, 100)
this.oldVal.boutiqueSunshineInspiration = this.form.shopMerchantConfig.boutiqueSunshineInspiration
},
quotationSunshineInspiration_handleInput(newVal) {
this.form.shopMerchantConfig.quotationSunshineInspiration = limitPrice(newVal, this.oldVal.quotationSunshineInspiration, 3, 2, 0, 100)
this.oldVal.quotationSunshineInspiration = this.form.shopMerchantConfig.quotationSunshineInspiration
},
boutiqueMarketInspiration_handleInput(newVal) {
this.form.shopMerchantConfig.boutiqueMarketInspiration = limitPrice(newVal, this.oldVal.boutiqueMarketInspiration, 3, 2, 0, 100)
this.oldVal.boutiqueMarketInspiration = this.form.shopMerchantConfig.boutiqueMarketInspiration
},
quotationMarketInspiration_handleInput(newVal) {
this.form.shopMerchantConfig.quotationMarketInspiration = limitPrice(newVal, this.oldVal.quotationMarketInspiration, 3, 2, 0, 100)
this.oldVal.quotationMarketInspiration = this.form.shopMerchantConfig.quotationMarketInspiration
},
findSellerMerchantStaffList() {
findSellerMerchantStaffList({}).then((result) => {
this.sellerMerchantStaffList = result.map((item) => {
return {
userId: item.uuid,
userName: item.staffName
}
})
})
},
marketIncentiveCost_handleInput(newVal) {
this.form.marketIncentiveCost = limitPrice(newVal, this.oldVal.marketIncentiveCost, 3, 2, 0, 100)
this.oldVal.marketIncentiveCost = this.form.marketIncentiveCost
}
}
}
......@@ -855,4 +919,11 @@ export default {
.rateInput_t {
width: 150px;
}
.rateInput_s {
display: inline-block;
width: 100px;
}
.rateInput_d {
margin-top: 20px;
}
</style>
<!-- 驻店管理 - 列表 -->
<template>
<div>
<!-- class="order-detail" -->
<d2-container>
<!-- <div class="offline-account"> -->
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:labelWidth="labelWidth"
:form-data="showFormData" />
<div class="up-btns">
<el-button @click="handleSearch"
size="small"
type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
</div>
<!-- </d2-container>
<d2-container> -->
<div class="d2-container-content">
<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">
<div slot="auth-button"
slot-scope="scope">
<auth-button :data="scope.scope" />
</div>
</d2-table>
</div>
</d2-container>
</div>
</template>
<script>
import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex'
import { sceneForShop } from '@/common/constants.js'
import { withdrawOrderRecordPage, rewithdraw } from '@api/withdrawalManage'
import { staffPage } from '@api/inStoreManage'
export default {
name: 'TransferAccountsList',
components: {
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
labelWidth: '100px',
searchForm: {
staffName: '',
phoneNumber: '',
allMerchantName: '',
sceneType: '',
allMerchantId: '',
staffLabelFlag: ''
},
searchFormSearch: {},
showFormData: [{
label: '员工姓名',
name: 'staffName',
type: 'input',
maxlength: '50',
isClear: true
}, {
label: '手机号',
name: 'phoneNumber',
type: 'input',
inputType: "number",
maxlength: '11',
isClear: true
}, {
label: '商户',
name: 'allMerchantName',
type: 'input',
maxlength: '50',
isClear: true
}, {
label: '所属业务',
name: 'sceneType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'sceneForShop'
}, {
label: '商户号',
name: 'allMerchantId',
type: 'input',
inputType: 'number',
maxlength: '20',
isClear: true
}, {
label: '员工标签',
name: 'staffLabelFlag',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'staffLabelFlagList'
}],
getListApi: staffPage,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
// tableOption: { width: '200px' },
tableOption: true,
tableColumns: [{
label: '姓名',
prop: 'staffName',
width: '160px'
}, {
label: '手机号',
prop: 'phoneNumber',
width: '160px'
}, {
label: '园区店',
prop: 'merchantName',
width: '160px',
formatter: (cellValue) => {
return cellValue.merchantName + ' ' + cellValue.merchantId
}
}, {
label: '所属业务',
prop: 'staffSceneLabel',
width: '160px'
}, {
label: "服务门店",
prop: "shopMerchantList",
html: true,
formatter: (cellValue) => {
if (cellValue.shopMerchantList) {
return cellValue.shopMerchantList.reduce(
(merchString, item) => {
merchString = merchString + `<p>${item.merchantName} ${item.merchantId}</p>`
return merchString
},
""
)
} else {
return ""
}
}
}, {
label: "服务商",
prop: "serviceMerchantList",
html: true,
formatter: (cellValue) => {
if (cellValue.serviceMerchantList) {
return cellValue.serviceMerchantList.reduce(
(merchString, item) => {
merchString = merchString + `<p>${item.merchantName} ${item.merchantId}</p>`
return merchString
},
""
)
} else {
return ""
}
}
}, {
label: '员工标签',
prop: 'staffLabelFlag',
formatter: (cellValue) => {
return cellValue.staffLabelFlag == 'Y' ? '有' : '无'
}
}]
},
baseData: {
sceneForShop: deepClone(sceneForShop),
staffLabelFlagList: [
{ confId: 'Y', confValue: "有" },
{ confId: 'N', confValue: "无" }
]
},
}
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
mounted() {
this.getBaseData()
},
methods: {
...mapActions({
get: 'd2admin/base/get',
close: 'd2admin/page/close'
}),
...mapActions('d2admin/user', ['actionSetDownloadList']),
async getBaseData() {
this.getOptionsList()
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm)
resolve()
})
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
if (this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部') {
const temp = {}
temp[this.showFormData[index].optionId] = ''
temp[this.showFormData[index].optionLabel] = '全部'
this.baseData[item.optionsName].unshift(temp)
}
this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName])
}
})
},
handleSearch() {
this.$refs.recordTable.refreshTable(false, true)
},
handleReset() {
this.searchForm = {
staffName: '',
phoneNumber: '',
allMerchantName: '',
sceneType: '',
allMerchantId: '',
staffLabelFlag: ''
}
this.$refs.recordTable.refreshTable(false, true)
},
handleViewLabel() {
console.log('1111111111');
}
},
}
</script>
<style scoped>
.count-txt {
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
margin-right: 10px;
}
</style>
......@@ -2,15 +2,22 @@
<d2-Container>
<div class="merchant-checkdetail">
<div class="merchant-title">
<span>商户名称:我是4S点名称</span>
<span>业务场景:精品升级</span>
<span>类型:清分</span>
<span>生效时间:2024-01-01</span>
<span>商户名称:{{merchantRow.merchantName}}</span>
<span>业务场景:{{sceneList[merchantRow.sceneType]}}</span>
<span>类型:{{ruleReviewType[merchantRow.ruleType]}}</span>
<span>生效时间:{{merchantRow.effectStartDateShow}}</span>
</div>
<div class="merchant-info">
<!-- 分账 -->
<ledgerAccount v-if="merchantRow.ruleType == 1"
:items="checkDetailItem" />
<!-- 对账 -->
<reconciliation v-if="merchantRow.ruleType == 3"
:form-item="checkRecordList"
:items="checkRecordList.goodsTypeGroupReconciliationRules || []" />
</div>
<ledgerAccount :items="checkDetailItem" />
<div class="btns">
<el-button @click="handleConfirm"
size="small"
type="primary">
审核
</el-button>
......@@ -21,10 +28,10 @@
<script>
import ledgerAccount from '../merchant/merchantStep/components/ledgerAccount.vue'
import {
getDistributeRuleApi,
// getEffectRuleApi
} from "@api/merchant"
import reconciliation from '../merchant/merchantStep/components/reconciliation.vue'
import { ruleAuditDetail, ruleAuditPass } from '@api/ruleReview'
import { sceneList, ruleReview_type_show } from '@/common/constants.js'
import { Util, deepClone } from '@/common/util'
export default {
name: "ExamineDetail",
props: {},
......@@ -35,66 +42,43 @@ export default {
// 分账数据
checkDetailItem: {},
// 对账数据
// checkRecordList: {}
checkRecordList: {},
sceneList: deepClone(sceneList),
ruleReviewType: deepClone(ruleReview_type_show)
}
},
created() {
this.getRowItem()
},
mounted() {
// 分账
this.getDistributeRule()
this.getRuleAuditDetail()
},
methods: {
async init() {
// if (this.activeName == "first") {
// 分账
this.getDistributeRule()
// } else {
// 对账
// this.getEffectRule()
// }
this.getRuleAuditDetail()
},
// 分账
async getDistributeRule() {
async getRuleAuditDetail() {
const params = {
merchantId: this.merchantRow.merchantId,
sceneType: this.merchantRow.scene,
expenseCategroyRulsBuildType: 2
id: this.merchantRow.id
}
const res = await getDistributeRuleApi(params)
const res = await ruleAuditDetail(params)
console.log('res: ', res)
this.checkDetailItem = res
this.checkDetailItem = res.merchantSettleDistributeRule
this.checkRecordList = res.merchantReconciliationRule
},
// 对账
// async getEffectRule() {
// const params = {
// merchantId: this.merchantRow.merchantId,
// sceneType: this.merchantRow.scene
// }
// const res = await getEffectRuleApi(params)
// console.log(res)
// this.checkRecordList = res
// // this.checkRecordList = res?.goodsTypeGroupReconciliationRules
// // console.log('res: ', res)
// },
getRowItem() {
const params = this.$route.query?.params
if (params) {
this.merchantRow = JSON.parse(params)
if (this.merchantRow.effectDateType == 2) {
this.merchantRow.effectStartDateShow = '立即生效'
} else {
this.merchantRow.effectStartDateShow = this.merchantRow.effectStartDate ? Util.dateFormate(this.merchantRow.effectStartDate, 'YYYY-MM-DD') : '--'
}
// console.log("is.merchantRow", this.merchantRow)
}
},
// handleClick(tab) {
// // console.log(tab.name)
// this.activeName = tab.name
// this.init()
// },
// handleType(num) {
// this.activeType = num
// },
// 保存
// 审核
handleConfirm() {
this.$confirm('审核通过后,当前规则会自动应用并生效,可在商户管理-历史记录中查询。', '提示', {
confirmButtonText: '确定',
......@@ -102,9 +86,10 @@ export default {
type: 'warning',
closeOnClickModal: false
}).then(() => {
// rewithdraw({ orderCode: row.orderCode }).then(res => {
this.$router.go(-1)
// })
ruleAuditPass({ id: this.merchantRow.id }).then(res => {
this.notice.okTips()
this.$router.go(-1)
})
}).catch(err => {
console.log(err)
})
......@@ -112,7 +97,7 @@ export default {
},
components: {
ledgerAccount,
// reconciliation
reconciliation
},
computed: {}
}
......@@ -137,6 +122,9 @@ $color: #2a58ad;
align-items: center;
justify-content: space-between;
}
.merchant-info {
margin-top: 20px;
}
.type {
margin-top: 6px;
......
......@@ -38,7 +38,8 @@
<div slot="auth-button"
slot-scope="scope">
<!-- 审核 -->
<span style="margin-right: 10px;">
<span style="margin-right: 10px;"
v-if="scope.scope.auditStatus == 1">
<auth-button :data="scope.scope"
:show-btn-ids="['9062401']" />
</span>
......@@ -123,7 +124,7 @@ export default {
optionLabel: 'confValue',
optionsName: 'statusList'
}],
getListApi: withdrawOrderRecordPage,
getListApi: ruleAuditPage,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
......@@ -161,7 +162,7 @@ export default {
if (cellValue.effectDateType == 2) {
return '立即生效'
} else {
return cellValue.effectStartDate ? Util.dateFormate(cellValue.effectStartDate, 'YYYY-MM-DD HH:mm:ss') : '--'
return cellValue.effectStartDate ? Util.dateFormate(cellValue.effectStartDate, 'YYYY-MM-DD') : '--'
}
}
},
......@@ -182,7 +183,7 @@ export default {
prop: 'createdDate',
width: '150px',
formatter: (cellValue) => {
return cellValue.createdDate ? Util.dateFormate(cellValue.createdDate, 'YYYY-MM-DD HH:mm:ss') : '--'
return cellValue.createdDate ? Util.dateFormate(cellValue.createdDate, 'YYYY-MM-DD HH:mm') : '--'
}
},
{
......@@ -194,7 +195,7 @@ export default {
prop: 'auditDate',
width: '150px',
formatter: (cellValue) => {
return cellValue.auditDate ? Util.dateFormate(cellValue.auditDate, 'YYYY-MM-DD HH:mm:ss') : '--'
return cellValue.auditDate ? Util.dateFormate(cellValue.auditDate, 'YYYY-MM-DD HH:mm') : '--'
}
}
]
......@@ -264,8 +265,8 @@ export default {
//审核
handleReview(row) {
row.merchantId = 44211847
row.scene = 1
// row.merchantId = 44211847
// row.scene = 1
this.$router.push({
name: "examineDetail",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!