fix: 国际进港装机单修改库位及入库接口修正
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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": []
|
||||
|
||||
@@ -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>
|
||||
|
||||
/**
|
||||
* 国际进港理货报告-分页查询
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user