Commit a0488d68 by 张立顺

feta: 接口对接

1 parent 1962defe
......@@ -62,6 +62,7 @@ export function getAdminInfo(data) {
return request(data, 'post')
}
/** 根据商户号获取商户的财务结算规则 */
export function getAccountRule(data) {
data.method = `${path2}merchantSettleAccountRule.get.byMerchantId`
return request(data, 'post')
......
<!-- 表格+分页 -->
<template>
<div class="d2-table">
<el-table
:ref="tableParams.mutiSelectName + 'MutiTable' || 'mutiTable'"
:data="getListApi ? data : tableData"
:row-key="tableParams.mutiSelectUniqueKey || ''"
v-loading="loading"
border
:highlight-current-row="true"
@sort-change="sortChange"
@selection-change="handleSelect"
:tree-props="{children: 'upgradeGoodsList'}"
>
<el-table-column
v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
type="selection"
width="55"
:reserve-selection="true"
>
<el-table :ref="tableParams.mutiSelectName + 'MutiTable' || 'mutiTable'"
:data="getListApi ? data : tableData"
:row-key="tableParams.mutiSelectUniqueKey || ''"
v-loading="loading"
border
:highlight-current-row="true"
@sort-change="sortChange"
@selection-change="handleSelect"
:tree-props="{children: 'upgradeGoodsList'}">
<el-table-column v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
type="selection"
width="55"
:reserve-selection="true">
</el-table-column>
<el-table-column
v-if="hasNum"
align="center"
width="60px"
label="序号"
type='index'
:index="index=>index+(pagination.currentPage - 1) * pagination.pageSize + 1"
></el-table-column>
<el-table-column
v-for="(item, index) in tableParams.tableColumns"
:key="index"
:label="item.label"
:prop="item.prop"
:width="item.width"
:min-width="item.minWidth"
:align="item.align||'center'"
:sortable="item.sortable"
>
<el-table-column v-if="hasNum"
align="center"
width="60px"
label="序号"
type='index'
:index="index=>index+(pagination.currentPage - 1) * pagination.pageSize + 1">
</el-table-column>
<el-table-column v-for="(item, index) in tableParams.tableColumns"
:key="index"
:label="item.label"
:prop="item.prop"
:width="item.width"
:min-width="item.minWidth"
:align="item.align||'center'"
:sortable="item.sortable">
<template slot="header">
<span>{{item.label}}</span>
<table-head-search
v-if="item.optionConfig"
:searchForm="headSearchForm"
:optionConfig="item.optionConfig"
:baseData="baseData"
@handleTableHeadChange="handleTableHeadChange"
></table-head-search>
<table-head-search v-if="item.optionConfig"
:searchForm="headSearchForm"
:optionConfig="item.optionConfig"
:baseData="baseData"
@handleTableHeadChange="handleTableHeadChange"></table-head-search>
</template>
<template slot-scope="scope">
<slot
v-if="item.addHtml"
:name="item.addHtml"
:scope="scope.row"
:prop="item.prop"
:width="item.width"
></slot>
<slot v-if="item.addHtml"
:name="item.addHtml"
:scope="scope.row"
:prop="item.prop"
:width="item.width"></slot>
<template v-else-if="item.tagLabel">
<el-tag
v-if="!item.tagName"
:type="tableParams.tag.type[scope.row[item.prop]]"
v-text="tableParams.tag.label[scope.row[item.prop]]"
>
<el-tag v-if="!item.tagName"
:type="tableParams.tag.type[scope.row[item.prop]]"
v-text="tableParams.tag.label[scope.row[item.prop]]">
</el-tag>
<el-tag
v-else
:type="tableParams[item.tagName].type[scope.row[item.prop]]"
v-text="tableParams[item.tagName].label[scope.row[item.prop]]"
></el-tag>
<el-tag v-else
:type="tableParams[item.tagName].type[scope.row[item.prop]]"
v-text="tableParams[item.tagName].label[scope.row[item.prop]]"></el-tag>
</template>
<template v-else-if="item.formatter">
<span v-text="item.formatter(scope.row)"></span>
<span v-if="item.html"
v-html="item.formatter(scope.row)"></span>
<span v-else
v-text="item.formatter(scope.row)"></span>
</template>
<template v-else-if="getListApi">
<span v-if="item.prefix">{{item.prefix}}</span>
<span v-if="item.parentProp">{{scope.row[item.parentProp] ? scope.row[item.parentProp][item.prop] : ''}}</span>
<span
v-if="item.parentProp">{{scope.row[item.parentProp] ? scope.row[item.parentProp][item.prop] : ''}}</span>
<span v-else>{{scope.row[item.prop]}}</span>
</template>
<template v-else>
......@@ -84,32 +73,26 @@
</template>
</template>
</el-table-column>
<el-table-column
v-if="tableParams.tableOption"
label="操作"
fixed="right"
:align="tableParams.tableOption.align||'center'"
:width="tableParams.tableOption.width||'auto'"
>
<el-table-column v-if="tableParams.tableOption"
label="操作"
fixed="right"
:align="tableParams.tableOption.align||'center'"
:width="tableParams.tableOption.width||'auto'">
<template slot-scope="scope">
<slot
name="auth-button"
:scope="scope.row"
></slot>
<slot name="auth-button"
:scope="scope.row"></slot>
</template>
</el-table-column>
</el-table>
<el-pagination
v-if="hasPage"
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="page.currentPage"
:page-sizes="[10,20,30,40]"
:page-size="page.pageSize"
:total="getListApi ? total : tableTotal"
:layout="layout"
>
<el-pagination v-if="hasPage"
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="page.currentPage"
:page-sizes="[10,20,30,40]"
:page-size="page.pageSize"
:total="getListApi ? total : tableTotal"
:layout="layout">
</el-pagination>
</div>
</template>
......@@ -155,7 +138,7 @@ export default {
// 选项列表Obj
baseData: {
type: Object,
default: () => {}
default: () => { }
},
// 表格头部搜索条件 - end
// 表格数据-外部传入
......
<!-- 下载对账单 -->
<template>
<div>
<d2-dialog title="下载对账单"
:isVisible="accountVisible"
width="40%"
btnOkLabel="确定下载"
@closeDialog="handleClose"
@confirmDialog="handleAddConfirm">
<el-form ref="accountForm"
:model="infoForm"
:rules="formRules"
label-width="120px">
<el-form-item label="商户类型:"
prop="merchantType">
<el-radio-group v-model="infoForm.merchantType"
@change="changeType">
<el-radio-button label="">全部</el-radio-button>
<el-radio-button label="2">4S店</el-radio-button>
<el-radio-button label="7">服务商</el-radio-button>
<el-radio-button label="6">园区店</el-radio-button>
<!-- <el-radio-button label="2" @click.native.prevent="clickMerchantType('2')">4S店</el-radio-button>
<d2-dialog title="下载对账单"
:isVisible="accountVisible"
class="accountDailog"
width="40%"
btnOkLabel="确定下载"
@closeDialog="handleClose"
@confirmDialog="handleAddConfirm">
<el-form ref="accountForm"
:model="infoForm"
:rules="formRules"
label-width="120px">
<el-form-item label="商户类型:"
prop="merchantType">
<el-radio-group v-model="infoForm.merchantType"
@change="changeType">
<el-radio-button label="">全部</el-radio-button>
<el-radio-button label="2">4S店</el-radio-button>
<el-radio-button label="7">服务商</el-radio-button>
<el-radio-button label="6">园区店</el-radio-button>
<!-- <el-radio-button label="2" @click.native.prevent="clickMerchantType('2')">4S店</el-radio-button>
<el-radio-button label="7" @click.native.prevent="clickMerchantType('7')">服务商</el-radio-button>
<el-radio-button label="6" @click.native.prevent="clickMerchantType('6')">园区店</el-radio-button> -->
</el-radio-group>
</el-form-item>
<el-form-item label="选择商户:"
prop="merchant">
<!-- <el-select v-model="infoForm.merchant"
</el-radio-group>
</el-form-item>
<el-form-item label="选择商户:"
prop="merchant">
<!-- <el-select v-model="infoForm.merchant"
multiple
multiple-limit="10"
filterable
......@@ -35,39 +35,39 @@
:remote-method="remoteMethod"
:loading="selectLoading"
style="width:350px"> -->
<el-select v-model="infoForm.merchant"
multiple
multiple-limit="10"
filterable
style="width:400px">
<el-option v-for="item in baseData.merchantList"
:key="item.merchantId"
:label="item.merchantName"
:value="item.merchantId"></el-option>
</el-select>
</el-form-item>
<el-form-item label="订单支付时间:"
class="dateItem"
prop="payStartDate">
<el-date-picker type="date"
placeholder="选择开始日期"
value-format="yyyy-MM-dd"
clearables
:picker-options="startDateOptions"
v-model="infoForm.payStartDate"
@change="changeStartDate"
style="width:185px"></el-date-picker>
<!-- :picker-options="startDateOptions" -->
<div style="margin:0 15px;">-</div>
<!--style="width: 100%;" :picker-options="EndDateOptions" style="width: 100%;" -->
<el-date-picker type="date"
placeholder="选择结束日期"
value-format="yyyy-MM-dd"
clearable
v-model="infoForm.payEndDate"
:picker-options="pickerOptions0"
style="width:185px"></el-date-picker>
<!-- <el-date-picker v-model="infoForm.time"
<el-select v-model="infoForm.merchant"
multiple
multiple-limit="10"
filterable
style="width:400px">
<el-option v-for="item in baseData.merchantList"
:key="item.merchantId"
:label="item.merchantName"
:value="item.merchantId"></el-option>
</el-select>
</el-form-item>
<el-form-item label="订单支付时间:"
class="dateItem"
prop="payStartDate">
<el-date-picker type="date"
placeholder="选择开始日期"
value-format="yyyy-MM-dd"
clearables
:picker-options="startDateOptions"
v-model="infoForm.payStartDate"
@change="changeStartDate"
style="width:185px"></el-date-picker>
<!-- :picker-options="startDateOptions" -->
<div style="margin:0 15px;">-</div>
<!--style="width: 100%;" :picker-options="EndDateOptions" style="width: 100%;" -->
<el-date-picker type="date"
placeholder="选择结束日期"
value-format="yyyy-MM-dd"
clearable
v-model="infoForm.payEndDate"
:picker-options="pickerOptions0"
style="width:185px"></el-date-picker>
<!-- <el-date-picker v-model="infoForm.time"
type="daterange"
value-format="yyyy-MM-dd"
clearable
......@@ -76,16 +76,16 @@
end-placeholder="结束日期"
:picker-options="pickerOption['rangePickerOptions']">
</el-date-picker> -->
</el-form-item>
</el-form>
</d2-dialog>
</div>
</el-form-item>
</el-form>
</d2-dialog>
</template>
<script>
import {
// BaseData,
rangePickerOptions} from '@/common/constants.js'
rangePickerOptions
} from '@/common/constants.js'
import dayjs from 'dayjs'
import * as api from '@api/finance'
import { getMerchantPageSearch } from '@api/publicAccount'
......@@ -352,7 +352,7 @@ export default {
}
/*下拉选择框-多选-内容过长-用...代替 end */
.el-select-dropdown__item {
.accountDailog .el-select-dropdown__item {
width: 395px !important;
}
</style>
......@@ -108,7 +108,7 @@
</el-tab-pane>
<el-tab-pane label="C端零售业务"
name="second"
disabled="true">配置管理</el-tab-pane>
:disabled="true">配置管理</el-tab-pane>
</el-tabs>
</d2-dialog>
<!-- <division-rule
......@@ -219,15 +219,37 @@ export default {
width: '120px'
}, {
label: '关联服务商名称',
prop: 'merchantName',
prop: 'partnerMerchants',
html: true,
formatter: (cellValue) => {
return cellValue.partnerMerchant ? cellValue.partnerMerchant.merchantName : ''
// return cellValue.partnerMerchant ? cellValue.partnerMerchant.merchantName : ''
// return `<p>test</p><p>test</p>`
if (cellValue.partnerMerchants) {
return cellValue.partnerMerchants.reduce((merchString, item) => {
merchString = merchString + `<p>${item.merchantName}</p>`
return merchString
// return item.merchantName
}, '')
} else {
return ''
}
// console.log(cellValue.partnerMerchants&&)
}
}, {
label: '关联服务商号',
prop: 'merchantId',
html: true,
formatter: (cellValue) => {
return cellValue.partnerMerchant ? cellValue.partnerMerchant.merchantId : ''
// return cellValue.partnerMerchant ? cellValue.partnerMerchant.merchantId : ''
if (cellValue.partnerMerchants) {
return cellValue.partnerMerchants.reduce((merchString, item) => {
merchString = merchString + `<p>${item.merchantId}</p>`
return merchString
// return item.merchantName
}, '')
} else {
return ''
}
}
}, {
label: '分账类型',
......
......@@ -91,8 +91,8 @@
<el-button type="primary"
v-show="isShowOkbtn"
:size="size"
@click="handleConfirm"
:disabled="isFirstSetEdit || isSecondSetEdit">确认</el-button>
@click="handleConfirm">确认</el-button>
<!-- :disabled="isFirstSetEdit || isSecondSetEdit" -->
<el-button :size="size"
@click="handleCancel">取消</el-button>
</div>
......@@ -106,14 +106,12 @@ import stepTwo from './stepTwo'
import stepThree from './stepThree'
import stepFour from './stepFour'
import { mapActions } from 'vuex'
// getPartnerByYq
import { getRuleProgressApi, sendSms, getAdminInfo } from '@api/merchant'
import { BaseData, userType, ghUserType } from '@/common/constants.js'
export default {
data() {
return {
// 编辑按钮
isFirstSetEdit: false,
isSecondSetEdit: false,
// 缓存当前merchantId
sessionName: 'applyAccMerchant',
size: 'small',
......@@ -147,10 +145,7 @@ export default {
ghUserType: ghUserType
},
isShowOkbtn: true,
num: 0,
// 编辑按钮
isFirstSetEdit: false,
isSecondSetEdit: false
num: 0
}
},
......@@ -173,21 +168,27 @@ export default {
})
if (this.$route.params.merchantId) {
// console.log(this.$route.params)
this.merchantItem = {
merchantId: this.$route.params.merchantId,
merchantName: this.$route.params.merchantName,
channelType: this.$route.params.channelType,
userType: this.$route.params.userType,
parentMerchantName: this.$route.params.partnerMerchant ? this.$route.params.partnerMerchant.merchantName : '',
parentMerchantId: this.$route.params.partnerMerchant ? this.$route.params.partnerMerchant.merchantId : ''
}
Object.assign(this.form, this.merchantItem)
sessionStorage.setItem(this.sessionName, JSON.stringify(this.merchantItem))
// this.merchantItem = {
// merchantId: this.$route.params.merchantId,
// merchantName: this.$route.params.merchantName,
// channelType: this.$route.params.channelType,
// userType: this.$route.params.userType,
// parentMerchantName: this.$route.params.partnerMerchant ? this.$route.params.partnerMerchant.merchantName : '',
// parentMerchantId: this.$route.params.partnerMerchant ? this.$route.params.partnerMerchant.merchantId : ''
// }
const { merchantId, merchantName, channelType, userType, parentMerchantName, parentMerchantId, partnerMerchants, yqMerchantId, yqMerchantName } = this.$route.params
const merchantItem = { merchantId, merchantName, channelType, userType, parentMerchantName, parentMerchantId, partnerMerchants, yqMerchantId, yqMerchantName }
Object.assign(this.form, merchantItem)
sessionStorage.setItem(this.sessionName, JSON.stringify(merchantItem))
this.getRuleProgress(this.$route.params.merchantId)
} else {
Object.assign(this.form, JSON.parse(sessionStorage.getItem(this.sessionName)))
this.getRuleProgress(this.form.merchantId)
}
// 获取园区店对应的多服务商
this.getPartnerByYqList()
this.getBaseData()
},
......@@ -196,6 +197,9 @@ export default {
get: 'd2admin/base/get',
close: 'd2admin/page/close'
}),
getPartnerByYqList() {
},
async getBaseData() {
this.baseData.productTypeList = _.cloneDeep(await this.get(BaseData.productType))
......@@ -206,13 +210,13 @@ export default {
// this.getRuleProgress(this.form.merchantId, true, 3, (this.num % 2) ? 11 : 35)
this.getRuleProgress(this.form.merchantId, true, 3)
},
// 财务-步骤
getRuleProgress(merchantId, isJump = true, nextPage) {
getRuleProgressApi({ merchantId: merchantId }).then(res => {
// console.log(res)
// console.log(isJump)
this.ruleForm = res
isJump ? (this.stepStat = res.progress) : this.handleStep(nextPage)
isJump ? (this.stepStat = res ? res.progress : 1) : this.handleStep(nextPage)
})
},
......
......@@ -84,7 +84,7 @@
</div>
<div style="height: 50%;">
<p style="padding-top: 20px;"
class="one-line-ellipsis">平台方:嘀加智慧云</p>
class="one-line-ellipsis">平台方:dijiaWisdomCloud</p>
<p class="card-tips">
占{{merchantInfo.settleAccountRule ? (100 - merchantInfo.settleAccountRule.partnerProfitPer) : '100'}}%
</p>
......
......@@ -3,9 +3,10 @@
<div class="view-detail">
<div class="header-block">
<el-row>
<el-col :span="12">分账类型:{{form.autoFlag === 'N' ? '线下对账' : '线上分账'}}</el-col>
<el-col :span="8">分账类型:{{form.autoFlag === 'N' ? '线下对账' : '线上分账'}}</el-col>
<el-col :span="8">自动打款:{{form.autoFlag === 'N' ? '关闭' : '开启'}}</el-col>
<el-col v-show="form.settleTimeType && form.autoFlag !== 'N'"
:span="12">分账周期:
:span="8">分账周期:
<span v-if="form.settleTimeType === 1">T+{{form.settleTime}}</span>
<span v-else>每月{{form.settleTime}}号</span>
</el-col>
......@@ -123,27 +124,9 @@
<td>创建时间:{{needTransformObj.yqCreatedDate}}</td>
</tr>
</table>
<div v-show="merchantInfo.partnerMerchant">
<div v-show="merchantInfo.partnerMerchants">
<p class="edit-sub-title m-t-10">关联的服务商基础信息</p>
<table cellpadding='0'
cellspacing='0'>
<tr>
<th>商户编号:{{merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.merchantId : ''}}
</th>
<th class="ellipsis w-298"
:title="merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.merchantName : ''">
商户名称:{{merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.merchantName : ''}}
</th>
<th class="w-140">
联系人:{{merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.contactName : ''}}
</th>
<th>联系电话:{{merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.phone : ''}}</th>
</tr>
<tr>
<td colspan="3">地址:{{needTransformObj.parentAddr}}</td>
<td>创建时间:{{needTransformObj.parentCreatedDate}}</td>
</tr>
</table>
<table cellpadding='0'
cellspacing='0'
style="border-width: 0px 0px 1px 1px;">
......@@ -163,6 +146,78 @@
<td>{{item.partnerProfitPer}}%</td>
</tr>
</table>
<!-- 单园区店回显 -->
<table cellpadding='0'
v-if="merchantInfo.partnerSettleAccountModel == 1"
cellspacing='0'>
<tr>
<th>
商户编号:{{merchantInfo.singlePartnerMerchant ? merchantInfo.singlePartnerMerchant.merchantId : ''}}
</th>
<th class="ellipsis w-298"
:title="merchantInfo.singlePartnerMerchant ? merchantInfo.singlePartnerMerchant.merchantName : ''">
商户名称:{{merchantInfo.singlePartnerMerchant ? merchantInfo.singlePartnerMerchant.merchantName : ''}}
</th>
<th class="w-140">
联系人:{{merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.contactName : ''}}
</th>
<th>
联系电话:{{merchantInfo.singlePartnerMerchant ? merchantInfo.singlePartnerMerchant.phone : ''}}
</th>
</tr>
<tr>
<td colspan="3">地址:{{needTransformObj.parentAddr}}</td>
<td>创建时间:{{needTransformObj.parentCreatedDate}}</td>
</tr>
</table>
<!-- 多园区店回显 -->
<div v-if="merchantInfo.partnerSettleAccountModel == 2">
<p>安装费用:按固定金额200元</p>
<table cellpadding='0'
v-if="merchantInfo.partnerSettleAccountModel == 1"
cellspacing='0'>
<tr>
<th>商户编号:{{merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.merchantId : ''}}
</th>
<th class="ellipsis w-298"
:title="merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.merchantName : ''">
商户名称:{{merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.merchantName : ''}}
</th>
<th class="w-140">
联系人:{{merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.contactName : ''}}
</th>
<th>联系电话:{{merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.phone : ''}}</th>
</tr>
<tr>
<td colspan="3">地址:{{needTransformObj.parentAddr}}</td>
<td>创建时间:{{needTransformObj.parentCreatedDate}}</td>
</tr>
</table>
<p><span>营销费用:按订单收入30%</span> <span>奖惩费用:服务商总分润-安装费用-营销费用</span></p>
<table cellpadding='0'
v-if="merchantInfo.partnerSettleAccountModel == 1"
cellspacing='0'>
<tr>
<th>商户编号:{{merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.merchantId : ''}}
</th>
<th class="ellipsis w-298"
:title="merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.merchantName : ''">
商户名称:{{merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.merchantName : ''}}
</th>
<th class="w-140">
联系人:{{merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.contactName : ''}}
</th>
<th>联系电话:{{merchantInfo.partnerMerchant ? merchantInfo.partnerMerchant.phone : ''}}</th>
</tr>
<tr>
<td colspan="3">地址:{{needTransformObj.parentAddr}}</td>
<td>创建时间:{{needTransformObj.parentCreatedDate}}</td>
</tr>
</table>
</div>
</div>
</div>
</template>
......@@ -173,6 +228,16 @@ import { getAccountRule, getDivisionRuleApi, entrydateUpdate } from '@api/mercha
import { userType, ghUserType, merchantClassifyList, deductChargeFlagObj } from '@/common/constants'
export default {
name: 'viewDetail',
props: {
viewDetailVisible: {
type: Boolean,
default: false
},
merchantInfo: {
type: Object,
default: () => { }
}
},
data() {
return {
form: {
......@@ -222,17 +287,23 @@ export default {
}
},
props: {
viewDetailVisible: {
type: Boolean,
default: false
},
merchantInfo: {
type: Object,
default: () => { }
computed: {
severType: {
get() {
const list = this.merchantInfo.partnerMerchants
const type = this.merchantInfo.partnerSettleAccountModel
// this.merchantInfo.partnerMerchants.length
if (list && list.length && type) {
return type
} else {
return false
}
},
set(val) {
// this.$emit('update:isShow', false)
}
}
},
watch: {
viewDetailVisible(newVal, val) {
newVal && this.getDetail()
......@@ -240,7 +311,6 @@ export default {
},
mounted() {
this.getDetail()
},
methods: {
......@@ -251,10 +321,11 @@ export default {
createdDate: this.merchantInfo.merchant ? (this.merchantInfo.merchant.createdDate ? Util.dateFormate(this.merchantInfo.merchant.createdDate, 'YYYY-MM-DD HH:mm:ss') : '') : '',
yqAddr: this.merchantInfo.yqMerchant ? ((this.merchantInfo.yqMerchant.provinceName || '') + (this.merchantInfo.yqMerchant.cityName || '') + (this.merchantInfo.yqMerchant.areaName || '') + (this.merchantInfo.yqMerchant.address || '')) : '',
yqCreatedDate: this.merchantInfo.yqMerchant ? (this.merchantInfo.yqMerchant.createdDate ? Util.dateFormate(this.merchantInfo.yqMerchant.createdDate, 'YYYY-MM-DD HH:mm:ss') : '') : '',
parentAddr: this.merchantInfo.partnerMerchant ? ((this.merchantInfo.partnerMerchant.provinceName || '') + (this.merchantInfo.partnerMerchant.cityName || '') + (this.merchantInfo.partnerMerchant.areaName || '') + (this.merchantInfo.partnerMerchant.address || '')) : '',
parentCreatedDate: this.merchantInfo.partnerMerchant ? (this.merchantInfo.partnerMerchant.createdDate ? Util.dateFormate(this.merchantInfo.partnerMerchant.createdDate, 'YYYY-MM-DD HH:mm:ss') : '') : '',
parentAddr: this.merchantInfo.singlePartnerMerchant ? ((this.merchantInfo.singlePartnerMerchant.provinceName || '') + (this.merchantInfo.singlePartnerMerchant.cityName || '') + (this.merchantInfo.singlePartnerMerchant.areaName || '') + (this.merchantInfo.singlePartnerMerchant.address || '')) : '',
parentCreatedDate: this.merchantInfo.singlePartnerMerchant ? (this.merchantInfo.singlePartnerMerchant.createdDate ? Util.dateFormate(this.merchantInfo.singlePartnerMerchant.createdDate, 'YYYY-MM-DD HH:mm:ss') : '') : '',
entryDate: this.merchantInfo.merchant ? (this.merchantInfo.merchant.entryDate ? Util.dateFormate(this.merchantInfo.merchant.entryDate, 'YYYY-MM-DD') : '') : ''
}
console.log(Util.dateFormate(this.merchantInfo.merchant.entryDate, 'YYYY-MM-DD'))
getDivisionRuleApi({ merchantId: this.merchantInfo.merchantId }).then(res => {
this.hasDivision = !!res
this.divisionForm = res || {}
......@@ -265,6 +336,7 @@ export default {
2: 'partnerMerchant',
3: 'merchant'
}
console.log(res)
res && flagList.forEach(item => {
this.divisionList[numToDivisionList[res[item]]].push(this.flagTodivisionObj[item])
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!