<template>
  <!--药品责任人查询 -->
  <a-card style="margin-top: 16px" title="供应商与受托人">
    <p-table-edit
      dragging
      @colChange="colChange"
      :rowSelectType="rowSelectType"
      ref="cardTable"
      :bordered="true"
      rowKey="id"
      auto-width
      :data-source="list"
      :columns="columns"
    >
    </p-table-edit>
  </a-card>
</template>
<script>
import setPopupVendor from '@/views/example/modules/form/drugResponsiblePerson.js'

export default {
  data() {
    return {
      span: 8,
      rowSelectType: 2,
      list: [
        {
          id: 'eqw13213',
        },
      ],
      columns: [
        {
          title: '受托人姓名',
          type: 'searchModal',
          dataIndex: 'trusteeName',
          width: 200,
          rowKey: 'id',
          targetClick: true,
          required: true,
          remoteUrl: { url: '/api/oms-std-maindata/pubTrustee/queryTrustee/v1.0', method: 'post' },
          toolBar: {
            items: [
              {
                type: 'input',
                name: 'trusteeCode',
                label: '受托人编码',
                value: '',
              },
              {
                type: 'input',
                name: 'trusteeName',
                label: '受托人姓名',
                value: '',
              },
            ],
          },
          tableConfig: {
            columns: [
              {
                dataIndex: 'id',
                title: 'ID',
              },
              {
                dataIndex: 'trusteeCode',
                title: '受托人编码',
              },
              {
                dataIndex: 'trusteeName',
                title: '受托人姓名',
              },
            ],
          },
        },
      ],
    }
  },
  mounted() {},
  computed: {},
  watch: {},
  methods: {
    hanlderSubmit() {},
    colChange() {},
  },
}
</script>
<style lang="less"></style>
