|
|
@@ -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,22 +180,30 @@ 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:
|
|
|
@@ -658,7 +667,6 @@ class CurrencyDetail extends Component {
|
|
|
selectModel: billModel,
|
|
|
})
|
|
|
Toast.loading('数据请求中', 0)
|
|
|
- let type = billModel.type
|
|
|
if (billIsCombo(billModel)) {
|
|
|
//单项选择
|
|
|
this.getComboValue(billModel)
|
|
|
@@ -709,7 +717,9 @@ class CurrencyDetail extends Component {
|
|
|
fetchPostObj(API.APPCOMMON_DBFIND,
|
|
|
params).then(response => {
|
|
|
Toast.hide()
|
|
|
- let dbfinds = response.data.dbfinds || response.data.gridDbfinds
|
|
|
+ let dbfinds = !isObjEmpty(response.data.dbfinds)
|
|
|
+ ? response.data.dbfinds
|
|
|
+ : response.data.gridDbfinds
|
|
|
if (isObjEmpty(dbfinds)) {
|
|
|
message.warn('选项数据为空')
|
|
|
return
|