|  | @@ -3113,7 +3113,6 @@ export default {
 | 
	
		
			
				|  |  |          fGoodsid: [{ required: true, message: " ", trigger: "blur" }],
 | 
	
		
			
				|  |  |          fBusinessType: [{ required: true, message: " ", trigger: "blur" }],
 | 
	
		
			
				|  |  |          fMarks: [{ required: true, message: " ", trigger: "blur" }],
 | 
	
		
			
				|  |  | -        fWarehouselocid: [{ required: true, message: " ", trigger: "blur" }],
 | 
	
		
			
				|  |  |          fPackagespecs: [{ required: true, message: " ", trigger: "blur" }],
 | 
	
		
			
				|  |  |          fTruckno: [{ required: true, message: " ", trigger: "blur" }],
 | 
	
		
			
				|  |  |        },
 | 
	
	
		
			
				|  | @@ -4035,8 +4034,14 @@ export default {
 | 
	
		
			
				|  |  |      imporTable() {
 | 
	
		
			
				|  |  |        this.$refs["importList"].validate((valid) => {
 | 
	
		
			
				|  |  |          if (valid) {
 | 
	
		
			
				|  |  | +          if (!this.importList.fWarehouselocid) {
 | 
	
		
			
				|  |  | +            return this.$message.error("库区不能为空");
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  |            for (let item in this.detailList) {
 | 
	
		
			
				|  |  | -            if (this.importList.fCntrno == this.detailList[item].fCntrno) {
 | 
	
		
			
				|  |  | +            if (
 | 
	
		
			
				|  |  | +              this.importList.fCntrno == this.detailList[item].fCntrno &&
 | 
	
		
			
				|  |  | +              this.importList.fCntrno
 | 
	
		
			
				|  |  | +            ) {
 | 
	
		
			
				|  |  |                return this.$message.error("箱号不能重复");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            }
 | 
	
	
		
			
				|  | @@ -4077,7 +4082,14 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      fiximporTable() {
 | 
	
		
			
				|  |  | -      console.log(this.importList);
 | 
	
		
			
				|  |  | +      for (let item in this.detailList) {
 | 
	
		
			
				|  |  | +        if (
 | 
	
		
			
				|  |  | +          this.importList.fCntrno == this.detailList[item].fCntrno &&
 | 
	
		
			
				|  |  | +          this.importList.fCntrno
 | 
	
		
			
				|  |  | +        ) {
 | 
	
		
			
				|  |  | +          return this.$message.error("箱号不能重复");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        this.detailList[this.fixdetaiNum] = this.importList;
 | 
	
		
			
				|  |  |        this.weightList = false;
 | 
	
		
			
				|  |  |      },
 | 
	
	
		
			
				|  | @@ -4275,6 +4287,9 @@ export default {
 | 
	
		
			
				|  |  |            this.importList.fQty = Number(
 | 
	
		
			
				|  |  |              (this.form.fPlanqty - this.sumMum).toFixed(2)
 | 
	
		
			
				|  |  |            );
 | 
	
		
			
				|  |  | +          if (this.importList.fQty < 0) {
 | 
	
		
			
				|  |  | +            this.importList.fQty = 0;
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  |            if (this.form.fTruckno) {
 | 
	
		
			
				|  |  |              this.importList.fTruckno = this.form.fTruckno;
 | 
	
		
			
				|  |  |            }
 |