From f6c98ec61385b470cda75c672a50e8d9ac3d3525 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期四, 02 十一月 2023 08:38:27 +0800
Subject: [PATCH] #

---
 pages/tzsk/pakin/checkOut.vue |   36 ++++++++++++++++++++++--------------
 1 files changed, 22 insertions(+), 14 deletions(-)

diff --git a/pages/tzsk/pakin/checkOut.vue b/pages/tzsk/pakin/checkOut.vue
index 2eecdaf..dbc5946 100644
--- a/pages/tzsk/pakin/checkOut.vue
+++ b/pages/tzsk/pakin/checkOut.vue
@@ -25,7 +25,8 @@
 					<view class="list-left-item">
 						<view class="desc">绠辩爜锛�</view>
 						<view class="left-item">
-							<input type="text" v-model="item.containerCode" @input="checkContainerCode(item)">
+							<!-- <input type="text" v-model="item.containerCode" @input="checkContainerCode(item)"> -->
+							<view class="left-item">{{item.containerCode}}</view>
 							<!-- <uni-tag :text="item.containerCode" type="primary"></uni-tag> -->
 						</view>
 					</view>
@@ -92,17 +93,17 @@
 				<view class="popup">
 					<!-- 鏍囬 -->
 					<view class="title">淇敼</view>
-					<view class="popup-item">
+					<!-- <view class="popup-item">
 						<view class="popup-item-left">缂栫爜:</view>
 						<view class="popup-item-right">
 							<input type="text" v-model="matnr" disabled="true"
 								style="background-color: #f7f7f7;padding: 0;color: #d5d5d5;">
 						</view>
-					</view>
-					<!-- <view class="popup-item">
-						<view class="popup-item-left">鎵瑰彿:</view>
-						<view class="popup-item-right"><input type="text" v-model="batch"></view>
 					</view> -->
+					<view class="popup-item">
+						<view class="popup-item-left">绠辩爜:</view>
+						<view class="popup-item-right"><input type="text" v-model="containerCode"></view>
+					</view>
 					<!-- <view class="popup-item">
 						<view class="popup-item-left">閲嶉噺:</view>
 						<view class="popup-item-right"><input type="text" v-model="weight"></view>
@@ -190,7 +191,7 @@
 				barcode: '',
 				orderNo: '',
 				pickCode: '',
-				pickCodeFocus: '',
+				pickCodeFocus: false,
 				dataList: [],
 				count: 0,
 				rowNum: '',
@@ -207,7 +208,8 @@
 				removeNum: 0,
 				tempOrderInfo: {csocode: '',isoseq: ''},
 				hide: true,
-				hidebg: 'kb-bgtr'
+				hidebg: 'kb-bgtr',
+				containerCode: ''
 			}
 		},
 		onLoad() {
@@ -250,13 +252,16 @@
 			barcodeInput() {
 				let _this = this 
 				uni.request({
-					url: `${_this.baseUrl}/mobile/locdetl/auth`,
+					url: `${_this.baseUrl}/mobile/wrkdetl/auth`,
 					data: { barcode: _this.barcode },
+					method: 'POST',
 					header: { 'token': uni.getStorageSync('token') },
 					success(res) {
 						res = res.data
 						console.log(res);
 						if (res.code === 200) {
+							_this.messageText = "璇锋嫞閫�"
+							_this.messageToggle('success')
 							_this.barcodeFocus = false;
 							setTimeout(() => {
 								_this.pickCodeFocus = true;
@@ -318,6 +323,7 @@
 			// 淇敼鎵瑰彿
 			revise(item, i) {
 				this.matnr = this.dataList[i].matnr
+				this.containerCode = this.dataList[i].containerCode
 				this.count = this.dataList[i].anfme
 				this.batch = this.dataList[i].batch
 				this.weight = this.dataList[i].weight
@@ -347,6 +353,7 @@
 				this.$refs.alertDialog.close()
 			},
 			reviseConfirm() {
+				this.dataList[this.rowNum].containerCode = this.containerCode
 				this.dataList[this.rowNum].anfme = this.count
 				this.dataList[this.rowNum].batch = this.batch
 				this.dataList[this.rowNum].weight = this.weight
@@ -376,7 +383,7 @@
 				if (that.barcode === '') {
 					this.messageText = "璇锋壂鎻忔墭鐩樻潯鐮�"
 					this.messageToggle('error')
-					return;
+					// return;
 				}
 				if (that.dataList.length === 0) {
 					this.messageText = "璇锋坊鍔犲晢鍝佸垪琛�"
@@ -392,11 +399,12 @@
 				}
 				// console.log(that.dataList);
 				// return
+				console.log(that.dataList);
 				uni.request({
-					url: that.baseUrl + '/mobile/comb/auth',
+					url: that.baseUrl + '/mobile/modify/wrkdetl/auth',
 					data: JSON.stringify({
-						barcode: that.barcode,
-						combMats: that.dataList
+						barcode: "80009991",
+						params: that.dataList
 					}),
 					method: 'POST',
 					header: {
@@ -460,7 +468,7 @@
 	@import url('../../../static/css/wms.css/wms.css');
 
 	.list:first-child {
-		margin-top: 320rpx;
+		margin-top: 260rpx;
 	}
 	.code {
 		width: 100%;

--
Gitblit v1.9.1