From 90e4a6dfe3511fd4d4ba6f80489f2dcf0f902d28 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期二, 24 六月 2025 10:02:51 +0800
Subject: [PATCH] 12
---
pages/basics/stockCheck.vue | 72 ++++++++++++++++++++++--------------
1 files changed, 44 insertions(+), 28 deletions(-)
diff --git a/pages/basics/stockCheck.vue b/pages/basics/stockCheck.vue
index ac93f30..6e80efb 100644
--- a/pages/basics/stockCheck.vue
+++ b/pages/basics/stockCheck.vue
@@ -3,37 +3,45 @@
<view class="cu-form-group margin-top">
<view class="title">鎵樼洏鐮�</view>
<input v-model="billNo" placeholder="鎵爜 / 杈撳叆" name="input" @input="findCode()" focus>
- <button v-model="matBtn" class="cu-btn bg-yellow" @click="toggle('right')"><text>+琛ュ厖</text></button>
+ <!-- <button v-model="matBtn" class="cu-btn bg-yellow" @click="toggle('right')"><text>+琛ュ厖</text></button> -->
</view>
<view class="margin-top">
<uni-table border stripe emptyText="鏆傛棤鏇村鏁版嵁">
<uni-tr>
- <uni-th width="80">鏁伴噺</uni-th>
- <uni-th width="100">浜у搧缂栫爜</uni-th>
- <uni-th width="100">浜у搧鍚嶇О</uni-th>
- <uni-th width="100">浜у搧鎵瑰彿</uni-th>
- <uni-th width="100">搴撲綅</uni-th>
- <uni-th width="200">纭鏁伴噺</uni-th>
+ <uni-th align="center" width="80">鏁伴噺</uni-th>
+ <uni-th align="center" width="100">鍗曚綅</uni-th>
+ <uni-th align="center" width="100">浜у搧缂栫爜</uni-th>
+ <uni-th align="center" width="100">浜у搧鍚嶇О</uni-th>
+ <uni-th align="center" width="100">浜у搧鎵瑰彿</uni-th>
+ <!-- <uni-th align="center" width="100">搴撲綅</uni-th> -->
+ <!-- <uni-th align="center" width="150">纭鏁伴噺</uni-th> -->
</uni-tr>
<uni-tr v-for="(item, index) in locDetlData" :key="index">
- <uni-td>{{item.count}}</uni-td>
- <uni-td>{{item.matNo}}</uni-td>
- <uni-td>{{item.matName}}</uni-td>
- <uni-td>{{item.itemBatch}}</uni-td>
- <uni-td>{{item.locNo}}</uni-td>
- <uni-td align="center">
- <button class="uni-button" size="mini" type="primary" @click="conf(index,item)">淇敼</button>
- <button class="uni-button" size="mini" type="warn" @click="remove(index,item)">鍒犻櫎</button>
- </uni-td>
+ <uni-td style="text-align: center;">{{item.anfme}}</uni-td>
+ <uni-td style="text-align: center;">{{item.model}}</uni-td>
+ <uni-td style="text-align: center;">{{item.matnr}}</uni-td>
+ <uni-td style="text-align: center;">{{item.maktx}}</uni-td>
+ <uni-td style="text-align: center;">{{item.batch}}</uni-td>
+ <!-- <uni-td>{{item.locNo}}</uni-td> -->
+ <!-- <uni-td align="center">
+ <button class ="cu-btn bg-orange margin-xs" @click="conf(index,item)">淇敼</button>
+ <button class ="cu-btn bg-red margin-xs" @click="remove(index,item)">鍒犻櫎</button>
+ </uni-td> -->
</uni-tr>
</uni-table>
</view>
- <view>
- <button class="cu-btn bg-yellow pda-btn" @click="check">纭� 璁�</button>
- <button class="cu-btn bg-grey pda-btn" @click="reset">閲� 缃�</button>
+ <view style="height: 200rpx;">
+ <!-- 绌虹櫧灞� -->
+ </view>
+ <view class="cu-bar foot input" style="height: 130rpx;">
+ <view class="flex solid-bottom padding justify-start" >
+ <button class="cu-btn bg-yellow main-btn margin-xs" style="width: 430rpx;" @click="reset">纭� 璁�</button>
+ <button class="cu-btn bg-grey main-btn margin-xs" @click="reset">閲� 缃�</button>
+ </view>
</view>
- <view>
+
+ <scroll-view>
<uni-popup ref="popup" background-color="#fff" style="width: 500rpx;">
<view class="popup-content" :class="{ 'popup-height': type === 'left' || type === 'right' }">
<view class="cu-form-group margin-top">
@@ -59,10 +67,15 @@
<text class="title">鏁伴噺</text>
<uni-number-box :min="0" :max="999" @change="countDom" v-model="count" />
</view>
- <button class="cu-btn bg-yellow pda-btn2" @click="confirm">鎻愬彇</button>
+ <view class="flex solid-bottom padding justify-center">
+ <button class="cu-btn bg-yellow pda-btn2" @click="confirm">鎻愬彇</button>
+ </view>
+ <view style="height: 200rpx;">
+ <!-- 绌虹櫧灞� -->
+ </view>
</view>
</uni-popup>
- </view>
+ </scroll-view>
<view>
<!-- 鎻愮ず淇℃伅寮圭獥 -->
<uni-popup ref="message" type="message">
@@ -104,6 +117,7 @@
count:0,
type: '',
baseIP:'',
+ basePORT:'',
checkList:[],
sourceList:[],
billNo:'',
@@ -115,7 +129,9 @@
mounted(){
// 鑾峰彇IP绔彛
const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP
+ this.baseIP = UIP;
+ const UPORT = uni.getStorageSync('UPORT');
+ this.basePORT = UPORT;
},
methods: {
// 鎻愮ず绐楀彛
@@ -134,15 +150,15 @@
// 璧嬪�煎墠娓呯┖琛ㄦ牸
that.locDetlData = []
uni.request({
- url: that.baseHttp + that.baseIP + that.baseUrl + "/mobile/check/queryMatFromBarCode?barCode=" + barCode,
+ url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/mobile/pakout/query/auth",
header: {
'content-type':'application/x-www-form-urlencoded',
'token':uni.getStorageSync('token')
},
data: {
- barCode: barCode
+ barcode: barCode
},
- method:'GET',
+ method:'POST',
success(res) {
if (res.data.code === 200) {
that.locDetlData = res.data.data
@@ -184,7 +200,7 @@
return;
}
uni.request({
- url: that.baseHttp + that.baseIP + that.baseUrl + "/matCode/auth",
+ url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/matCode/auth",
header: {
'content-type':'application/x-www-form-urlencoded',
'token':uni.getStorageSync('token')
@@ -317,7 +333,7 @@
}
// this.noTitlemodalTap()
uni.request({
- url: that.baseHttp + that.baseIP + that.baseUrl + "/mobile/stock/check",
+ url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/mobile/stock/check",
header: {
'token':uni.getStorageSync('token')
},
--
Gitblit v1.9.1