<template>
  <p-card>
    <div slot="title" style="display: flex; align-items: center; cursor: pointer" @click="backPage('back')">
      <a-icon type="arrow-left" style="color: #1990ff" class="mr-10" />
      {{title}}
    </div>

    <p-card style="margin:16px 0" title="基础信息">
        <a-descriptions>
          <a-descriptions-item label="波次ID">
            wave20212012121
          </a-descriptions-item>
          <a-descriptions-item label="波次编号">
            wave20212012121
          </a-descriptions-item>
          <a-descriptions-item label="优先级">
            1
          </a-descriptions-item>
          <a-descriptions-item label="仓库">
            wave20212012121
          </a-descriptions-item>
        </a-descriptions>
    </p-card>
    <p-table-edit
      :row-select-type="1"
      dragging
      :rowSelectType="false"
      ref="cardTable"
      :bordered="true"
      rowKey="id"
      auto-width

      :editor-row-table="false"
      :data-source="dataSource"
      :columns="columns"
    >
      <!-- <span slot="action" slot-scope="text, record">
        <div style="display: flex">
          <div>
            <a @click="upLoadChange(text, record)" style="margin-right: 10px">上传</a>
            <imgsUpload v-model="isUpload" :id="uploadId" :isView="lookats"></imgsUpload>
          </div>
          <div>
            <a @click="grid2Main03Table_checkClick(text, record)">查看</a>
          </div>
        </div>
      </span> -->
    </p-table-edit>
  </p-card>
</template>
<script>
import { oms_std_maindata } from "@/config/serviceSettings";
export default {
  components: {},
  props: {
    pUrl: {
      type: String,
      default: oms_std_maindata+'/pubCertificate/pubCertificateQuery/v1.0'
    },
    params: {
      type: Object,
      default() {
        return {}
      }
    },
    columns: {
      type: Array,
      default() {
        return []
      }
    },
    title: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      remoteUrl: {
        url: '',
        params: '',
        headers: {
          'Content-Type': 'application/JSON'
        },
        method: 'post',
        timeout: 30000,
      },
      isUpload: false,
      lookats: false,
      uploadId: '',
      list: [],
      dataSource: [
        {
          customername: 1,
          branchid: '90',
          branchname: '121'
        }
      ],
    }
  },
  created() {},
  watch: {
    // params: {
    //   handler(newVal, oldVal) {
    //   },
    //   deep: true,
    //   immediate: true
    // },
  },
  computed: {},
  methods: {
    // upLoadChange(text, record) {
    //   this.uploadId = record.id
    //   this.isUpload = true
    //   this.lookats = false
    // },
    // grid2Main03Table_checkClick(text, record) {
    //   this.uploadId = record.id
    //   this.isUpload = true
    //   this.lookats = true
    // },
    backPage() {
      this.$emit('back')
    }
  }
}
</script>
<style lang="less">
.ant-upload-list-text {
  display: none;
}
</style>
