fix: 国际进港舱单理货完成去掉库位弹框直接调用发放接口

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-09-11 15:58:32 +08:00
parent f6e5b37eaa
commit a1d078db7a

View File

@@ -556,7 +556,7 @@ class IntImpManifestViewModel : BasePageViewModel() {
} }
/** /**
* 货物发放 * 理货完成(货物发放):库位已在「开始理货」时录入,此处不再弹库位框,直接提交所选运单
*/ */
fun cargoReleaseClick() { fun cargoReleaseClick() {
val list = pageModel.rv?.commonAdapter()?.items as? List<GjjManifest> ?: return val list = pageModel.rv?.commonAdapter()?.items as? List<GjjManifest> ?: return
@@ -567,12 +567,7 @@ class IntImpManifestViewModel : BasePageViewModel() {
return return
} }
IntImpModifyStorageDialogModel { dialog -> val params = mapOf("manifestList" to selectedItems).toRequestBody()
val params = mapOf(
"location" to dialog.locationName,
"locationId" to dialog.locationId.toLongOrNull(),
"manifestList" to selectedItems
).toRequestBody()
launchLoadingCollect({ NetApply.api.intImpManifestPutUpCargo(params) }) { launchLoadingCollect({ NetApply.api.intImpManifestPutUpCargo(params) }) {
onSuccess = { onSuccess = {
@@ -584,7 +579,6 @@ class IntImpManifestViewModel : BasePageViewModel() {
} }
} }
} }
}.show()
} }
/** /**