23 lines
888 B
TypeScript
23 lines
888 B
TypeScript
import { View } from '@tarojs/components'
|
|
import { useEffect, useState } from 'react'
|
|
import styles from './index.module.scss'
|
|
import CodeModel from './components/codeModel'
|
|
import CompanyModel from './components/companyModel'
|
|
import SelectList from '@/components/selectList'
|
|
import { GetCustomCodeLApi } from '@/api/codeManage'
|
|
import TimePickerPopup from '@/components/timePickerPopup'
|
|
|
|
export default () => {
|
|
const selectList = [
|
|
{ value: 1, label: '码单列表' },
|
|
{ value: 2, label: '抬头列表' },
|
|
]
|
|
const [selectIndex, setSelectIndex] = useState(1)
|
|
return <View className={styles.code_list__main}>
|
|
<SelectList list={selectList} defaultIndex={selectIndex} onSelect={index => setSelectIndex(index)} />
|
|
{selectIndex == 1 && <CodeModel />}
|
|
{selectIndex == 2 && <CompanyModel />}
|
|
{/* <TimePickerPopup showTime /> */}
|
|
</View>
|
|
}
|