Mr.Zhang
2023-09-11 586288a9e606ce224793e4888cca95e964819067
minipro_standard/components/SelectMultipleMaterial.vue
@@ -1,8 +1,8 @@
<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">
@@ -86,7 +86,8 @@
            show: false,
            splite: '&nbsp;|&nbsp;',
            isAll: false,
            refreshing: false,
            refreshing: false,
            mixName: '',
            pages: {
               capacity: 10,
               page: 1,
@@ -100,7 +101,7 @@
         open(target) {
            this.show = true
            this.refreshing = false
            this.workorderId = target.workorderId
            this.warehouseId = target.warehouseId
            this.deviceId = target.deviceId
            this.list = []
            this.selectIndex = []
@@ -112,13 +113,22 @@
               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
@@ -144,6 +154,10 @@
            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)