Mr.Zhang
2023-09-07 1e993780749c9525be74e77e4c81b7db2c88da6f
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() {