From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期三, 16 十月 2024 15:59:38 +0800 Subject: [PATCH] 代码初始化 --- admin/src/views/platform/LogisticsRecord/waybill.vue | 42 +++++++++++++++++++++++++++++------------- 1 files changed, 29 insertions(+), 13 deletions(-) diff --git a/admin/src/views/platform/LogisticsRecord/waybill.vue b/admin/src/views/platform/LogisticsRecord/waybill.vue index d321663..dd34efc 100644 --- a/admin/src/views/platform/LogisticsRecord/waybill.vue +++ b/admin/src/views/platform/LogisticsRecord/waybill.vue @@ -31,7 +31,7 @@ <span v-if="scope.row.type == '4'">甯傚叕鍙稿鍗忚溅鍗歌揣</span> </template> </el-table-column> - <el-table-column prop="createDate" label="鍒涘缓鏃堕棿" min-width="150" show-overflow-tooltip /> + <el-table-column prop="ioCreatedate" label="鍒涘缓鏃堕棿" min-width="150" show-overflow-tooltip /> <el-table-column prop="name" label="浣滀笟鐘舵��" min-width="100" show-overflow-tooltip> <template v-slot="scope"> <span>{{ statusMap[scope.row.status] }}</span> @@ -39,9 +39,9 @@ </el-table-column> <el-table-column prop="name" label="鎿嶄綔" min-width="120" align="center" fixed="right" show-overflow-tooltip> <template v-slot="scope"> - <el-button type="text" class="red" v-permissions="['business:platformjob:delete']" + <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 type="text" v-permissions="['business:platformjob:query']" + <el-button v-if="scope.row != 12" type="text" v-permissions="['business:platformjob:query']" @click="handleDetail(scope.row)">杩愬崟璇︽儏</el-button> </template> </el-table-column> @@ -49,7 +49,7 @@ <Pagination @size-change="handleSizeChange" @current-change="getList" :pagination="pagination" /> <!-- --> <!-- --> - <DriverDetail v-if="isShowDriver" ref="DriverDetailRef" /> + <WaybillDetailRef v-if="isShowDetail" ref="WaybillDetailRef" /> </div> </template> @@ -58,7 +58,7 @@ import QueryForm from '@/components/common/QueryForm' import { platformJobPage, platformJobExport, platformJobDel } from '@/api' import { statusMap } from '../config' -import DriverDetail from "@/views/task/driverDetail" +import WaybillDetailRef from "../components/WaybillDetail.vue" import GlobalWindow from '@/components/common/GlobalWindow' import UploadFaceImg from '@/components/common/UploadFaceImg' import { Message } from 'element-ui' @@ -67,14 +67,14 @@ components: { Pagination, QueryForm, - DriverDetail, + WaybillDetailRef, GlobalWindow, UploadFaceImg }, data() { return { statusMap, - isShowDriver: false, + isShowDetail: false, exLoading: false, loading: false, pagination: { @@ -90,7 +90,7 @@ queryFormConfig: { formItems: [ { - filed: 'code', + filed: 'billCode', type: 'input', label: '杩愬崟鍙�' }, @@ -103,6 +103,23 @@ filed: 'carCodeFront', type: 'input', label: '杞︾墝鍙�' + }, + { + filed: 'status', + type: 'select', + label: '浣滀笟鐘舵��', + options: [ + { value: 3, label: '鍏ュ洯绛夊緟' }, + { value: 4, label: '鏈堝彴绛夊緟' }, + { value: 5, label: '浣滀笟涓�' }, + { value: 6, label: '浣滀笟瀹屾垚' }, + { value: 7, label: '杞Щ涓�' }, + { value: 8, label: '寮傚父鎸傝捣' }, + { value: 9, label: '宸叉巿鏉冪鍥�' }, + { value: 10, label: '宸茬鍥�' }, + { value: 11, label: '宸茶繃鍙�' }, + { value: 12, label: '宸插彇娑�' }, + ] }, { filed: 'selDate', @@ -198,12 +215,11 @@ this.getList() }, handleDetail(row) { - this.isShowDriver = true + this.isShowDetail = true this.$nextTick(() => { - this.$refs.DriverDetailRef.id = row.id - this.$refs.DriverDetailRef.type = 6 - this.$refs.DriverDetailRef.getDetail() - this.$refs.DriverDetailRef.isShowModal = true + this.$refs.WaybillDetailRef.isShowModal = true + this.$refs.WaybillDetailRef.id = row.id + this.$refs.WaybillDetailRef.getDetail() }) }, handleSizeChange(capacity) { -- Gitblit v1.9.3