Browse Source

调整订单新增

qymljy 2 years ago
parent
commit
9a797c140e

+ 3 - 3
src/HDrpManagement/orderManage/details/tabs/addProduct.vue

@@ -6,11 +6,11 @@
       <el-select v-model="params.content.where.isonsale" placeholder="上下架状态" size="small" @change="listData(params.content.pageNumber = 1)" clearable>
         <el-option
           label="上架"
-          :value="1">
+          :value="0">
         </el-option>
         <el-option
           label="下架"
-          :value="0">
+          :value="1">
         </el-option>
       </el-select>
     </div>
@@ -207,7 +207,7 @@ export default {
       this.tableSelectData = val
     },
     onConfirm () {
-      this.params.content.where.condition = ''
+     /* this.params.content.where.condition = ''*/
       this.$emit('onConfirm',this.tableSelectData,true)
       this.tableSelectData = []
       this.listData()

+ 6 - 0
src/HDrpManagement/orderManage/details/tabs/productlist.vue

@@ -150,6 +150,7 @@
         :visible.sync="drawer"
         append-to-body
         size="80%"
+        @close="onClose"
         direction="rtl">
           <div class="drawer__panel">
             <addProduct :drawer="drawer" :data="data" @onConfirm="onConfirm" ref="addpro"></addProduct>
@@ -534,6 +535,11 @@ export default {
         this.listData()
       })
 
+    },
+    onClose(){
+      this.drawer = false
+      this.$refs.addpro.params.content.where.condition = ''
+      this.$refs.addpro.params.content.where.isonsale = ''
     }
 
   },