¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // çä¿¡éç¥ å页å表 |
| | | export function getSmsList (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/smsConfig/page', data) |
| | | } |
| | | // çä¿¡éç¥ ç¶ææ´æ° |
| | | export function SmsStatusUpdate (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/smsConfig/updateById', data) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="main_app"> |
| | | <QueryForm v-model="filters" :query-form-config="queryFormConfig" @changeForm='changeForm' @handleQuery="getList(1)" |
| | | @clear="clear"> |
| | | </QueryForm> |
| | | <div class="pt16"> |
| | | <el-button :loading="exLoading" @click="handleEx" |
| | | v-permissions="['business:platformjob:exportExcel']">导åº</el-button> |
| | | </div> |
| | | <el-table class="mb20" v-loading="loading" :data="list" stripe> |
| | | <el-table-column prop="billCode" label="å§å" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="carCodeFront" label="ææºå·" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="taskOrigin" label="è¥éåºå" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="carrierName" label="夿³¨" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="driverName" label="æåæ´æ°æ¶é´" min-width="100" 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 v-if="scope.row.status == '12'" type="text" class="red" v-permissions="['business:platformjob:delete']" |
| | | @click="handleDel(scope.row)">å é¤</el-button> |
| | | <el-button v-if="scope.row != 12" type="text" v-permissions="['business:platformjob:query']" |
| | | @click="handleDetail(scope.row)">ç¼è¾</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <Pagination @size-change="handleSizeChange" @current-change="getList" :pagination="pagination" /> |
| | | <!-- --> |
| | | <!-- --> |
| | | <WaybillDetailRef v-if="isShowDetail" ref="WaybillDetailRef" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Pagination from '@/components/common/Pagination' |
| | | import QueryForm from '@/components/common/QueryForm' |
| | | import { platformJobPage, platformJobExport, platformJobDel } from '@/api' |
| | | import { statusMap } from '../config' |
| | | import WaybillDetailRef from "../components/WaybillDetail.vue" |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import UploadFaceImg from '@/components/common/UploadFaceImg' |
| | | import { Message } from 'element-ui' |
| | | import dayjs from 'dayjs' |
| | | export default { |
| | | components: { |
| | | Pagination, |
| | | QueryForm, |
| | | WaybillDetailRef, |
| | | GlobalWindow, |
| | | UploadFaceImg |
| | | }, |
| | | data() { |
| | | return { |
| | | statusMap, |
| | | isShowDetail: false, |
| | | exLoading: false, |
| | | loading: false, |
| | | pagination: { |
| | | pageSize: 10, |
| | | page: 1, |
| | | total: 0 |
| | | }, |
| | | filters: { |
| | | selDate: [], |
| | | fastdate: 0 |
| | | }, |
| | | list: [], |
| | | queryFormConfig: { |
| | | formItems: [ |
| | | { |
| | | filed: 'name', |
| | | type: 'input', |
| | | label: 'å§å' |
| | | }, |
| | | { |
| | | filed: 'phone', |
| | | type: 'input', |
| | | label: 'ææºå·' |
| | | } |
| | | ], |
| | | online: true |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | | this.changeRadio('0') |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | changeRadio(day) { |
| | | const arr = [dayjs().subtract(day, 'day').format('YYYY-MM-DD') + ' 00:00:00', dayjs().format('YYYY-MM-DD') + ' 23:59:59'] |
| | | this.$set(this.filters, 'selDate', arr) |
| | | this.getList() |
| | | }, |
| | | changeForm(str) { |
| | | if (str === 'selDate') { |
| | | this.$set(this.filters, 'fastdate', null) |
| | | this.getList() |
| | | } |
| | | }, |
| | | getList(page) { |
| | | const { pagination, filters } = this |
| | | this.loading = true |
| | | platformJobPage({ |
| | | model: { |
| | | ...filters, |
| | | jobType: '0', |
| | | createDateStart: filters.selDate && filters.selDate.length > 0 ? filters.selDate[0] : null, |
| | | createDateEnd: 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 ? 'æ´æç' : 'ä»¶ç' |
| | | item.taskOrigin = 'WMSè·å' |
| | | }) |
| | | this.pagination.total = res.total || 0 |
| | | }, () => { |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | handleDel(row) { |
| | | this.$dialog.exportConfirm('确认å é¤åï¼').then(() => { |
| | | platformJobDel(row.id).then(res => { |
| | | Message.success('å 餿å') |
| | | this.getList() |
| | | }) |
| | | }) |
| | | }, |
| | | handleEx() { |
| | | this.$dialog.exportConfirm('确认导åºåï¼') |
| | | .then(() => { |
| | | this.exLoading = true |
| | | platformJobExport({ |
| | | page: this.pagination.page, |
| | | capacity: 1000000, |
| | | jobType: '0', |
| | | model: this.filters |
| | | }) |
| | | .then(response => { |
| | | this.download(response) |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.exLoading = false |
| | | }) |
| | | }) |
| | | }, |
| | | clear() { |
| | | this.pagination.page = 1 |
| | | this.filters = { |
| | | selDate: [], |
| | | fastdate: 0 |
| | | } |
| | | this.getList() |
| | | }, |
| | | handleDetail(row) { |
| | | this.isShowDetail = true |
| | | this.$nextTick(() => { |
| | | this.$refs.WaybillDetailRef.isShowModal = true |
| | | this.$refs.WaybillDetailRef.id = row.id |
| | | this.$refs.WaybillDetailRef.getDetail() |
| | | }) |
| | | }, |
| | | handleSizeChange(capacity) { |
| | | this.pagination.pageSize = capacity |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .param_title { |
| | | font-size: 18px; |
| | | font-weight: 600; |
| | | color: #000000; |
| | | margin-bottom: 15px; |
| | | } |
| | | </style> |
| | |
| | | <div class="title">ååå表</div> |
| | | <div class="content"> |
| | | <div class="item" v-for="item in info.wmsJobContractVOList"> |
| | | <div class="contract">ååå·ï¼{{ item.contractCode }}</div> |
| | | <div class="contract"> |
| | | <span>ååå·ï¼{{ item.contractCode }}</span> |
| | | <div> |
| | | <span class="scs" v-if="item.platformWmsDetailList[0].status == 1">WMSä½ä¸å·²å®æ</span> |
| | | <span class="pad" v-if="item.platformWmsDetailList[0].status == 0">WMSä½ä¸æªå®æ</span> |
| | | <span class="err" v-if="item.platformWmsDetailList[0].status == 2">WMSä½ä¸å·²åæ¶</span> |
| | | <span class="scs" v-if="item.platformWmsDetailList[0].lockStatus == 1">çµåéå·²ä¸é</span> |
| | | <span class="pad" v-if="item.platformWmsDetailList[0].lockStatus == 0">çµåéæªä¸é</span> |
| | | </div> |
| | | </div> |
| | | <div class="placeholder6">æ¶è´§å°ï¼{{ item.address }}</div> |
| | | <div class="list"> |
| | | <div class="line" v-for="line in item.platformWmsDetailList"> |
| | |
| | | font-size: 15px; |
| | | color: #279baa; |
| | | margin-bottom: 4px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .scs{ |
| | | color: #00ba67; |
| | | } |
| | | .pad{ |
| | | color: #f19c3f; |
| | | } |
| | | .err{ |
| | | color: red; |
| | | } |
| | | } |
| | | |
| | | .line { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="main_app"> |
| | | <QueryForm v-model="filters" :query-form-config="queryFormConfig" @handleQuery="getList(1)" |
| | | @clear="clear"> |
| | | </QueryForm> |
| | | <!-- <div class="pt16"> |
| | | <el-button :loading="exLoading" @click="handleEx" |
| | | v-permissions="['business:platformjob:exportExcel']">导åº</el-button> |
| | | </div> --> |
| | | <el-table class="mb20" v-loading="loading" :data="list" stripe> |
| | | <el-table-column prop="name" label="æ¶æ¯æ é¢" min-width="160" show-overflow-tooltip /> |
| | | <el-table-column prop="code" label="æ¶æ¯ç¼ç " min-width="150" show-overflow-tooltip /> |
| | | <el-table-column prop="content" label="æ¶æ¯æ¨¡æ¿" min-width="300" show-overflow-tooltip /> |
| | | <el-table-column label="ç¶æ" width="120" align="center" fixed="right"> |
| | | <template v-slot="scope"> |
| | | <el-switch v-model="scope.row.status" @change="changeStatus(scope.row)" :active-value="0" :inactive-value="1"> |
| | | </el-switch> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <Pagination @size-change="handleSizeChange" @current-change="getList" :pagination="pagination" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Pagination from '@/components/common/Pagination' |
| | | import QueryForm from '@/components/common/QueryForm' |
| | | import { getSmsList, SmsStatusUpdate } from '@/api/system/sms' |
| | | |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { Message } from 'element-ui' |
| | | import dayjs from 'dayjs' |
| | | export default { |
| | | components: { |
| | | Pagination, |
| | | QueryForm, |
| | | GlobalWindow, |
| | | }, |
| | | data() { |
| | | return { |
| | | isShowDetail: false, |
| | | exLoading: false, |
| | | loading: false, |
| | | pagination: { |
| | | pageSize: 10, |
| | | page: 1, |
| | | total: 0 |
| | | }, |
| | | filters: {}, |
| | | list: [], |
| | | queryFormConfig: { |
| | | formItems: [ |
| | | { |
| | | filed: 'name', |
| | | type: 'input', |
| | | label: 'æ¶æ¯æ é¢' |
| | | }, |
| | | { |
| | | filed: 'status', |
| | | type: 'select', |
| | | label: 'å¯ç¨ç¶æ', |
| | | options: [ |
| | | { value: 0, label: 'å¯ç¨' }, |
| | | { value: 1, label: 'ç¦ç¨' }, |
| | | ] |
| | | }, |
| | | { |
| | | filed: 'code', |
| | | type: 'input', |
| | | label: 'æ¶æ¯ç¼ç ' |
| | | } |
| | | ], |
| | | online: true |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | changeStatus(row) { |
| | | console.log('row', row); |
| | | SmsStatusUpdate({ |
| | | ...row |
| | | }).then(res => { |
| | | Message.success('ç¶ææ´æ°æå') |
| | | }, () => { |
| | | this.getList() |
| | | }) |
| | | }, |
| | | getList(page) { |
| | | const { pagination, filters } = this |
| | | this.loading = true |
| | | getSmsList({ |
| | | model: { |
| | | ...filters, |
| | | }, |
| | | 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 ? 'æ´æç' : 'ä»¶ç' |
| | | item.taskOrigin = 'WMSè·å' |
| | | }) |
| | | this.pagination.total = res.total || 0 |
| | | }, () => { |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | |
| | | |
| | | clear() { |
| | | this.pagination.page = 1 |
| | | this.filters = {} |
| | | this.getList() |
| | | }, |
| | | handleSizeChange(capacity) { |
| | | this.pagination.pageSize = capacity |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .param_title { |
| | | font-size: 18px; |
| | | font-weight: 600; |
| | | color: #000000; |
| | | margin-bottom: 15px; |
| | | } |
| | | </style> |