|
@@ -47,8 +47,6 @@ class AddVisaPaymentActivity : BaseActivity<ActivityAddVisaPaymentBinding>() {
|
|
|
|
|
|
private var customerSelectList = ArrayList<Selector>()
|
|
|
|
|
|
- private var priceUnitSelect = false
|
|
|
-
|
|
|
private var priceUnit = -1
|
|
|
|
|
|
private var priceUnitList = ArrayList<Selector>()
|
|
@@ -97,8 +95,6 @@ class AddVisaPaymentActivity : BaseActivity<ActivityAddVisaPaymentBinding>() {
|
|
|
if (fromList) {
|
|
|
binding.priceUnit.text = getStringExtra("paymentCurrency")
|
|
|
binding.sumUnit.text = getStringExtra("paymentCurrency")
|
|
|
-
|
|
|
- priceUnitSelect = true
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -278,7 +274,6 @@ class AddVisaPaymentActivity : BaseActivity<ActivityAddVisaPaymentBinding>() {
|
|
|
binding.priceUnit.text = priceUnitList[position].currencyCode
|
|
|
binding.sumUnit.text = priceUnitList[position].currencyCode
|
|
|
priceUnit = priceUnitList[position].currencyId
|
|
|
- priceUnitSelect = true
|
|
|
|
|
|
popupWindow.dismiss()
|
|
|
}
|
|
@@ -459,6 +454,14 @@ class AddVisaPaymentActivity : BaseActivity<ActivityAddVisaPaymentBinding>() {
|
|
|
updateVisaPaymentRequest.id = paymentId
|
|
|
updateVisaPaymentRequest.diId = groupId
|
|
|
|
|
|
+ //2024-04-26 添加签证描述
|
|
|
+ if (binding.visaDescription.getText().isBlank()) {
|
|
|
+ showMessage(resources.getString(R.string.visa_description_hint))
|
|
|
+ return@setOnClickListener
|
|
|
+ } else {
|
|
|
+ updateVisaPaymentRequest.visaDescription = binding.visaDescription.getText()
|
|
|
+ }
|
|
|
+
|
|
|
if (customerSelectList.size == 0) {
|
|
|
showMessage(resources.getString(R.string.customer_select_hint))
|
|
|
return@setOnClickListener
|
|
@@ -487,7 +490,7 @@ class AddVisaPaymentActivity : BaseActivity<ActivityAddVisaPaymentBinding>() {
|
|
|
updateVisaPaymentRequest.visaPrice = binding.visaPrice.text.toString().toDouble()
|
|
|
}
|
|
|
|
|
|
- if (!priceUnitSelect) {
|
|
|
+ if (priceUnit == -1) {
|
|
|
showMessage(resources.getString(R.string.payment_currency_hint))
|
|
|
return@setOnClickListener
|
|
|
} else {
|
|
@@ -810,6 +813,9 @@ class AddVisaPaymentActivity : BaseActivity<ActivityAddVisaPaymentBinding>() {
|
|
|
if (visaPaymentDetailResponse != null) {
|
|
|
if (visaPaymentDetailResponse.code == 200) {
|
|
|
|
|
|
+ //2024-04-26 添加签证描述
|
|
|
+ binding.visaDescription.setText(visaPaymentDetailResponse.data.visaInfo.visaDescription)
|
|
|
+
|
|
|
val customer =
|
|
|
visaPaymentDetailResponse.data.visaInfo.visaClient.split(",")
|
|
|
|
|
@@ -827,8 +833,7 @@ class AddVisaPaymentActivity : BaseActivity<ActivityAddVisaPaymentBinding>() {
|
|
|
|
|
|
binding.visaPrice.setText(visaPaymentDetailResponse.data.visaInfo.visaPrice.toString())
|
|
|
|
|
|
- updateVisaPaymentRequest.visaCurrency =
|
|
|
- visaPaymentDetailResponse.data.visaInfo.visaCurrency
|
|
|
+ priceUnit = visaPaymentDetailResponse.data.visaInfo.visaCurrency
|
|
|
|
|
|
when (visaPaymentDetailResponse.data.visaInfo.isThird) {
|
|
|
0 -> {
|