Browse Source

no message

master
xpz2018 8 months ago
parent
commit
dace77fe07
3 changed files with 27 additions and 13 deletions
  1. 22
      src/views/clue/components/data.ts
  2. 2
      src/views/clue/customer/data.ts
  3. 16
      src/views/invite/index/index.vue

22
src/views/clue/components/data.ts

@ -1,7 +1,7 @@
import { FormSchema } from '/@/components/Table'
import { ref } from 'vue'
import dayjs, { Dayjs } from 'dayjs'
import { genderList, channelList, clueStatusList, followStatusList, paymentList, marriageList } from '/@/enums/customerEnum'
import { genderList, channelList, clueStatusList, followStatusList, paymentList, marriageList, incomeList } from '/@/enums/customerEnum'
import { useAddressData } from '/@/hooks/common'
import {
getIncomeList,
@ -117,15 +117,27 @@ export const modalFormSchema: FormSchema[] = [
},
},
},
// {
// field: 'incomeCode',
// label: '月收入',
// colProps: { span: 8 },
// component: 'ApiSelect',
// componentProps: {
// labelField: 'desc',
// api: getIncomeList,
// getPopupContainer: () => document.body,
// onChange: (_: any, v: any) => {
// basicInfoData.value.income = v?.label
// },
// },
// },
{
field: 'incomeCode',
label: '月收入',
colProps: { span: 8 },
component: 'ApiSelect',
component: 'Select',
componentProps: {
labelField: 'desc',
api: getIncomeList,
getPopupContainer: () => document.body,
options: incomeList,
onChange: (_: any, v: any) => {
basicInfoData.value.income = v?.label
},

2
src/views/clue/customer/data.ts

@ -18,6 +18,8 @@ import {
getCarPurchaseSituation,
} from '/@/api/essentialData'
import { incomeList } from '/@/enums/customerEnum'
import { getStoreTeam } from '/@/api/clue'
// 基础信息的额外数据

16
src/views/invite/index/index.vue

@ -103,14 +103,14 @@
showTableSetting: false,
api: getInvitationPage,
rowKey: 'id',
// rowSelection: {
// type: 'checkbox',
// onChange,
// // getCheckboxProps(record: any) {
// // // Demo: id0
// // return { disabled: record.allocationStatus !== 1 };
// // },
// },
rowSelection: {
type: 'checkbox',
onChange,
getCheckboxProps(record: any) {
// Demo: id0
return true;
},
},
formConfig: {
labelWidth: 120,
schemas: tableFormSchema,

Loading…
Cancel
Save