Commit 081ede4b by cwq0219

商户管理-财务-admin信息

1 parent f0074077
import request from './request' import request from './request'
const path = 'dj.api.' // const path = 'dj.api.'
const path2 = 'dj.api.smartcarlife.' const path2 = 'dj.api.smartcarlife.'
export function getSummary(data) { export function getSummary(data) {
...@@ -21,4 +21,4 @@ export function getListTotal(data) { ...@@ -21,4 +21,4 @@ export function getListTotal(data) {
export function exportFile(data) { export function exportFile(data) {
data.method = `${path2}goodsOrderProfitAllocation.export` data.method = `${path2}goodsOrderProfitAllocation.export`
return request(data) return request(data)
}
\ No newline at end of file \ No newline at end of file
}
import request from './request' import request from './request'
const path = 'dj.api.'
const path2 = 'dj.api.smartcarlife.' const path2 = 'dj.api.smartcarlife.'
export function getList(data) { export function getList(data) {
...@@ -16,4 +15,9 @@ export function updateRule(data) { ...@@ -16,4 +15,9 @@ export function updateRule(data) {
export function sendSms(data) { export function sendSms(data) {
data.method = `${path2}sms.sendMerchantCompantSmsCode` data.method = `${path2}sms.sendMerchantCompantSmsCode`
return request(data) return request(data)
}
\ No newline at end of file \ No newline at end of file
}
export function getAdminInfo(data) {
data.method = `${path2}sms.merchantCompantSms.adminInfo`
return request(data, 'post')
}
import request from './request' import request from './request'
const path = 'dj.api.' // const path = 'dj.api.'
const path2 = 'dj.api.smartcarlife.' const path2 = 'dj.api.smartcarlife.'
export function getList(data) { export function getList(data) {
...@@ -16,4 +16,4 @@ export function exportFile(data) { ...@@ -16,4 +16,4 @@ export function exportFile(data) {
export function getOrderDetail(data) { export function getOrderDetail(data) {
data.method = `${path2}advanceOrder.detail` data.method = `${path2}advanceOrder.detail`
return request(data) return request(data)
}
\ No newline at end of file \ No newline at end of file
}
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="管理员手机号验证"> <el-form-item label="管理员手机号验证">
梁卉卉 186 **** 6547 {{adminInfo.name}} {{adminInfo.phone}}
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="验证码" label="验证码"
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
<script> <script>
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { limitPrice } from '@/common/constants' import { limitPrice } from '@/common/constants'
import { updateRule, sendSms } from '@api/merchant' import { updateRule, sendSms, getAdminInfo } from '@api/merchant'
export default { export default {
name: 'merchantDetail', name: 'merchantDetail',
data() { data() {
...@@ -221,6 +221,10 @@ export default { ...@@ -221,6 +221,10 @@ export default {
incentiveType: 1, incentiveType: 1,
incentiveCost: '' incentiveCost: ''
}, },
adminInfo: {
name: '',
phone: ''
},
rules: { rules: {
autoFlag: [ autoFlag: [
{ required: true, message: '请选择是否开启自动打款结算', trigger: 'change' } { required: true, message: '请选择是否开启自动打款结算', trigger: 'change' }
...@@ -287,6 +291,9 @@ export default { ...@@ -287,6 +291,9 @@ export default {
computed: {}, computed: {},
mounted() { mounted() {
getAdminInfo({}).then(res => {
this.adminInfo = res
})
this.merchantId = this.$route.params.merchantId this.merchantId = this.$route.params.merchantId
this.channelType = this.$route.params.channelType this.channelType = this.$route.params.channelType
this.contactName = this.$route.params.contactName this.contactName = this.$route.params.contactName
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!