gjy 2 vuotta sitten
vanhempi
commit
a544fd5808
1 muutettua tiedostoa jossa 18 lisäystä ja 2 poistoa
  1. 18 2
      src/views/warehousenew/warehousingOrder.vue

+ 18 - 2
src/views/warehousenew/warehousingOrder.vue

@@ -27,6 +27,13 @@
           </el-select>
           <span style="width:100px" v-if="warehouseName && goodsName">{{reserves?reserves:0}}吨</span>
         </div>
+        <div style='width:50%;margin-right:10px;display: flex;'>
+          <el-select v-model="weightGreater" filterable placeholder="" @change="weightGreaterChange" 
+            style="margin: 0 10px">
+            <el-option key="全部重量" label="全部重量" value="" style="color: #8890b1" />
+            <el-option key="剩余重量大于0" label="剩余重量大于0" value="1" style="color: #8890b1" />
+          </el-select>
+        </div>
       </template>
       <template slot="right">
         <ws-input @keyup.enter.native="find()" class='findValue' v-model="searchKeyWord" placeholder="可按货源查找" clearable
@@ -549,6 +556,7 @@ export default {
       rejectshow:false,
       options: [],
       textarea: '',
+      weightGreater:'',
       dialogVisiblecontent: false,
       // 船舶类型
       monetaryKey: null,
@@ -699,6 +707,9 @@ export default {
     this.showType = this.isShow
   },
   methods: {
+    weightGreaterChange(e){
+      this.getList()
+    },
     getSummaries(param) {
       const { columns, data } = param;
       const sums = [];
@@ -750,7 +761,6 @@ export default {
                       }
                    }
                   }
-                  
                 // 
               }
             }
@@ -765,8 +775,13 @@ export default {
       this.getList()
     },
     goodsNameChange(e){
+      if (e == '全部货名' || e == '') {
+        this.goodsName = ''
+        this.reserves = ''
+      }else{
         this.goodsName = this.goodsList[e].goodsName
         this.reserves = this.goodsList[e].storage
+      }
         this.multipleSelection1={}
         this.getList()
     },
@@ -1830,7 +1845,8 @@ export default {
         baseId: this.baseId,
         searchType: this.searchType,
         searchKeyWord: this.searchKeyWord,
-        goodsName:this.goodsName
+        goodsName:this.goodsName,
+        weightGreater:this.weightGreater
       })
         .toPromise()
         .then((response) => {