|
|
@@ -52,7 +52,7 @@
|
|
|
<ItemStock :info="productItem" @moreAction="moreAction"
|
|
|
@doPrintLabel="doPrintLabel" @cancelDiscountFn="cancelDiscountFn" @cancelFullOff="cancelFullOff"
|
|
|
:ref="`productRef${productItem.id}`" @hideChangeFn="hideChangeFn"
|
|
|
- @cancelPreSellFn="cancelPreSellFn" @breakSingleItem="breakSingleItem">
|
|
|
+ @cancelPreSellFn="cancelPreSellFn" @cancelLimitBuyFn="cancelLimitBuyFn" @breakSingleItem="breakSingleItem">
|
|
|
</ItemStock>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -228,6 +228,7 @@ import productMins from "@/mixins/product2";
|
|
|
import { mapGetters } from "vuex";
|
|
|
import { getWeixinId } from "@/api/invite";
|
|
|
import { print,cancelDiscountPrice,cancelPreSell,delStatusUpdate,cancelFullOffFn } from '@/api/product';
|
|
|
+import { cancelLimitBuy } from '@/api/item';
|
|
|
import { getHdPoster,getSkPoster,changeFrontHide,applyAuth,moveToLosing } from '@/api/item'
|
|
|
import uniPopup from '@/uni_modules/uni-popup/components/uni-popup/uni-popup.vue';
|
|
|
import ModalModule from "@/components/plugin/modal"
|
|
|
@@ -462,6 +463,17 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ cancelLimitBuyFn(item){
|
|
|
+ let that = this
|
|
|
+ this.$util.confirmModal({ content: '确认取消限购?' }, () => {
|
|
|
+ cancelLimitBuy({ id: item.id }).then(res => {
|
|
|
+ if (res.code == 1) {
|
|
|
+ item.limitBuy = 0
|
|
|
+ that.$msg(res.msg || '取消成功')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
closePoster(){
|
|
|
this.$refs.posterShow.close()
|
|
|
},
|