cloudroam
2024-11-08 f347f5bee95657a83bcea156499dfd24af745574
utils/form-item-config.js
@@ -94,6 +94,37 @@
  }
}
export const getPartnerListNameWithIdConfig = () => {
  return {
    label: '合伙人:',
    id: 'partnerId',
    type: 'bus-select',
    el: {
      interfaceUri: 'flower/api/partner/page',
      extraQuery: {
        current: 1,
        size: 2000,
        status: 'P',
        isEnabled: 1,
      },
      props: {
        label: 'name',
        value: 'id',
        dataPath: 'records',
      },
      filterable: true,
      clearable: true,
      style: 'width:100%',
      // 列表返回的是id是int但是存的是string情况
      filterOptions: (list) => {
        const listFilter= list.map((item) => ({ ...item, id: item.id + '',name:item.name+'(PID:'+item.id +')'}))
        return listFilter
      },
    },
  }
}
export const getGoodsCategoryListConfig = (
  checkStrictly = false,
  multiple = false