From b9d085099f00a0d38a0371c1f3fa9a57c9ce4d80 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期六, 19 七月 2025 14:06:32 +0800
Subject: [PATCH] #
---
pages/listing/itemSelect.vue | 63 ++++++++++++++++---------------
1 files changed, 32 insertions(+), 31 deletions(-)
diff --git a/pages/listing/itemSelect.vue b/pages/listing/itemSelect.vue
index e2d7be3..b1ec2ba 100644
--- a/pages/listing/itemSelect.vue
+++ b/pages/listing/itemSelect.vue
@@ -2,7 +2,7 @@
<view>
<!-- 鎼滅储妗� -->
<view class="search-bar">
- <uni-search-bar v-model="condition" placeholder=" 杈撳叆鎵规" bgColor="#EEEEEE" />
+ <uni-search-bar v-model="condition" placeholder=" 杈撳叆鎵规/缂栫爜/鍗曞彿" bgColor="#EEEEEE" @confirm="search()"/>
</view>
@@ -33,14 +33,7 @@
<text class="text-grey ">{{item.asnCode}}</text>
</view>
</view>
- <view class="cu-item">
- <view class="content">
- <text class="text-black">鐗╂枡鏉$爜:</text>
- </view>
- <view class="action">
- <text class="text-grey ">{{item.trackCode}}</text>
- </view>
- </view>
+
<view class="cu-item">
<view class="content">
<text class="text-black">渚涘簲鍟嗘壒娆�:</text>
@@ -49,23 +42,14 @@
<text class="text-grey ">{{item.splrBatch}}</text>
</view>
</view>
- <!-- <view class="cu-item">
+ <view class="cu-item">
<view class="content">
- <text class="text-black">搴撳瓨鎵规:</text>
+ <text class="text-black">璐ㄦ鐘舵��:</text>
</view>
<view class="action">
- <text class="text-grey ">{{item.batch}}</text>
+ <text class="text-grey ">{{item.isptResult$}}</text>
</view>
- </view> -->
- <!-- <view class="cu-item">
- <view class="content">
- <text class="text-black">骞冲彴琛屽彿: <text class="text-grey ">{{item.platformId}}</text></text>
- </view>
- <view class="content">
- <text class="text-black">璐ㄦ缁撴灉: <text class="text-grey ">{{item.inspect}}</text></text>
- </view>
- </view> -->
-
+ </view>
<view class="cu-item">
<view class="content">
<text class="text-black">搴撳瓨鍗曚綅: <text class="text-grey ">{{item.stockUnit}}</text></text>
@@ -75,13 +59,13 @@
</view>
<view class="content">
<text class="text-black">宸蹭笂鏋舵暟閲�: <text
- class="text-grey ">{{item.workQty + item.qty}}</text></text>
+ class="text-grey ">{{item.qty}}</text></text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="text-black">鍙粍鐩樻暟閲�: <text
- class="text-grey ">{{item.anfme - item.workQty}}</text></text>
+ class="text-grey ">{{item.anfme - item.workQty - item.qty}}</text></text>
</view>
</view>
@@ -97,6 +81,9 @@
</template>
<script>
+ import {
+ request
+ } from '../../common/request.js'
export default {
data() {
return {
@@ -110,7 +97,7 @@
selectedList:[],
repeatClick: false,
matnrCode:'',
- asnCode:''
+ asnCode:'',
}
},
@@ -126,8 +113,7 @@
// 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
eventChannel.on('data', function(data) {
- console.log(data.item)
- that.matList = data.item
+ that.getDet(data)
})
},
onShow() {
@@ -136,6 +122,15 @@
},
methods: {
+ search(){
+ let req = {
+ matnrCode: this.condition,
+ asnCode: this.condition,
+ code: this.condition,
+ batch: this.condition
+ }
+ this.getDet(req);
+ },
back() {
for (var i = 0; i < this.matList.length; i++) {
if(this.matList[i].selected === true){
@@ -155,22 +150,27 @@
this.matList[index].selected = !this.matList[index].selected
}
},
- async getDet() {
+ async getDet(req) {
let that = this;
+ uni.showLoading({
+ title:'鍔犺浇涓�...'
+ })
const {
code,
data,
msg
} = await request('/asnOrderItem/trackCode', {
- matnrCode: that.matnrCode,
- asnCode: that.asnCode
+ matnrCode: req.matnrCode,
+ asnCode: req.asnCode,
+ code: req.code,
+ batch: req.batch
}, "post")
if (code === 200) {
for (var i = 0; i < data.length; i++) {
data[i].receiptQty =0;
data[i].selected = false;
}
- this.list = data
+ this.matList = data
} else {
uni.showToast({
title: msg,
@@ -178,6 +178,7 @@
position: 'top'
})
}
+ uni.hideLoading();
},
}
--
Gitblit v1.9.1