| | |
| | | params |
| | | }) |
| | | } |
| | | // ç©æµè½¦é¢çº¦è¯¦æ
|
| | | export function getDriverJobDetail (id) { |
| | | return request.get('visitsAdmin/cloudService/business/platformBooks/getDetail?id=' + id) |
| | | } |
| | |
| | | export * from './business/index' |
| | | export * from './platform' |
| | | export * from './other/other' |
| | | export * from './workbench/index' |
| | |
| | | trim: true |
| | | }) |
| | | } |
| | | // è½¦è¾æéæ
åµ |
| | | export function platformLineUpPage (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/platform/platformLineUpPage', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | |
| | | // å
¥ååå |
| | | export function platformReasonList () { |
| | | return request.get('/visitsAdmin/cloudService/business/platformBooks/platformReasonList') |
| | | } |
| | | // ç©æµè½¦é¢çº¦ |
| | | export function platformBooksApply (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/platformBooks/apply', data) |
| | | } |
| | | // è·åæå°ç» çå¾
ä¸å¼å¸¸æèµ·æ°æ® |
| | | export function getPlatformGroupWork (id) { |
| | | return request.get('/visitsAdmin/cloudService/business/platform/getPlatformGroupWork?platformGroupId=' + id) |
| | | } |
| | | // æå°å
¥åé¢çº¦ å页å表 |
| | | export function platformBooksPage (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/platformBooks/page', data) |
| | | } |
| | | // æå°è°åº¦ä½ä¸ä»»å¡ å页å表 |
| | | export function platformJobPage (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/platformJob/page', data) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // 䏻使°æ® |
| | | export function getWorkbenchBody (data) { |
| | | return request.get('/visitsAdmin/cloudService/business/staging/body', data) |
| | | } |
| | | // 头鍿°æ® |
| | | export function getWorkbenchHead (data) { |
| | | return request.get('/visitsAdmin/cloudService/business/staging/head', data) |
| | | } |
| | | // è¶
æ¶é¢è¦äººå |
| | | export function getWorkbenchLevel(data) { |
| | | return request.get('/visitsAdmin/cloudService/business/staging/level', data) |
| | | } |
| | | // æ 记已读 |
| | | export function getWorkbenchSignRead (data) { |
| | | return request.get('/visitsAdmin/cloudService/business/staging/signRead', data) |
| | | } |
| | | // ä»»å¡ä¸å¿å¤´é¨ |
| | | export function getWorkbenchTaskHead (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/staging/taskCenterHeadPC', data) |
| | | } |
| | |
| | | <div class="common-header"> |
| | | <div class="header"> |
| | | <div class="logo"> |
| | | <div>{{ title }}</div> |
| | | <div class="title">{{ title }}</div> |
| | | <div class="list"> |
| | | <div class="item active"> |
| | | <div>æå¡ä¸å¿</div> |
| | |
| | | background-color: #2080f7; |
| | | } |
| | | .list{ |
| | | flex: 1; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-left: 60px; |
| | |
| | | .logo { |
| | | /* background: url("../../assets/images/top_ic_chilun@2x.png") no-repeat; */ |
| | | box-sizing: border-box; |
| | | min-width: 280px; |
| | | min-width: 360px; |
| | | height: 56px; |
| | | padding: 10px 30px; |
| | | // flex-shrink: 0; |
| | |
| | | color: #fff; |
| | | display: flex; |
| | | align-items: center; |
| | | .title{ |
| | | width: 200px; |
| | | } |
| | | // display: inline; |
| | | .title-en { |
| | | font-size: 11px; |
| | |
| | | } |
| | | } |
| | | .user { |
| | | width: 712px; |
| | | width: 212px; |
| | | box-sizing: border-box; |
| | | height: 56px; |
| | | padding-right: 25px; |
| | |
| | | h2 { |
| | | flex-shrink: 0; |
| | | line-height: 48px; |
| | | width: 200px; |
| | | width: 240px; |
| | | font-size: 19px; |
| | | color: #606263; |
| | | font-weight: normal; |
| | |
| | | <template> |
| | | <div class="main_home"> |
| | | <div class="home_header"> |
| | | <div class="mb10 fs17">ä¸å好ï¼ç³»ç»ç®¡çå</div> |
| | | <div class="mb10 fs17">ä¸å好ï¼{{ userInfo.realname }}</div> |
| | | <div class="fs13"> |
| | | ä»å¤©æ¯ {{ nowDate }} {{ nowWeek }}ï¼æ¬¢è¿åå°æºæ
§ç©æµååºå®æ¶ä¸ä½åç³»ç» |
| | | </div> |
| | |
| | | import dayjs from 'dayjs' |
| | | import * as echarts from 'echarts' |
| | | import { weeks } from '@/utils/config' |
| | | import { |
| | | getWorkbenchBody, |
| | | getWorkbenchHead |
| | | } from '@/api' |
| | | const colors = ['#52a4f7', '#7678f7', '#5fc6d5'] |
| | | export default { |
| | | data () { |
| | |
| | | ] |
| | | } |
| | | }, |
| | | computed: { |
| | | userInfo(){ |
| | | return this.$store.state.userInfo |
| | | } |
| | | }, |
| | | created () { |
| | | |
| | | this.updateDate() |
| | | setInterval(() => { |
| | | this.updateDate() |
| | |
| | | this.nowWeek = weeks[new Date().getDay()] |
| | | }, |
| | | initData () { |
| | | this.getWorkBody() //䏻使°æ® |
| | | this.getWorkHead() //䏻使°æ® |
| | | |
| | | this.initEchart1() |
| | | this.initEchart2() |
| | | this.initEchart3() |
| | | this.initEchart4() |
| | | }, |
| | | getWorkBody() { |
| | | getWorkbenchBody() |
| | | }, |
| | | getWorkHead() { |
| | | getWorkbenchHead() |
| | | }, |
| | | initEchart1 () { |
| | | const myChart = echarts.init(document.getElementById('echart1')) |
| | | const option = { |
| | |
| | | <template> |
| | | <div class="main_app"> |
| | | <QueryForm |
| | | v-model="filters" |
| | | :query-form-config="queryFormConfig" |
| | | @handleQuery="getList(1)" |
| | | @clear="clear" |
| | | /> |
| | | <el-table v-loading="loading" :data="list" stripe> |
| | | <el-table-column |
| | | prop="name" |
| | | label="车çåç
§å·" |
| | | min-width="100" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="车çåç
§å·" |
| | | min-width="100" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="驾驶å" |
| | | min-width="100" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="èç³»æ¹å¼" |
| | | min-width="100" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="åååå·" |
| | | min-width="100" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="å
¥åºç±»å" |
| | | min-width="100" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="é¢çº¦å°åºæ¶é´" |
| | | min-width="100" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="审æ¹ç»æ" |
| | | min-width="100" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="审æ¹äºº" |
| | | min-width="100" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="æä½æ¶é´" |
| | | min-width="100" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="æä½" |
| | | min-width="80" |
| | | align="center" |
| | | show-overflow-tooltip |
| | | > |
| | | <QueryForm v-model="filters" :query-form-config="queryFormConfig" @handleQuery="getList(1)" @clear="clear" /> |
| | | <div> |
| | | <el-button type="primary" @click="handleEdit" icon="el-icon-plus" |
| | | v-permissions="['business:platformbooks:create']">æ°å»º</el-button> |
| | | <el-button type="primary" @click="handleEx" v-permissions="['business:platformbooks:exportExcel']">导åº</el-button> |
| | | </div> |
| | | <el-table class="mb20" v-loading="loading" :data="list" stripe> |
| | | <el-table-column prop="contractNum" label="åååå·" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="inReason" label="å
¥ååå " min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="totalNum" label="æ»ä½ä¸é(䏿¯)" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="carCodeFront" label="车çåç
§å·" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="carCodeBack" label="车çåç
§å·" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="driverName" label="驾驶å" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="driverPhone" label="èç³»æ¹å¼" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="inTypeTemp" label="å
¥åºç±»å" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="arriveDate" label="é¢çº¦å°åºæ¶é´" min-width="150" show-overflow-tooltip /> |
| | | <el-table-column prop="name" label="审æ¹ç»æ" min-width="100" show-overflow-tooltip> |
| | | <template v-slot="scope"> |
| | | <el-button type="text" @click="handleEdit(scope.row)">é¢çº¦è¯¦æ
</el-button> |
| | | <span v-if="scope.row.status == '0'">å¾
审æ¹</span> |
| | | <span v-if="scope.row.status == '1'">审æ¹ä¸</span> |
| | | <span v-if="scope.row.status == '2'">审æ¹éè¿</span> |
| | | <span v-if="scope.row.status == '3'">审æ¹é©³å</span> |
| | | <span v-if="scope.row.status == '4'">已忶</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="å½å审æ¹äºº" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="editDate" label="æä½æ¶é´" min-width="150" show-overflow-tooltip /> |
| | | <el-table-column prop="name" label="æä½" min-width="120" align="center" fixed="right" show-overflow-tooltip> |
| | | <template v-slot="scope"> |
| | | <el-button type="text" v-permissions="['business:platformbooks:detail']" |
| | | @click="handleDetail(scope.row)">é¢çº¦è¯¦æ
</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="getList" |
| | | :pagination="pagination" |
| | | /> |
| | | <pagination @size-change="handleSizeChange" @current-change="getList" :pagination="pagination" /> |
| | | <!-- --> |
| | | <GlobalWindow :title="param.id ? 'ç¼è¾ç©æµè½¦é¢çº¦' : 'æ°å¢ç©æµè½¦é¢çº¦'" center :visible.sync="isShowEdit" width="600px" |
| | | :confirm-working="subLoading" @confirm="onSubmit"> |
| | | <el-form :model="param" :rules="rules" ref="ruleForm" label-width="100px"> |
| | | <div class="param_title">è¿è¾ä¿¡æ¯</div> |
| | | <el-form-item label="å
¥ååå " prop="inReason"> |
| | | <el-select v-model="param.inReason" class="w300" placeholder="è¯·éæ©"> |
| | | <el-option v-for="item in reasonList" :key="item.id" :label="item.reason" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="ååå·" prop="contractNum"> |
| | | <el-input v-model="param.contractNum" class="w300" placeholder="请è¾å
¥ååå·"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å°åºæ¶é´" prop="arriveDate"> |
| | | <el-date-picker v-model="param.arriveDate" value-format="yyyy-MM-dd HH:mm:ss" type="datetime" class="w300" |
| | | placeholder="è¯·éæ©"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="å
¥åºç±»å" prop="inType"> |
| | | <div> |
| | | <el-radio v-model="param.inType" :label="0">æ´ä»¶ç</el-radio> |
| | | <el-radio v-model="param.inType" :label="1">ä»¶ç</el-radio> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="æ»è¿è¾é" prop="totalNum"> |
| | | <el-input v-model="param.totalNum" placeholder="请è¾å
¥" class="w300"></el-input> |
| | | <span class="ml10">䏿¯</span> |
| | | </el-form-item> |
| | | <el-form-item label="åè¿è¯ç
§ç" prop="transportImgFull"> |
| | | <UploadFaceImg :file="{ 'imgurlfull': param.transportImgFull, 'imgurl': param.transportImg }" |
| | | :uploadData="{ folder: 'PLATFORM' }" @uploadSuccess="uploadSuccess" @uploadEnd="isUploading = false" |
| | | @uploadBegin="isUploading = true" /> |
| | | </el-form-item> |
| | | <div class="param_title">叿º/车è¾ä¿¡æ¯</div> |
| | | <el-form-item label="叿ºå§å" prop="driverName"> |
| | | <el-input v-model="param.driverName" placeholder="请è¾å
¥" class="w300"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="叿ºææºå·" prop="driverPhone"> |
| | | <el-input v-model="param.driverPhone" placeholder="请è¾å
¥" class="w300"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="车åçç
§å·" prop="carCodeFront"> |
| | | <el-input v-model="param.carCodeFront" placeholder="请è¾å
¥" class="w300"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="车åçç
§å·" prop="carCodeBack"> |
| | | <el-input v-model="param.carCodeBack" placeholder="请è¾å
¥" class="w300"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </GlobalWindow> |
| | | <!-- --> |
| | | <DriverDetail v-if="isShowDriver" ref="DriverDetailRef" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Pagination from '@/components/common/Pagination' |
| | | import QueryForm from '@/components/common/QueryForm' |
| | | import { platformBooksPage, platformReasonList, platformBooksApply } from '@/api' |
| | | import DriverDetail from "@/views/task/driverDetail" |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import UploadFaceImg from '@/components/common/UploadFaceImg' |
| | | export default { |
| | | components: { |
| | | Pagination, |
| | | QueryForm |
| | | QueryForm, |
| | | DriverDetail, |
| | | GlobalWindow, |
| | | UploadFaceImg |
| | | }, |
| | | data () { |
| | | data() { |
| | | return { |
| | | isShowDriver: false, |
| | | loading: false, |
| | | pagination: { |
| | | capacity: 10, |
| | | page: 1 |
| | | pageSize: 10, |
| | | page: 1, |
| | | total: 0 |
| | | }, |
| | | filters: {}, |
| | | filters: { |
| | | selDate: [] |
| | | }, |
| | | list: [], |
| | | total: 0, |
| | | |
| | | isShowEdit: false, |
| | | subLoading: false, |
| | | param: {}, |
| | | rules: {}, |
| | | reasonList: [], |
| | | rules: { |
| | | contractNum: [{ required: true, message: '请è¾å
¥', trigger: 'blur' }], |
| | | totalNum: [{ required: true, message: '请è¾å
¥', trigger: 'blur' }], |
| | | driverName: [{ required: true, message: '请è¾å
¥', trigger: 'blur' }], |
| | | driverPhone: [{ required: true, message: '请è¾å
¥', trigger: 'blur' }], |
| | | carCodeFront: [{ required: true, message: '请è¾å
¥', trigger: 'blur' }], |
| | | carCodeBack: [{ required: true, message: '请è¾å
¥', trigger: 'blur' }], |
| | | |
| | | inReason: [{ required: true, message: 'è¯·éæ©', trigger: 'blur' }], |
| | | arriveDate: [{ required: true, message: 'è¯·éæ©', trigger: 'blur' }], |
| | | inType: [{ required: true, message: 'è¯·éæ©', trigger: 'blur' }], |
| | | driverName: [{ required: true, message: 'è¯·éæ©', trigger: 'blur' }], |
| | | }, |
| | | queryFormConfig: { |
| | | formItems: [ |
| | | { |
| | | filed: 'aaaa', |
| | | filed: 'carCodeFront', |
| | | type: 'input', |
| | | label: '车çå·' |
| | | }, |
| | | { |
| | | filed: 'bbb', |
| | | filed: 'driverName', |
| | | type: 'input', |
| | | label: '驾驶å' |
| | | }, |
| | | { |
| | | filed: 'cc', |
| | | filed: 'contractNum', |
| | | type: 'input', |
| | | label: 'åååå·' |
| | | }, |
| | | { |
| | | filed: 'selDate', |
| | | type: 'daterange', |
| | | type: 'datetimerange', |
| | | label: 'æä½æ¶é´' |
| | | } |
| | | ], |
| | |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | handleSub () { |
| | | getList(page) { |
| | | const { pagination, filters } = this |
| | | this.loading = true |
| | | platformBooksPage({ |
| | | model: { |
| | | ...filters, |
| | | arriveDateStart: filters.selDate && filters.selDate.length > 0 ? filters.selDate[0] : null, |
| | | arriveDateEnd: filters.selDate && filters.selDate.length > 0 ? filters.selDate[1] : null, |
| | | }, |
| | | capacity: pagination.pageSize, |
| | | page: page || pagination.page, |
| | | }).then(res => { |
| | | this.loading = false |
| | | this.list = res.records || [] |
| | | this.list.forEach(item => { |
| | | item.inTypeTemp = item.inType == 0 ? 'æ´æç' : 'ä»¶ç' |
| | | }) |
| | | this.pagination.total = res.total || 0 |
| | | }, () => { |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | handleEx() { |
| | | |
| | | }, |
| | | onSubmit() { |
| | | this.$refs['ruleForm'].validate((valid) => { |
| | | const param = this.param |
| | | if (valid) { |
| | | platformBooksApply({...param}).then(res => { |
| | | |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | uploadSuccess(file) { |
| | | this.$set(this.param, 'transportImg', file.imgurl) |
| | | this.$set(this.param, 'transportImgFull', file.imgurlfull) |
| | | }, |
| | | handleEdit(row) { |
| | | this.isShowEdit = true |
| | | this.getplatformReason() |
| | | }, |
| | | getplatformReason() { |
| | | platformReasonList().then(res => { |
| | | this.reasonList = res || [] |
| | | }) |
| | | }, |
| | | handleSub() { |
| | | this.$refs.ruleForm.validate((valid) => { |
| | | if (valid) { |
| | | alert('submit!') |
| | | } |
| | | }) |
| | | }, |
| | | getList (page) { }, |
| | | clear () { }, |
| | | handleEdit (row) { |
| | | this.isShowEdit = true |
| | | clear() { |
| | | this.pagination.page = 1 |
| | | this.filters = { |
| | | selDate: [] |
| | | } |
| | | this.getList() |
| | | }, |
| | | handleDel () { }, |
| | | handleSizeChange (capacity) { |
| | | this.pagination.capacity = capacity |
| | | handleDetail(row) { |
| | | this.isShowDriver = true |
| | | this.$nextTick(() => { |
| | | this.$refs.DriverDetailRef.id = row.id |
| | | this.$refs.DriverDetailRef.type = 6 |
| | | this.$refs.DriverDetailRef.getDetail() |
| | | this.$refs.DriverDetailRef.isShowModal = true |
| | | }) |
| | | }, |
| | | handleDel() { }, |
| | | handleSizeChange(capacity) { |
| | | this.pagination.pageSize = capacity |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | </style> |
| | | <style lang="scss" scoped> |
| | | .param_title { |
| | | font-size: 18px; |
| | | font-weight: 600; |
| | | color: #000000; |
| | | margin-bottom: 15px; |
| | | } |
| | | </style> |
| | |
| | | width="480px" |
| | | > |
| | | <el-form :model="param" :rules="rules" ref="ruleForm" label-width="100px"> |
| | | <el-form-item label="è¿è¾åå·" prop="name"> |
| | | <el-form-item label="å
¥ååå " prop="name"> |
| | | <el-input v-model="param.aaa" placeholder="请è¾å
¥"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="ååå·" prop="name"> |
| | | <el-input v-model="param.aaa" placeholder="请è¾å
¥"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å°åºæ¶é´" prop="name"> |
| | | <el-input v-model="param.aaa" placeholder="请è¾å
¥"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="车åçç
§å·" prop="name"> |
| | |
| | | <script> |
| | | import Pagination from '@/components/common/Pagination' |
| | | import QueryForm from '@/components/common/QueryForm' |
| | | import { platformJobPage } from '@/api' |
| | | export default { |
| | | components: { |
| | | Pagination, |
| | |
| | | return { |
| | | loading: false, |
| | | pagination: { |
| | | capacity: 10, |
| | | page: 1 |
| | | pageSize: 10, |
| | | page: 1, |
| | | total: 0 |
| | | }, |
| | | filters: {}, |
| | | list: [], |
| | | total: 0, |
| | | isShowEdit: false, |
| | | param: {}, |
| | | rules: {}, |
| | | queryFormConfig: { |
| | | formItems: [ |
| | | { |
| | | filed: 'aaaa', |
| | | filed: 'carCodeFront', |
| | | type: 'input', |
| | | label: '车çå·' |
| | | }, |
| | | { |
| | | filed: 'bbb', |
| | | filed: 'driverName', |
| | | type: 'input', |
| | | label: '驾驶å' |
| | | }, |
| | | { |
| | | filed: 'cc', |
| | | filed: 'code', |
| | | type: 'input', |
| | | label: 'è¿è¾åå·' |
| | | }, |
| | |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | handleSub () { |
| | | this.$refs.ruleForm.validate((valid) => { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | getList (page) { }, |
| | | clear () { }, |
| | | getList (page) { |
| | | const { pagination, filters } = this |
| | | this.loading = true |
| | | platformJobPage({ |
| | | model: { ...filters, jobType: 0 }, |
| | | capacity: pagination.pageSize, |
| | | page: pagination.page, |
| | | }).then(res => { |
| | | this.loading = false |
| | | this.list = res.records || [] |
| | | this.pagination.total = res.total || 0 |
| | | }, () => { |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | clear () { |
| | | this.pagination.page = 1 |
| | | this.filters = {} |
| | | this.getList() |
| | | }, |
| | | handleEdit (row) { |
| | | this.isShowEdit = true |
| | | }, |
| | | handleDel () { }, |
| | | handleSizeChange (capacity) { |
| | | this.pagination.capacity = capacity |
| | | this.pagination.pageSize = capacity |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | </style> |
| | |
| | | 10: '已离å', |
| | | 11: 'å·²è¿å·' |
| | | } |
| | | export const queryQueueUpConfig = { |
| | | formItems: [ |
| | | { |
| | | filed: 'carCodeFront', |
| | | type: 'input', |
| | | label: 'æç´¢è½¦è¾', |
| | | placeholder: '请è¾å
¥è½¦çå·' |
| | | }, |
| | | ], |
| | | online: true |
| | | } |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="broadcastNames" label="å
³è广æ" min-width="100px"></el-table-column> |
| | | <el-table-column prop="ledNames" label="å
³èLED" min-width="100px"></el-table-column> |
| | | <el-table-column prop="hkDate" label="忥æ¶é´" min-width="140px"></el-table-column> |
| | | <el-table-column prop="hkDate" label="忥æ¶é´" min-width="150px"></el-table-column> |
| | | <el-table-column |
| | | v-if="containPermissions(['business:platform:update', 'business:platform:delete'])" |
| | | label="æä½" |
| | |
| | | <div class="main_app"> |
| | | <div class="mb20 main_header"> |
| | | <div class="platgroup_tabs"> |
| | | <div |
| | | class="tab" |
| | | :class="{ active: activeGroup.id === item.id }" |
| | | @click="platgroupClick(item)" |
| | | v-for="(item, i) in PlatGroupList" |
| | | :key="i" |
| | | > |
| | | <div class="tab" :class="{ active: activeGroup.id === item.id }" @click="platgroupClick(item)" |
| | | v-for="(item, i) in PlatGroupList" :key="i"> |
| | | {{ item.name }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <QueryForm v-model="filters" :query-form-config="queryQueueUpConfig" @handleQuery="getList(1)" @clear="clear"> |
| | | </QueryForm> |
| | | <div class="main_content"> |
| | | <div class="static_wrap"> |
| | | <span>çå¾
ï¼<span class="num">{{ staticParam.waitNum }}</span></span> |
| | | <span class="mr30">{{ }}</span> |
| | | <span>æèµ·ï¼<span class="red">{{ staticParam.exceptionNum }}</span></span> |
| | | <span></span> |
| | | </div> |
| | | </div> |
| | | <el-table class="mb20" v-loading="loading" :data="dataList" stripe row-key="id" default-expand-all> |
| | | <el-table-column type="index" label="åºå·" width="80" /> |
| | | <el-table-column label="车çå·" width="160"> |
| | | <template slot-scope="{ row }"> |
| | | <div class="plate_id"> |
| | | <span>{{ row.carCodeFront.slice(0, 1) }}</span> |
| | | <span>{{ row.carCodeFront.slice(1, 2) }}</span> |
| | | <span>·</span> |
| | | <span>{{ row.carCodeFront.slice(2) }}</span> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="carrierName" label="è¿è¾å
¬å¸" min-width="200" /> |
| | | <el-table-column prop="code" label="è¿åå·" min-width="200" /> |
| | | <el-table-column prop="totalNum" label="æ»è¿è¾é(䏿¯)" min-width="130" /> |
| | | <el-table-column prop="driverName" label="驾驶å" min-width="140"> |
| | | <template slot-scope="{ row }"> |
| | | <span class="mr10">{{ row.driverName }}</span> |
| | | <span>{{ row.drivierPhone }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="signDate" label="ç¾å°æ¶é´" min-width="150" /> |
| | | <el-table-column label="æä½" width="100" fixed="right"> |
| | | <template slot-scope="{ row }"> |
| | | <el-button type="text" @click="handleDetail(row)" v-permissions="['business:company:update']">è¿å详æ
</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination @size-change="handleSizeChange" @current-change="handlePageChange" :pagination="pagination" /> |
| | | |
| | | <!-- --> |
| | | <WaybillDetail |
| | | ref="WaybillDetailRef" |
| | | v-if="isShowDetail" |
| | | @success="getList" |
| | | @close="isShowDetail = false" |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Pagination from '@/components/common/Pagination' |
| | | import QueryForm from '@/components/common/QueryForm' |
| | | import { |
| | | getPlatformGroupList |
| | | getPlatformGroupList, |
| | | platformLineUpPage, |
| | | getPlatformGroupWork |
| | | } from '@/api' |
| | | import { queryQueueUpConfig } from './config' |
| | | import WaybillDetail from './components/WaybillDetail.vue' |
| | | export default { |
| | | data () { |
| | | components: { |
| | | Pagination, |
| | | QueryForm, |
| | | WaybillDetail |
| | | }, |
| | | data() { |
| | | return { |
| | | filters: {}, |
| | | activeGroup: {}, |
| | | PlatGroupList: [], |
| | | |
| | | isShowSet: false, // æå°é
ç½® |
| | | setParam: {}, |
| | | staticParam: {}, |
| | | dataList: [], |
| | | loading: false, |
| | | pagination: { |
| | | pageSize: 10, |
| | | page: 1, |
| | | total: 0, |
| | | }, |
| | | queryQueueUpConfig, |
| | | isShowDetail: false, // è¿å详æ
|
| | | detail: {} |
| | | } |
| | | }, |
| | | created () { |
| | | created() { |
| | | this.getPlatGroupList() |
| | | }, |
| | | methods: { |
| | | getPlatGroupList () { |
| | | getPlatGroupList() { |
| | | getPlatformGroupList({ |
| | | queryData: 1, |
| | | queryType: 1 |
| | | }).then(res => { |
| | | this.PlatGroupList = res || [] |
| | | if (this.activeGroup && this.activeGroup.id) { |
| | | this.activeGroup = res.find(item => item.id === this.activeGroup.id) |
| | | } else { |
| | | this.activeGroup = res[0] |
| | | if (res && res.length > 0) { |
| | | if (this.activeGroup && this.activeGroup.id) { |
| | | this.activeGroup = res.find(item => item.id === this.activeGroup.id) |
| | | } else { |
| | | this.activeGroup = res[0] |
| | | } |
| | | this.getPlatformGroupWork() |
| | | this.getList() |
| | | } |
| | | }) |
| | | }, |
| | | platgroupClick (item) { |
| | | this.activeGroup = { ...item } |
| | | getList() { |
| | | const { activeGroup, pagination, filters } = this |
| | | this.loading = true |
| | | platformLineUpPage({ |
| | | model: { platformGroupId: activeGroup.id, ...filters, callType: 3 }, |
| | | capacity: pagination.pageSize, |
| | | page: pagination.page, |
| | | }).then(res => { |
| | | this.loading = false |
| | | this.dataList = res.records || [] |
| | | this.pagination.total = res.total || 0 |
| | | }, () => { |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | getList () { }, |
| | | clear () { } |
| | | getPlatformGroupWork() { |
| | | const { activeGroup } = this |
| | | getPlatformGroupWork(activeGroup.id).then(res => { |
| | | this.staticParam = res || {} |
| | | }) |
| | | }, |
| | | handleSizeChange(e) { |
| | | this.pagination.pageSize = e |
| | | this.getList() |
| | | }, |
| | | handlePageChange(e) { |
| | | this.pagination.page = e |
| | | this.getList() |
| | | }, |
| | | platgroupClick(item) { |
| | | this.activeGroup = { ...item } |
| | | this.pagination.page = 1 |
| | | this.filters = {} |
| | | this.getPlatformGroupWork() |
| | | this.getList() |
| | | }, |
| | | clear() { |
| | | this.pagination.page = 1 |
| | | this.filters = {} |
| | | this.getList() |
| | | }, |
| | | handleDetail(row) { |
| | | this.isShowDetail = true |
| | | this.$nextTick(() => { |
| | | this.$refs.WaybillDetailRef.isShowModal = true |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @import "@/assets/style/variables.scss"; |
| | | |
| | | .main_content { |
| | | background-color: #fff; |
| | | position: relative; |
| | | z-index: 999; |
| | | top: -10; |
| | | margin: -20px; |
| | | padding: 0 20px; |
| | | |
| | | .static_wrap { |
| | | height: 50px; |
| | | line-height: 50px; |
| | | color: #666666; |
| | | font-size: 15px; |
| | | padding: 0 20px; |
| | | background: #F4FAFB; |
| | | border-radius: 2px 2px 0px 0px; |
| | | margin-bottom: 36px; |
| | | |
| | | .num { |
| | | color: #111111; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .plate_id { |
| | | display: flex; |
| | | width: 111px; |
| | | font-weight: 600; |
| | | height: 30px; |
| | | line-height: 30px; |
| | | font-size: 16px; |
| | | color: #111111; |
| | | border-radius: 4px; |
| | | border: 1px solid #dfdede; |
| | | span { |
| | | &:nth-of-type(1) { |
| | | background: $primary-color; |
| | | padding: 0 6px; |
| | | color: #fff |
| | | } |
| | | |
| | | &:nth-of-type(2) { |
| | | padding-left: 2px; |
| | | } |
| | | |
| | | &:nth-of-type(4) { |
| | | padding-right: 3px; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | .main_header { |
| | | .platgroup_tabs { |
| | | flex: 1; |
| | | display: flex; |
| | | border-bottom: 1px solid #dfe2e8; |
| | | |
| | | .tab { |
| | | color: #666666; |
| | | margin-right: 40px; |
| | | cursor: pointer; |
| | | padding-bottom: 18px; |
| | | padding-bottom: 14px; |
| | | border-bottom: 2px solid #fff; |
| | | } |
| | | |
| | | .active { |
| | | font-weight: 500; |
| | | font-size: 15px; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow :title="title" :visible.sync="isShowModal" @confirm="confirm"> |
| | | <div class="modal_wrap"> |
| | | <div class="modal_content"> |
| | | <div class="header"> |
| | | <img v-if="info.status == '3' || info.status == '6'" class="head_bg" src="@/assets/task/bg_shenhe_fail@2x.png" alt=""> |
| | | <img v-else-if="info.status == '2' || info.status == '5'" class="head_bg" src="@/assets/task/bg_shenhe_pass@2x.png" alt=""> |
| | | <img v-else-if="info.status == '4'" class="head_bg" src="@/assets/task/bg_shenhe_chexiao@2x.png" alt=""> |
| | | <img v-else class="head_bg" src="@/assets/task/bg_shenhe@2x.png" alt=""> |
| | | <div class="left"> |
| | | <div class="h1">ç©æµè½¦é¢çº¦</div> |
| | | <div class="time">æäº¤æ¶é´ï¼{{ info.createDate }}</div> |
| | | </div> |
| | | <div class="right" :class="{ scs: info.status == '2' || info.status == '5', msg: info.status == '3' || info.status == '6' }">{{ statusMap[info.status] }}</div> |
| | | </div> |
| | | <div class="info"> |
| | | <div class="title">å
¬å¡è½¦ç³è¯·ä¿¡æ¯</div> |
| | | <div class="list"> |
| | | <div class="item"> |
| | | <div class="label">ç³è¯·äºº</div> |
| | | <div class="value">{{ info.driverName }} {{ info.driverPhone }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="label">车çç
§</div> |
| | | <div class="value">å {{ info.carCodeFront }}ï¼å {{ info.carCodeBack }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="label">ååç¼å·</div> |
| | | <div class="value">{{ info.contractNum }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="label">å°åæ¶é´</div> |
| | | <div class="value">{{ info.arriveDate }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="label">å
¥åºç±»å</div> |
| | | <div class="value">{{ info.inType == 0 ? 'æ´æç' : 'ä»¶ç' }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="label">æ»è¿è¾é</div> |
| | | <div class="value">{{ info.totalNum }}䏿¯</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="label">åè¿è¯ç
§ç</div> |
| | | <div v-if="info.transportImg" class="value"> |
| | | <el-image style="width: 100px" :preview-src-list="[info.prefixUrl + info.transportImg]" :src="info.prefixUrl + info.transportImg" alt="" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="side"> |
| | | <div class="side_title">å®¡æ¹æµç¨</div> |
| | | <div class="list" v-if="info.approveDateVO != null && info.approveDateVO.approveList != null"> |
| | | <div class="item" v-for="item, index in info.approveDateVO.approveList"> |
| | | <div v-if="index != info.approveDateVO.approveList.length - 1" class="separate"></div> |
| | | <div class="info"> |
| | | <img src="@/assets/icons/ic_tongguo.png" class="iconnew" v-if="item.status == 2" /> |
| | | <img src="@/assets/icons/ic_dangqian.png" class="iconnew" v-if="item.status == 1" /> |
| | | <img src="@/assets/icons/ic_jujue.png" class="iconnew" v-if="item.status == 3" /> |
| | | <img src="@/assets/icons/ic_grey.png" class="iconnew" v-if="item.status == null || item.status == 0" /> |
| | | </div> |
| | | <div class="avatar_wrap"> |
| | | <img class="img" :src="item.faceImg |
| | | ? item.faceImg |
| | | : require('@/assets/avatar/man.png') |
| | | " /> |
| | | </div> |
| | | <div class="content"> |
| | | <div class="head"> |
| | | <div class="event">{{ item.title }}</div> |
| | | <div class="time">{{ item.createDate }}</div> |
| | | </div> |
| | | <div class="name_wrap"> |
| | | <span>{{ item.memberName }}<span v-if="item.statusInfo" class="status">({{ item.statusInfo |
| | | }})</span></span> |
| | | </div> |
| | | <div v-if="item.checkInfo" class="remark"> |
| | | {{ item.checkInfo }} |
| | | </div> |
| | | <div v-if="item.approveType == 1" class="carbon"> |
| | | <div class="carbon_item" v-for="child in item.approveList" :key="child.id"> |
| | | <img :src="child.faceImg |
| | | ? child.faceImg |
| | | : require('@/assets/avatar/man.png') |
| | | "></img> |
| | | <div class="text">{{ child.memberName }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- --> |
| | | <template v-slot:footer> |
| | | <el-button @click="handleAppr(2)" type="primary" class="status-red" v-if=" |
| | | info.approveDateVO != null && |
| | | info.approveDateVO.canBeApproved != null && |
| | | info.approveDateVO.canBeApproved == 1 |
| | | ">åæ</el-button> |
| | | <el-button @click="handleAppr(3)" type="danger" v-if=" |
| | | info.approveDateVO != null && |
| | | info.approveDateVO.canBeApproved != null && |
| | | info.approveDateVO.canBeApproved == 1 |
| | | ">æç»</el-button> |
| | | <el-button @click="isShowModal = false">è¿å</el-button> |
| | | </template> |
| | | <!-- åæ/æç» --> |
| | | <el-dialog append-to-body :title="apprTitle" :visible.sync="isShowAppr" width="480px"> |
| | | <el-form :model="param" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm"> |
| | | <el-form-item :prop="param.status == 3 ? 'checkInfo' : ''" :label="param.status == 2 ? 'åæè¯´æ' : 'æç»è¯´æ'"> |
| | | <el-input type="textarea" :placeholder="param.status == 2 ? 'åæè¯´æï¼éå¿
å¡«' : 'æç»è¯´æå¿
å¡«' |
| | | " :rows="4" v-model="param.checkInfo" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="isShowAppr = false">åæ¶</el-button> |
| | | <el-button :loading="subLoading" type="primary" @click="onSubAppr">ç¡®å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { |
| | | getDriverJobDetail, |
| | | approveDo |
| | | } from '@/api' |
| | | export default { |
| | | components: { GlobalWindow }, |
| | | data() { |
| | | return { |
| | | id: '', |
| | | type: '', |
| | | |
| | | title: '访客é¢çº¦è¯¦æ
', |
| | | isShowModal: false, |
| | | info: {}, |
| | | isShowAppr: false, |
| | | apprTitle: 'åæ', |
| | | subLoading: false, |
| | | param: {}, |
| | | |
| | | isShowProblem: false, |
| | | rules: { |
| | | checkInfo: [{ required: true, message: '请è¾å
¥', trigger: 'blur' }] |
| | | }, |
| | | statusMap: { |
| | | 0: 'å¾
å®¡æ ¸', |
| | | 1: 'å¤çä¸', |
| | | 2: 'å·²åæ', |
| | | 3: 'å·²æç»', |
| | | 4: '已忶', |
| | | 5: 'ä»äººæç¾', |
| | | 6: 'ä»äººæç»' |
| | | }, |
| | | cateList: { |
| | | 0: '访客ç³è¯·', |
| | | 1: '访客æ¥å¤', |
| | | 2: 'ç¨è½¦ç³è¯·', |
| | | 3: '鿣鿿', |
| | | 4: 'ç©æµè½¦ç³è¯·' |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | onSubAppr() { |
| | | this.$refs.ruleForm.validate((valid) => { |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.$dialog.actionConfirm('æä½ç¡®è®¤', this.param.status === 2 ? 'æ¨ç¡®è®¤åæè¯¥ç³è¯·åï¼' : 'æ¨ç¡®è®¤æç»è¯¥ç³è¯·åï¼') |
| | | .then(() => { |
| | | this.subLoading = true |
| | | approveDo({ |
| | | objId: this.id, |
| | | objType: 6, |
| | | status: this.param.status, |
| | | checkInfo: this.param.checkInfo |
| | | }) |
| | | .then(res => { |
| | | this.subLoading = false |
| | | this.$tip.apiSuccess('å¤çæå') |
| | | this.getDetail() |
| | | this.isShowAppr = false |
| | | }) |
| | | .finally(() => { |
| | | this.subLoading = false |
| | | }) |
| | | }) |
| | | }) |
| | | }, |
| | | getDetail() { |
| | | const { id } = this |
| | | getDriverJobDetail(id).then(res => { |
| | | this.info = res |
| | | if (this.info.approveDateVO && this.info.approveDateVO.approveList.length > 0) { |
| | | this.info.approveDateVO.approveList.forEach(item => { |
| | | if (item.approveList && item.approveList.length == 1 && item.type !== 1) { |
| | | item.title = item.approveList[0].title |
| | | item.faceImg = item.approveList[0].faceImg |
| | | item.memberName = item.approveList[0].memberName |
| | | item.statusInfo = item.approveList[0].statusInfo |
| | | item.approveList = [] |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | handleAppr(val) { |
| | | this.$set(this.param, 'status', val) |
| | | this.apprTitle = val == 2 ? 'åæ' : 'æç»' |
| | | this.isShowAppr = true |
| | | }, |
| | | confirm() { |
| | | console.log('--') |
| | | }, |
| | | handleTransfer() { |
| | | this.isShowProblem = true |
| | | }, |
| | | reject() { }, |
| | | handleAvatarSuccess() { }, |
| | | beforeAvatarUpload() { } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @import "@/assets/style/variables.scss"; |
| | | |
| | | .upload_box { |
| | | width: 84px; |
| | | height: 84px; |
| | | border-radius: 4px; |
| | | background-color: #f7f7f7; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | color: #999999; |
| | | border: 1px solid #e4e4e4; |
| | | |
| | | .icon { |
| | | font-size: 24px; |
| | | } |
| | | |
| | | .text { |
| | | font-size: 12px; |
| | | } |
| | | } |
| | | |
| | | .side_title { |
| | | font-weight: 600; |
| | | font-size: 18px; |
| | | color: #111111; |
| | | margin-bottom: 20px; |
| | | margin-left: 20px; |
| | | margin-top: 20px; |
| | | } |
| | | |
| | | .modal_wrap { |
| | | display: flex; |
| | | height: 100%; |
| | | |
| | | .modal_content { |
| | | flex: 1; |
| | | padding: 0px 30px; |
| | | border-radius: 8px; |
| | | overflow: hidden; |
| | | height: 100%; |
| | | |
| | | .title { |
| | | font-weight: 600; |
| | | font-size: 18px; |
| | | color: #333333; |
| | | margin-bottom: 20px; |
| | | margin-top: 30px; |
| | | } |
| | | |
| | | .info { |
| | | .list { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | |
| | | .item { |
| | | display: flex; |
| | | width: 40%; |
| | | margin-bottom: 20px; |
| | | |
| | | &:nth-of-type(2n) { |
| | | width: 60%; |
| | | } |
| | | |
| | | .label { |
| | | color: #888888; |
| | | width: 100px; |
| | | } |
| | | |
| | | .value { |
| | | color: #111111; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .header { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | padding: 20px 30px; |
| | | margin: 0 -30px; |
| | | border-radius: 8px 8px 0 0; |
| | | position: relative; |
| | | .head_bg{ |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | left: 0; |
| | | top: 0; |
| | | z-index: 9; |
| | | } |
| | | .h1 { |
| | | font-weight: 600; |
| | | font-size: 22px; |
| | | color: #111111; |
| | | margin-bottom: 8px; |
| | | } |
| | | |
| | | .time { |
| | | font-size: 14px; |
| | | color: #999999; |
| | | } |
| | | |
| | | .right { |
| | | height: 40px; |
| | | font-size: 16px; |
| | | color: #ffffff; |
| | | line-height: 40px; |
| | | padding: 0 20px; |
| | | background: #207ff7; |
| | | box-shadow: 4px 4px 0px 0px rgba(32, 127, 247, 0.16); |
| | | border-radius: 16px 0px 16px 0px; |
| | | position: relative; |
| | | z-index: 99; |
| | | } |
| | | .scs{ |
| | | background-color: #00BA67; |
| | | } |
| | | .msg{ |
| | | background-color: #ED4545; |
| | | } |
| | | } |
| | | |
| | | .table_info { |
| | | .name_wrap { |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .avatar { |
| | | width: 40px; |
| | | height: 40px; |
| | | border-radius: 50%; |
| | | margin-right: 12px; |
| | | } |
| | | |
| | | .content { |
| | | .line { |
| | | display: flex; |
| | | } |
| | | |
| | | .tag { |
| | | color: #b2cbf9; |
| | | border: 1px solid #b2cbf9; |
| | | padding: 0px 4px; |
| | | border-radius: 4px; |
| | | margin-left: 6px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .side { |
| | | height: 100%; |
| | | width: 420px; |
| | | background: #ffffff; |
| | | border-left: 20px solid #f7f7f7; |
| | | |
| | | .list { |
| | | .item { |
| | | padding: 8px 0; |
| | | display: flex; |
| | | margin-bottom: 24px; |
| | | position: relative; |
| | | .separate { |
| | | position: absolute; |
| | | border-left: 2px dashed #cccccc; |
| | | left: 31px; |
| | | height: calc(100% - 2px); |
| | | top: 42px; |
| | | } |
| | | .info{ |
| | | padding-top: 10px; |
| | | margin-left: 20px; |
| | | margin-right: 16px; |
| | | .iconnew { |
| | | width: 24px; |
| | | height: 24px; |
| | | } |
| | | } |
| | | .avatar_wrap { |
| | | width: 40px; |
| | | height: 40px; |
| | | position: relative; |
| | | margin-right: 10px; |
| | | |
| | | .img { |
| | | width: 40px; |
| | | height: 40px; |
| | | border-radius: 50%; |
| | | } |
| | | |
| | | .status { |
| | | width: 14px; |
| | | height: 14px; |
| | | border-radius: 50%; |
| | | position: absolute; |
| | | right: 0; |
| | | bottom: 0; |
| | | } |
| | | |
| | | } |
| | | |
| | | .content { |
| | | flex: 1; |
| | | |
| | | .head { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | margin-bottom: 2px; |
| | | |
| | | .event { |
| | | font-size: 15px; |
| | | } |
| | | |
| | | .time { |
| | | font-size: 13px; |
| | | color: #999999; |
| | | } |
| | | } |
| | | |
| | | .name_wrap { |
| | | font-size: 13px; |
| | | color: #777777; |
| | | |
| | | .status { |
| | | color: $primary-color; |
| | | } |
| | | } |
| | | |
| | | .remark { |
| | | margin-top: 6px; |
| | | background-color: #f7f7f7; |
| | | padding: 7px 10px; |
| | | border-radius: 4px; |
| | | font-size: 13px; |
| | | color: #666666; |
| | | line-height: 18px; |
| | | } |
| | | } |
| | | |
| | | .carbon { |
| | | display: flex; |
| | | width: 100%; |
| | | overflow-x: auto; |
| | | margin-top: 12px; |
| | | .carbon_item { |
| | | text-align: center; |
| | | flex-shrink: 0; |
| | | width: 60px; |
| | | |
| | | img { |
| | | width: 36px; |
| | | height: 36px; |
| | | margin: 0 auto; |
| | | } |
| | | |
| | | div { |
| | | font-size: 13px; |
| | | color: #777777; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | :data="dataList" |
| | | stripe |
| | | row-key="id" |
| | | class="mb20" |
| | | default-expand-all |
| | | > |
| | | <!-- <el-table-column prop="name" label="ä»»å¡ç±»å" min-width="100"> |
| | | <template v-slot="scope"> |
| | | <span |
| | | v-if=" |
| | | (scope.row.objType || scope.row.objType == 0) && |
| | | cateList[scope.row.objType].name |
| | | " |
| | | >{{ cateList[scope.row.objType].name }}</span |
| | | > |
| | | </template> |
| | | </el-table-column>--> |
| | | <el-table-column label="å¤çäºé¡¹" min-width="200"> |
| | | <template slot-scope="{ row }"> {{ row.title}} |
| | | <!-- <span v-if="row.title">{{ |
| | | row.title.split("-")[1] |
| | | }}</span>--> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="createDate" label="æäº¤æ¶é´" min-width="100"> |
| | |
| | | <TaskDetail v-if="isShowDetail" ref="DetailRef" /> |
| | | <VisReportDetail v-if="isShowReport" ref="VisReportDetailRef" /> |
| | | <DangetDetail v-if="isShowDanger" ref="DangetDetailRef" /> |
| | | <DriverDetail v-if="isShowDriver" ref="DriverDetailRef" /> |
| | | <!-- ç¨è½¦ç³è¯· --> |
| | | <OperaCarUseBookWindow ref="OperaDetailsWindow" @success="getList" /> |
| | | <!-- 鿣 --> |
| | |
| | | import TaskDetail from './visSubDetail.vue' |
| | | import VisReportDetail from './visReportDetail.vue' |
| | | import DangetDetail from './dangetDetail.vue' |
| | | import DriverDetail from './driverDetail.vue' |
| | | import OperaCarUseBookWindow from '@/components/business/OperaCarUseBookWindow' |
| | | import OperaHiddenDangerWindow from '@/components/business/OperaHiddenDangerWindow' |
| | | import OperaVisitsDesWindow from '@/components/business/OperaVisitsDesWindow' |
| | |
| | | VisReportDetail, |
| | | DangetDetail, |
| | | QueryForm, |
| | | DriverDetail, |
| | | Pagination, |
| | | OperaCarUseBookWindow, |
| | | OperaHiddenDangerWindow, |
| | |
| | | isShowDetail: false, |
| | | isShowReport: false, |
| | | isShowDanger: false, |
| | | isShowDriver: false, |
| | | filters: { |
| | | queryType: '0', |
| | | fastdate: 0 |
| | |
| | | this.$refs.OperaHiddenDangerWindow.open('éæ£éææè¯¦æ
', obj) |
| | | return |
| | | } |
| | | if (row.objType === 6) { |
| | | const obj = { ...row, id: row.objId } |
| | | this.isShowDriver = true |
| | | this.$nextTick(() => { |
| | | this.$refs.DriverDetailRef.id = row.objId |
| | | this.$refs.DriverDetailRef.type = row.objType |
| | | this.$refs.DriverDetailRef.getDetail() |
| | | this.$refs.DriverDetailRef.isShowModal = true |
| | | }) |
| | | return |
| | | } |
| | | if (row.objType === 0) { |
| | | this.isShowDetail = true |
| | | this.$nextTick(() => { |
| | |
| | | <div class="label">æ¥è®¿æ¶é´</div> |
| | | <div class="value">{{ info.starttime }}è³{{ info.endtime }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="item"> |
| | | <div class="label">æ¥è®¿åä½</div> |
| | | <div class="value">{{ info.companyName }}</div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="side"> |
| | | <div class="side_title">å®¡æ¹æµç¨</div> |
| | | <div |
| | | class="list" |
| | | v-if=" |
| | | info.approveDateVO != null && info.approveDateVO.approveList != null |
| | | " |
| | | > |
| | | <div |
| | | class="item" |
| | | v-for="(item, index) in info.approveDateVO.approveList" |
| | | :key="item.id" |
| | | > |
| | | <div |
| | | class="separate" |
| | | v-if="index < info.approveDateVO.approveList.length - 1" |
| | | ></div> |
| | | <div class="list" v-if=" |
| | | info.approveDateVO != null && info.approveDateVO.approveList != null |
| | | "> |
| | | <div class="item" v-for="(item, index) in info.approveDateVO.approveList" :key="item.id"> |
| | | <div class="separate" v-if="index < info.approveDateVO.approveList.length - 1"></div> |
| | | <div class="info"> |
| | | <img |
| | | src="@/assets/icons/ic_tongguo.png" |
| | | class="iconnew" |
| | | v-if="item.status == 2" |
| | | /> |
| | | <img |
| | | src="@/assets/icons/ic_dangqian.png" |
| | | class="iconnew" |
| | | v-if="item.status == 1" |
| | | /> |
| | | <img |
| | | src="@/assets/icons/ic_jujue.png" |
| | | class="iconnew" |
| | | v-if="item.status == 3" |
| | | /> |
| | | <img |
| | | src="@/assets/icons/ic_grey.png" |
| | | class="iconnew" |
| | | v-if="item.status == null || item.status == 0" |
| | | /> |
| | | <img src="@/assets/icons/ic_tongguo.png" class="iconnew" v-if="item.status == 2" /> |
| | | <img src="@/assets/icons/ic_dangqian.png" class="iconnew" v-if="item.status == 1" /> |
| | | <img src="@/assets/icons/ic_jujue.png" class="iconnew" v-if="item.status == 3" /> |
| | | <img src="@/assets/icons/ic_grey.png" class="iconnew" v-if="item.status == null || item.status == 0" /> |
| | | <div style="display: inline" v-if="item.approveType != 1"> |
| | | <img |
| | | v-if="item.faceImg != null && item.faceImg != ''" |
| | | :src="item.faceImg" |
| | | class="avatar" |
| | | alt="" |
| | | /> |
| | | <img |
| | | v-if="item.faceImg == null || item.faceImg == ''" |
| | | src="@/assets/avatar/man.png" |
| | | class="avatar" |
| | | alt="" |
| | | /> |
| | | <img v-if="item.faceImg != null && item.faceImg != ''" :src="item.faceImg" class="avatar" alt="" /> |
| | | <img v-if="item.faceImg == null || item.faceImg == ''" src="@/assets/avatar/man.png" class="avatar" |
| | | alt="" /> |
| | | </div> |
| | | <div style="display: inline" v-if="item.approveType == 1"> |
| | | <img |
| | | v-if="item.type != 1" |
| | | src="@/assets/icons/ic_duoren.png" |
| | | class="avatar" |
| | | alt="" |
| | | /> |
| | | <img |
| | | v-if="item.type == 1" |
| | | src="@/assets/icons/ic_chaosong.png" |
| | | class="avatar" |
| | | alt="" |
| | | /> |
| | | <img v-if="item.type != 1" src="@/assets/icons/ic_duoren.png" class="avatar" alt="" /> |
| | | <img v-if="item.type == 1" src="@/assets/icons/ic_chaosong.png" class="avatar" alt="" /> |
| | | </div> |
| | | <div class="content"> |
| | | <div class="line"> |
| | |
| | | <div class="line"> |
| | | <div class="company"> |
| | | {{ item.memberName }} |
| | | <div |
| | | style="display: inline" |
| | | v-if="item.statusInfo != null && item.statusInfo != ''" |
| | | > |
| | | <div style="display: inline" v-if="item.statusInfo != null && item.statusInfo != ''"> |
| | | ï¼<span class="status-green">{{ |
| | | item.statusInfo || "" |
| | | }}</span |
| | | >ï¼ |
| | | }}</span>ï¼ |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div |
| | | v-if=" |
| | | item.approveType != 1 && |
| | | item.checkInfo != null && |
| | | item.checkInfo != '' |
| | | " |
| | | class="remark" |
| | | > |
| | | <div v-if=" |
| | | item.approveType != 1 && |
| | | item.checkInfo != null && |
| | | item.checkInfo != '' |
| | | " class="remark"> |
| | | {{ item.checkInfo || "" }} |
| | | </div> |
| | | <div v-if="item.approveType == 1" class="childList"> |
| | | <div |
| | | class="m_content company" |
| | | v-for="item1 in item.approveList" |
| | | :key="item1.id" |
| | | > |
| | | <img |
| | | v-if="item1.faceImg != null && item1.faceImg != ''" |
| | | :src="item1.faceImg" |
| | | class="avatar" |
| | | alt="" |
| | | /> |
| | | <img |
| | | v-if="item1.faceImg == null || item1.faceImg == ''" |
| | | src="@/assets/avatar/man.png" |
| | | class="avatar" |
| | | alt="" |
| | | /> |
| | | <div class="m_content company" v-for="item1 in item.approveList" :key="item1.id"> |
| | | <img v-if="item1.faceImg != null && item1.faceImg != ''" :src="item1.faceImg" class="avatar" alt="" /> |
| | | <img v-if="item1.faceImg == null || item1.faceImg == ''" src="@/assets/avatar/man.png" class="avatar" |
| | | alt="" /> |
| | | <span> {{ item1.memberName }}</span> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <!-- --> |
| | | <template v-slot:footer> |
| | | <el-button |
| | | @click="handleAppr(2)" |
| | | type="primary" |
| | | class="status-red" |
| | | v-if=" |
| | | info.approveDateVO != null && |
| | | info.approveDateVO.canBeApproved != null && |
| | | info.approveDateVO.canBeApproved == 1 |
| | | " |
| | | >åæ</el-button |
| | | > |
| | | <el-button |
| | | @click="handleAppr(3)" |
| | | type="danger" |
| | | v-if=" |
| | | info.approveDateVO != null && |
| | | info.approveDateVO.canBeApproved != null && |
| | | info.approveDateVO.canBeApproved == 1 |
| | | " |
| | | >æç»</el-button |
| | | > |
| | | <el-button @click="handleAppr(2)" type="primary" class="status-red" v-if=" |
| | | info.approveDateVO != null && |
| | | info.approveDateVO.canBeApproved != null && |
| | | info.approveDateVO.canBeApproved == 1 |
| | | ">åæ</el-button> |
| | | <el-button @click="handleAppr(3)" type="danger" v-if=" |
| | | info.approveDateVO != null && |
| | | info.approveDateVO.canBeApproved != null && |
| | | info.approveDateVO.canBeApproved == 1 |
| | | ">æç»</el-button> |
| | | <el-button @click="isShowModal = false">è¿å</el-button> |
| | | </template> |
| | | <!-- åæ/æç» --> |
| | | <el-dialog |
| | | append-to-body |
| | | :title="apprTitle" |
| | | :visible.sync="isShowAppr" |
| | | width="480px" |
| | | > |
| | | <el-dialog append-to-body :title="apprTitle" :visible.sync="isShowAppr" width="480px"> |
| | | <el-form :model="param" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm"> |
| | | <el-form-item :prop="param.status == 3 ? 'checkInfo' : ''" :label="param.status == 2 ? 'åæè¯´æ' : 'æç»è¯´æ'"> |
| | | <el-input |
| | | type="textarea" |
| | | :placeholder=" |
| | | param.status == 2 ? 'åæè¯´æï¼éå¿
å¡«' : 'æç»è¯´æå¿
å¡«' |
| | | " |
| | | :rows="4" |
| | | v-model="param.checkInfo" |
| | | /> |
| | | <el-input type="textarea" :placeholder="param.status == 2 ? 'åæè¯´æï¼éå¿
å¡«' : 'æç»è¯´æå¿
å¡«' |
| | | " :rows="4" v-model="param.checkInfo" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | |
| | | </span> |
| | | </el-dialog> |
| | | <!-- 鿣 --> |
| | | <el-dialog |
| | | append-to-body |
| | | title="鿣" |
| | | :visible.sync="isShowProblem" |
| | | width="480px" |
| | | > |
| | | <el-dialog append-to-body title="鿣" :visible.sync="isShowProblem" width="480px"> |
| | | <el-form :model="param" :rules="rules" ref="ruleForm" label-width="100px"> |
| | | <el-form-item label="éåæ¶é´"> |
| | | <el-date-picker |
| | | class="w300" |
| | | value-format="yyyy-MM-dd" |
| | | type="date" |
| | | placeholder="éæ©æ¥æ" |
| | | v-model="param.date" |
| | | /> |
| | | <el-date-picker class="w300" value-format="yyyy-MM-dd" type="date" placeholder="éæ©æ¥æ" v-model="param.date" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ´æ¹å"> |
| | | <div class="df_ac"> |
| | | <img src="@/assets/avatar/man.png" /> |
| | | <el-upload |
| | | class="avatar-uploader" |
| | | action="https://jsonplaceholder.typicode.com/posts/" |
| | | :show-file-list="false" |
| | | :on-success="handleAvatarSuccess" |
| | | :before-upload="beforeAvatarUpload" |
| | | > |
| | | <el-upload class="avatar-uploader" action="https://jsonplaceholder.typicode.com/posts/" |
| | | :show-file-list="false" :on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload"> |
| | | <img v-if="param.url" :src="param.url" class="avatar" /> |
| | | <div v-else class="upload_box"> |
| | | <el-icon class="el-icon-plus icon" /> |
| | |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="éå说æ"> |
| | | <el-input |
| | | type="textarea" |
| | | placeholder="请填å说æ" |
| | | :rows="4" |
| | | v-model="param.explain" |
| | | /> |
| | | <el-input type="textarea" placeholder="请填å说æ" :rows="4" v-model="param.explain" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="isShowProblem = false">åæ¶</el-button> |
| | | <el-button type="primary" @click="isShowProblem = false" |
| | | >ç¡®å®</el-button |
| | | > |
| | | <el-button type="primary" @click="isShowProblem = false">ç¡®å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </GlobalWindow> |
| | |
| | | } from '@/api' |
| | | export default { |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | data() { |
| | | return { |
| | | id: '', |
| | | type: '', |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | onSubAppr () { |
| | | onSubAppr() { |
| | | this.$refs.ruleForm.validate((valid) => { |
| | | if (!valid) { |
| | | return |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | getDetail () { |
| | | getDetail() { |
| | | const { id } = this |
| | | getVisitedReDetail({ id }).then(res => { |
| | | this.info = res |
| | | }) |
| | | }, |
| | | handleAppr (val) { |
| | | handleAppr(val) { |
| | | this.$set(this.param, 'status', val) |
| | | this.apprTitle = val == 2 ? 'åæ' : 'æç»' |
| | | this.isShowAppr = true |
| | | }, |
| | | confirm () { |
| | | confirm() { |
| | | console.log('--') |
| | | }, |
| | | handleTransfer () { |
| | | handleTransfer() { |
| | | this.isShowProblem = true |
| | | }, |
| | | reject () { }, |
| | | handleAvatarSuccess () { }, |
| | | beforeAvatarUpload () { } |
| | | reject() { }, |
| | | handleAvatarSuccess() { }, |
| | | beforeAvatarUpload() { } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | align-items: center; |
| | | color: #999999; |
| | | border: 1px solid #e4e4e4; |
| | | |
| | | .icon { |
| | | font-size: 24px; |
| | | } |
| | | |
| | | .text { |
| | | font-size: 12px; |
| | | } |
| | | } |
| | | |
| | | .side_title { |
| | | font-weight: 600; |
| | | font-size: 18px; |
| | |
| | | margin-left: 20px; |
| | | margin-top: 20px; |
| | | } |
| | | |
| | | .modal_wrap { |
| | | display: flex; |
| | | height: 100%; |
| | | |
| | | .modal_content { |
| | | flex: 1; |
| | | padding: 0px 30px; |
| | |
| | | margin-bottom: 20px; |
| | | margin-top: 30px; |
| | | } |
| | | |
| | | .info { |
| | | .list { |
| | | display: flex; |
| | |
| | | display: flex; |
| | | width: 40%; |
| | | margin-bottom: 20px; |
| | | |
| | | &:nth-of-type(2n) { |
| | | width: 60%; |
| | | } |
| | |
| | | border-radius: 16px 0px 16px 0px; |
| | | } |
| | | } |
| | | |
| | | .table_info { |
| | | .name_wrap { |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .avatar { |
| | | width: 40px; |
| | | height: 40px; |
| | | border-radius: 50%; |
| | | margin-right: 12px; |
| | | } |
| | | |
| | | .content { |
| | | .line { |
| | | display: flex; |
| | | } |
| | | |
| | | .tag { |
| | | color: #b2cbf9; |
| | | border: 1px solid #b2cbf9; |
| | |
| | | width: 420px; |
| | | background: #ffffff; |
| | | border-left: 20px solid #f7f7f7; |
| | | |
| | | .list { |
| | | .item { |
| | | padding: 8px 0; |
| | | position: relative; |
| | | |
| | | .separate { |
| | | position: absolute; |
| | | border-left: 2px dashed #cccccc; |
| | |
| | | height: calc(100% - 36px); |
| | | top: 49px; |
| | | } |
| | | |
| | | .avatar { |
| | | width: 40px; |
| | | height: 40px; |
| | |
| | | margin: 0 12px 0 16px; |
| | | //border: 1px solid; |
| | | } |
| | | |
| | | .childList { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | margin-left: 100px; |
| | | } |
| | | |
| | | .company { |
| | | font-size: 13px; |
| | | color: #888888; |
| | | |
| | | .status { |
| | | color: #00ba67; |
| | | } |
| | | } |
| | | |
| | | .m_content { |
| | | display: flex; |
| | | flex-direction: column; |
| | |
| | | justify-content: center; |
| | | margin-bottom: 4px; |
| | | } |
| | | |
| | | .info { |
| | | display: flex; |
| | | align-items: center; |
| | | margin-left: 20px; |
| | | |
| | | .icon { |
| | | position: relative; |
| | | z-index: 11; |
| | | color: #53b76f; |
| | | font-size: 24px; |
| | | } |
| | | |
| | | .icon1 { |
| | | position: relative; |
| | | z-index: 11; |
| | | color: deepskyblue; |
| | | font-size: 24px; |
| | | } |
| | | |
| | | .icon2 { |
| | | position: relative; |
| | | z-index: 11; |
| | | color: #dc362e; |
| | | font-size: 24px; |
| | | } |
| | | |
| | | .iconnew { |
| | | width: 24px; |
| | | height: 24px; |
| | | } |
| | | |
| | | .icon3 { |
| | | position: relative; |
| | | z-index: 11; |
| | | color: gray; |
| | | font-size: 24px; |
| | | } |
| | | |
| | | .content { |
| | | flex: 1; |
| | | |
| | | .line { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-content: center; |
| | | margin-bottom: 6px; |
| | | |
| | | .name { |
| | | font-weight: 600; |
| | | font-size: 16px; |
| | | color: #111111; |
| | | } |
| | | |
| | | .time { |
| | | color: #888888; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .remark { |
| | | background: #f7f7f7; |
| | | border-radius: 4px; |
| | |
| | | <view class="name_wrap"> |
| | | <text>{{item.memberName}}<text v-if="item.statusInfo" class="status">({{item.statusInfo}})</text></text> |
| | | </view> |
| | | <div v-if="item.checkInfo" class="remark"> |
| | | {{ item.checkInfo }} |
| | | </div> |
| | | <view v-if="item.approveType == 1" class="carbon"> |
| | | <view class="carbon_item" v-for="child in item.approveList" |
| | | :key="child.id"> |