Commit de1830c3 by 张立顺

财务日期限制修改

1 parent d950c91e
...@@ -2,18 +2,31 @@ import request from "./request" ...@@ -2,18 +2,31 @@ import request from "./request"
// 获取店面目标列表 // 获取店面目标列表
export function getStoreTargetListApi(data) { export function getStoreTargetListApi(data) {
data.method = 'dj.smartcarlife.api.yqPartnerMerchant.ref.page' data.method = "dj.smartcarlife.api.yqPartnerMerchant.ref.page"
return request(data, 'post') return request(data, "post")
} }
// 获取员工任务列表 // 获取员工任务列表
export function getStaffTaskListApi(data) { export function getStaffTaskListApi(data) {
data.method = 'dj.smartcarlife.api.yqPartnerMerchant.ref.page' data.method = "dj.smartcarlife.api.yqPartnerMerchant.ref.page"
return request(data, 'post') return request(data, "post")
} }
// 获取员工任务详情 // 新增或修改店面目标配置
export function getStaffTaskDetailApi(data) { export function merchantTargetConfigUpdate(data) {
data.method = 'dj.smartcarlife.api.yqPartnerMerchant.ref.page' data.method = "dj.api.smartcarlife.merchantTargetConfig.insertOrUpdate"
return request(data, 'post') return request(data, "post")
}
// 查询存在商户上架商品的商品类目
export function queryMerchantGoodsCategoryList(data) {
data.method =
"dj.api.goodsCategoryConfiguration.queryMerchantGoodsCategoryList"
return request(data, "post")
}
// 获取门店场景驻店员工
export function merchantTargetConfigGetStaffList(data) {
data.method = "dj.api.smartcarlife.merchantTargetConfig.getStaffList"
return request(data, "post")
} }
...@@ -327,3 +327,8 @@ export function getDjzhySubMerchant(data) { ...@@ -327,3 +327,8 @@ export function getDjzhySubMerchant(data) {
data.method = `${path2}merchantDivisionRule.djzhySubMerchant` data.method = `${path2}merchantDivisionRule.djzhySubMerchant`
return request(data) return request(data)
} }
// 获取指定商户指定场景指定规则类型的情况
export function ruleAuditSituation(data) {
data.method = `${path2}ruleAudit.situation`
return request(data, "post")
}
<!-- 财务 -->
<template> <template>
<d2-Container class="financialRulesContainer "> <d2-Container class="financialRulesContainer ">
<div class="d2-container-content"> <div class="d2-container-content">
...@@ -125,7 +126,8 @@ import { sceneList, userType, attrToVal as attrToValOptions } from '@/common/con ...@@ -125,7 +126,8 @@ import { sceneList, userType, attrToVal as attrToValOptions } from '@/common/con
import { deepClone } from '@/common/util' import { deepClone } from '@/common/util'
import { import {
scenemerchantrefQueryServiceRefByShop, merchantSettleDistributeRuleLastRule, merchantSettleDistributeRule, getMerchantLevelApi, getDjzhySubMerchant, scenemerchantrefQueryServiceRefByShop, merchantSettleDistributeRuleLastRule, merchantSettleDistributeRule, getMerchantLevelApi, getDjzhySubMerchant,
getLedgerHistoryRecordApi ruleAuditSituation
// getLedgerHistoryRecordApi
} from '@api/merchant' } from '@api/merchant'
import { getPlatformMerchantList } from '@api/index' import { getPlatformMerchantList } from '@api/index'
...@@ -347,18 +349,23 @@ export default { ...@@ -347,18 +349,23 @@ export default {
getLedgerHistoryRecordApi() { getLedgerHistoryRecordApi() {
// 根据历史记录 处理财务生效记录的选项 // 根据历史记录 处理财务生效记录的选项
const { merchantId, scene: sceneType } = this.routerInfo const { merchantId, scene: sceneType } = this.routerInfo
getLedgerHistoryRecordApi({ ruleAuditSituation({
merchantId, merchantId,
sceneType sceneType,
ruleType: 1
}).then(res => { }).then(res => {
// 立即生效或者需选择 // 立即生效或者需选择
// console.log(res.every(item => { // console.log(res.every(item => {
// return item.rule.enableFlag == 3 // return item.rule.enableFlag == 3
// }), 'getLedgerHistoryRecordApi') // }), 'getLedgerHistoryRecordApi')
//
this.effectStartDate = res.every(item => { // res.inEffectSettleDistributeRule == null
return item.rule.enableFlag == 3 this.effectStartDate = !res.inEffectSettleDistributeRule
}) || !res.length // if (res.inEffectSettleDistributeRule == null) {
// }
// this.effectStartDate = res.every(item => {
// return item.rule.enableFlag == 3
// }) || !res.length
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
}) })
......
<!-- 对账 -->
<template> <template>
<d2-Container> <d2-Container>
<div class="merchant-check"> <div class="merchant-check">
...@@ -89,7 +90,8 @@ import { sceneList } from "@/common/constants" ...@@ -89,7 +90,8 @@ import { sceneList } from "@/common/constants"
import { import {
saveRuleApi, saveRuleApi,
getEffectRuleApi, getEffectRuleApi,
getQueryFeeCategoryByTypeApi, addContactgetReconciliationHistoryRecordApi getQueryFeeCategoryByTypeApi,
ruleAuditSituation
} from "@api/merchant" } from "@api/merchant"
import { getGoodsCategoryConfiguration } from '@/api/sys.base.js' import { getGoodsCategoryConfiguration } from '@/api/sys.base.js'
...@@ -199,18 +201,19 @@ export default { ...@@ -199,18 +201,19 @@ export default {
addContactgetReconciliationHistoryRecordApi() { addContactgetReconciliationHistoryRecordApi() {
// 根据历史记录 处理财务生效记录的选项 // 根据历史记录 处理财务生效记录的选项
const { merchantId, scene: sceneType } = this.routerInfo const { merchantId, scene: sceneType } = this.routerInfo
getLedgerHistoryRecordApi({ ruleAuditSituation({
merchantId, merchantId,
sceneType sceneType,
ruleType: 2
}).then(res => { }).then(res => {
// 立即生效或者需选择 // 立即生效或者需选择
// console.log(res.every(item => { // console.log(res.every(item => {
// return item.rule.enableFlag == 3 // return item.rule.enableFlag == 3
// }), 'getLedgerHistoryRecordApi') // }), 'getLedgerHistoryRecordApi')
this.effectStartDate = !res.inEffectSettleDistributeRule
this.effectStartDate = res.every(item => { // this.effectStartDate = res.every(item => {
return item.rule.enableFlag == 3 // return item.rule.enableFlag == 3
}) || !res.length // }) || !res.length
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
}) })
......
...@@ -16,12 +16,15 @@ ...@@ -16,12 +16,15 @@
<span class="label"> <span class="label">
<span>{{ formItem.formatEffectStartDate }}</span> <span>{{ formItem.formatEffectStartDate }}</span>
<span v-if="formItem.formatEffectStartDate"> - </span> <span v-if="formItem.formatEffectStartDate"> - </span>
<span :class="{ labelColor: !formItem.formatEffectEndDate }">{{ <!-- <span :class="{ labelColor: !formItem.formatEffectEndDate }">{{
formItem.formatEffectStartDate formItem.formatEffectStartDate
? formItem.formatEffectEndDate ? formItem.formatEffectEndDate
? formItem.formatEffectEndDate ? formItem.formatEffectEndDate
: "生效中" : "生效中"
: "待生效" : "待生效"
}}</span> -->
<span :class="{ labelColor: !formItem.formatEffectEndDate }">{{
formItem.enableFlag == 3 ? formItem.formatEffectEndDate : formItem.enableFlag == 1 ? "生效中" : "待生效"
}}</span> }}</span>
</span> </span>
<span class="updatedInfo"> <span class="updatedInfo">
...@@ -29,9 +32,11 @@ ...@@ -29,9 +32,11 @@
{{ formItem.formatUpdatedDate }} {{ formItem.formatUpdatedDate }}
</span> </span>
<span class="updatedInfo"> <span class="updatedInfo">
<span v-show="formItem.auditorName">
审核人: {{ formItem.auditorName }} 审核时间: 审核人: {{ formItem.auditorName }} 审核时间:
{{ formItem.formatAuditDate }} {{ formItem.formatAuditDate }}
</span> </span>
</span>
<span class="collapse" @click="collapseItem(index)"> <span class="collapse" @click="collapseItem(index)">
<i :class="{ move: formItem.show }" class="arrow el-icon-arrow-down" /> <i :class="{ move: formItem.show }" class="arrow el-icon-arrow-down" />
{{ formItem.show ? "收起" : "展开" }} {{ formItem.show ? "收起" : "展开" }}
...@@ -130,41 +135,6 @@ export default { ...@@ -130,41 +135,6 @@ export default {
} }
}) })
}, },
// getDetail() {
// // const merchantId = this.merchantRow.merchantId
// const merchantId = 44209883
// if (!merchantId) return
// getHistoryRecord({ merchantId }).then((res) => {
// // console.log(res)
// // dayjs(this.summaryDate).startOf('month').format('YYYY-MM-DD')
// // const timeLabele = {
// // }
// // let financialRulesList = res
// // 财务规则有三个模式 待生效 生效中 历史
// // 根据effectEndDate 和 effectStartDate
// // console.log(res)
// this.formArray = res.map((item) => {
// const format = "YYYY/MM/DD HH:mm"
// const createdDate = item.createdDate
// item.merchant = item?.divisionRule?.realityDivisionMerchant
// item = Object.assign(item, item.settleRule, item.divisionRule)
// // 这个值强制取item里面的
// item.createdDate = createdDate
// item.formatEffectEndDate = item.effectEndDate
// ? dayjs(item.effectEndDate).format(format)
// : ""
// item.formatEffectStartDate = item.effectStartDate
// ? dayjs(item.effectStartDate).format(format)
// : ""
// // console.log('item.createdDate', item.createdDate)
// item.formatUpdatedDate = dayjs(item.createdDate).format(format)
// item.formatAuditDate = dayjs(item.auditDate).format(format)
// item.show = false
// return item
// })
// })
// },
init() { init() {
if (this.activeName == "first") { if (this.activeName == "first") {
this.getLedgerHistoryRecord() this.getLedgerHistoryRecord()
...@@ -192,6 +162,7 @@ export default { ...@@ -192,6 +162,7 @@ export default {
? dayjs(item.effectStartDate).format(format) ? dayjs(item.effectStartDate).format(format)
: "" : ""
item.formatUpdatedDate = dayjs(item.updatedDate).format(format) item.formatUpdatedDate = dayjs(item.updatedDate).format(format)
item.formatAuditDate = dayjs(item.auditDate).format(format)
item.show = false item.show = false
return item return item
}) })
...@@ -222,6 +193,8 @@ export default { ...@@ -222,6 +193,8 @@ export default {
? dayjs(item.effectStartDate).format(format) ? dayjs(item.effectStartDate).format(format)
: "" : ""
item.formatUpdatedDate = dayjs(item.updatedDate).format(format) item.formatUpdatedDate = dayjs(item.updatedDate).format(format)
item.formatAuditDate = dayjs(item.auditDate).format(format)
// console.log(item.formatAuditDate, 'item.formatAuditDate')
item.show = false item.show = false
return item return item
}) })
...@@ -276,7 +249,7 @@ $color: #2a58ad; ...@@ -276,7 +249,7 @@ $color: #2a58ad;
} }
.updatedInfo { .updatedInfo {
width: 20%; width: 25%;
text-align: left; text-align: left;
} }
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="多业务客户档案数据互通:"> <el-form-item label="多业务客户档案数据互通:">
<el-radio-group v-model="multiBusinessCustomerProfileDataExchangeMode"> <el-radio-group v-model="customerExchangeFlag">
<el-radio v-for="(item, index) in multiBusinessCustomerProfileDataExchange" :key="index" <el-radio v-for="(item, index) in multiBusinessCustomerProfileDataExchange" :key="index"
:label="item.confId">{{ item.confLabel :label="item.confId">{{ item.confLabel
}}</el-radio> }}</el-radio>
...@@ -86,8 +86,8 @@ export default { ...@@ -86,8 +86,8 @@ export default {
], ],
// 多业务客户档案数据互通 // 多业务客户档案数据互通
multiBusinessCustomerProfileDataExchange: [ multiBusinessCustomerProfileDataExchange: [
{ confId: 0, confLabel: "禁用" }, { confId: "N", confLabel: "禁用" },
{ confId: 1, confLabel: "启用" } { confId: "Y", confLabel: "启用" }
], ],
// partnerTypeList: [ // partnerTypeList: [
// { id: 1, name: '普通' }, // { id: 1, name: '普通' },
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
checkList: [0], checkList: [0],
manageTypeList: manageTypeList, manageTypeList: manageTypeList,
businessModel: '', businessModel: '',
multiBusinessCustomerProfileDataExchangeMode: 0, customerExchangeFlag: '',
installMerchantName: '', installMerchantName: '',
loginControlList: [], loginControlList: [],
marketingMerchantName: '', marketingMerchantName: '',
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
GETYQMERCHANTCONFIGDETAIL(oParams).then((res) => { GETYQMERCHANTCONFIGDETAIL(oParams).then((res) => {
this.checkList = res.supportPayTypes || [] this.checkList = res.supportPayTypes || []
this.businessModel = res.businessModel this.businessModel = res.businessModel
this.businessModel = res.multiBusinessCustomerProfileDataExchangeMode this.customerExchangeFlag = res.customerExchangeFlag
this.installMerchantName = res.installMerchantName || '' this.installMerchantName = res.installMerchantName || ''
this.marketingMerchantName = res.marketingMerchantName || '' this.marketingMerchantName = res.marketingMerchantName || ''
this.loginControlList = res.loginControlList || [0, 1] this.loginControlList = res.loginControlList || [0, 1]
...@@ -212,7 +212,7 @@ export default { ...@@ -212,7 +212,7 @@ export default {
oParams.yqMerchantId = this.$route.query.yqMerchantId oParams.yqMerchantId = this.$route.query.yqMerchantId
oParams.supportPayTypes = this.checkList oParams.supportPayTypes = this.checkList
oParams.businessModel = this.businessModel oParams.businessModel = this.businessModel
oParams.multiBusinessCustomerProfileDataExchangeMode = this.multiBusinessCustomerProfileDataExchangeMode oParams.customerExchangeFlag = this.customerExchangeFlag
oParams.loginControlList = this.loginControlList oParams.loginControlList = this.loginControlList
// oParams.partnerType = this.partnerType // oParams.partnerType = this.partnerType
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!