liukangdong
2024-06-12 a11bc1bed7953b88213330582c2085f60b5a73b1
admin/src/views/platform/index.vue
@@ -1,10 +1,9 @@
<template>
  <div class="main_app">
    <div class="main_head mb20">
      <el-tabs v-model="currentPlatform" class="tabs">
        <!-- <el-tab-pane label="用户管理" name="first" v-for="item in platformList" :key="item.id"></el-tab-pane> -->
        <el-tab-pane label="用户管理" name="first"></el-tab-pane>
      </el-tabs>
    <div class="mb20">
      <el-select v-model="platformId" @change="getList()">
        <el-option v-for="item in PlatformList" :key="item.id" :value="item.id" :label="item.name" />
      </el-select>
      <el-button type="primary" class="ml20" @click="handleSet"
        >配置月台</el-button
      >
@@ -26,7 +25,7 @@
              <span class="placeholder9">作业:</span><span class="red">1</span>
            </div>
          </div>
          <el-button type="primary">叫号</el-button>
          <el-button type="primary" @click="handleQueuing()">叫号</el-button>
        </div>
        <div class="list">
          <div class="info" v-for="j in 3">
@@ -155,41 +154,121 @@
        <el-button @click="isShowDetail = false">关闭</el-button>
      </span>
    </el-dialog>
    <!--  -->
    <el-drawer
      title="月台叫号-xx号月台"
      :visible.sync="isShowQueuing"
      size="720px"
    >
      <div class="queuing_modal">
        <div class="df_ac mb20">
          <span>搜索车辆:</span>
          <el-input
            class="flex1 mr20"
            v-model="queuingForm.aa"
            placeholder="请输入车牌号"
          ></el-input>
          <el-button type="primary">查找</el-button>
          <el-button>重置</el-button>
        </div>
        <div class="list">
          <div class="item">
            <div class="head df_sb">
              <div class="plate">皖A12122</div>
              <div class="status">已签到</div>
            </div>
            <div class="info">
              <div class="ite">
                <span>运输单号:</span>
                <span>12312</span>
              </div>
              <div class="ite">
                <span>驾驶员:</span>
                <span>12312</span>
              </div>
              <div class="ite">
                <span>手机号:</span>
                <span>12312</span>
              </div>
              <div class="ite">
                <span>总运输量:</span>
                <span>12312</span>
              </div>
              <div class="ite" style="width: 66%">
                <span>运输公司:</span>
                <span>12312</span>
              </div>
            </div>
            <div class="footer df_sb">
              <div class="detail">运单详情</div>
              <el-button type="primary">叫号</el-button>
            </div>
          </div>
        </div>
        <el-button class="mt30" @click="isShowQueuing = false">关闭</el-button>
      </div>
    </el-drawer>
  </div>
</template>
<script>
import { getPlatform, getPlatformJob } from '@/api'
export default {
  data() {
  data () {
    return {
      currentPlatform: '',
      platformList: [],
      platformId: '',
      PlatformList: [],
      dataList: [],
      isShowSet: false, // 月台配置
      setParam: {},
      isShowDetail: false, // 运单详情
      detail: {}
      detail: {},
      isShowQueuing: false,
      queuingForm: {}
    }
  },
  created () {
    this.getPlatList()
    this.getList()
  },
  methods: {
    handleFinish(item) {
    handleQueuing (row) {
      this.isShowQueuing = true
    },
    getList () {
      const { platformId } = this
      getPlatformJob({
        model: { platformId }
      }).then(res => {
        this.dataList = res.records
      })
    },
    handleFinish (item) {
      this.$confirm('高架库6号月台 皖A12345 作业结束', '温馨提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      })
    },
    handleSet() {
    getPlatList () {
      getPlatform({
        model: {}
      }).then(res => {
        this.PlatformList = res.records
      })
    },
    handleSet () {
      this.isShowSet = true
    },
    setReset() { },
    setSub() { }
    setReset () { },
    setSub () { }
  }
}
</script>
<style lang="scss" scoped>
@import "@/assets/style/variables.scss";
.platform_list {
  .item {
    /* padding: 16px 24px; */
@@ -372,7 +451,7 @@
      .line {
        display: flex;
        margin-bottom: 8px;
        &:nth-last-child(1){
        &:nth-last-child(1) {
          margin: 0;
        }
        div {
@@ -392,4 +471,51 @@
    }
  }
}
/*  */
.queuing_modal {
  padding: 10px 30px;
  .list {
    .item {
      background: #f4fafb;
      border-radius: 2px;
      border: 1px solid #dfe2e8;
      margin-bottom: 10px;
      padding: 16px;
      .head {
        margin-bottom: 15px;
        .plate {
          width: 90px;
          text-align: center;
          font-size: 15px;
          color: #111111;
          padding: 4px 5px;
          font-weight: 700;
          border: 1px solid #279baa;
          background-color: #fff;
        }
        .status {
          color: $primaryColor;
        }
      }
      .info {
        display: flex;
        flex-wrap: wrap;
        .ite {
          width: 33.3%;
          margin-bottom: 8px;
          span {
            &:nth-child(1) {
              color: #666666;
            }
          }
        }
      }
      .footer {
        .detail {
          color: $primaryColor;
        }
      }
    }
  }
}
</style>