/* 
 <detail-page ref="detail"
                 :list="detailtList"
                 :isView="isView"
                 :defData="detailData">
</detail-page>
*/

/*  
export function detailConfig(self) {
  return [
    {
      key: 'one',
      checkedKey: 'main',
      height: '160px',
      btns: [
        {
          label: '提取单据',
          list: [
            { label: '提取订单（单张）', click() { self.visible = true } },
            { label: '提取剩余订单（当前）', click() { } },
            { label: '提取订单（多单）', click() { } }
          ]
        },
        // { label: '查询', click() {} },
        // { label: '修改', click() {} },
        {
          label: '保存',
          click() {
            console.log(self.getDetailData())
          }
        },
        {
          label: '辅助功能',
          list: [
            { label: '提取订单（单张）', click() { } },
            { label: '商品快速维护', click() { } },
            { label: '商品条码采集', click() { } },
            { label: '导出', click() { } },
            { label: '操作日志', click() { } },
          ]
        },
        { label: '打印', click() { } }
      ],
      list: [
        {
          key: 'main',
          tab: '主要信息',
          item: { type: 'p-grid-form', config: basicData }
        },
        {
          key: 'extend',
          tab: '次要信息',
          item: { type: 'p-grid-form', config: extendFormItems }
        },
        {
          key: 'operate',
          tab: '操作信息',
          item: { type: 'p-grid-form', config: operateFormItems }
        }
      ]
    },
    {
      key: 'two',
      checkedKey: 'list',
      list: [
        {
          key: 'list',
          tab: '商品明细',
          item: {
            type: 'p-table-edit',
            rowKey: packingColumns[0].key,
            rowSelectType: 2,
            config: packingColumns,
            colChange({ record, name, value }) {

            },
          },
          btns: [
            {
              label: '删除', click() {
                let ref = self.queryRefFromName('list');
                ref.delSelectedItems();
              }
            }
          ],
        }
      ]
    }
  ]
}
*/