|  | @@ -147,7 +147,7 @@
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  | -import { detail, submit, checkWarehousing, getStoragetree, getStorage, getAllgoods, financingExcess, revokeWarehousing } from "@/api/purchasingManagement/inStock";
 | 
	
		
			
				|  |  | +import { detail, submit, checkWarehousing, getStoragetree, getStorage, getAllgoods, financingExcess, revokeWarehousing,delItem } from "@/api/purchasingManagement/inStock";
 | 
	
		
			
				|  |  |  import tableOption from "./config/customerContact.json";
 | 
	
		
			
				|  |  |  import feeInfo from "@/components/fee-info/main";
 | 
	
		
			
				|  |  |  import checkSchedule from "../../../components/check/checkSchedule";
 | 
	
	
		
			
				|  | @@ -411,11 +411,21 @@ export default {
 | 
	
		
			
				|  |  |          cancelButtonText: "取消",
 | 
	
		
			
				|  |  |          type: "warning"
 | 
	
		
			
				|  |  |        }).then(() => {
 | 
	
		
			
				|  |  | -        this.$message({
 | 
	
		
			
				|  |  | -          type: "success",
 | 
	
		
			
				|  |  | -          message: "删除成功!"
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | -        this.itemsVOList.splice(row.$index, 1);
 | 
	
		
			
				|  |  | +        if (row.id) {
 | 
	
		
			
				|  |  | +          delItem({ itemId: row.id }).then(res => {
 | 
	
		
			
				|  |  | +            this.$message({
 | 
	
		
			
				|  |  | +              type: "success",
 | 
	
		
			
				|  |  | +              message: "删除成功!"
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +            this.itemsVOList.splice(row.$index, 1);
 | 
	
		
			
				|  |  | +          });
 | 
	
		
			
				|  |  | +        } else {
 | 
	
		
			
				|  |  | +          this.$message({
 | 
	
		
			
				|  |  | +            type: "success",
 | 
	
		
			
				|  |  | +            message: "删除成功!"
 | 
	
		
			
				|  |  | +          });
 | 
	
		
			
				|  |  | +          this.itemsVOList.splice(row.$index, 1);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getDetail(id) {
 | 
	
	
		
			
				|  | @@ -448,6 +458,7 @@ export default {
 | 
	
		
			
				|  |  |            delete res.data.data.status
 | 
	
		
			
				|  |  |            res.data.data.stockTime = getCurrentDate()
 | 
	
		
			
				|  |  |            res.data.data.itemsVOList.forEach(e => {
 | 
	
		
			
				|  |  | +            e.storageInQuantity=e.balanceNumber
 | 
	
		
			
				|  |  |              delete e.id
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  |            this.form = res.data.data;
 |