| | |
| | | current: 1, |
| | | size: 2000, |
| | | status: 'P', |
| | | isEnabled: 1, |
| | | }, |
| | | props: { |
| | | label: 'name', |
| | |
| | | }, |
| | | } |
| | | } |
| | | |
| | | 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, |
| | |
| | | }, |
| | | } |
| | | } |
| | | |
| | | export const getSupplierListConfig = () => { |
| | | return { |
| | | label: '供应商:', |
| | | id: 'supplierId', |
| | | type: 'bus-select', |
| | | el: { |
| | | interfaceUri: 'flower/api/supplier/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) => { |
| | | return list.map((item) => ({ ...item, id: item.id + '' })) |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | |
| | | export const getSupplierListWithIdConfig = () => { |
| | | return { |
| | | label: '供应商:', |
| | | id: 'supplierId', |
| | | type: 'bus-select', |
| | | el: { |
| | | interfaceUri: 'flower/api/supplier/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+'(SID:'+item.id +')'})) |
| | | return listFilter |
| | | }, |
| | | }, |
| | | } |
| | | } |