| | |
| | | <view class="material-content bbox p30 rp"> |
| | | <view class="tc b f24 c2 mb20">选择物料</view> |
| | | <v-Search @searchInput="searchInput" @submit="submit" :isShow="false" placeholder="搜索物料名称/编码" /> |
| | | <div class="content_total">共{{form.total}}条数据</div> |
| | | <div class="content_total">共{{form.total}}条数据12</div> |
| | | <view class="scroll-content"> |
| | | <!-- refresher-enabled="true" |
| | | :refresher-triggered="refreshing" |
| | |
| | | </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> |
| | |
| | | loading: false, |
| | | finished: false, |
| | | refreshing: false, |
| | | isAll: false, |
| | | total: 0 |
| | | }; |
| | | }, |
| | |
| | | }, |
| | | methods: { |
| | | open() { |
| | | this.isAll = false |
| | | this.show = true |
| | | this.refreshing = false |
| | | this.finished = false |
| | |
| | | this.form.page = 0 |
| | | this.finished = false |
| | | this.list = [] |
| | | this.onLoad() |
| | | this.loadData() |
| | | }, |
| | | // 搜索框 |
| | | searchInput(data) { |
| | |
| | | this.finished = false |
| | | this.list = [] |
| | | this.form.smodelLabel = data |
| | | this.onLoad() |
| | | this.loadData() |
| | | }, |
| | | loadData() { |
| | | if (!this.finished) { |
| | |
| | | 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) { |
| | |
| | | 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 () { |