Commit 4f7ac27a by 张立顺

feat:v4.9.0 需求开发

1 parent 38219f37
...@@ -67,3 +67,9 @@ export function getAreaInfoByOpenAccBankTypeApi(data) { ...@@ -67,3 +67,9 @@ export function getAreaInfoByOpenAccBankTypeApi(data) {
data.method = `${djPath}yseMerchantOffline.getAreaInfoByOpenAccBankType` data.method = `${djPath}yseMerchantOffline.getAreaInfoByOpenAccBankType`
return request(data, 'post') return request(data, 'post')
} }
// 分账规则历史记录
export function getHistoryRecord(data) {
data.method = `${djPath}smartcarlife.divisionRuleEffectRecord.getHistoryRecord`
return request(data, 'post')
}
...@@ -45,8 +45,8 @@ const request = ( ...@@ -45,8 +45,8 @@ const request = (
reqData = reqData = Object.assign(reqData, options, {}) reqData = reqData = Object.assign(reqData, options, {})
// console.log(method === RequestMethods.POST) // console.log(method === RequestMethods.POST)
// console.log(url) // console.log(url)
console.log(options) // console.log(options)
console.log(reqData) // console.log(reqData)
return axios({ return axios({
url, url,
method, method,
......
...@@ -715,12 +715,12 @@ export const resources = { ...@@ -715,12 +715,12 @@ export const resources = {
} }
] ]
}, },
// { {
// authId: '9060304', authId: '9060304',
// parentId: '90603', parentId: '90603',
// label: '分账', label: '历史记录',
// handle: 'handleAccount' handle: 'handleRecord'
// }, },
{ {
authId: '9060305', authId: '9060305',
parentId: '90603', parentId: '90603',
......
...@@ -111,11 +111,15 @@ ...@@ -111,11 +111,15 @@
:disabled="true">配置管理</el-tab-pane> :disabled="true">配置管理</el-tab-pane>
</el-tabs> </el-tabs>
</d2-dialog> </d2-dialog>
<!-- <division-rule <baseDialog :isShow.sync="financialRulesDetailVisible"
:divisionRuleVisible="divisionRuleVisible" :config="dialogConfig.setting"
:merchantInfo="merchantInfo" :dialogConfig="dialogConfig.config"
@handleRuleClose="handleRuleClose" @closeDialog="handleDetailClose">
></division-rule> --> <financialRulesDetail v-if="financialRulesDetailVisible"
:merchantId="merchantInfo.merchantId"
:accountDetailVisible="financialRulesDetailVisible">
</financialRulesDetail>
</baseDialog>
</d2-container> </d2-container>
</template> </template>
...@@ -123,7 +127,8 @@ ...@@ -123,7 +127,8 @@
import { Util } from '@/common/util' import { Util } from '@/common/util'
import _ from 'lodash' import _ from 'lodash'
import viewDetail from './viewDetail' import viewDetail from './viewDetail'
// import divisionRule from './divisionRule' import financialRulesDetail from './financialRulesDetail'
import baseDialog from '@/components/baseDialog/baseDialog'
import { getList, deleteMerchant, serviceGetMerchantList, addServiceMerchant, getPartnerByYq } from '@api/merchant' import { getList, deleteMerchant, serviceGetMerchantList, addServiceMerchant, getPartnerByYq } from '@api/merchant'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { getParkStore } from '@api/editCustomer' import { getParkStore } from '@api/editCustomer'
...@@ -131,9 +136,31 @@ import { BaseData, userTypeList, ghUserTypeList, merchantClassifyList } from '@/ ...@@ -131,9 +136,31 @@ import { BaseData, userTypeList, ghUserTypeList, merchantClassifyList } from '@/
import relateStoreMerDialog from './components/relateStoreMerDialog' import relateStoreMerDialog from './components/relateStoreMerDialog'
export default { export default {
name: 'merchantManage', name: 'merchantManage',
components: {
viewDetail,
relateStoreMerDialog,
financialRulesDetail,
baseDialog
// divisionRule
},
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
financialRulesDetailVisible: false,
dialogConfig: {
setting: {
showClose: true,
appendToBody: false,
// width: '900px',
btnList: [
]
},
config: {
title: '查看详情',
width: '900px'
}
},
searchForm: { searchForm: {
merchantType: '', merchantType: '',
channelType: '', channelType: '',
...@@ -185,7 +212,9 @@ export default { ...@@ -185,7 +212,9 @@ export default {
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
tableOption: true, tableOption: {
width: '200px'
},
tableColumns: [{ tableColumns: [{
label: '导流方编号', label: '导流方编号',
prop: 'merchantId', prop: 'merchantId',
...@@ -268,7 +297,8 @@ export default { ...@@ -268,7 +297,8 @@ export default {
formatter: (cellValue) => { formatter: (cellValue) => {
return Util.dateFormate(cellValue.updatedDate, 'YYYY-MM-DD HH:mm:ss') return Util.dateFormate(cellValue.updatedDate, 'YYYY-MM-DD HH:mm:ss')
} }
}] }
]
}, },
// 关联门店 // 关联门店
storeSearchForm: { storeSearchForm: {
...@@ -287,9 +317,7 @@ export default { ...@@ -287,9 +317,7 @@ export default {
storeApi: serviceGetMerchantList, storeApi: serviceGetMerchantList,
sourcePage: 'serviceStore', sourcePage: 'serviceStore',
storeSelected: [], storeSelected: [],
// 分账
// divisionRuleVisible: false,
// merchantInfo: {},
// 查看详情 // 查看详情
detailActiveName: 'first', detailActiveName: 'first',
viewDetailVisible: false, viewDetailVisible: false,
...@@ -309,12 +337,6 @@ export default { ...@@ -309,12 +337,6 @@ export default {
} }
}, },
components: {
viewDetail,
relateStoreMerDialog
// divisionRule
},
mounted() { mounted() {
this.userInfo.beSuper && getParkStore({}).then(res => { this.userInfo.beSuper && getParkStore({}).then(res => {
res.forEach(item => { res.forEach(item => {
...@@ -334,6 +356,9 @@ export default { ...@@ -334,6 +356,9 @@ export default {
this.baseData.channelTypeList = await this.get(BaseData.channelType) this.baseData.channelTypeList = await this.get(BaseData.channelType)
this.getOptionsList() this.getOptionsList()
}, },
handleDetailClose() {
this.financialRulesDetailVisible = false
},
keyDowmGetList() { keyDowmGetList() {
this.$refs.merchantTable.refreshTable() this.$refs.merchantTable.refreshTable()
}, },
...@@ -440,14 +465,14 @@ export default { ...@@ -440,14 +465,14 @@ export default {
this.viewDetailData = _.cloneDeep(row) this.viewDetailData = _.cloneDeep(row)
this.handleViewClose() this.handleViewClose()
}, },
// 分账 // 历史记录
// handleAccount(row) { handleRecord(row) {
// this.merchantInfo = row this.merchantInfo = row
// this.handleRuleClose() this.handleRuleClose()
// }, },
// handleRuleClose() { handleRuleClose() {
// this.divisionRuleVisible = !this.divisionRuleVisible this.financialRulesDetailVisible = !this.financialRulesDetailVisible
// }, },
// 删除 // 删除
handleDelete(row) { handleDelete(row) {
this.$confirm('是否要进行删除操作?', '提示', { this.$confirm('是否要进行删除操作?', '提示', {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!