From 48370a305dec6e56e97f18c65e4c6e18329f01cf Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期三, 07 五月 2025 15:47:18 +0800
Subject: [PATCH] 组托删除批次号
---
pages/rece/other.vue | 50 ++++++++++++++++++++++++++++++++++----------------
1 files changed, 34 insertions(+), 16 deletions(-)
diff --git a/pages/rece/other.vue b/pages/rece/other.vue
index 6115c4c..f53d939 100644
--- a/pages/rece/other.vue
+++ b/pages/rece/other.vue
@@ -8,9 +8,10 @@
<!-- <text class='cuIcon-search text-blue' @click="search"></text> -->
</view>
<view class="cu-form-group" v-show="!isconfirm">
- <view class="title">鐗╂枡鏍囩</view>
- <input placeholder="璇锋壂鎻忕墿鏂欐爣绛�" v-model="barcode"></input>
- <text class='cuIcon-search text-blue' @click="scrollTo"></text>
+ <view class="title">鐗╂枡缂栫爜</view>
+ <input placeholder="璇锋壂鎻忕墿鏂欑紪鐮�" v-model="barcode"></input>
+ <text class='cuIcon-close text-gray margin-right-xs' v-show="barcode!==''" @click="clearBarcode"></text>
+ <text class='cuIcon-search text-blue' @click="search"></text>
</view>
</form>
@@ -26,7 +27,8 @@
{{index+1}}
</view>
<view class="text-blue">
- {{`${item.maktx}`}}
+ 缂栫爜:
+ {{`${item.matnr}`}}
</view>
</view>
<view class="action" v-if="!isconfirm">
@@ -37,10 +39,17 @@
<view class="cu-item">
<view class="content">
<text class="text-black">ASN:</text>
- </view>
- <view class="action">
<text class="text-grey ">{{item.asnCode}}</text>
</view>
+ <view class="action">
+
+ </view>
+ </view>
+ <view class="cu-item">
+ <view class="content">
+ <text class="text-black">鐗╂枡鍚嶇О:</text>
+ <text class="text-grey ">{{item.maktx}}</text>
+ </view>
</view>
<!-- <view class="cu-item">
@@ -90,7 +99,8 @@
<view class="cu-form-group padding-lr-0">
<view class="title text-blue"><text
class="text-red text-xl vertical-middle">*</text>鏀惰揣鏁伴噺:</view>
- <uni-number-box style="width: 70%;" :max="max" v-model="item.receiptQty" :step='1'></uni-number-box>
+ <uni-number-box style="width: 70%;" :max="max" v-model="item.receiptQty"
+ :step='1'></uni-number-box>
</view>
</view>
<view class="content" v-else>
@@ -159,8 +169,8 @@
</view>
<view class="cu-bar btn-group foot" v-show="isconfirm">
- <button class="cu-btn text-blue line-blue shadow" @click="prev">涓婁竴姝�</button>
- <button class="cu-btn bg-blue shadow-blur" @click="confirm(false)">鏀惰揣</button>
+ <button class="cu-btn text-blue line-blue shadow" @click="prev">涓婁竴姝�</button>
+ <button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="confirm(false)">鏀惰揣</button>
</view>
</view>
@@ -184,8 +194,9 @@
whAreaId: '',
list: [],
range: [],
+ repeatClick: false,
isconfirm: false,
- max: 99999999
+ max: 99999999,
}
},
computed: {
@@ -206,7 +217,8 @@
data,
msg
} = await request('/orders/other', {
- asnCode: this.asncode
+ asnCode: this.asncode,
+ matnrCode: this.barcode
})
if (code === 200) {
this.list = [...data]
@@ -222,12 +234,16 @@
clearCode() {
this.asncode = ''
},
+ clearBarcode() {
+ this.barcode = ''
+ },
scrollTo() {
- const ref = this.$refs[`${this.barcode}ref`][0];
- uni.pageScrollTo({
- scrollTop: ref.$el.offsetTop,
- duration: 300
- })
+
+ // const ref = this.$refs[`${this.barcode}ref`][0];
+ // uni.pageScrollTo({
+ // scrollTop: ref.$el.offsetTop,
+ // duration: 300
+ // })
},
remove(index) {
this.list.splice(index, 1);
@@ -255,6 +271,7 @@
uni.setStorageSync('whAreaId', val)
},
async complete(id) {
+ this.repeatClick = true
const {
code,
data,
@@ -271,6 +288,7 @@
icon: "none",
})
}
+ this.repeatClick = false
},
async confirm(isCom) {
if (this.whAreaId === '') {
--
Gitblit v1.9.1