Quellcode durchsuchen

improve: 发货商品类型判断

From-wh vor 2 Jahren
Ursprung
Commit
bef56ec63e

+ 1 - 0
template/admin/src/pages/order/orderList/components/tableList.vue

@@ -187,6 +187,7 @@
       @clearId="
         () => {
           orderId = 0;
+          virtual_type = null;
         }
       "
     ></order-send>

+ 4 - 1
template/admin/src/pages/order/orderList/handle/orderSend.vue

@@ -198,7 +198,10 @@ export default {
     status: Number,
     // total_num: Number,
     pay_type: String,
-    virtual_type: Number,
+    virtual_type: {
+      type: Number,
+      default: 0,
+    },
   },
   data() {
     return {

+ 1 - 2
template/admin/src/pages/product/productAdd/index.vue

@@ -1810,8 +1810,6 @@ export default {
       ],
       columnsInstalM: [],
       moveIndex: '',
-      // aa: [],
-      // openSubimit: false
     };
   },
   computed: {
@@ -2759,6 +2757,7 @@ export default {
             activeIds.push(item.id);
           });
           this.formValidate.label_id = activeIds;
+          if (this.openSubimit) return;
           this.openSubimit = true;
           this.formValidate.description = this.formatRichText(this.content);
           productAddApi(this.formValidate)