From 79e5bb4cefc9b96f9556c65c3603cb941c14eca5 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期四, 13 六月 2024 09:58:50 +0800
Subject: [PATCH] #
---
pages/tzsk/pakin/checkOut.vue | 42 +++++++++++++++++++++++++++---------------
1 files changed, 27 insertions(+), 15 deletions(-)
diff --git a/pages/tzsk/pakin/checkOut.vue b/pages/tzsk/pakin/checkOut.vue
index ec65b94..a97ac07 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() {
@@ -239,7 +241,10 @@
},
// 杩囨护
checkContainerCode(item) {
- item.containerCode = item.containerCode.split('_')[1]
+ if (item.containerCode.split('_')[1]) {
+ item.containerCode = item.containerCode.split('_')[1]
+ }
+ // item.containerCode = item.containerCode.split('_')[1]
// this.barcode = this.barcode.split('_')[1]
},
messageToggle(type) {
@@ -250,12 +255,16 @@
barcodeInput() {
let _this = this
uni.request({
- url: `${_this.baseUrl}`,
+ 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;
@@ -317,6 +326,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
@@ -346,6 +356,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
@@ -375,7 +386,7 @@
if (that.barcode === '') {
this.messageText = "璇锋壂鎻忔墭鐩樻潯鐮�"
this.messageToggle('error')
- return;
+ // return;
}
if (that.dataList.length === 0) {
this.messageText = "璇锋坊鍔犲晢鍝佸垪琛�"
@@ -391,11 +402,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: {
@@ -459,7 +471,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