Mr.Zhang
2023-09-12 041c81a20c93a6b8238e810fe9a1adfee9c9d86f
minipro_standard/pages_adjust/components/multipleMaterial.vue
@@ -13,7 +13,7 @@
            @scrolltolower="loadMore">
               <view v-for="(item1, index) in list" :key="index" class="flex mb20" @click="jump(index)">
                  <view class="img36 mr20 pt10">
                     <u-checkbox-group style="display: block;" name="">
                     <u-checkbox-group style="display: block;" name="" @change="jump(index)">
                        <u-checkbox :checked="item1.isActive"></u-checkbox>
                     </u-checkbox-group>
                  </view>
@@ -63,8 +63,8 @@
         </view> -->
         <view class="fixedBottom bottom cY">
            <view class="fx1 bbox plr30">
               <u-checkbox-group style="display: block;" name="" @change="selectAll()">
                  <u-checkbox :checked="isAll" label="全选"></u-checkbox>
               <u-checkbox-group v-model="isAll" style="display: block;" @change="selectAll()">
                  <u-checkbox label="全选" name="all"></u-checkbox>
               </u-checkbox-group>
            </view>
            <view class="submit sbtn_green bbox tc" @click="submitAction">{{ `提交(${totalNum})`}}</view>
@@ -97,6 +97,7 @@
            loading: false,
            finished: false,
            refreshing: false,
            isAll: false,
            total: 0
         };
      },
@@ -135,6 +136,7 @@
      },
      methods: {
         open() {
            this.isAll = false
            this.show = true
            this.refreshing = false
            this.finished = false
@@ -155,7 +157,7 @@
            this.form.page = 0
            this.finished = false
            this.list = []
            this.onLoad()
            this.loadData()
         },
         // 搜索框
         searchInput(data) {
@@ -163,7 +165,7 @@
            this.finished = false
            this.list = []
            this.form.smodelLabel = data
            this.onLoad()
            this.loadData()
         },
         loadData() {
            if (!this.finished) {
@@ -175,7 +177,8 @@
                  model: {
                     warehouseId: this.warehouseId,
                     warehouseQualityType: this.warehouseQualityType,
                     ids: this.selected.length > 0 ? this.selected.join(',') : ''
                     ids: this.selected.length > 0 ? this.selected.join(',') : '',
                     materialName: this.form.smodelLabel
                  }
               }).then(res => {
                  if (this.refreshing) {
@@ -212,9 +215,11 @@
            this.pages.page = 1
            this.loadData()
         },
         selectAll() {
         selectAll(e) {
            console.log(e)
            console.log(this.isAll)
            this.list.forEach(element => {
               element.isActive = this.all
               element.isActive = e.length > 0 ? true : false
            })
         },
         submitAction () {