Commit 1f67fbdf by peii

临调下单添加医生为配置

parent 57ae7633
Showing with 30 additions and 12 deletions
...@@ -579,6 +579,7 @@ class SelfOrderPage extends Component { ...@@ -579,6 +579,7 @@ class SelfOrderPage extends Component {
let tempTit = '' let tempTit = ''
let curTip = '未选择' let curTip = '未选择'
const {isLendOrder} = navigation.getParam('params') const {isLendOrder} = navigation.getParam('params')
const doctorNameProfile = this.decodeDisplayLendProfile('PATIENT_NAME_DISPLAY')
const patientNameProfile = this.decodeDisplayLendProfile('PATIENT_NAME_DISPLAY') const patientNameProfile = this.decodeDisplayLendProfile('PATIENT_NAME_DISPLAY')
const patientGenderProfile = this.decodeDisplayLendProfile('PATIENT_GENDER_DISPLAY') const patientGenderProfile = this.decodeDisplayLendProfile('PATIENT_GENDER_DISPLAY')
const patientAgeProfile = this.decodeDisplayLendProfile('PATIENT_AGE_DISPLAY') const patientAgeProfile = this.decodeDisplayLendProfile('PATIENT_AGE_DISPLAY')
...@@ -611,6 +612,7 @@ class SelfOrderPage extends Component { ...@@ -611,6 +612,7 @@ class SelfOrderPage extends Component {
if (isLendOrder && if (isLendOrder &&
(chIndex == 20 && patientNameProfile.required || (chIndex == 20 && patientNameProfile.required ||
chIndex == 5 && doctorNameProfile.required ||
chIndex == 21 && patientGenderProfile.required || chIndex == 21 && patientGenderProfile.required ||
chIndex == 22 && patientAgeProfile.required || chIndex == 22 && patientAgeProfile.required ||
chIndex == 23 && hospitalizationNumberProfile.required || chIndex == 23 && hospitalizationNumberProfile.required ||
...@@ -2132,18 +2134,34 @@ class SelfOrderPage extends Component { ...@@ -2132,18 +2134,34 @@ class SelfOrderPage extends Component {
listCallBack={() => this.handleShipCheck(listOptionData[4])} listCallBack={() => this.handleShipCheck(listOptionData[4])}
listHasArrow={true} listHasArrow={true}
/> />
<PageListArrow {
listActOpa={.8} isLendOrder ? (doctorNameProfile.show &&
// listHasAster={true} <PageListArrow
listItem={listOptionData[5]} listActOpa={.8}
listName={'name'} listHasAster={doctorNameProfile.required}
listTitle={'title'} listItem={listOptionData[5]}
listCallBack={() => this.handleDoctorCheck(listOptionData[5])} listName={'name'}
listHasArrow={true} listTitle={'title'}
listOtherInput={'请输入主治医生'} listCallBack={() => this.handleDoctorCheck(listOptionData[5])}
otherInput={'showInput'} listHasArrow={true}
otherInputCallBack={(text) => this.handleDoctorInput(text, listOptionData[5])} listOtherInput={'请输入主治医生'}
/> otherInput={'showInput'}
otherInputCallBack={(text) => this.handleDoctorInput(text, listOptionData[5])}
/>) : (
<PageListArrow
listActOpa={.8}
// listHasAster={true}
listItem={listOptionData[5]}
listName={'name'}
listTitle={'title'}
listCallBack={() => this.handleDoctorCheck(listOptionData[5])}
listHasArrow={true}
listOtherInput={'请输入主治医生'}
otherInput={'showInput'}
otherInputCallBack={(text) => this.handleDoctorInput(text, listOptionData[5])}
/>
)
}
{/* <PageListArrow {/* <PageListArrow
listActOpa={.8} listActOpa={.8}
listHasAster={true} listHasAster={true}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment