فهرست منبع

前端 小程序 sdy

zhongtianhaoyuan 3 سال پیش
والد
کامیت
ac97cd5c9a
2فایلهای تغییر یافته به همراه12 افزوده شده و 4 حذف شده
  1. 10 2
      pages/erp/exWarehousing/exWarehousing.vue
  2. 2 2
      pages/erp/improvedExWaehousing/improvedExWaehousing.vue

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

@@ -79,7 +79,8 @@
 			</view>
 			<view class="row row-bottom">
 				<view class="left">车牌号</view>
-				<input v-model='detailData.carNo' class="right-bottom" placeholder="请输入车牌号"></input>
+				<input v-if="!isPC" v-model='detailData.carNo' class="right-bottom" placeholder="请输入车牌号"></input>
+			     <view @click='slectCarNo' v-if="isPC">{{detailData.carNo}}</view>
 			</view>
 		</view>
 		<view class="content2">
@@ -149,6 +150,7 @@
 				show5: false,
 				show6: false,
 				show7: false,
+				isPC: true,
 				contractNoList: [{
 					contractNo: ""
 				}],
@@ -232,8 +234,13 @@
 			this.detailData.goodsName = uni.getStorageSync('erpContractNo').goodsName;
 			this.detailData.contractNo = uni.getStorageSync('erpContractNo').contractNo;
 			this.detailData.goodsNameKey = uni.getStorageSync('erpContractNo').goodsNameKey;
+			if (!uni.getStorageSync('erpContractNo').tranCarInfoList) uni.getStorageSync('erpContractNo').tranCarInfoList = []
 			if(!this.detailData.contractNo){
 				this.detailData.contractNo = '请选择合同编号'
+			}else{
+				if (_data.tranCarInfoList.length == 0) {
+					this.isPC = false
+				}
 			}
 			if(!this.detailData.goodsName){
 				this.detailData.goodsName = '货名'
@@ -283,7 +290,7 @@
 			},
 			dateChange(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.inOutDate1 = e.year + "-" + e.month + "-" + e.day + " " + e.hour + ":" + e.minute
 			},
 			warehousingTypePicker(e) {
 				this.detailData.inOutType = this.warehousingTypeList[e].constValue
@@ -384,6 +391,7 @@
 				}
 				let that = this
 				console.log(this.detailData,"dsadsk")
+				return
 				uni.showModal({
 					content: "确定提交出库信息?",
 					success(res) {

+ 2 - 2
pages/erp/improvedExWaehousing/improvedExWaehousing.vue

@@ -4,8 +4,8 @@
 			<view class="left" @click='show1=true'>
 				<view>{{warehouseName}}</view>
 				<u-icon name="arrow-right"></u-icon>
-				<!-- <u-select v-model="show1" :default-value='[0]' :list="warehouseList" @confirm="confirmWarehouse">
-				</u-select> -->
+				<u-select v-model="show1" :default-value='[0]' :list="warehouseList" @confirm="confirmWarehouse">
+				</u-select>
 			</view>
 			<view class="right" @click='show2=true'>
 				<view>{{positionName}}</view>