|  |  | 
 |  |  | <template>
 | 
 |  |  |    <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="搜索物料名称/编码">
 | 
 |  |  |          <view class="tc b f30 c2 mb20">选择物料a1</view>
 | 
 |  |  |          <v-Search ref="V" @searchInput="searchInput" @submit="search" :isShow="false" placeholder="搜索物料名称/编码">
 | 
 |  |  |          </v-Search>
 | 
 |  |  |          <div class="content_total">共{{pages.total}}条数据</div>
 | 
 |  |  |          <view class="scroll-content"> | 
 |  |  | 
 |  |  |             show: false,
 | 
 |  |  |             splite: ' | ',
 | 
 |  |  |             isAll: false, | 
 |  |  |             refreshing: false,
 | 
 |  |  |             refreshing: false, | 
 |  |  |             mixName: '',
 | 
 |  |  |             pages: {
 | 
 |  |  |                capacity: 10,
 | 
 |  |  |                page: 1,
 | 
 |  |  | 
 |  |  |          open(target) {
 | 
 |  |  |             this.show = true | 
 |  |  |             this.refreshing = false
 | 
 |  |  |             this.workorderId = target.workorderId
 | 
 |  |  |             this.warehouseId = target.warehouseId
 | 
 |  |  |             this.deviceId = target.deviceId
 | 
 |  |  |             this.list = [] | 
 |  |  |             this.selectIndex = [] | 
 |  |  | 
 |  |  |                total: 0
 | 
 |  |  |             }
 | 
 |  |  |             this.loadData()
 | 
 |  |  |          }, | 
 |  |  |          // 搜索框 | 
 |  |  |          searchInput(data) { | 
 |  |  |             this.form.page = 0 | 
 |  |  |             this.finished = false | 
 |  |  |             this.list = [] | 
 |  |  |             this.mixName = data | 
 |  |  |             this.loadData() | 
 |  |  |          },
 | 
 |  |  |          loadData() {
 | 
 |  |  |             choiceStockPageForStandard({
 | 
 |  |  |                ...this.pages,
 | 
 |  |  |                model: {
 | 
 |  |  |                   workorderId: this.workorderId,
 | 
 |  |  |                   deviceId: this.deviceId
 | 
 |  |  |                   deviceId: this.deviceId, | 
 |  |  |                   materialName: this.mixName
 | 
 |  |  |                }
 | 
 |  |  |             }).then(res => { | 
 |  |  |                let {data} = res | 
 |  |  | 
 |  |  |             this.refreshing = true; | 
 |  |  |             this.pages.page = 1
 | 
 |  |  |             this.loadData()
 | 
 |  |  |          }, | 
 |  |  |          search() { | 
 |  |  |             this.pages.page = 1 | 
 |  |  |             this.loadData() | 
 |  |  |          },
 | 
 |  |  |          selectMaterialAction(index) { | 
 |  |  |             let i = this.selectIndex.findIndex(item => item==index) |