zhongtianhaoyuan 3 năm trước cách đây
mục cha
commit
49d085ed3d

+ 3 - 0
components/master-keyboard/master-keyboard.vue

@@ -193,6 +193,9 @@
 			},
 			open(value) {
 				this.show = value
+				if(!value&&this.keyboardtype == 'car'){
+					this.carType=0
+				}
 			},
 			//车牌tab点击事件
 			handleCarTabItemClick(index) {

+ 8 - 11
pages/user/depotAcquisition/grainDeliveryRegistration.vue

@@ -55,7 +55,6 @@
 							<input class="car-uumber" v-model='item1.carNo'
 								@click.stop="handleShowKeyboard(index,index1)" :disabled="true" placeholder="输入7位车牌号"
 								name="input"></input>
-
 							<!-- <u-input v-model="item1.carNo" placeholder="输入7位车牌号" /> -->
 							<view class="btn">
 								<view @click="addCarNumber(item.carNumberList)" style="margin-right: 20rpx;">
@@ -70,9 +69,7 @@
 								</view>
 							</view>
 						</view>
-
 					</view>
-
 				</view>
 			</view>
 			<view v-if='!status' class='add-good-people' @click='addGoodPeople'>
@@ -81,7 +78,7 @@
 					@click="reduceBtn(index)"></image>增加货主
 			</view>
 		</view>
-		<master-keyboard ref="keyboard" keyboardtype="car" :randomNumber="true" :newCar="false" :defaultValue="carNo"
+		<master-keyboard ref="keyboard" keyboardtype="car" :show="keyShow" :randomNumber="true" :newCar="false" :defaultValue="carNo"
 			@keyboardClick="handleClick"></master-keyboard>
 		<u-button class='submit' @click='submit'>提交</u-button>
 		<u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
@@ -90,7 +87,6 @@
 		<u-modal v-model="isShowAlert1" :title-style="{fontSize: '18px',fontWeight:'500'}"
 			:content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='提示'
 			showCancelButton='false' :content="content1" @confirm="alertBtn" @cancel="cancelClick"></u-modal>
-
 	</view>
 </template>
 <script>
@@ -139,12 +135,12 @@
 				goodsnameList: [],
 				selectObj: {},
 				goodsNameshow: false,
-				nameListCopy: []
+				nameListCopy: [],
+				keyShow:false,
 			}
 		},
 
 		onLoad(options) {
-console.log(options)
 			this.warehouseId = options.warehouseId
 			this.dataList.warehouseName = options.warehouseName
 			this.startDate = this.getTime()[0]
@@ -174,6 +170,9 @@ console.log(options)
 			console.log("hasLogin", this.hasLogin)
 		},
 		methods: {
+			keyClose(){
+				this.keyShow = false
+			},
 			goodsnameConfirm(e) {
 				this.goodsName = this.goodsnameList[e[0]].goodsName
 				this.getCustomer()
@@ -190,11 +189,10 @@ console.log(options)
 				}
 			},
 			handleShowKeyboard(index, index1) {
-				if (this.dataList.shippingInformationList[this.index].carNumberList[this.index1].carNo == '') {
+				if (this.dataList.shippingInformationList[index].carNumberList[index1].carNo == '') {
 					this.carNo = ''
-
 				} else {
-					this.carNo = this.dataList.shippingInformationList[this.index].carNumberList[this.index1].carNo
+					this.carNo = this.dataList.shippingInformationList[index].carNumberList[index1].carNo
 				}
 				if (this.$refs.keyboard.open) {
 					this.$refs.keyboard.open(false) //true 键盘显示 false 键盘隐藏
@@ -266,7 +264,6 @@ console.log(options)
 				this.isShowAlert1 = true
 			},
 			nameConfirm(e) {
-				console.log(e)
 				this.dataList.shippingInformationList[this.selectObj["index"]].shipperName = this.nameList[e[0]]
 					.customerName
 				this.dataList.shippingInformationList[this.selectObj["index"]].supplier = this.nameList[e[0]].supplier