fix: 国际进港分单编辑主分校验使用总件数,并加大件数与重量间距
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -49,7 +49,7 @@ class IntImpManifestSubEditActivity :
|
|||||||
Intent(context, IntImpManifestSubEditActivity::class.java)
|
Intent(context, IntImpManifestSubEditActivity::class.java)
|
||||||
.putExtra(Constant.Key.PAGE_TYPE, DetailsPageType.Add.name)
|
.putExtra(Constant.Key.PAGE_TYPE, DetailsPageType.Add.name)
|
||||||
.putExtra(Constant.Key.BEAN, manifest)
|
.putExtra(Constant.Key.BEAN, manifest)
|
||||||
.putExtra(KEY_MAIN_PC, manifest.pc)
|
.putExtra(KEY_MAIN_PC, manifest.totalPc)
|
||||||
.putExtra(KEY_MAIN_WEIGHT, manifest.weight)
|
.putExtra(KEY_MAIN_WEIGHT, manifest.weight)
|
||||||
.putExtra(KEY_OTHER_SUB_PC, otherSubPc)
|
.putExtra(KEY_OTHER_SUB_PC, otherSubPc)
|
||||||
.putExtra(KEY_OTHER_SUB_WEIGHT, otherSubWeight)
|
.putExtra(KEY_OTHER_SUB_WEIGHT, otherSubWeight)
|
||||||
@@ -70,7 +70,7 @@ class IntImpManifestSubEditActivity :
|
|||||||
.putExtra(Constant.Key.PAGE_TYPE, DetailsPageType.Modify.name)
|
.putExtra(Constant.Key.PAGE_TYPE, DetailsPageType.Modify.name)
|
||||||
.putExtra(Constant.Key.BEAN, manifest)
|
.putExtra(Constant.Key.BEAN, manifest)
|
||||||
.putExtra("haWb", haWb)
|
.putExtra("haWb", haWb)
|
||||||
.putExtra(KEY_MAIN_PC, manifest.pc)
|
.putExtra(KEY_MAIN_PC, manifest.totalPc)
|
||||||
.putExtra(KEY_MAIN_WEIGHT, manifest.weight)
|
.putExtra(KEY_MAIN_WEIGHT, manifest.weight)
|
||||||
.putExtra(KEY_OTHER_SUB_PC, otherSubPc)
|
.putExtra(KEY_OTHER_SUB_PC, otherSubPc)
|
||||||
.putExtra(KEY_OTHER_SUB_WEIGHT, otherSubWeight)
|
.putExtra(KEY_OTHER_SUB_WEIGHT, otherSubWeight)
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ class IntImpManifestSubEditViewModel : BaseViewModel() {
|
|||||||
val totalSubPc = otherSubPc + currentPc
|
val totalSubPc = otherSubPc + currentPc
|
||||||
val totalSubWeight = otherSubWeight + currentWeight
|
val totalSubWeight = otherSubWeight + currentWeight
|
||||||
|
|
||||||
mainSubCheck.value = "${totalSubPc}/${mainPc} ${formatWeight(totalSubWeight)}/${formatWeight(mainWeight)}KG"
|
mainSubCheck.value = "${totalSubPc}/${mainPc} ${formatWeight(totalSubWeight)}/${formatWeight(mainWeight)}KG"
|
||||||
|
|
||||||
// 件数或重量任一超过主单则校验不通过
|
// 件数或重量任一超过主单则校验不通过
|
||||||
isCheckValid.value = totalSubPc <= mainPc && totalSubWeight <= mainWeight
|
isCheckValid.value = totalSubPc <= mainPc && totalSubWeight <= mainWeight
|
||||||
|
|||||||
Reference in New Issue
Block a user