mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 05:39:36 +08:00
修改了预约记录判断问题,修改了展厅预约报错问题,修改了访客预约功能,修改了企业管理中新增企业管理员
This commit is contained in:
parent
faa73f6ec4
commit
ec052fd417
@ -24,6 +24,16 @@ export function getStaffList (parameter) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function selectCustomerStaffList (parameter) {
|
||||||
|
return axios({
|
||||||
|
url: api.icsCustomerStaff + '/selectCustomerStaffList',
|
||||||
|
method: 'get',
|
||||||
|
params: parameter
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export function getStaffListNotId (parameter) {
|
export function getStaffListNotId (parameter) {
|
||||||
return axios({
|
return axios({
|
||||||
url: api.icsCustomerStaff + '/getStaffListNotId',
|
url: api.icsCustomerStaff + '/getStaffListNotId',
|
||||||
|
@ -285,16 +285,16 @@
|
|||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<a-tab-pane tab='联系人' key='3' v-if='$route.query.customerId'>
|
<a-tab-pane tab='企业员工管理' key='3' v-if='$route.query.customerId'>
|
||||||
<div style='margin: 10px'>
|
<div style='margin: 10px'>
|
||||||
<a-button type='primary' @click='$refs.contactModal.add({ customerId: $route.query.customerId })'>
|
<a-button type='primary' @click='$refs.contactModal.add({ customerId: $route.query.customerId })'>
|
||||||
新建联系人
|
新建企业员工
|
||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
<a-table :pagination='false' :columns='contactsItemColumns' :dataSource='contactsItemData' rowKey='id'>
|
<a-table :pagination='false' :columns='contactsItemColumns' :dataSource='contactsItemData' rowKey='id'>
|
||||||
<template slot='operation' slot-scope='text, record'>
|
<template slot='operation' slot-scope='text, record'>
|
||||||
<!-- <a-button type="link" @click="$refs.contactModal.add(record)">编辑</a-button>-->
|
<a-button type="link" @click="$refs.contactModal.add(record)">编辑</a-button>
|
||||||
<!-- <a-divider type="vertical" />-->
|
<a-divider type="vertical" />
|
||||||
<a-popconfirm @confirm='handleDeleteContact(record)'>
|
<a-popconfirm @confirm='handleDeleteContact(record)'>
|
||||||
<template slot='title'>
|
<template slot='title'>
|
||||||
<span>确定删除 {{ record.name }} 吗?</span>
|
<span>确定删除 {{ record.name }} 吗?</span>
|
||||||
@ -324,6 +324,7 @@ import {
|
|||||||
getCustomer,
|
getCustomer,
|
||||||
getQiXinBasicInfo,
|
getQiXinBasicInfo,
|
||||||
getStaffList,
|
getStaffList,
|
||||||
|
selectCustomerStaffList,
|
||||||
updateStaffByCustomer
|
updateStaffByCustomer
|
||||||
} from '@/api/admin/customer'
|
} from '@/api/admin/customer'
|
||||||
import {
|
import {
|
||||||
@ -587,7 +588,7 @@ export default {
|
|||||||
let param = {
|
let param = {
|
||||||
customerId: this.$route.query.customerId
|
customerId: this.$route.query.customerId
|
||||||
}
|
}
|
||||||
getStaffList(param).then(res => {
|
selectCustomerStaffList(param).then(res => {
|
||||||
this.contactsItemData = res.rows
|
this.contactsItemData = res.rows
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -103,13 +103,16 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue(pick(this.mdl, 'id', 'roomContentId', 'userId', 'ticketId', 'customerId', 'title', 'stauts', 'isAfterSale', 'oderNumber', 'orderMoney', 'cancelTime', 'cancelResaon', 'visitType', 'explainNeedType', 'meetingNeedType', 'meetingId', 'photographType', 'startTime', 'endTime', 'deleteFlag', 'createBy', 'createTime', 'updateBy', 'updateTime', 'remake'))
|
this.form.setFieldsValue(pick(this.mdl, 'id', 'roomContentId', 'userId', 'ticketId', 'customerId', 'title', 'stauts', 'isAfterSale', 'oderNumber', 'orderMoney', 'cancelTime', 'cancelResaon', 'visitType', 'explainNeedType', 'meetingNeedType', 'meetingId', 'photographType', 'startTime', 'endTime', 'deleteFlag', 'createBy', 'createTime', 'updateBy', 'updateTime', 'remake'))
|
||||||
})
|
})
|
||||||
get(record.id).then(res => {
|
if (record.id !== 0){
|
||||||
this.form.setFieldsValue({
|
get(record.id).then(res => {
|
||||||
endDate: res.endDate,
|
this.form.setFieldsValue({
|
||||||
duration: res.duration
|
endDate: res.endDate,
|
||||||
|
duration: res.duration
|
||||||
|
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
handleSubmit(e) {
|
handleSubmit(e) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
@ -289,6 +289,8 @@
|
|||||||
values.visitArea =values.visitArea.join(",")
|
values.visitArea =values.visitArea.join(",")
|
||||||
|
|
||||||
values.explainNeedType = values.explainNeedType === true ? 1 : 0
|
values.explainNeedType = values.explainNeedType === true ? 1 : 0
|
||||||
|
values.meetingNeedType = values.meetingNeedType === true ? 1 : 0
|
||||||
|
values.photographType = values.photographType === true ? 1 : 0
|
||||||
|
|
||||||
|
|
||||||
saveShowroomRecord(values).then(res => {
|
saveShowroomRecord(values).then(res => {
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='被访人姓名'>
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='被访人姓名'>
|
||||||
<a-select v-decorator="['intervieweeId',{rules: [{ required: true, message: '请选择被访人姓名' }]}]"
|
<a-select v-decorator="['userId',{rules: [{ required: true, message: '请选择被访人姓名' }]}]"
|
||||||
placeholder='请选择被访人姓名'
|
placeholder='请选择被访人姓名'
|
||||||
@change='getPersonData'>
|
@change='getPersonData'>
|
||||||
<a-select-option v-for='item in personList' :key='item.id' :value='item.id'>
|
<a-select-option v-for='item in personList' :key='item.id' :value='item.id'>
|
||||||
|
@ -14,25 +14,72 @@
|
|||||||
<a-form-item style="display:none">
|
<a-form-item style="display:none">
|
||||||
<a-input v-decorator="['customerId']" />
|
<a-input v-decorator="['customerId']" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="请选择手机号">
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='姓名'>
|
||||||
<!-- <a-input placeholder="联系人" v-decorator="['name', {rules: [{required: true, message: '请输入联系人'}]}]"/>-->
|
<a-input placeholder='姓名' v-decorator="['name', {rules: [{required: true, message: '请输入姓名'}]}]" />
|
||||||
|
</a-form-item>
|
||||||
<a-select
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='电话'>
|
||||||
show-search
|
<a-input placeholder='电话' v-decorator="['mobile', {rules: [{required: true, message: '请输入电话'}]}]" />
|
||||||
v-decorator="['mobile', {rules: [{required: true, message: '请选择手机号码'}]}]"
|
</a-form-item>
|
||||||
placeholder="请选择手机号码"
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='用户性别'>
|
||||||
style="width: 200px"
|
<a-radio-group @change='onChange' v-decorator="['gender',{rules: [{required: true, message: '请选择性别'}]}]">
|
||||||
:default-active-first-option="false"
|
<a-radio :value="'0'">男</a-radio>
|
||||||
:show-arrow="false"
|
<a-radio :value="'1'">女</a-radio>
|
||||||
:filter-option="false"
|
</a-radio-group>
|
||||||
:not-found-content="null"
|
</a-form-item>
|
||||||
@search="handleSearch"
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='照片'>
|
||||||
@change="handleChange"
|
<a-upload
|
||||||
>
|
v-decorator="['photo' ,{rules: [{required: true, message: '请上传照片'}]}]"
|
||||||
<a-select-option v-for="d in data" :key="d.id">
|
list-type='picture-card'
|
||||||
{{ d.mobile }}
|
class='avatar-uploader'
|
||||||
</a-select-option>
|
:show-upload-list='false'
|
||||||
</a-select>
|
:action='uploadUrl'
|
||||||
|
:headers='headers'
|
||||||
|
:before-upload='photoBeforeUpload'
|
||||||
|
@change='photoHandleChange'
|
||||||
|
>
|
||||||
|
<img v-if='photoImageUrl' :src='photoImageUrl' style='width: 102px; height: 102px' />
|
||||||
|
<div v-else>
|
||||||
|
<a-icon :type="photoLoading ? 'loading' : 'plus'" />
|
||||||
|
<div class='ant-upload-text'> 上传</div>
|
||||||
|
</div>
|
||||||
|
</a-upload>
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='头像'>
|
||||||
|
<a-upload
|
||||||
|
v-decorator="['avatar']"
|
||||||
|
list-type='picture-card'
|
||||||
|
class='avatar-uploader'
|
||||||
|
:show-upload-list='false'
|
||||||
|
:action='uploadUrl'
|
||||||
|
:headers='headers'
|
||||||
|
:before-upload='avatarBeforeUpload'
|
||||||
|
@change='avatarHandleChange'
|
||||||
|
>
|
||||||
|
<img v-if='avatarImageUrl' :src='avatarImageUrl' style='width: 102px; height: 102px' />
|
||||||
|
<div v-else>
|
||||||
|
<a-icon :type="avatarLoading ? 'loading' : 'plus'" />
|
||||||
|
<div class='ant-upload-text'> 上传</div>
|
||||||
|
</div>
|
||||||
|
</a-upload>
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='昵称'>
|
||||||
|
<a-input placeholder='昵称' v-decorator="['username']" />
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='身份证号'>
|
||||||
|
<a-input placeholder='身份证号' v-decorator="['cardNo']" />
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='地址'>
|
||||||
|
<a-input placeholder='地址' v-decorator="['address' ,{rules: [{required: true, message: '请输入地址'}]}]" />
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='邮箱'>
|
||||||
|
<a-input placeholder='邮箱' v-decorator="['email']" />
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='学历'>
|
||||||
|
<a-input placeholder='学历' v-decorator="['degree']" />
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='紧急联系人'>
|
||||||
|
<a-input placeholder='紧急联系人' v-decorator="['urgent']" />
|
||||||
|
</a-form-item>
|
||||||
|
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<!-- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="联系电话">-->
|
<!-- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="联系电话">-->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user