fix: 国际进港装机单修改库位及入库接口修正

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 16:06:29 +08:00
parent f04cf81ff2
commit 06d0244e24
5 changed files with 22 additions and 5 deletions

View File

@@ -74,7 +74,10 @@
"mcp__playwright__browser_take_screenshot",
"mcp__playwright__browser_snapshot",
"Bash(/tmp/communicate_type_findings.md:*)",
"Read(//tmp/**)"
"Read(//tmp/**)",
"mcp__apifox__read_project_oas_3gn3lx",
"mcp__apifox__read_project_oas_ref_resources_3gn3lx",
"mcp__apifox__refresh_project_oas_3gn3lx"
],
"deny": [],
"ask": []

View File

@@ -1852,6 +1852,20 @@ interface Api {
@POST("IntImpManifest/modifyManifestAir")
suspend fun modifyIntImpLoadingList(@Body data: RequestBody): BaseResultBean<String>
/**
* 国际进港舱单-分拣理货(装机单)-修改库位
* 接口路径: /IntImpManifest/modifyStorage
*/
@POST("IntImpManifest/modifyStorage")
suspend fun modifyIntImpLoadingStorage(@Body data: RequestBody): BaseResultBean<Boolean>
/**
* 国际进港舱单-分拣理货(装机单)-入库
* 接口路径: /IntImpManifest/inStorage
*/
@POST("IntImpManifest/inStorage")
suspend fun inIntImpLoadingStorage(@Body data: RequestBody): BaseResultBean<Boolean>
/**
* 国际进港理货报告-分页查询
*/

View File

@@ -50,7 +50,7 @@ class IntImpInStorageDialogModel(
* 加载库位列表
*/
private fun loadLocationList() {
launchCollect({ NetApply.api.getLocationList(flag = 4) }) {
launchCollect({ NetApply.api.getLocationList(flag = 3) }) {
onSuccess = { result ->
val list = result.data?.map { it.toKeyValue() } ?: emptyList()
locationList.value = list

View File

@@ -50,7 +50,7 @@ class IntImpModifyStorageDialogModel(
* 加载库位列表
*/
private fun loadLocationList() {
launchCollect({ NetApply.api.getLocationList(flag = 4) }) {
launchCollect({ NetApply.api.getLocationList(flag = 3) }) {
onSuccess = { result ->
val list = result.data?.map { it.toKeyValue() } ?: emptyList()
locationList.value = list

View File

@@ -227,7 +227,7 @@ class IntImpLoadingListViewModel : BasePageViewModel(), IOnItemClickListener {
"manifestList" to selectedItems
).toRequestBody()
launchLoadingCollect({ NetApply.api.modifyIntImpStorage(params) }) {
launchLoadingCollect({ NetApply.api.modifyIntImpLoadingStorage(params) }) {
onSuccess = {
showToast("修改库位成功")
viewModelScope.launch {
@@ -265,7 +265,7 @@ class IntImpLoadingListViewModel : BasePageViewModel(), IOnItemClickListener {
"manifestList" to selectedItems
).toRequestBody()
launchLoadingCollect({ NetApply.api.inIntImpStorage(params) }) {
launchLoadingCollect({ NetApply.api.inIntImpLoadingStorage(params) }) {
onSuccess = {
showToast("入库成功")
viewModelScope.launch {