|
@@ -11,7 +11,6 @@ import {
|
|
|
DatePicker,
|
|
DatePicker,
|
|
|
List,
|
|
List,
|
|
|
Modal,
|
|
Modal,
|
|
|
- Toast,
|
|
|
|
|
} from 'antd-mobile'
|
|
} from 'antd-mobile'
|
|
|
import { isObjEmpty, isObjNull } from '../../../utils/common/common.util'
|
|
import { isObjEmpty, isObjNull } from '../../../utils/common/common.util'
|
|
|
import moment from 'moment'
|
|
import moment from 'moment'
|
|
@@ -95,22 +94,25 @@ export default class FormInput extends Component {
|
|
|
</div>
|
|
</div>
|
|
|
{valueItem}
|
|
{valueItem}
|
|
|
{billIsSelect(billModel) &&
|
|
{billIsSelect(billModel) &&
|
|
|
- <Modal visible={modalOpen}
|
|
|
|
|
- animationType={'slide-up'}
|
|
|
|
|
- onClose={() => {
|
|
|
|
|
- this.setState({
|
|
|
|
|
- modalOpen: false,
|
|
|
|
|
- })
|
|
|
|
|
- }}
|
|
|
|
|
- title={billModel.caption}
|
|
|
|
|
- popup
|
|
|
|
|
|
|
+ <Modal
|
|
|
|
|
+ visible={modalOpen}
|
|
|
|
|
+ animationType={'slide-up'}
|
|
|
|
|
+ onClose={() => {
|
|
|
|
|
+ this.setState({
|
|
|
|
|
+ modalOpen: false,
|
|
|
|
|
+ })
|
|
|
|
|
+ }}
|
|
|
|
|
+ title={billModel.caption}
|
|
|
|
|
+ popup
|
|
|
>
|
|
>
|
|
|
<List className='form-common-modal-root'>
|
|
<List className='form-common-modal-root'>
|
|
|
{modalList && (
|
|
{modalList && (
|
|
|
modalList.map((modalObj, index) => (
|
|
modalList.map((modalObj, index) => (
|
|
|
- <List.Item key={index}
|
|
|
|
|
- onClick={this.onModalSelect.bind(this,
|
|
|
|
|
- index)}>{modalObj.value + ''}</List.Item>
|
|
|
|
|
|
|
+ <List.Item
|
|
|
|
|
+ key={index}
|
|
|
|
|
+ onClick={this.onModalSelect.bind(this,
|
|
|
|
|
+ index)}>{modalObj.value + ''}
|
|
|
|
|
+ </List.Item>
|
|
|
))
|
|
))
|
|
|
)}
|
|
)}
|
|
|
</List>
|
|
</List>
|
|
@@ -217,6 +219,20 @@ export default class FormInput extends Component {
|
|
|
</DatePicker>
|
|
</DatePicker>
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 日期区间类型
|
|
|
|
|
+ * @param type
|
|
|
|
|
+ * @param billModel
|
|
|
|
|
+ * @returns {*}
|
|
|
|
|
+ */
|
|
|
|
|
+ getDateRangeCom (type, billModel) {
|
|
|
|
|
+ return (
|
|
|
|
|
+ <div className='form-input-value'>
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
|
|
+ )
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 数字类型输入框
|
|
* 数字类型输入框
|
|
|
* @returns {*}
|
|
* @returns {*}
|