新购验收编辑

This commit is contained in:
bb_pan 2025-07-29 18:34:38 +08:00
parent 20849314db
commit 2ab360e93b
2 changed files with 14 additions and 4 deletions

View File

@ -35,6 +35,14 @@ export function updatePurchaseCheckInfo(data) {
data: data, data: data,
}) })
} }
// 新购到货-编辑
export function updatePurchaseCheckInfoApi(data) {
return request({
url: '/material/purchase_check_info/update',
method: 'post',
data,
})
}
// 新购到货--删除 // 新购到货--删除
export function purchaseCheckInfoRemove(ids) { export function purchaseCheckInfoRemove(ids) {

View File

@ -338,7 +338,7 @@ import {
getPurchaseCheckInfo, getPurchaseCheckInfo,
equipmentTypeTree, equipmentTypeTree,
addPurchaseCheckInfo, addPurchaseCheckInfo,
updatePurchaseCheckInfo updatePurchaseCheckInfoApi
} from '@/api/purchase/goodsArrived' } from '@/api/purchase/goodsArrived'
import { getListFacturer } from '@/api/ma/supplier' import { getListFacturer } from '@/api/ma/supplier'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
@ -874,7 +874,7 @@ export default {
.then(function () {}) .then(function () {})
.then(() => { .then(() => {
this.loading = true this.loading = true
updatePurchaseCheckInfo({ updatePurchaseCheckInfoApi({
purchaseCheckDetailsList: this.equipmentList, purchaseCheckDetailsList: this.equipmentList,
purchaseCheckInfo: this.maForm purchaseCheckInfo: this.maForm
}).then(response => { }).then(response => {
@ -887,7 +887,9 @@ export default {
this.$tab.closePage() this.$tab.closePage()
}) })
}) })
.catch(() => {}) .catch(() => {
this.loading = false
})
} }
} }
}) })