|
|
@@ -46,6 +46,7 @@ import { _baseURL, API } from '../../../configs/api.config'
|
|
|
import { analysisFormData } from '../../../utils/common/form.request'
|
|
|
import { connect } from 'react-redux'
|
|
|
import './currency-detail.less'
|
|
|
+import FormEnclosure from '../formNew/FormEnclosure'
|
|
|
|
|
|
const alert = Modal.alert
|
|
|
const CheckboxItem = Checkbox.CheckboxItem
|
|
|
@@ -179,23 +180,31 @@ class CurrencyDetail extends Component {
|
|
|
if (billModel.renderer == 'detailAttach') {
|
|
|
itemViewType = 2
|
|
|
}
|
|
|
+ //测试
|
|
|
+ if (billModel.sourcetype == 'MF') {
|
|
|
+ itemViewType = 2
|
|
|
+ }
|
|
|
switch (itemViewType) {
|
|
|
case 1:
|
|
|
formItems.push(
|
|
|
- <FormInput billModel={billModel} groupIndex={g}
|
|
|
- childIndex={i}
|
|
|
- baseUrl={_baseURL}
|
|
|
- onTextChange={this.onTextChange.bind(this)}
|
|
|
- onInputClick={this.onInputClick.bind(this)}/>,
|
|
|
+ <FormInput
|
|
|
+ billModel={billModel}
|
|
|
+ groupIndex={g}
|
|
|
+ childIndex={i}
|
|
|
+ baseUrl={_baseURL}
|
|
|
+ onTextChange={this.onTextChange.bind(this)}
|
|
|
+ onInputClick={this.onInputClick.bind(this)}/>,
|
|
|
)
|
|
|
break
|
|
|
case 2:
|
|
|
//附件
|
|
|
- /*formItems.push(
|
|
|
- <FormEnclosure billModel={billModel} groupIndex={g}
|
|
|
- baseUrl={_baseURL}
|
|
|
- childIndex={i}/>,
|
|
|
- )*/
|
|
|
+ formItems.push(
|
|
|
+ <FormEnclosure
|
|
|
+ billModel={billModel}
|
|
|
+ groupIndex={g}
|
|
|
+ baseUrl={_baseURL}
|
|
|
+ childIndex={i}/>,
|
|
|
+ )
|
|
|
break
|
|
|
default:
|
|
|
break
|
|
|
@@ -658,7 +667,6 @@ class CurrencyDetail extends Component {
|
|
|
selectModel: billModel,
|
|
|
})
|
|
|
Toast.loading('数据请求中', 0)
|
|
|
- let type = billModel.type
|
|
|
if (billIsCombo(billModel)) {
|
|
|
//单项选择
|
|
|
this.getComboValue(billModel)
|