<!--
@name: 扫描派车
@author: 张泽贤
@time: 2022-05-06
@doc: PROLOG_UPCloudSolutionForTMS__v1.2.1_调度管理_1.2.2.doc
-->
<template>
  <scanDispatch_2 v-if="SCAN_DISPATCH_METHOD==2" :options="options" :sysType="SCAN_DISPATCH_METHOD"/>
  <scanDispatch_3 v-else-if="SCAN_DISPATCH_METHOD==3" :options="options" :sysType="SCAN_DISPATCH_METHOD"/>
  <scanDefault v-else/>
</template>
<script>
import scanDefault from './scanDefault.vue'
import scanDispatch_2 from './model/scanDispatch_2.vue'
import scanDispatch_3 from './model/scanDispatch_3.vue'
import { initDictionary } from '@/blocks/utils'

export default {
  components: {
    scanDefault,
    scanDispatch_2,
    scanDispatch_3

  },
  data() {
    return {
      options:[]
    };
  },
  method() {
    initDictionary([
      { objectcode: 'CONSIGNEE_TYPE' }
    ],true).then((res) => {
      this.options = { ...this.options, ...res }
    })
  },
  computed: {
    //'扫描派车方式',
    SCAN_DISPATCH_METHOD() {
      return this.$store.state?.sysParameter?.sysParameter_TMS?.SCAN_DISPATCH_METHOD?.value;

    }
  }
}

</script>
<style lang="less" id="pp1">

.scan-form {
  .ant-row.ant-form-item {
    display: flex;
    align-items: center;
  }
  label {
    font-size: 18px;
    vertical-align: middle;
  }
}
.scan-input {
  .ant-input {
    font-size: 28px;
    padding-left: 44px !important;
    height: 60px;
  }
}
.scan-msg {
  &.ant-alert {
    padding-left: 65px;
  }
  .ant-alert-message {
    font-size: 28px;
  }
  i {
    font-size: 36px;
  }
  min-height: 60px;
}

.scan-transfer {
  &.ant-transfer-customize-list {
    .ant-transfer-list {
      width: 40%;
    }
  }

  .table-body-height {
    .ant-table-placeholder {
      display: none;
    }
    .ant-table-body {
      max-height: 430px;
      min-height: 430px;
      overflow-y: auto;
    }
    .ant-pagination.ant-table-pagination li {
      &:last-child {
        display: none;
      }
    }
  }
}
</style>