|
|
@@ -55,6 +55,7 @@ class ConsultationSheetActivity :
|
|
|
Manifest.permission.CAMERA
|
|
|
).toTypedArray()
|
|
|
|
|
|
+ private var isConsultation = ""
|
|
|
private var id: String = ""
|
|
|
private var imageList = mutableListOf<UploadImgBean>()
|
|
|
private lateinit var emptyUploadImgBean: UploadImgBean
|
|
|
@@ -196,8 +197,10 @@ class ConsultationSheetActivity :
|
|
|
btnSubmit.setOnTouchListener(this@ConsultationSheetActivity)
|
|
|
radioBeenHospital.setOnCheckedChangeListener { group, checkedId ->
|
|
|
if (checkedId == R.id.radioYes) {
|
|
|
+ isConsultation = "0"
|
|
|
purchaseConsultationBean.isConsultation = "0"
|
|
|
} else if (checkedId == R.id.radioNo) {
|
|
|
+ isConsultation = "1"
|
|
|
purchaseConsultationBean.isConsultation = "1"
|
|
|
}
|
|
|
}
|
|
|
@@ -339,6 +342,7 @@ class ConsultationSheetActivity :
|
|
|
stringBuffer.append(it).append(",")
|
|
|
}
|
|
|
purchaseConsultationBean.let {
|
|
|
+ it.isConsultation = isConsultation
|
|
|
it.remark = binding.editCondition.text.toString()
|
|
|
it.sysUserId = id
|
|
|
it.images = stringBuffer.toString()
|
|
|
@@ -372,7 +376,7 @@ class ConsultationSheetActivity :
|
|
|
"请选择患病多久了".toast()
|
|
|
return false
|
|
|
}
|
|
|
- if (TextUtils.isEmpty(purchaseConsultationBean.isConsultation)) {
|
|
|
+ if (TextUtils.isEmpty(isConsultation)) {
|
|
|
"请选择此次病情是否去医院就诊过".toast()
|
|
|
return false
|
|
|
}
|