gjy 3 年之前
父节点
当前提交
6dfda3173f
共有 2 个文件被更改,包括 22 次插入3 次删除
  1. 16 2
      pages/erp/exWarehousing/exWarehousing.vue
  2. 6 1
      pages/erp/warehousing/warehousing.vue

+ 16 - 2
pages/erp/exWarehousing/exWarehousing.vue

@@ -385,9 +385,16 @@
 					for (var i = 0; i < this.contractNoList.length; i++) {
 						if(this.contractNoList[i].contractNo==this.detailData.contractNo){
 							if (this.detailData.inOutType == '销售出库') {
-								this.detailData.tips='买方'+this.contractNoList[i].seller
+								this.detailData.tips='买方'+this.contractNoList[i].buyer
 							} else if (this.detailData.inOutType == '移库出库') {
 								this.detailData.tips='出货库'+this.inOutNoList[0].warehouseName
+							}else if (this.detailData.inOutType == '退库') {
+								if(this.outContractNo[i].contractNo){
+									this.deptBudgetList.tips='卖方'+this.contractNoList[i].seller
+								}
+								else{
+									this.deptBudgetList.tips='入货库'+this.inOutNoList[e[0]].warehouseName
+								}
 							}
 						}
 					}
@@ -405,9 +412,16 @@
 				this.detailData.grade = this.inOutNoList[e[0]].grade
 				this.detailData.inOutType = this.inOutNoList[e[0]].inOutType
 				if (this.detailData.inOutType == '销售出库') {
-					this.detailData.tips='买方'+this.contractNoList[i].seller
+					this.detailData.tips='买方'+this.contractNoList[i].buyer
 				} else if (this.detailData.inOutType == '移库出库') {
 					this.detailData.tips='出货库'+this.inOutNoList[e[0]].warehouseName
+				}else if (this.detailData.inOutType == '退库') {
+					if(this.contractNoList[i].contractNo){
+						this.deptBudgetList.tips='卖方'+this.contractNoList[i].seller
+					}
+					else{
+						this.deptBudgetList.tips='入货库'+this.inOutNoList[e[0]].warehouseName
+					}
 				}
 			},
 			toUpperCase(val) {

+ 6 - 1
pages/erp/warehousing/warehousing.vue

@@ -431,7 +431,12 @@
 							} else if (this.detailData.inOutType == '移库入库') {
 								this.detailData.tips='入货库'+this.inOutNoList[e[0]].warehouseName
 							}  else if (this.detailData.inOutType == '退库') {
-									this.detailData.tips='出货库'+this.inOutNoList[e[0]].warehouseName
+								if(this.contractNoList[i].contractNo){
+									this.deptBudgetList.tips='买方'+this.contractNoList[i].buyer
+								}
+								else{
+									this.deptBudgetList.tips='出货库'+this.inOutNoList[e[0]].warehouseName
+								}
 							}
 						}
 					}