Ver código fonte

修改入库

wangchao 3 anos atrás
pai
commit
f771ff47a7

+ 1 - 1
pages/erp/improvedWrehousing/improvedWrehousingDetail.vue

@@ -100,7 +100,7 @@
 			</view>
 			<view class="row row-bottom has-btn">
 				<view class="left">成本(元/吨)</view>
-				<input v-if="detailData.inOutType=='采购入库'" v-model='detailData.unitContractPrice' class="right-bottom"
+				<input v-if="detailData.inOutType=='采购入库'" v-model='detailData.cost' class="right-bottom"
 					placeholder="自动获取" :disabled="isEditCB"></input>
 				<input v-if="detailData.inOutType!='采购入库'" v-model='detailData.cost' class="right-bottom"
 					placeholder="自动获取" :disabled="isEditCB"></input>

+ 3 - 1
pages/erp/index.vue

@@ -285,12 +285,13 @@ import helper from '@/common/helper.js';
 			makeBinNumber(){
 			
 			},
-			warehousechange(e) {
+			warehousechange(e) {debugger
 				this.warehouseName = this.warehouseList[e[0]].warehouseName
 				this.compId = this.warehouseList[e[0]].compId
 				this.agent = this.warehouseList[e[0]].agent
 				this.warehouseId =this.warehouseList[e[0]].id
 				this.warehouseCWList = this.warehouseList[e[0]].positionInfos
+				this.warehouseCWchange([0])
 			},
 			warehouseCWchange(e){
 				this.binNumber = this.warehouseCWList[e[0]].binNumber
@@ -403,6 +404,7 @@ import helper from '@/common/helper.js';
 		.left,
 		.right {
 			display: flex;
+			align-items: center;
 		}
 	}
 	.comp{

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

@@ -100,7 +100,7 @@
 			</view>
 			<view class="row row-bottom has-btn">
 				<view class="left">成本(元/吨)</view>
-				<input v-if="detailData.inOutType=='采购入库'" v-model='detailData.unitContractPrice' class="right-bottom"
+				<input v-if="detailData.inOutType=='采购入库'" v-model='detailData.cost' class="right-bottom"
 					placeholder="自动获取" :disabled="isEditCB"></input>
 				<input v-if="detailData.inOutType!='采购入库'" v-model='detailData.cost' class="right-bottom"
 					placeholder="自动获取" :disabled="isEditCB"></input>
@@ -274,7 +274,7 @@
 			this.detailData.goodsName = _data.goodsName;
 			this.detailData.contractNo = _data.contractNo;
 			this.detailData.goodsNameKey = _data.goodsNameKey;
-			this.detailData.unitContractPrice = _data.unitContractPrice
+			this.detailData.cost = _data.unitContractPrice
 			if (_data.inOutType == '采购入库') {
 				this.detailData.freight = 0
 			}
@@ -345,8 +345,8 @@
 			},
 			dateChange(e) {
 				console.log(e)
-				this.detailData.inOutDate = e.year + "-" + e.month + "-" + e.day
-				this.inOutDate1 = e.year + "-" + e.month + "-" + e.day + "-" + e.hour + "-" + e.minute + "-" + e.second
+				this.detailData.inOutDate = e.year + "-" + e.month + "-" + e.day + " " + e.hour + ":" + e.minute + ":" + e.second 
+				// this.inOutDate1 = e.year + "-" + e.month + "-" + e.day + " " + e.hour + ":" + e.minute 
 			},
 			warehousingTypePicker(e) {
 				this.detailData.inOutType = this.warehousingTypeList[e].constValue
@@ -445,7 +445,7 @@
 				let title = ""
 				if (num == 1) {
 					this.detailData.statusFlag = 1
-					this.detailData.inOutDate = this.inOutDate1
+					// this.detailData.inOutDate = this.inOutDate1
 					title = "暂存成功"
 				} else if (num == 2) {
 					this.detailData.statusFlag = 3
@@ -493,6 +493,7 @@
 		.top {
 			display: flex;
 			margin-bottom: 20rpx;
+			align-items: center;
 
 			.top-left {
 				margin-right: 20rpx;