|
@@ -31,7 +31,7 @@
|
|
|
<template v-for="(productItem, productIndex) in classItem.child">
|
|
<template v-for="(productItem, productIndex) in classItem.child">
|
|
|
<view style="height:255upx" :id="`class_${classIndex}`" :key="productIndex">
|
|
<view style="height:255upx" :id="`class_${classIndex}`" :key="productIndex">
|
|
|
<ItemStock v-if="classItem.isActive" :info="productItem" @moreAction="moreAction"
|
|
<ItemStock v-if="classItem.isActive" :info="productItem" @moreAction="moreAction"
|
|
|
- @doPrintLabel="doPrintLabel" @cancelDiscountFn="cancelDiscountFn"
|
|
|
|
|
|
|
+ @doPrintLabel="doPrintLabel" @cancelDiscountFn="cancelDiscountFn" @cancelFullOff="cancelFullOff"
|
|
|
:ref="`productRef${productItem.id}`" @hideChangeFn="hideChangeFn"
|
|
:ref="`productRef${productItem.id}`" @hideChangeFn="hideChangeFn"
|
|
|
@cancelPreSellFn="cancelPreSellFn" @breakSingleItem="breakSingleItem">
|
|
@cancelPreSellFn="cancelPreSellFn" @breakSingleItem="breakSingleItem">
|
|
|
</ItemStock>
|
|
</ItemStock>
|
|
@@ -127,7 +127,7 @@ import ItemStock from "./components/item";
|
|
|
import productMins from "@/mixins/product";
|
|
import productMins from "@/mixins/product";
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
import { getWeixinId } from "@/api/invite";
|
|
import { getWeixinId } from "@/api/invite";
|
|
|
-import { print,cancelDiscountPrice,cancelPreSell,delStatusUpdate } from '@/api/product';
|
|
|
|
|
|
|
+import { print,cancelDiscountPrice,cancelPreSell,delStatusUpdate,cancelFullOffFn } from '@/api/product';
|
|
|
import { getHdPoster,getSkPoster,breakItem,changeFrontHide,applyAuth } from '@/api/item'
|
|
import { getHdPoster,getSkPoster,breakItem,changeFrontHide,applyAuth } from '@/api/item'
|
|
|
import uniPopup from '@/uni_modules/uni-popup/components/uni-popup/uni-popup.vue';
|
|
import uniPopup from '@/uni_modules/uni-popup/components/uni-popup/uni-popup.vue';
|
|
|
import ModalModule from "@/components/plugin/modal"
|
|
import ModalModule from "@/components/plugin/modal"
|
|
@@ -266,6 +266,16 @@ export default {
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ cancelFullOff(item){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ this.$util.confirmModal({content:'确认取消满减?'},() => {
|
|
|
|
|
+ cancelFullOffFn({id:item.id}).then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ that.$msg(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
closePoster(){
|
|
closePoster(){
|
|
|
this.$refs.posterShow.close()
|
|
this.$refs.posterShow.close()
|
|
|
},
|
|
},
|