columns.js 1.02 KB
Newer Older
wuhao's avatar
wuhao committed
1 2
function getcolumns(setdrawer) {
  return [
TZW's avatar
TZW committed
3
    { title: '工段代码', dataIndex: 'sectionCode', key: 'sectionCode' },
wuhao's avatar
wuhao committed
4
    {
TZW's avatar
TZW committed
5 6 7 8
      title: '工段名称',
      dataIndex: 'sectionName',
      key: 'sectionName',
      formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
wuhao's avatar
wuhao committed
9 10
    },
    {
TZW's avatar
TZW committed
11 12 13 14 15 16
      title: '所属工厂',
      dataIndex: 'factoryName',
      key: 'factoryId',
      formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
      valueType: 'select',
      options: { path: '/auth/sysFactory/getAllFactorySelection', params: {} },
wuhao's avatar
wuhao committed
17 18
    },
    {
TZW's avatar
TZW committed
19 20
      title: '所属车间',
      dataIndex: 'shopName',
TZW's avatar
TZW committed
21
      key: 'shopId',
TZW's avatar
TZW committed
22 23
      formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
      valueType: 'select',
TZW's avatar
TZW committed
24 25 26
      options: {
        path: '/auth/sysShop/getShopSelectionByFactory',
        linkParams: {
TZW's avatar
TZW committed
27
          factoryId: '', //key 后面如果存在value 则该value会在调用接口时format
TZW's avatar
TZW committed
28 29
        },
      },
wuhao's avatar
wuhao committed
30 31 32 33 34
    },
  ];
}

export default getcolumns;