From 2359a38efc2a90a2776e2a45afcecda1fb0065a3 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 18 九月 2023 16:31:35 +0800
Subject: [PATCH] 111
---
minipro_standard/components/SelectTraMultipleMaterial.vue | 24 +++++++++++++++---------
1 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/minipro_standard/components/SelectTraMultipleMaterial.vue b/minipro_standard/components/SelectTraMultipleMaterial.vue
index bb48450..81606f5 100644
--- a/minipro_standard/components/SelectTraMultipleMaterial.vue
+++ b/minipro_standard/components/SelectTraMultipleMaterial.vue
@@ -2,8 +2,8 @@
<u-popup :show="show" :round="10" closeable @close="show=false">
<view class="material-content bbox p30 rp">
<view class="tc b f24 c2 mb20">閫夋嫨鐗╂枡</view>
- <v-Search ref="V" @searchInput="searchInput" @submit="submit" :isShow="false" placeholder="鎼滅储鐗╂枡鍚嶇О/缂栫爜">
- </v-Search>
+ <!-- <v-Search ref="V" @searchInput="searchInput" @submit="submit" :isShow="false" placeholder="鎼滅储鐗╂枡鍚嶇О/缂栫爜">
+ </v-Search> -->
<div class="content_total">鍏眥{pages.total}}鏉℃暟鎹�</div>
<view class="scroll-content">
<scroll-view scroll-y="true" refresher-enabled="true" :refresher-triggered="refreshing" @scrolltolower="loadMore"
@@ -71,15 +71,15 @@
</template>
<script>
- import vSearch from '@/components/Search.vue'
+ // import vSearch from '@/components/Search.vue'
import {
choiceStockPageByTransfer
} from '@/util/api/ExWarehouse'
export default {
name: "selectTraMultipleMaterial",
- components: {
- vSearch
- },
+ // components: {
+ // vSearch
+ // },
data() {
return {
show: false,
@@ -100,7 +100,8 @@
methods: {
open(target) {
this.show = true
- this.refreshing = false
+ this.refreshing = false
+ this.isAll = false
this.transferId = target.transferId
this.warehouseId = target.warehouseId
this.list = []
@@ -119,7 +120,7 @@
...this.pages,
model: {
transferId: this.transferId,
- deviceId: this.deviceId
+ warehouseId: this.warehouseId
}
}).then(res => {
let {data} = res
@@ -152,6 +153,11 @@
this.selectIndex.push(index)
} else {
this.selectIndex.splice(i)
+ }
+ if (this.selectIndex.length == this.list.length) {
+ this.isAll = true
+ } else {
+ this.isAll = false
}
},
selectAll() {
@@ -243,7 +249,7 @@
.bottom {
height: 98rpx;
-
+ // bottom: calc(env(safe-area-inset-bottom) + 20rpx);
.submit {
width: 272rpx;
height: 98rpx;
--
Gitblit v1.9.3