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({
 | 
			
		||||
    url: '/material/scrap_apply_details/delete',
 | 
			
		||||
    method: 'post',
 | 
			
		||||
    data,
 | 
			
		||||
    url: '/material/lease_apply_info/' + ids,
 | 
			
		||||
    method: 'delete',
 | 
			
		||||
  })
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -108,4 +108,13 @@ export function inventoryPass(data) {
 | 
			
		|||
      method: 'post',
 | 
			
		||||
      data: data
 | 
			
		||||
  })
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 删除-报废
 | 
			
		||||
export function applyDetailApi(data) {
 | 
			
		||||
  return request({
 | 
			
		||||
    url: '/material/scrap_apply_details/delete',
 | 
			
		||||
    method: 'post',
 | 
			
		||||
    data
 | 
			
		||||
  })
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -141,7 +141,7 @@ import {
 | 
			
		|||
  applyRemove,
 | 
			
		||||
 | 
			
		||||
} 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 printJS from 'print-js';
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -311,7 +311,7 @@ export default {
 | 
			
		|||
      this.$modal
 | 
			
		||||
        .confirm("是否确认删除所选择的数据项?")
 | 
			
		||||
        .then(function () {
 | 
			
		||||
          return applyRemove({ taskId: row.taskId })
 | 
			
		||||
          return applyDetailApi({ taskId: row.taskId })
 | 
			
		||||
        })
 | 
			
		||||
        .then(() => {
 | 
			
		||||
          this.getList();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue