lilei hace 7 meses
padre
commit
b0a48e1fc5
Se han modificado 1 ficheros con 6 adiciones y 11 borrados
  1. 6 11
      src/views/salesManagement/salesQueryNew/comps/productList.vue

+ 6 - 11
src/views/salesManagement/salesQueryNew/comps/productList.vue

@@ -554,18 +554,13 @@ export default {
         centered: true,
         onOk () {
           _this.spinning = true
-          salesDetailBatchDel({
+          const params = {
+            salesBillDetailSnList: obj,
             salesBillSn: _this.salesBillSn,
-            salesPromoSn: _this.promo.salesPromoSn,
-            salesBillDetailSnList: obj
-          }).then(res => {
-            if (res.status == 200) {
-              _this.$refs.table.refresh(false)
-              _this.$emit('insterOk', 'promo')
-              _this.$message.success(res.message)
-            }
-            _this.spinning = false
-          })
+            oldSalesPromoSn: _this.promo.salesPromoSn
+          }
+          // 更换活动
+          _this.$emit('upActive', _this.promo, '0', params)
         }
       })
     },