<template>
  <div>
    <!-- 打印前校验信息弹框 -->
    <div id="ClodoPprintTip" />
    <!-- 拣货单好 -->
    <div
      id="PICK_NO"
      style="display:none"
    >
      <input
        ref="input"
        value=""
      >
    </div>
    <!-- loading 弹窗 -->
    <!-- <Spin
      v-show="loading"
      :class="loadingName"
      fix
      size="large"
    >
      <div class="loading-wrap">
        <Icon
          type="ios-loading"
          size="24"
          class="demo-spin-icon-load"
        />
        <span class="loading-text" />
      </div>
    </Spin> -->

    <div id="fullbg" />
    <!-- <div
      id="printSeal"
      class="printSeal"
    >
      <span
        id="printSeal_remark"
        class="framelanflag"
        data-value="print_text_page5"
        title="正在打印"
      >正在打印</span>
    </div> -->
    <Modal
      v-model="show"
      mask
      closable
      width="200"
      title="发货单"
      @on-ok="ok"
    >
      <Select
        v-model="value"
        style="width:200px"
      >
        <Option
          v-for="item in PrintOutTemp"
          :key="item.SENDITEMTYPE"
          :value="item.SENDITEMTYPE"
        >
          {{ item.TEMPLATEDESC }}
        </Option>
      </Select>
    </Modal>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        show: false,
        loading: false,
        value: '',
        loadingName: '',
        PrintOutTemp: {}
      };
    },
    methods: {
      ok() {
        console.log(this.value, '===');
      },
      getLoadingNmame() {
        // 获取loading name
        window.vm._$printVm = this;
        let { customizedModuleName, tableName } = this.$route.params;
        return `${customizedModuleName || tableName}_fix_loading`;
      }
    },
    created() {
      // console.log('$printVm_001')
      window.vm._$printVm = this;
    },
    mounted() {
      this.loadingName = this.getLoadingNmame();
    }
  };
</script>
<style lang="less">
a.l-btn span.l-btn-left{
  height: 24px!important;
}
.messager-window{
  width: 310px!important;
}
</style>
