|
@@ -31,6 +31,11 @@ class Examine extends Component {
|
|
|
starts: {},
|
|
|
list: [],
|
|
|
visible: false,
|
|
|
+ searchType: { title: "按编号", id: 0 },
|
|
|
+ search: [
|
|
|
+ { title: "按编号", id: 0 },
|
|
|
+ { title: "按企业名称", id: 1 },
|
|
|
+ ]
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -91,11 +96,13 @@ class Examine extends Component {
|
|
|
let data = {
|
|
|
pageNo: pageNo,
|
|
|
pageSize: 10,
|
|
|
- // startTime: this.state.rangeStartMinuteVal || undefined,
|
|
|
- // endTime: this.state.rangeEndMinuteVal || undefined,
|
|
|
+ startTime: this.state.rangeStartMinuteVal || undefined,
|
|
|
+ endTime: this.state.rangeEndMinuteVal || undefined,
|
|
|
listStatus: this.state.current,
|
|
|
processStatus: 0,
|
|
|
- checkNo: this.state.searchValue,
|
|
|
+ status: isNaN(parseInt(this.state.starts.id)) ? undefined : String(this.state.starts.id),
|
|
|
+ username: this.state.searchType.id == 1 ? this.state.searchValue : undefined,
|
|
|
+ checkNo: this.state.searchType.id == 0 ? this.state.searchValue : undefined,
|
|
|
}
|
|
|
let msg = await getNewRecordList(removeNull(data));
|
|
|
if (msg.error.length === 0) {
|
|
@@ -143,7 +150,7 @@ class Examine extends Component {
|
|
|
|
|
|
|
|
|
render() {
|
|
|
- const { list } = this.state
|
|
|
+ const { list, searchType, search } = this.state
|
|
|
return (
|
|
|
<View className='indexPage' >
|
|
|
<View className="heads">
|
|
@@ -158,9 +165,22 @@ class Examine extends Component {
|
|
|
</View>
|
|
|
<View className='searchContent'>
|
|
|
<View className='searchTop'>
|
|
|
+ <Picker
|
|
|
+ value={searchType.id}
|
|
|
+ range={search} rangeKey='title' mode='selector'
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({
|
|
|
+ searchType: search[e.detail.value],
|
|
|
+ })
|
|
|
+ }}>
|
|
|
+ <View className='shortValuecontent'>
|
|
|
+ <View className='selectTitle'>{searchType.title}</View>
|
|
|
+ <View className='iconContent'><AtIcon value='chevron-down' size='10' color='#FFFFFF' /></View>
|
|
|
+ </View>
|
|
|
+ </Picker>
|
|
|
<AtSearchBar
|
|
|
showActionButton
|
|
|
- placeholder='请输入报销编号'
|
|
|
+ placeholder='请输入'
|
|
|
value={this.state.searchValue}
|
|
|
onActionClick={() => {
|
|
|
this.getPublicReleaseList();
|
|
@@ -177,6 +197,90 @@ class Examine extends Component {
|
|
|
}}
|
|
|
/>
|
|
|
</View>
|
|
|
+ <ScrollView className={this.state.openSearch ? 'searchBottomLOL' : ''} scrollX style={{ width: '100%' }}>
|
|
|
+ <View className='searchBottom'>
|
|
|
+ <View className='searchItem' style={{ paddingLeft: '5px' }}>
|
|
|
+ <Picker
|
|
|
+ value={this.state.starts.id}
|
|
|
+ range={accountLtate} rangeKey='title' mode='selector'
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({
|
|
|
+ starts: accountLtate[e.detail.value],
|
|
|
+ }, () => {
|
|
|
+ this.getPublicReleaseList();
|
|
|
+ })
|
|
|
+ }}>
|
|
|
+ {
|
|
|
+ !this.state.starts.title ?
|
|
|
+ <View className='shortValuecontent'>
|
|
|
+ <View className='selectTitle'>状态</View>
|
|
|
+ <View className='iconContent'><AtIcon value='chevron-down' size='10' color='#FFFFFF' /></View>
|
|
|
+ </View> :
|
|
|
+ <View className='shortValuecontent'>
|
|
|
+ <View className='selectValue'>
|
|
|
+ {this.state.starts.title}
|
|
|
+ </View>
|
|
|
+ <View className='iconContent' />
|
|
|
+ </View>
|
|
|
+ }
|
|
|
+ </Picker>
|
|
|
+ {
|
|
|
+ this.state.starts.title &&
|
|
|
+ <View className='searchSelectContent'>
|
|
|
+ <View className='selectIcon'
|
|
|
+ onClick={(e) => {
|
|
|
+ e.stopPropagation();
|
|
|
+ this.setState({
|
|
|
+ starts: {}
|
|
|
+ }, () => {
|
|
|
+ this.getPublicReleaseList();
|
|
|
+ })
|
|
|
+ }}>
|
|
|
+ <AtIcon value='close-circle' size='10' color='#FFFFFF' />
|
|
|
+ </View>
|
|
|
+ </View>
|
|
|
+ }
|
|
|
+ </View>
|
|
|
+ <View className='searchItem' onClick={() => {
|
|
|
+ this.setState({
|
|
|
+ isPickerRender: true
|
|
|
+ })
|
|
|
+ }}>
|
|
|
+ <View>
|
|
|
+ {
|
|
|
+ !this.state.rangeStartMinuteVal ?
|
|
|
+ <View className='valuecontent'>
|
|
|
+ <View className='selectTitle'>开始及结束时间</View>
|
|
|
+ <View className='iconContent' ><AtIcon value='chevron-down' size='10' color='#FFFFFF' /></View>
|
|
|
+ </View> :
|
|
|
+ <View className='valuecontent'>
|
|
|
+ <View className='selectValue' >
|
|
|
+ {this.state.rangeStartMinuteVal + "~" + this.state.rangeEndMinuteVal}
|
|
|
+ </View>
|
|
|
+ <View className='iconContent' />
|
|
|
+ </View>
|
|
|
+ }
|
|
|
+ </View>
|
|
|
+ {
|
|
|
+ this.state.rangeStartMinuteVal &&
|
|
|
+ <View className='searchSelectContent'>
|
|
|
+ <View className='selectIcon'
|
|
|
+ onClick={(e) => {
|
|
|
+ e.stopPropagation();
|
|
|
+ this.setState({
|
|
|
+ rangeStartMinuteVal: '',
|
|
|
+ rangeEndMinuteVal: '',
|
|
|
+ }, () => {
|
|
|
+ this.getPublicReleaseList();
|
|
|
+ })
|
|
|
+ }}>
|
|
|
+ <AtIcon value='close-circle' size='10' color='#FFFFFF' />
|
|
|
+ </View>
|
|
|
+ </View>
|
|
|
+ }
|
|
|
+ </View>
|
|
|
+ </View>
|
|
|
+ </ScrollView>
|
|
|
</View>
|
|
|
<AtTabs
|
|
|
swipeable={false}
|
|
@@ -209,7 +313,7 @@ class Examine extends Component {
|
|
|
>
|
|
|
{/* {item.status == 1 && <View className='lbt' onClick={e => { e.stopPropagation(); this.setState({ visible: true, id: item.id }) }}>查看审核详情</View>} */}
|
|
|
<View className='line' style={{ color: "#6190E8" }}>报销编号:{item.checkNo}</View>
|
|
|
- <View className='line' style={{ color: "#6190E8" }}>总金额:{item.totalAmount}元</View>
|
|
|
+ <View className='line' style={{ color: "#6190E8" }}>总金额:{item.amount}元</View>
|
|
|
<View className='line'>报销人:{item.aname}</View>
|
|
|
<View className='line'>报销部门:{item.applyDepName}</View>
|
|
|
<View className='line'>报销时间:{item.createTimeStr}</View>
|
|
@@ -217,7 +321,7 @@ class Examine extends Component {
|
|
|
{
|
|
|
item.sonList?.map((it) =>
|
|
|
<View key={it.id} style={{ marginTop: 10 }}>
|
|
|
- <View className='line'>报销金额(元):{it.totalAmount}</View>
|
|
|
+ <View className='line'>报销金额(元):{it.amount}</View>
|
|
|
<View className='line'>报销类型:
|
|
|
{getAccountName(it.type, it.typeOther)}
|
|
|
{it.type == 2 && (" - " + getSecondaryAccountName(it.secondaryType, it.secondaryTypeOther))}
|