Commit 4f7ac27a by 张立顺

feat:v4.9.0 需求开发

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