Parcourir la source

添加inOutTypeKey

wangchao il y a 3 ans
Parent
commit
ebe7491879

+ 11 - 0
pages/erp/exWarehousing/exWarehousing.vue

@@ -231,6 +231,17 @@
 			this.warehouseName = helper.erpWarehouse.warehouseName
 			this.detailData.goodsName = _data.goodsName;
 			this.detailData.inOutType = _data.inOutType;
+			if (this.detailData.inOutType == '销售出库') {
+				this.detailData.inOutTypeKey = 1
+			} else if (this.detailData.inOutType == '移库出库') {
+				this.detailData.inOutTypeKey = 3
+			} else if (this.detailData.inOutType == '暂存出库') {
+				this.detailData.inOutTypeKey = 4
+			} else if (this.detailData.inOutType == '贸易服务出库') {
+				this.detailData.inOutTypeKey = 5
+			} else if (this.detailData.inOutType == '采购出库') {
+				this.detailData.inOutTypeKey = 6
+			}
 			if (_data.contractNo) {
 				this.detailData.contractNo = _data.contractNo;
 			}

+ 11 - 0
pages/erp/warehousing/warehousing.vue

@@ -259,6 +259,17 @@
 			this.detailData.contractNo = _data.contractNo;
 			this.detailData.goodsNameKey = _data.goodsNameKey;
 			this.detailData.inOutType = _data.inOutType;
+			if (this.detailData.inOutType == '采购入库') {
+				this.detailData.inOutTypeKey = 1
+			} else if (this.detailData.inOutType == '移库入库') {
+				this.detailData.inOutTypeKey = 3
+			} else if (this.detailData.inOutType == '暂存入库') {
+				this.detailData.inOutTypeKey = 4
+			} else if (this.detailData.inOutType == '贸易服务入库') {
+				this.detailData.inOutTypeKey = 5
+			} else if (this.detailData.inOutType == '退库') {
+				this.detailData.inOutTypeKey = 6
+			}
 			if(_data.unitContractPrice) {
 				this.detailData.cost = _data.unitContractPrice
 			}