sonda.vue 20.5 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665
<template>
  <div>
    <div class="fa-box">
      <div class="lik">
        <div class="fa-ji">
          <div class="ge"></div>
          <div class="fa-text">送达作业</div>
        </div>
        <div class="bianzhi" @click="dialogVisible = true">登记事件报告</div>
      </div>
      <div class="biaoge">
        <div class="biao-box">
          <div class="fhuo">
            <div class="fahuos">
              <div class="fas-text">产品货运单号</div>
              <input
                type="text"
                placeholder="请输入产品货运单号"
                class="fa-input"
              />
            </div>
            <div class="fahuos">
              <div class="fas-text">车辆牌号</div>
              <input
                type="text"
                placeholder="请输入车辆牌号"
                class="fa-input"
              />
            </div>
            <div class="chaxun">
              <img src="../../assets/chaxun.png" class="cha-imgs" alt="" />
            </div>
          </div>
        </div>
        <div class="zhonlist">
          <el-table
            :data="tableData"
            border
            style="width: 100%"
            height="100%"
            :header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
          >
            <el-table-column fixed prop="date" label="派车单号" width="137">
            </el-table-column>
            <el-table-column prop="name" label="车辆牌号" width="127">
            </el-table-column>
            <el-table-column prop="province" label="到货确认" width="127">
              <template slot-scope="scope">
                <span
                  v-if="scope.row.province == '审核中'"
                  style="color: #e6a23c"
                  >未确认</span
                >
                <span
                  v-if="scope.row.province == '审核通过'"
                  style="color: #67c23a"
                  >已确认</span
                >
              </template>
            </el-table-column>
            <el-table-column prop="time" label="到货确认时间" width="127">
            </el-table-column>
            <el-table-column prop="address" label="到货确认地点" width="127">
            </el-table-column>
            <el-table-column prop="zip" label="卸车登记" width="127">
            </el-table-column>
            <el-table-column prop="zip" label="仪表记录" width="127">
              <template>
                <el-button
                  type="text"
                  size="small"
                  @click="dialogVisible = true"
                  >查看详情</el-button
                >
              </template>
            </el-table-column>
            <el-table-column prop="zip" label="仪表拆卸登记" width="127">
              <template>
                <el-button
                  type="text"
                  size="small"
                  @click="dialogVisibleg = true"
                  >查看详情</el-button
                >
              </template>
            </el-table-column>
            <el-table-column prop="zip" label="产品货运单签字" width="127">
              <template>
                <el-button
                  type="text"
                  size="small"
                  @click="dialogVisibleg = true"
                  >查看详情</el-button
                >
              </template>
            </el-table-column>
            <el-table-column prop="zip" label="产品货运单签字时间" width="147">
            </el-table-column>
            <el-table-column fixed="right" label="操作" width="234">
              <template slot-scope="scope">
                <el-button
                  type="text"
                  size="small"
                  v-if="isSure"
                  @click="sendSrue(scope.$index)"
                  >到货确认</el-button
                >
                <el-button type="text" size="small" v-else>编制调度</el-button>
                <el-button
                  type="text"
                  size="small"
                  v-if="scope.row.province == '审核中'"
                  @click="dialogVisibleyu = true"
                  >卸车预检</el-button
                >
                <el-button
                  type="text"
                  size="small"
                  v-if="scope.row.province == '审核中'"
                  @click="dialogVisibleyu = true"
                  >货运单签字</el-button
                >
              </template>
            </el-table-column>
          </el-table>
        </div>
      </div>
      <div class="tiaoshu">
        <div class="left-io"></div>
        <div class="gon" v-if="tableData.length != 0">
          共{{ tableData.length }}条
        </div>
        <div class="kls">
          <el-pagination
            :page-size="20"
            :pager-count="11"
            layout="prev, pager, next"
            :total="tableData.length"
          >
          </el-pagination>
        </div>
      </div>
    </div>
    <!-- 仪表记录 -->
    <el-dialog
      title="查看仪表记录详情"
      :visible.sync="dialogVisible"
      width="70%"
      style="margin-top: 10%"
      :append-to-body="true"
    >
      <div class="liebiao">
        <div class="lista">
          <el-table
            :data="tablelist"
            border
            style="width: 100%"
            height="100%"
            :header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
          >
            <el-table-column fixed prop="date" label="仪表编号" width="243">
            </el-table-column>
            <el-table-column prop="name" label="箱码" width="260">
            </el-table-column>
            <el-table-column prop="province" label="籍号" width="260">
            </el-table-column>
            <el-table-column prop="city" label="箱号 " width="243">
            </el-table-column>
            <el-table-column prop="city" label="仪表记录" width="293">
              <template>
                <el-button type="text" size="small" @click="yis"
                  >查看详情</el-button
                >
              </template>
            </el-table-column>
          </el-table>
        </div>
        <div class="queren">
          <el-button type="primary" round @click="dialogVisible = false"
            >确认</el-button
          >
        </div>
      </div>
    </el-dialog>
    <!-- 仪表记录详情 -->
    <el-dialog
      title="仪表记录详情"
      :visible.sync="dialogVisibleyi"
      width="60%"
      style="margin-top: 10%"
      :append-to-body="true"
      @close="closeDialog"
    >
      <div class="liebiao">
        <div class="jisudu">
          <el-tabs
            v-model="activeName"
            @tab-click="handleClicks"
            style="width: 100%"
          >
            <el-tab-pane label="加速度的加速数据" name="first"
              ><el-table
                :data="tablelist"
                border
                style="width: 100%; margin-top: 15px"
                height="100%"
                :header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
              >
                <el-table-column
                  fixed
                  prop="date"
                  label="记录时间"
                  style="width: 25%"
                >
                </el-table-column>
                <el-table-column
                  prop="name"
                  label="X轴加速度"
                  style="width: 25%"
                >
                </el-table-column>
                <el-table-column
                  prop="province"
                  label="Y轴加速度"
                  style="width: 25%"
                >
                </el-table-column>
                <el-table-column
                  prop="city"
                  label="Z轴加速度 "
                  style="width: 25%"
                >
                </el-table-column> </el-table
            ></el-tab-pane>
            <el-tab-pane label="加速度的角速度数据" name="second"
              ><el-table
                :data="tablelist"
                border
                style="width: 100%; margin-top: 15px"
                height="100%"
                :header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
              >
                <el-table-column
                  fixed
                  prop="date"
                  label="记录时间"
                  style="width: 25%"
                >
                </el-table-column>
                <el-table-column
                  prop="name"
                  label="X轴加速度"
                  style="width: 25%"
                >
                </el-table-column>
                <el-table-column
                  prop="province"
                  label="Y轴加速度"
                  style="width: 25%"
                >
                </el-table-column>
                <el-table-column
                  prop="city"
                  label="Z轴加速度 "
                  style="width: 25%"
                >
                </el-table-column> </el-table
            ></el-tab-pane>
            <el-tab-pane label="四元素" name="third"
              ><el-table
                :data="tablelist"
                border
                style="width: 100%; margin-top: 15px"
                height="100%"
                :header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
              >
                <el-table-column
                  fixed
                  prop="date"
                  label="记录时间"
                  style="width: 20%"
                >
                </el-table-column>
                <el-table-column prop="name" label="Q1" style="width: 20%">
                </el-table-column>
                <el-table-column prop="province" label="Q2" style="width: 20%">
                </el-table-column>
                <el-table-column prop="city" label="Q3 " style="width: 20%">
                </el-table-column>
                <el-table-column prop="city" label="Q5 " style="width: 20%">
                </el-table-column> </el-table
            ></el-tab-pane>
          </el-tabs>
        </div>
        <div class="queren">
          <el-button type="primary" round @click="dialogVisibleyi = false"
            >确认</el-button
          >
          <el-button round @click="dialogVisibleyi = false">取消</el-button>
        </div>
      </div>
    </el-dialog>
    <!-- 到货确认 -->
    <el-dialog
      title="到货确认"
      :visible.sync="dialogVisibleg"
      width="40%"
      style="margin-top: 13%"
      :append-to-body="true"
    >
      <el-form :rules="rules" class="liebiao">
        <div class="fahuo-li">
          <div class="a" style="margin-right: 160px">
            <div class="sd">
              <div class="fa-ji">到货时间</div>
              <div
                class="inputt"
                style="padding-left: 15px; padding-right: 15px"
              >
                <el-date-picker
                  v-model="value1"
                  type="date"
                  placeholder="选择日期"
                  :change="changData"
                  ref="datas"
                >
                </el-date-picker>
                <img src="../../assets/xiala.png" class="xial" alt="" />
              </div>
            </div>
          </div>

          <div class="a">
            <div class="sd">
              <div class="fa-ji">到货地点</div>
              <div
                class="inputt"
                style="padding-left: 15px; padding-right: 15px"
              >
                <input
                  type="text"
                  placeholder="请输入到货地点"
                  required="required"
                  class="ss"
                />
                <img src="../../assets/xiala.png" class="xial" alt="" />
              </div>
            </div>
          </div>
        </div>
        <div class="queren">
          <el-button type="primary" round @click="sureShip">确认到货</el-button>
          <el-button round @click="dialogVisibleg = false">取消</el-button>
        </div>
      </el-form>
    </el-dialog>
    <!-- 仪表记录 -->
    <el-dialog
      title="仪表记录"
      :visible.sync="dialogVisibleq"
      width="80%"
      :append-to-body="true"
    >
      <div class="liebiao">
        <div class="listas">
          <el-table
            :data="tableData"
            border
            style="width: 100%"
            :header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
          >
            <el-table-column fixed prop="date" label="仪表编号 ">
            </el-table-column>
            <el-table-column prop="name" label="籍码"> </el-table-column>
            <el-table-column prop="name" label="籍号"> </el-table-column>
            <el-table-column prop="name" label="箱号"> </el-table-column>
            <el-table-column prop="name" label="仪表记录">
              <template slot-scope="scope">
                <span
                  v-if="scope.row.province == '审核中'"
                  style="color: #e6a23c"
                  >查看详情</span
                >
              </template>
            </el-table-column>
          </el-table>
        </div>
        <div class="queren">
          <div class="querens">确认</div>
          <div class="quxiaos">取消</div>
        </div>
      </div>
    </el-dialog>
    <!-- 装车登记查看详情 -->
    <el-dialog
      title="装车登记"
      :visible.sync="dialogVisibleh"
      width="80%"
      :append-to-body="true"
      style="marign-top: 5%"
    >
      <div class="liebiao" style="margin-top: 20px; height: 600px">
        <el-table
          :data="tableData"
          border
          style="width: 100%"
          height="100%"
          :header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
        >
          <el-table-column prop="date" label="籍号" width="284">
          </el-table-column>
          <el-table-column prop="name" label="仪表1" width="284">
          </el-table-column>
          <el-table-column prop="province" label="仪表2" width="128">
            <template slot-scope="scope">
              <span v-if="scope.row.province == '审核中'" style="color: #e6a23c"
                >待装车</span
              >
              <span
                v-if="scope.row.province == '审核通过'"
                style="color: #67c23a"
                >已封车</span
              >
            </template>
          </el-table-column>
          <el-table-column prop="city" label="仪表3" width="128">
          </el-table-column>
          <el-table-column prop="address" label="装车状态" width="160">
          </el-table-column>
          <el-table-column prop="zip" label="操作人" width="128">
          </el-table-column>

          <el-table-column fixed="right" label="操作" width="256">
            <template slot-scope="scope">
              <el-button type="text" size="small" @click="dialogVisibleh = true"
                >装车登记</el-button
              >
              <el-button
                type="text"
                size="small"
                v-if="scope.row.province == '审核中'"
                >仪表登记</el-button
              >
              <el-button
                type="text"
                size="small"
                v-if="scope.row.province == '审核中'"
                >封车检查</el-button
              >
            </template>
          </el-table-column>
        </el-table>
        <div class="queren">
          <div class="querens">确认</div>
          <div class="quxiaos">取消</div>
        </div>
      </div>
    </el-dialog>
    <!-- 卸车预检 -->
    <el-dialog
      title="卸车预检"
      :visible.sync="dialogVisibleyu"
      width="40%"
      style="margin-top: 14%"
      :append-to-body="true"
    >
      <div class="fengs">
        <div class="fen-left">
          <div class="titleas" style="margin-top: 0">上传卸车预检照片</div>
          <div class="tuimg">
            <el-upload
              action="https://jsonplaceholder.typicode.com/posts/"
              list-type="picture-card"
              :on-preview="handlePictureCardPreview"
              :on-remove="handleRemove"
            >
              <i class="el-icon-plus"></i>
            </el-upload>
            <el-dialog :visible.sync="dialogVisiblex">
              <img width="100%" :src="dialogImageUrl" alt="" />
            </el-dialog>
          </div>
        </div>
      </div>
      <div class="queren" style="margin-bottom: 30px">
        <el-button type="primary" round @click="dialogVisibleyu = false"
          >确认到货</el-button
        >
        <el-button round @click="dialogVisibleyu = false">取消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { regionData, CodeToText } from "element-china-area-data";
export default {
  data() {
    return {
      value1: '',
      isSure: true,
      tablelistIndex: '',
      activeName: "first",
      tableData: [
        {
          date: "P2112020092300",
          name: "P2112020092300",
          province: "审核中",
          city: "赵吾光",
          time: '-',
          address: "重庆市南岸区",
          zip: "未处置",
        },
        {
          date: "P2112020092300",
          name: "P2112020092300",
          province: "审核中",
          city: "审核通过",
          time: '-',
          address: "重庆市南岸区",
          zip: "未处置",
        },
        {
          date: "P2112020092300",
          name: "P2112020092300",
          province: "审核中",
          time: '-',
          city: "审核中",
          address: "重庆市南岸区",
          zip: "未处置",
        },
        {
          date: "P2112020092300",
          name: "P2112020092300",
          province: "审核通过",
          city: "赵吾光",
          time: '2020/12/1',
          address: "北京丰台区",
          zip: "未处置",
        },

      ],
      dialogVisible: false,
      dialogVisibleg: false,
      dialogVisibleq: false,
      dialogVisibleh: false,
      dialogVisibleyu: false,
      dialogImageUrl: "",
      dialogVisiblex: false,
      dialogVisibleyi: false,
    };
  },
  methods: {
    //到货确认
    sendSrue(idx) {
      this.dialogVisibleg = true;
      this.tablelistIndex = idx
    },
    //确认收货按钮
    sureShip() {
      if (this.value1 == '') {
        this.$message({
          type: 'warn',
          message: '缺少时间',
          showClose: true,
        })
        return;
      }
      let times = this.value1.toLocaleDateString();

      let idx = this.tablelistIndex
      this.tableData[idx].time = times
      this.tableData[idx].province = '审核通过'
      this.dialogVisibleg = false;
      this.isSure = false
    },
    // changData() {
    //   console.log(this.$refs.datas)
    // },
    //编辑发货申请
    handleClick(row) {
      console.log(row);
      this.dialogVisibleg = false;
      this.dialogVisibleyu = true;
    },
    handleClicks(tab, event) {
      console.log(tab, event);
    },
    //上传图片
    handleRemove(file, fileList) {
      console.log(file, fileList);
    },
    handlePictureCardPreview(file) {
      this.dialogImageUrl = file.url;
      this.dialogVisible = true;
    },
    //查看订单
    cha() {
      this.dialogVisibleg = true;
    },
    //确认发货
    que() {
      this.dialogVisibleq = true;
    },
    //预览图片
    chuans() {
      this.dialogVisibleh = false;
      this.dialogVisibleyu = true;
    },
    //返回上一层
    fanhuis() {
      this.dialogVisibleh = true;
      this.dialogVisibleyu = false;
    },
    //查看仪表记录详情
    yis() {
      this.dialogVisibleyi = true;
      this.dialogVisible = false;
    },
    //关闭
    closeDialog() {
      this.dialogVisibleyi = false;
      this.dialogVisible = true;
    },
  },
};
</script>
<style>
.el-dialog__title {
  font-size: 29px !important;
  color: #000000 !important;
  font-weight: 500;
}
.el-upload--picture-card {
  width: 80px !important;
  height: 80px !important;
  line-height: 80px !important;
}
.el-upload-list--picture-card .el-upload-list__item {
  width: 80px !important;
  height: 80px !important;
  line-height: 80px !important;
}
.el-carousel__container {
  margin-top: 52px;
  height: 629px;
}
/* .el-table /deep/.DisabledSelection .cell .el-checkbox__inner{
    margin-left: -30px;
    position:relative;
  } */
.el-table /deep/.DisabledSelection .cell:before {
  content: "全选";
  position: absolute;
  right: 42px;
}
.el-tabs el-tabs--top {
  width: 100%;
}
</style>
<style scoped>
@import "../../css/fa.css";
@import "../../css/pei.css";
@import "../../css/sonda.css";
</style>