YY hace 2 años
padre
commit
5343cc3029
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6 2
      src/views/selfShop/order/parts/card-2.vue

+ 6 - 2
src/views/selfShop/order/parts/card-2.vue

@@ -26,8 +26,12 @@ export default {
   methods: {
     // 生成发货清单
     toDeliver({ data }) {
-      this.$set(this, 'list', data);
-      this.$set(this, 'num', '2');
+      if (data.length == '0') {
+        this.$message('请选择订单');
+      } else {
+        this.$set(this, 'list', data);
+        this.$set(this, 'num', '2');
+      }
     },
     toBack() {
       this.$set(this, 'num', '1');