新购验收编辑

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,
})
}
// 新购到货-编辑
export function updatePurchaseCheckInfoApi(data) {
return request({
url: '/material/purchase_check_info/update',
method: 'post',
data,
})
}
// 新购到货--删除
export function purchaseCheckInfoRemove(ids) {

View File

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