This commit is contained in:
parent
d0e00469da
commit
5160fa135d
|
|
@ -63,11 +63,10 @@ export function getAgreement(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 领料申请-删除
|
// 领料申请-删除
|
||||||
export function applyRemove(data) {
|
export function applyRemove(ids) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/scrap_apply_details/delete',
|
url: '/material/lease_apply_info/' + ids,
|
||||||
method: 'post',
|
method: 'delete',
|
||||||
data,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -108,4 +108,13 @@ export function inventoryPass(data) {
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除-报废
|
||||||
|
export function applyDetailApi(data) {
|
||||||
|
return request({
|
||||||
|
url: '/material/scrap_apply_details/delete',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -141,7 +141,7 @@ import {
|
||||||
applyRemove,
|
applyRemove,
|
||||||
|
|
||||||
} from "@/api/lease/apply";
|
} from "@/api/lease/apply";
|
||||||
import { getInventoryList,inventoryPass } from '@/api/repair/scrapLedgerReview';
|
import { getInventoryList,inventoryPass, applyDetailApi } from '@/api/repair/scrapLedgerReview';
|
||||||
import vueEasyPrint from "vue-easy-print";
|
import vueEasyPrint from "vue-easy-print";
|
||||||
import printJS from 'print-js';
|
import printJS from 'print-js';
|
||||||
|
|
||||||
|
|
@ -311,7 +311,7 @@ export default {
|
||||||
this.$modal
|
this.$modal
|
||||||
.confirm("是否确认删除所选择的数据项?")
|
.confirm("是否确认删除所选择的数据项?")
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return applyRemove({ taskId: row.taskId })
|
return applyDetailApi({ taskId: row.taskId })
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue