diff --git a/yxt-as-ui/src/api/storage/oldPartsInvertory.js b/yxt-as-ui/src/api/storage/oldPartsInvertory.js index d422268adb..8b1c0e2c80 100644 --- a/yxt-as-ui/src/api/storage/oldPartsInvertory.js +++ b/yxt-as-ui/src/api/storage/oldPartsInvertory.js @@ -15,8 +15,9 @@ export default { // 获取旧件出入库记录详情 init: function(data) { return request({ - url: '/wms/apiadmin/WmsOldInventory/getDetailsList?sid=' + data, - method: 'get' + url: '/wms/apiadmin/WmsOldInventory/getDetailsList', + method: 'get', + params: data }) }, deleteBySids: function(data) { diff --git a/yxt-as-ui/src/views/purchase/purchasereturn/purchasereturn.vue b/yxt-as-ui/src/views/purchase/purchasereturn/purchasereturn.vue index 704ffac16e..6b7b992337 100644 --- a/yxt-as-ui/src/views/purchase/purchasereturn/purchasereturn.vue +++ b/yxt-as-ui/src/views/purchase/purchasereturn/purchasereturn.vue @@ -284,7 +284,7 @@ export default { userSid: '' } } - this.init() + this.getList() }, toAdd() { this.viewState = 2 diff --git a/yxt-as-ui/src/views/workFlow/oldpPartStocktakingLossFlow/oldpPartStocktakingLossEdit.vue b/yxt-as-ui/src/views/workFlow/oldpPartStocktakingLossFlow/oldpPartStocktakingLossEdit.vue index 50d820fb98..cc5b9012c5 100644 --- a/yxt-as-ui/src/views/workFlow/oldpPartStocktakingLossFlow/oldpPartStocktakingLossEdit.vue +++ b/yxt-as-ui/src/views/workFlow/oldpPartStocktakingLossFlow/oldpPartStocktakingLossEdit.vue @@ -263,7 +263,6 @@ showAdd() { this.title = "【新增】" - this.init() this.$nextTick(() => { this.$refs['form_obj'].clearValidate() }) diff --git a/yxt-as-ui/src/views/workFlow/oldpPartStocktakingSurplusFlow/oldpPartStocktakingSurplusEdit.vue b/yxt-as-ui/src/views/workFlow/oldpPartStocktakingSurplusFlow/oldpPartStocktakingSurplusEdit.vue index 023dda1abc..35c27969da 100644 --- a/yxt-as-ui/src/views/workFlow/oldpPartStocktakingSurplusFlow/oldpPartStocktakingSurplusEdit.vue +++ b/yxt-as-ui/src/views/workFlow/oldpPartStocktakingSurplusFlow/oldpPartStocktakingSurplusEdit.vue @@ -296,7 +296,6 @@ }, showAdd() { this.title = "【新增】" - this.init() this.$nextTick(() => { this.$refs['form_obj'].clearValidate() })