shish 2 лет назад
Родитель
Сommit
0c2818b797
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      ghs/src/views/order/add.vue

+ 3 - 1
ghs/src/views/order/add.vue

@@ -387,7 +387,9 @@ export default {
         this.isSeek = true;
         await this.$service.item.getItemList({search:this.seekVal,requestType:'kd',pageSize:6}).then(res=>{
           let list = this.$util.copyObject(res.list)
-          that.getItemList = list
+          if(!that.$util.isEmpty(list)){
+            that.getItemList = list
+          }
         })
         if(!that.$util.isEmpty(that.getItemList)){
           that.$refs.showItemRef.setCurrentRow(that.getItemList[0])