parent
3710519603
commit
a76b232ccb
@ -1,220 +1,204 @@
|
|||||||
<template>
|
<template>
|
||||||
<transition name="el-zoom-in-center">
|
<transition name="el-zoom-in-center">
|
||||||
<div class="JNPF-preview-main">
|
<div class="JNPF-preview-main">
|
||||||
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
|
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
|
||||||
<div class="JNPF-common-page-header">
|
<div class="JNPF-common-page-header">
|
||||||
<el-page-header @back="goBack"
|
<el-page-header @back="goBack" content="详情" />
|
||||||
content="详情"/>
|
|
||||||
<div class="options">
|
<div class="options">
|
||||||
<el-button @click="goBack">取消</el-button>
|
<el-button @click="goBack">取消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-row :gutter="15" class=" main" :style="{margin: '0 auto',width: '100%'}">
|
<el-row :gutter="15" class=" main" :style="{margin: '0 auto',width: '100%'}">
|
||||||
<el-form ref="formRef" :model="dataForm" size="default" label-width="100px" label-position="right" >
|
<el-form ref="formRef" :model="dataForm" size="default" label-width="100px"
|
||||||
<template v-if="!loading">
|
label-position="right">
|
||||||
<el-col :span="8" >
|
<template v-if="!loading">
|
||||||
<jnpf-form-tip-item label="头像"
|
<el-col :span="8">
|
||||||
prop="headIcon" >
|
<jnpf-form-tip-item label="头像" prop="headIcon">
|
||||||
<JnpfUploadImg v-model="dataForm.headIcon"
|
<JnpfUploadImg v-model="dataForm.headIcon" disabled detailed :fileSize="5"
|
||||||
disabled
|
sizeUnit="MB" :limit="1" pathType="defaultPath" :isAccount="0">
|
||||||
detailed :fileSize="5" sizeUnit="MB" :limit="1" pathType="defaultPath" :isAccount="0" >
|
|
||||||
</JnpfUploadImg>
|
</JnpfUploadImg>
|
||||||
</jnpf-form-tip-item>
|
</jnpf-form-tip-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8" >
|
<el-col :span="8">
|
||||||
<jnpf-form-tip-item label="微信openid"
|
<jnpf-form-tip-item label="微信openid" prop="wxOpenid">
|
||||||
prop="wxOpenid" >
|
<p>{{dataForm.wxOpenid}}</p>
|
||||||
<p>{{dataForm.wxOpenid}}</p>
|
</jnpf-form-tip-item>
|
||||||
</jnpf-form-tip-item>
|
</el-col>
|
||||||
</el-col>
|
<el-col :span="8">
|
||||||
<el-col :span="8" >
|
<jnpf-form-tip-item label="微信名" prop="wxUserName">
|
||||||
<jnpf-form-tip-item label="微信名"
|
<p>{{dataForm.wxUserName}}</p>
|
||||||
prop="wxUserName" >
|
</jnpf-form-tip-item>
|
||||||
<p>{{dataForm.wxUserName}}</p>
|
</el-col>
|
||||||
</jnpf-form-tip-item>
|
<el-col :span="8">
|
||||||
</el-col>
|
<jnpf-form-tip-item label="昵称" prop="nickName">
|
||||||
<el-col :span="8" >
|
<p>{{dataForm.nickName}}</p>
|
||||||
<jnpf-form-tip-item label="昵称"
|
</jnpf-form-tip-item>
|
||||||
prop="nickName" >
|
</el-col>
|
||||||
<p>{{dataForm.nickName}}</p>
|
<el-col :span="8">
|
||||||
</jnpf-form-tip-item>
|
<jnpf-form-tip-item label="手机" prop="mobilePhone">
|
||||||
</el-col>
|
<p>{{dataForm.mobilePhone}}</p>
|
||||||
<el-col :span="8" >
|
</jnpf-form-tip-item>
|
||||||
<jnpf-form-tip-item label="手机"
|
</el-col>
|
||||||
prop="mobilePhone" >
|
<el-col :span="8">
|
||||||
<p>{{dataForm.mobilePhone}}</p>
|
<jnpf-form-tip-item label="性别" prop="gender">
|
||||||
</jnpf-form-tip-item>
|
<p>{{ dataForm.gender }} </p>
|
||||||
</el-col>
|
</jnpf-form-tip-item>
|
||||||
<el-col :span="8" >
|
</el-col>
|
||||||
<jnpf-form-tip-item label="性别"
|
<el-col :span="8">
|
||||||
prop="gender" >
|
<jnpf-form-tip-item label="生日" prop="birthday">
|
||||||
<p>{{dataForm.gender}}</p>
|
<p>{{dataForm.birthday}}</p>
|
||||||
</jnpf-form-tip-item>
|
</jnpf-form-tip-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8" >
|
<el-col :span="8">
|
||||||
<jnpf-form-tip-item label="生日"
|
<jnpf-form-tip-item label="账户余额" prop="banlance">
|
||||||
prop="birthday" >
|
<p>{{dataForm.banlance}}</p>
|
||||||
<p>{{dataForm.birthday}}</p>
|
</jnpf-form-tip-item>
|
||||||
</jnpf-form-tip-item>
|
</el-col>
|
||||||
</el-col>
|
<el-col :span="8">
|
||||||
<el-col :span="8" >
|
<jnpf-form-tip-item label="会员码" prop="membershipNumber">
|
||||||
<jnpf-form-tip-item label="账户余额"
|
<p>{{dataForm.membershipNumber}}</p>
|
||||||
prop="banlance" >
|
</jnpf-form-tip-item>
|
||||||
<p>{{dataForm.banlance}}</p>
|
</el-col>
|
||||||
</jnpf-form-tip-item>
|
<el-col :span="8">
|
||||||
</el-col>
|
<jnpf-form-tip-item label="会员积分" prop="membershipPoint">
|
||||||
<el-col :span="8" >
|
<p>{{dataForm.membershipPoint}}</p>
|
||||||
<jnpf-form-tip-item label="会员码"
|
</jnpf-form-tip-item>
|
||||||
prop="membershipNumber" >
|
</el-col>
|
||||||
<p>{{dataForm.membershipNumber}}</p>
|
<el-col :span="8">
|
||||||
</jnpf-form-tip-item>
|
<jnpf-form-tip-item label="会员等级" prop="membershipLevel">
|
||||||
</el-col>
|
<p>{{dataForm.membershipLevel}}</p>
|
||||||
<el-col :span="8" >
|
</jnpf-form-tip-item>
|
||||||
<jnpf-form-tip-item label="会员积分"
|
</el-col>
|
||||||
prop="membershipPoint" >
|
<el-col :span="8">
|
||||||
<p>{{dataForm.membershipPoint}}</p>
|
<jnpf-form-tip-item label="消费喜好" prop="consumePreference">
|
||||||
</jnpf-form-tip-item>
|
<p>{{dataForm.consumePreference}}</p>
|
||||||
</el-col>
|
</jnpf-form-tip-item>
|
||||||
<el-col :span="8" >
|
</el-col>
|
||||||
<jnpf-form-tip-item label="会员等级"
|
<el-col :span="8">
|
||||||
prop="membershipLevel" >
|
<jnpf-form-tip-item label="发票抬头" prop="taxTitle">
|
||||||
<p>{{dataForm.membershipLevel}}</p>
|
<p>{{dataForm.taxTitle}}</p>
|
||||||
</jnpf-form-tip-item>
|
</jnpf-form-tip-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8" >
|
<el-col :span="8">
|
||||||
<jnpf-form-tip-item label="消费喜好"
|
<jnpf-form-tip-item label="企业税号" prop="taxId">
|
||||||
prop="consumePreference" >
|
<p>{{dataForm.taxId}}</p>
|
||||||
<p>{{dataForm.consumePreference}}</p>
|
</jnpf-form-tip-item>
|
||||||
</jnpf-form-tip-item>
|
</el-col>
|
||||||
</el-col>
|
<el-col :span="8">
|
||||||
<el-col :span="8" >
|
<jnpf-form-tip-item label="创建时间" prop="creatorTime">
|
||||||
<jnpf-form-tip-item label="发票抬头"
|
<p>{{dataForm.creatorTime}}</p>
|
||||||
prop="taxTitle" >
|
</jnpf-form-tip-item>
|
||||||
<p>{{dataForm.taxTitle}}</p>
|
</el-col>
|
||||||
</jnpf-form-tip-item>
|
<el-col :span="8">
|
||||||
</el-col>
|
<jnpf-form-tip-item label="有效标志" prop="enabledMark">
|
||||||
<el-col :span="8" >
|
<p>{{ dataForm.enabledMark }} </p>
|
||||||
<jnpf-form-tip-item label="企业税号"
|
</jnpf-form-tip-item>
|
||||||
prop="taxId" >
|
</el-col>
|
||||||
<p>{{dataForm.taxId}}</p>
|
<el-col :span="8">
|
||||||
</jnpf-form-tip-item>
|
<jnpf-form-tip-item label="最后登录IP" prop="lastLogIp">
|
||||||
</el-col>
|
<p>{{dataForm.lastLogIp}}</p>
|
||||||
<el-col :span="8" >
|
</jnpf-form-tip-item>
|
||||||
<jnpf-form-tip-item label="最后登录IP"
|
</el-col>
|
||||||
prop="lastLogIp" >
|
<el-col :span="8">
|
||||||
<p>{{dataForm.lastLogIp}}</p>
|
<jnpf-form-tip-item label="最后登录时间" prop="lastLogTime">
|
||||||
</jnpf-form-tip-item>
|
<p>{{dataForm.lastLogTime}}</p>
|
||||||
</el-col>
|
</jnpf-form-tip-item>
|
||||||
<el-col :span="8" >
|
</el-col>
|
||||||
<jnpf-form-tip-item label="最后登录时间"
|
</template>
|
||||||
prop="lastLogTime" >
|
</el-form>
|
||||||
<p>{{dataForm.lastLogTime}}</p>
|
</el-row>
|
||||||
</jnpf-form-tip-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8" >
|
|
||||||
<jnpf-form-tip-item label="有效标志"
|
|
||||||
prop="enabledMark" >
|
|
||||||
<p>{{dataForm.enabledMark}}</p>
|
|
||||||
</jnpf-form-tip-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8" >
|
|
||||||
<jnpf-form-tip-item label="创建时间"
|
|
||||||
prop="creatorTime" >
|
|
||||||
<p>{{dataForm.creatorTime}}</p>
|
|
||||||
</jnpf-form-tip-item>
|
|
||||||
</el-col>
|
|
||||||
</template>
|
|
||||||
</el-form>
|
|
||||||
</el-row>
|
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
import { getConfigData } from '@/api/onlineDev/visualDev'
|
import { getConfigData } from '@/api/onlineDev/visualDev'
|
||||||
import jnpf from '@/utils/jnpf'
|
import jnpf from '@/utils/jnpf'
|
||||||
import Detail from '@/views/basic/dynamicModel/list/detail'
|
import Detail from '@/views/basic/dynamicModel/list/detail'
|
||||||
import { thousandsFormat } from "@/components/Generator/utils/index"
|
import { thousandsFormat } from "@/components/Generator/utils/index"
|
||||||
export default {
|
export default {
|
||||||
components: { Detail},
|
components: { Detail },
|
||||||
props: [],
|
props: [],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
detailVisible: false,
|
detailVisible: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
|
|
||||||
dataForm: {
|
dataForm: {
|
||||||
id :'',
|
id: '',
|
||||||
headIcon : [],
|
headIcon: [],
|
||||||
wxOpenid : '',
|
wxOpenid: '',
|
||||||
wxUserName : '',
|
wxUserName: '',
|
||||||
nickName : '',
|
nickName: '',
|
||||||
mobilePhone : '',
|
mobilePhone: '',
|
||||||
gender : '',
|
gender: "1",
|
||||||
birthday : '',
|
birthday: '',
|
||||||
banlance : '',
|
banlance: '',
|
||||||
membershipNumber : '',
|
membershipNumber: '',
|
||||||
membershipPoint : '',
|
membershipPoint: '',
|
||||||
membershipLevel : '',
|
membershipLevel: '',
|
||||||
consumePreference : '',
|
consumePreference: '',
|
||||||
taxTitle : '',
|
taxTitle: '',
|
||||||
taxId : '',
|
taxId: '',
|
||||||
lastLogIp : '',
|
creatorTime: '',
|
||||||
lastLogTime : '',
|
enabledMark: "",
|
||||||
enabledMark : "519107823167080453",
|
lastLogIp: '',
|
||||||
creatorTime : '',
|
lastLogTime: '',
|
||||||
},
|
},
|
||||||
enabledMarkProps:{"label":"fullName","value":"id" },
|
genderOptions: [{ "fullName": "男", "id": "1" }, { "fullName": "女", "id": "2" }, { "fullName": "保密", "id": "3" }],
|
||||||
|
genderProps: { "label": "fullName", "value": "id" },
|
||||||
|
enabledMarkOptions: [{ "fullName": "启用", "id": "1" }, { "fullName": "禁用", "id": "0" }],
|
||||||
|
enabledMarkProps: { "label": "fullName", "value": "id" },
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
created() {
|
created() {
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {},
|
mounted() { },
|
||||||
methods: {
|
methods: {
|
||||||
toDetail(defaultValue, modelId) {
|
toDetail(defaultValue, modelId) {
|
||||||
if (!defaultValue) return
|
if (!defaultValue) return
|
||||||
getConfigData(modelId).then(res => {
|
getConfigData(modelId).then(res => {
|
||||||
if (!res.data || !res.data.formData) return
|
if (!res.data || !res.data.formData) return
|
||||||
let formData = JSON.parse(res.data.formData)
|
let formData = JSON.parse(res.data.formData)
|
||||||
formData.popupType = 'general'
|
formData.popupType = 'general'
|
||||||
this.detailVisible = true
|
this.detailVisible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.Detail.init(formData, modelId, defaultValue)
|
this.$refs.Detail.init(formData, modelId, defaultValue)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
dataInfo(dataAll){
|
dataInfo(dataAll) {
|
||||||
let _dataAll =dataAll
|
let _dataAll = dataAll
|
||||||
this.dataForm = _dataAll
|
this.dataForm = _dataAll
|
||||||
},
|
},
|
||||||
|
|
||||||
goBack() {
|
goBack() {
|
||||||
this.$emit('refresh')
|
this.$emit('refresh')
|
||||||
},
|
},
|
||||||
init(id) {
|
init(id) {
|
||||||
this.dataForm.id = id || 0;
|
this.dataForm.id = id || 0;
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if(this.dataForm.id){
|
if (this.dataForm.id) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
request({
|
request({
|
||||||
url: '/api/scm/Client/detail/'+this.dataForm.id,
|
url: '/api/scm/Client/detail/' + this.dataForm.id,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.dataInfo(res.data)
|
this.dataInfo(res.data)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue