columns.js 1.06 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
      title: '所属工厂',
      dataIndex: 'factoryName',
TZW's avatar
TZW committed
13
      width: 180,
TZW's avatar
TZW committed
14 15 16 17
      key: 'factoryId',
      formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
      valueType: 'select',
      options: { path: '/auth/sysFactory/getAllFactorySelection', params: {} },
wuhao's avatar
wuhao committed
18 19
    },
    {
TZW's avatar
TZW committed
20 21
      title: '所属车间',
      dataIndex: 'shopName',
TZW's avatar
TZW committed
22
      width: 180,
TZW's avatar
TZW committed
23
      key: 'shopId',
TZW's avatar
TZW committed
24 25
      formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
      valueType: 'select',
TZW's avatar
TZW committed
26 27 28
      options: {
        path: '/auth/sysShop/getShopSelectionByFactory',
        linkParams: {
TZW's avatar
TZW committed
29
          factoryId: '', //key 后面如果存在value 则该value会在调用接口时format
TZW's avatar
TZW committed
30 31
        },
      },
wuhao's avatar
wuhao committed
32 33 34 35 36
    },
  ];
}

export default getcolumns;