| | |
| | | import { http } from '@/utils/service.js' |
| | | export * from '@/utils/config.js' |
| | | export * from './visitor' |
| | | |
| | | // æ¥è¯¢åå
¸å¼æ°æ® |
| | | export const getSystemDictData = (data) => { |
| | |
| | | }) |
| | | } |
| | | // è·åé¢ç®æ°æ® |
| | | export const getProblemsVO = () => { |
| | | export const getProblemsVO = (data) => { |
| | | return http({ |
| | | url: 'visitsAdmin/cloudService/web/problem/getProblemsVO' |
| | | }) |
| | | } |
| | | // 访客é¢çº¦è¯¦æ
|
| | | export const visitorSubDetail = (data) => { |
| | | return http({ |
| | | url: 'visitsAdmin/cloudService/web/visitor/detail', |
| | | url: 'visitsAdmin/cloudService/web/problem/getProblemsVO', |
| | | method: 'get', |
| | | data |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import { http } from '@/utils/service.js' |
| | | import { methods } from 'uview-ui/libs/mixin/mixin' |
| | | |
| | | // 访客é¢çº¦è¯¦æ
|
| | | export const visitorSubDetail = (data) => { |
| | | return http({ |
| | | url: 'visitsAdmin/cloudService/web/visitor/detail', |
| | | data |
| | | }) |
| | | } |
| | | |
| | | // æäº¤è®¿å®¢ä¿¡æ¯ |
| | | export const createFk = (data) => { |
| | | return http({ |
| | | url: 'visitsAdmin/cloudService/web/visitor/createFk', |
| | | method: 'post', |
| | | data |
| | | }) |
| | | } |
| | | // æ¥è¯¢è¢«è®¿äººå表 |
| | | export const getVisitedMember = (data) => { |
| | | return http({ |
| | | url: 'visitsAdmin/cloudService/web/visitor/getVisitedMember', |
| | | method: 'post', |
| | | data |
| | | }) |
| | | } |
| | | // æ¥è¯¢æ¥è®¿äºç± |
| | | export const getVisitedVisitReason = (data) => { |
| | | return http({ |
| | | url: 'visitsAdmin/cloudService/web/visitor/visitReason', |
| | | method: 'post', |
| | | data |
| | | }) |
| | | } |
| | | // è®¿å®¢è®°å½ |
| | | export const getVisitedRecord = (data) => { |
| | | return http({ |
| | | url: 'visitsAdmin/cloudService/web/visitor/visitPage', |
| | | method: 'post', |
| | | data |
| | | }) |
| | | } |
| | |
| | | "path": "pages/notice/notice",
|
| | | "style": {
|
| | | "navigationBarTitleText": "å
¥åé¡»ç¥",
|
| | | "enablePullDownRefresh": false,
|
| | | "navigationStyle": "custom"
|
| | | "enablePullDownRefresh": false
|
| | | }
|
| | | },
|
| | | {
|
| | |
| | | <template> |
| | | <view class="box"> |
| | | <view class="box_bgimage" :style="{backgroundImage: 'url(' + bg + ')'}"> |
| | | <text class="box_bgimage_a">访客é®å·å°è°ç </text> |
| | | <text class="box_bgimage_b">çé¢åå¼éè¦è¾¾å°30åæè½ç³è¯·è®¿é®å¦ï½</text> |
| | | <text class="box_bgimage_a">{{ title }}</text> |
| | | <text class="box_bgimage_b">{{ content }}</text> |
| | | </view> |
| | | <view class="box_list"> |
| | | <view class="box_list_answer" v-if="list && list.length > 0"> |
| | |
| | | </template> --> |
| | | <!-- åé --> |
| | | <view v-for="(item,index) in list" :key="index" class="list_item"> |
| | | <template v-if="item.type == 1"> |
| | | <view class="box_list_answer_name"> |
| | | {{index + 1}}ã{{item.title}} |
| | | {{index + 1}}ã{{item.title}}<text style="color:#ED4545;">*</text> |
| | | </view> |
| | | <view class="box_list_answer_item" v-for="(line, lIndex) in item.options" :key="lIndex" @click="select(index)"> |
| | | <image src="@/static/video_error@2x.png" /> |
| | | <image src="@/static/video@2x.png" /> |
| | | <image src="@/static/video_sel@2x.png" /> |
| | | <text style="color: rgba(237, 69, 69, 1)" >{{line.code}} {{line.value}}</text> |
| | | <text >{{line.code}} {{line.value}}</text> |
| | | <text style="color: rgba(2, 94, 239, 1)" >{{line.code}} {{line.value}}</text> |
| | | <view class="box_list_answer_item" v-for="(line, lIndex) in item.options" :key="lIndex" @click="select(line, index)"> |
| | | <image src="@/static/video@2x.png" v-if="!item.selAnswer || item.selAnswer !== line.code" /> |
| | | <image src="@/static/video_sel@2x.png" v-if="item.selAnswer && item.selAnswer == line.code && item.answer === item.selAnswer" /> |
| | | <image src="@/static/video_error@2x.png" v-if="item.selAnswer && item.selAnswer == line.code && item.answer !== item.selAnswer" /> |
| | | <text v-if="!item.selAnswer"><text class="mr24">{{line.code}}</text> {{line.value}}</text> |
| | | <text v-if="item.selAnswer && item.answer === item.selAnswer" style="color: rgba(2, 94, 239, 1)" ><text class="mr24" style="color: rgba(2, 94, 239, 1)">{{line.code}}</text> {{line.value}}</text> |
| | | <text v-if="item.selAnswer && item.answer !== item.selAnswer" style="color: rgba(237, 69, 69, 1)" ><text class="mr24" style="color: rgba(237, 69, 69, 1)">{{line.code}}</text> {{line.value}}</text> |
| | | </view> |
| | | <view class="box_list_answer_tips" v-if="success"> |
| | | <view class="box_list_answer_tips" v-if="item.selAnswer && item.answer !== item.selAnswer"> |
| | | <image src="@/static/ic_wrong@2x.png" /> |
| | | <text>åçé误</text> |
| | | </view> |
| | | <view class="box_list_answer_tips" v-if="item.selAnswer && item.answer === item.selAnswer"> |
| | | <image src="@/static/meeting/icon/ic_choose_sel@2x.png" /> |
| | | <text>åçæ£ç¡®</text> |
| | | </view> |
| | | </template> |
| | | </view> |
| | | <view class="empty"></view> |
| | | <view class="box_list_answer_btn" @click="next()">æäº¤</view> |
| | |
| | | |
| | | data() { |
| | | return { |
| | | i: 0, |
| | | problemIndex: 0, |
| | | multiple: null, |
| | | success: true, |
| | | list: [ |
| | | { |
| | | type: '1', |
| | | title: '第ä¸é¢', |
| | | options: [ |
| | | { code: 'å¹´å', value: '111111' }, |
| | | { code: 'å¹´å', value: '111111' }, |
| | | { code: 'å¹´å', value: '111111' }, |
| | | { code: 'å¹´å', value: '111111' }, |
| | | ] |
| | | }, |
| | | { |
| | | type: '1', |
| | | title: '第ä¸é¢', |
| | | options: [ |
| | | { code: 'å¹´å', value: '111111' }, |
| | | { code: 'å¹´å', value: '111111' }, |
| | | { code: 'å¹´å', value: '111111' }, |
| | | { code: 'å¹´å', value: '111111' }, |
| | | ] |
| | | }, |
| | | { |
| | | type: '1', |
| | | title: '第ä¸é¢', |
| | | options: [ |
| | | { code: 'å¹´å', value: '111111' }, |
| | | { code: 'å¹´å', value: '111111' }, |
| | | { code: 'å¹´å', value: '111111' }, |
| | | { code: 'å¹´å', value: '111111' }, |
| | | ] |
| | | } |
| | | ], |
| | | list: [], |
| | | bg: require("@/static/banner_dati.jpg"), |
| | | title: '', |
| | | content: '' |
| | |
| | | }, |
| | | |
| | | onLoad() { |
| | | // this.getProblems() |
| | | this.getProblems() |
| | | this.getInfo() |
| | | }, |
| | | |
| | |
| | | if (item.type === 1 || item.type === 2) { |
| | | item.options = JSON.parse(item.options) |
| | | } |
| | | item.status = '0' |
| | | item.selAnswer = null |
| | | }) |
| | | console.log('options', res.data); |
| | | this.list = res.data |
| | | console.log(this.list) |
| | | } |
| | | // res.param.problemsDOList.forEach(item => { |
| | | // item.options = JSON.parse(item.options) |
| | |
| | | }) |
| | | }, |
| | | // åééæ©ä¸é¢ç® |
| | | select(index) { |
| | | console.log(index) |
| | | this.problemIndex = index |
| | | select(line, i) { |
| | | this.list.forEach((item,index)=>{ |
| | | if(index === i){ |
| | | item.selAnswer = line.code |
| | | } |
| | | }) |
| | | // this.problemIndex = index |
| | | }, |
| | | sort(arr) { |
| | | arr.sort(function(a, b) { |
| | |
| | | <text>ä¸å¡æ¥å¾</text> |
| | | </view> |
| | | <view class="box_list_item_nr_x"></view> |
| | | <view class="box_list_item_nr_text"> |
| | | 2023-12-12 09:00æäº¤ |
| | | </view> |
| | | <view class="box_list_item_nr_text"> 2023-12-12 09:00æäº¤ </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getVisitedRecord } from '@/api' |
| | | export default { |
| | | data() { |
| | | return { |
| | | pagination: { |
| | | page: 1, |
| | | capacity: 10 |
| | | }, |
| | | list: [] |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | getList() { |
| | | const { pagination } = this |
| | | getVisitedRecord({ |
| | | pageWrap: { ...pagination } |
| | | }).then(res => { |
| | | this.list = res.data |
| | | }) |
| | | } |
| | | |
| | | }; |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | page { |
| | | background-color: #F7F7F7 !important; |
| | | background-color: #f7f7f7 !important; |
| | | } |
| | | </style> |
| | | <style lang="scss" scoped> |
| | |
| | | height: 108rpx; |
| | | padding: 0 30rpx; |
| | | box-sizing: border-box; |
| | | background: #FFFFFF; |
| | | background: #ffffff; |
| | | position: sticky; |
| | | top: 0; |
| | | left: 0; |
| | |
| | | display: flex; |
| | | align-items: center; |
| | | .active { |
| | | border: 1rpx solid #279BAA !important; |
| | | color: #279BAA !important; |
| | | border: 1rpx solid #279baa !important; |
| | | color: #279baa !important; |
| | | } |
| | | .box_head_item { |
| | | padding: 0 30rpx; |
| | |
| | | height: 100rpx; |
| | | padding: 0 30rpx; |
| | | box-sizing: border-box; |
| | | background: linear-gradient(270deg, #FEFEFF 0%, #E1F7FE 100%); |
| | | background: linear-gradient(270deg, #fefeff 0%, #e1f7fe 100%); |
| | | border-radius: 8rpx 8rpx 0rpx 0rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | .loading { |
| | | color: #279BAA; |
| | | color: #279baa; |
| | | } |
| | | .success { |
| | | color: #03C68F; |
| | | color: #03c68f; |
| | | } |
| | | .error { |
| | | color: #E0312A; |
| | | color: #e0312a; |
| | | } |
| | | text { |
| | | &:nth-child(1) { |
| | |
| | | padding: 30rpx; |
| | | width: 100%; |
| | | box-sizing: border-box; |
| | | background-color: #FFFFFF; |
| | | background-color: #ffffff; |
| | | .box_list_item_nr_x { |
| | | width: 100%; |
| | | height: 1rpx; |
| | | background-color: #E5E5E5; |
| | | background-color: #e5e5e5; |
| | | } |
| | | .box_list_item_nr_text { |
| | | width: 100%; |
| | |
| | | <template> |
| | | <div class="container"> |
| | | <video src="https://vdept3.bdstatic.com/mda-nj7gwfue9kdnbtsh/sc/cae_h264/1665488517815949255/mda-nj7gwfue9kdnbtsh.mp4?v_from_s=hkapp-haokan-hbe&auth_key=1715141591-0-0-6dfdf4d4c3d94b60b9adeb53368a72f3&bcevod_channel=searchbox_feed&pd=1&cr=2&cd=0&pt=3&logid=0791905773&vid=13790089500387859718&klogid=0791905773&abtest="></video> |
| | | <!-- <video |
| | | src="https://vdept3.bdstatic.com/mda-nj7gwfue9kdnbtsh/sc/cae_h264/1665488517815949255/mda-nj7gwfue9kdnbtsh.mp4?v_from_s=hkapp-haokan-hbe&auth_key=1715141591-0-0-6dfdf4d4c3d94b60b9adeb53368a72f3&bcevod_channel=searchbox_feed&pd=1&cr=2&cd=0&pt=3&logid=0791905773&vid=13790089500387859718&klogid=0791905773&abtest=" |
| | | ></video> --> |
| | | <scroll-view scroll-y class="content"> |
| | | <div class="title">宿³°ç©æµå夿¥äººåå®å
¨åç¥</div> |
| | | <div class="text"> |
| | | <div>{{ content }}</div> |
| | | <div> |
| | | <div v-html="content"></div> |
| | | </div> |
| | | <div class="empty"></div> |
| | | </scroll-view> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getSystemDictData } from "@/api" |
| | | export default { |
| | | name: 'Index', |
| | | data() { |
| | | return { |
| | | content: ` |
| | | 1确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | 确认äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ç¡®è®¤äºè§£ |
| | | `, |
| | | content: ``, |
| | | answer: '' |
| | | } |
| | | }, |
| | | onLoad() { |
| | | // this.getInfo() |
| | | this.getInfo() |
| | | }, |
| | | methods: { |
| | | getInfo() { |
| | | // å
¥åºé¡»ç¥è¯¦æ
|
| | | this.$u.api.getSystemDictData({ |
| | | getSystemDictData({ |
| | | dictCode: 'SYSTEM', |
| | | label: 'VISIT_NOTICE' |
| | | }).then(res => { |
| | |
| | | } |
| | | }) |
| | | // æ¯å¦éè¦çé¢ |
| | | this.$u.api.getSystemDictData({ |
| | | getSystemDictData({ |
| | | dictCode: 'SYSTEM', |
| | | label: 'PROBLEM_VISIT_REQUIRED' |
| | | }).then(res => { |
| | |
| | | margin-bottom: 10rpx; |
| | | } |
| | | .content { |
| | | height: calc( 100% - 400rpx ); |
| | | height: calc(100% - 170rpx); |
| | | .title{ |
| | | color: #333333; |
| | | font-weight: 500; |
| | |
| | | background: #4d99a8; |
| | | border-radius: 44rpx; |
| | | font-size: 32rpx; |
| | | color: #FFFFFF; |
| | | color: #ffffff; |
| | | position: absolute; |
| | | bottom: 42rpx; |
| | | left: 30rpx; |
| | |
| | | @confirm="seletedDate" |
| | | @cancel="isShowDate = false" |
| | | /> |
| | | <uni-datetime-picker |
| | | v-model="datetimerange" |
| | | type="datetimerange" |
| | | start="2021-3-20 12:00:00" |
| | | end="2021-6-20 20:00:00" |
| | | rangeSeparator="è³" |
| | | /> |
| | | |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | <view class="cell"> |
| | | <view class="title"><b>*</b>ææºå·</view> |
| | | <view class="content"> |
| | | <input class="input" maxlength="11" placeholder-style="color: #999999;" v-model="visitorData.phone" placeholder="请è¾å
¥æ¨çææºå·" /> |
| | | <input type="number" class="input" maxlength="11" placeholder-style="color: #999999;" v-model="visitorData.phone" placeholder="请è¾å
¥æ¨çææºå·" /> |
| | | </view> |
| | | </view> |
| | | <view class="cell"> |
| | |
| | | import QfImageCropper from '@/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue'; |
| | | import { mapState } from 'vuex' |
| | | import { uploadUrl } from "@/utils/config" |
| | | import { getSystemDictData, visitorSub } from '@/api' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | } |
| | | } |
| | | this.visitorData.userAnswerId = option.userAnswerId |
| | | this.getVisit() |
| | | // this.getVisit() |
| | | // uni.$on('update', (data) => { |
| | | // this.uploadImg(data.tempFilePath) |
| | | // }) |
| | |
| | | |
| | | methods: { |
| | | submit() { |
| | | uni.navigateTo({ |
| | | url: `/pages/visitorApplication/visitorApplication?data=${JSON.stringify(this.visitorData)}` |
| | | }); |
| | | const { visitorData } = this |
| | | if (!this.visitorData.name) return uni.showToast({ |
| | | title: 'å§åä¸è½ä¸ºç©º', |
| | | icon: 'none' |
| | |
| | | title: '人è¸ç
§çä¸è½ä¸ºç©º', |
| | | icon: 'none' |
| | | }) |
| | | if (this.visit === '1') { |
| | | if (!this.visitorData.imgurl) return uni.showToast({ |
| | | title: 'å¥åº·è¯ä¸è½ä¸ºç©º', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | // if (this.visit === '1') { |
| | | // if (!this.visitorData.imgurl) return uni.showToast({ |
| | | // title: 'å¥åº·è¯ä¸è½ä¸ºç©º', |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | uni.navigateTo({ |
| | | url: `/pages/visitorApplication/visitorApplication?data=${JSON.stringify(this.visitorData)}` |
| | | }); |
| | | }, |
| | | getVisit() { |
| | | // æ¯å¦éè¦çé¢ |
| | | this.$u.api.getSystemDictData({ |
| | | // æ¯å¦éè¦ å¥åº·è¯ |
| | | getSystemDictData({ |
| | | dictCode: 'SYSTEM', |
| | | label: 'HEALTH_CARD' |
| | | }).then(res => { |
| | |
| | | <text>*</text> |
| | | </view> |
| | | <view class="list_item_content" @click="showName = true"> |
| | | <text :style="{color: form1.name ? '#000000' : ''}">{{form1.name ? form1.name : 'è¯·éæ©'}}</text> |
| | | <text :style="{color: form1.receptMemberName ? '#000000' : ''}">{{form1.receptMemberName ? form1.receptMemberName : 'è¯·éæ©'}}</text> |
| | | <u-icon name="arrow-right" color="#CCCCCC" size="20"></u-icon> |
| | | </view> |
| | | </view> |
| | |
| | | <u-icon name="arrow-right" color="#CCCCCC" size="20"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="list_item" v-if="accessControl === '1'" @click="show = true"> |
| | | <!-- <view class="list_item" v-if="accessControl === '1'" @click="show = true"> |
| | | <view class="list_item_label"> |
| | | <text>访é®é¨ç¦</text> |
| | | <text>*</text> |
| | | </view> |
| | | <!-- @click="show6 = true" --> |
| | | <view class="list_item_content"> |
| | | <text :style="{color: form1.doorSelectName ? '#000000' : ''}">{{form1.doorSelectName ? form1.doorSelectName : 'è¯·éæ©'}}</text> |
| | | <u-icon name="arrow-right" color="#CCCCCC" size="20"></u-icon> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <div class="empty"></div> |
| | | <view class="list_item"> |
| | | <view class="list_item_label"> |
| | | <text>æè®¿äºç±</text> |
| | | <text>*</text> |
| | | </view> |
| | | <view class="list_item_content"> |
| | | <input type="text" v-model="form1.reason" placeholder="请è¾å
¥æ¥è®¿äºç±" placeholder-style="color: #999999;" /> |
| | | <view class="list_item_content" @click="showReason = true"> |
| | | <text :style="{color: form1.reason ? '#000000' : ''}">{{form1.reason ? form1.reason : 'è¯·éæ©æè®¿äºç±'}}</text> |
| | | <u-icon name="arrow-right" color="#CCCCCC" size="20"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="list_item"> |
| | |
| | | <switch color="#4e99a9" style="transform:scale(0.8)" @change="constructionChange" /> |
| | | </view> |
| | | </view> |
| | | <view class="list_item"> |
| | | <view v-if="form1.type == '1'" class="list_item"> |
| | | <view class="list_item_label"> |
| | | <text>æ½å·¥å
容</text> |
| | | <text>*</text> |
| | | </view> |
| | | <view class="list_item_content"> |
| | | <input type="text" v-model="form1.ss" placeholder="请è¾å
¥æ½å·¥å
容" placeholder-style="color: #999999;" /> |
| | | <input type="text" v-model="form1.constructionReason" placeholder="请è¾å
¥æ½å·¥å
容" placeholder-style="color: #999999;" /> |
| | | </view> |
| | | </view> |
| | | <view class="list_item"> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <!-- <view class="cate"> |
| | | <view class="cate_head">车è¾ä¿¡æ¯</view> |
| | | <view class="cate_list"> |
| | | <view class="cate_list_item" v-for="(item, index) in cars" :key="index"> |
| | | <text>{{item}}</text> |
| | | <u-icon name="close" color="#999999" size="20" @click="deleCars(index)"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="cate_add" @click="show2 = true">+æ·»å 车è¾</view> |
| | | </view> --> |
| | | <view class="cate"> |
| | | <view class="cate_head">é访人åä¿¡æ¯</view> |
| | | <view class="cate_list"> |
| | | <view class="cate_list_item" v-for="(item,index) in personnel" :key="index"> |
| | | <text>{{item.name}}</text> |
| | | <u-icon name="close" color="#999999" size="20" @click="deleUser(index)"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="cate_add" @click="show3 = true">+æ·»å é访人å</view> |
| | | </view> |
| | | <view class="zw"></view> |
| | | <view class="footer"> |
| | | <view class="footer_btn" @click="submit">æäº¤</view> |
| | | <view class="footer_btn" @click="onSubmit">æäº¤</view> |
| | | </view> |
| | | <!-- å
¥åºæ¶é´ --> |
| | | <u-datetime-picker |
| | |
| | | :minDate="new Date().getTime()" |
| | | mode="datetime" |
| | | @cancel="show4 = false" |
| | | @confirm="setinDate" |
| | | @confirm="setstarttime" |
| | | ></u-datetime-picker> |
| | | <!-- ç¦»åºæ¶é´ --> |
| | | <u-datetime-picker |
| | |
| | | :minDate="formatTimeStamp(form1.starttime)" |
| | | mode="datetime" |
| | | @cancel="show5 = false" |
| | | @confirm="setoutDate" |
| | | @confirm="setendtime" |
| | | ></u-datetime-picker> |
| | | <!-- é¨ç¦ --> |
| | | <u-popup :show="show" :round="10" :safeAreaInsetBottom="true" :closeable="true" mode="bottom" @close="closeMJ"> |
| | |
| | | </view> |
| | | </u-popup> |
| | | <u-picker keyName="name" :show="show6" :columns="columns1" @confirm="seleIdcard" @cancel="show6 = false"></u-picker> |
| | | <u-picker keyName="name" :show="showName" :columns="columnsNames" @confirm="selectedName" @cancel="showName = false"></u-picker> |
| | | <u-picker keyName="name" :show="showName" :columns="VisitPoeple" @confirm="selectedName" @cancel="showName = false"></u-picker> |
| | | <u-picker keyName="title" :show="showReason" :columns="VisitReason" @confirm="selectedReason" @cancel="showReason = false"></u-picker> |
| | | <!-- <tly-picture-cut ref="tlyPictureCut" :pictureSrc="photoSrc" @createImg="uploadImg"></tly-picture-cut> --> |
| | | <keyboardInput ref="keyboard" @export="setPlate" @close="closeInput" /> |
| | | <qf-image-cropper ref="cropper" :width="280" :height="280" :radius="30" @crop="uploadImg"></qf-image-cropper> |
| | |
| | | import keyboardInput from "@/components/keyboard-input/keyboard-input.vue"; |
| | | import QfImageCropper from '@/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue'; |
| | | import { getDaysAfterDate } from '@/utils/utils.js' |
| | | import { |
| | | getVisitedMember, |
| | | getSystemDictData, |
| | | getVisitedVisitReason, |
| | | createFk |
| | | } from '@/api' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | show5: false, |
| | | show6: false, |
| | | show7: false, |
| | | showReason: false, |
| | | fileList: [], |
| | | columns1: [ |
| | | [{name: '身份è¯', id: 0}, {name: '港澳è¯ä»¶', id: 1},{name: 'æ¤ç
§', id: 2}], |
| | | ], |
| | | columnsNames: [ |
| | | [{name: 'å¼ ä¸', id: 0},{name: 'å¼ ä¸', id: 1},{name: 'å¼ ä¸', id: 2},] |
| | | ], |
| | | VisitReason: [], |
| | | VisitPoeple: [], |
| | | columns: [], |
| | | cars: [], |
| | | day: null, |
| | |
| | | doors: '', |
| | | doorSelectName: '', |
| | | reason: '', |
| | | carNos: '' |
| | | carNos: '', |
| | | type: 0 |
| | | }, |
| | | withUserList: { |
| | | name: '', |
| | |
| | | if (options.data) { |
| | | this.form = JSON.parse(options.data) |
| | | } |
| | | console.log('this.form', this.form); |
| | | // this.getvisit() |
| | | // this.getVisit1() |
| | | // this.getUserValid() |
| | | this.getUser() |
| | | }, |
| | | methods: { |
| | | openInput(type) { |
| | |
| | | }, |
| | | constructionChange(e) { |
| | | console.log(e.detail.value); |
| | | this.form1.type = Number(e.detail.value) |
| | | console.log(this.form1.type); |
| | | }, |
| | | uploadImg(file) { |
| | | this.$refs.cropper.close() |
| | |
| | | item.active = false |
| | | }) |
| | | }, |
| | | submit() { |
| | | onSubmit() { |
| | | if (!this.form1.receptMemberId) return uni.showToast({ |
| | | title: 'è¯·å¡«åææç访é®äºº', |
| | | icon: 'none' |
| | |
| | | let data = JSON.parse(JSON.stringify(this.form1)) |
| | | data.starttime = data.starttime + ':00' |
| | | data.endtime = data.endtime + ':00' |
| | | this.$u.api.createFk({ |
| | | createFk({ |
| | | ...this.form, |
| | | ...data, |
| | | openid: this.$store.state.openId, |
| | |
| | | } |
| | | }) |
| | | // èµ·å§æ¶é´æ¶é¿ |
| | | this.$u.api.getSystemDictData({ |
| | | getSystemDictData({ |
| | | dictCode: 'VISIT_CONFIG', |
| | | label: 'VALIDATE_VISIT' |
| | | }).then(res => { |
| | |
| | | this.show6 = false |
| | | }, |
| | | selectedName(e) { |
| | | this.form1.name = e.value[0].name |
| | | this.form1.id = e.value[0].id |
| | | this.form1.receptMemberName = e.value[0].name |
| | | this.form1.receptMemberId = e.value[0].id |
| | | this.form1.receptMemberDepartment = e.value[0].companyId |
| | | this.showName = false |
| | | }, |
| | | selectedReason(e) { |
| | | this.form1.reason = e.value[0].title |
| | | console.log(e.value[0].title); |
| | | this.showReason = false |
| | | }, |
| | | submitCart() { |
| | | if (!this.carName) return uni.showToast({ |
| | |
| | | }) |
| | | this.show5 = true |
| | | }, |
| | | setinDate(e) { |
| | | setstarttime(e) { |
| | | this.form1.starttime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM'); |
| | | // this.maxTime = getDaysAfterDate(uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM'), this.day) |
| | | this.maxTime = this.form1.starttime |
| | | console.log(this.form1.starttime); |
| | | this.show4 = false |
| | | }, |
| | | setoutDate(e) { |
| | | setendtime(e) { |
| | | this.form1.endtime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM'); |
| | | this.show5 = false |
| | | }, |
| | |
| | | }, |
| | | // æ¥è¯¢ç¨æ· |
| | | getUser() { |
| | | if (this.verify === '0') { |
| | | if (this.form1.phone1) { |
| | | this.$u.api.getVisitedMember({ |
| | | mobile: this.form1.phone1 |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.form1.receptMemberId = res.data.id |
| | | this.form1.receptMemberName = res.data.name |
| | | } |
| | | getVisitedMember().then(res => { |
| | | this.VisitPoeple = [res.data || []] |
| | | }) |
| | | } |
| | | } else { |
| | | if (this.form1.phone1 && this.form1.receptMemberName) { |
| | | this.$u.api.getVisitedMember({ |
| | | mobile: this.form1.phone1, |
| | | name: this.form1.receptMemberName |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.form1.receptMemberId = res.data.id |
| | | this.form1.receptMemberName = res.data.name |
| | | } |
| | | getVisitedVisitReason({}).then(res => { |
| | | this.VisitReason = [res.data || []] |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | // 被æè®¿äººä¿¡æ¯æ ¡éªæ¹å¼ï¼0ææºå·åç¬æ ¡éª 1ææºå·åå§åç»åæ ¡éªï¼ |
| | | getUserValid() { |
| | | this.$u.api.getSystemDictData({ |
| | | getSystemDictData({ |
| | | dictCode: 'SYSTEM', |
| | | label: 'BEVISITED_USER_VALID' |
| | | }).then(res => { |
| | |
| | | }, |
| | | // è·åæ¯å¦éè¦éæ©é¨ç¦/é¨ç¦å表 |
| | | getvisit() { |
| | | this.$u.api.getSystemDictData({ |
| | | getSystemDictData({ |
| | | dictCode: 'SYSTEM', |
| | | label: 'SELECT_DOORS_VISIT_REQUIRED' |
| | | }).then(res => { |