fix: 国际进港装机单修改库位及入库接口修正
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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