|
@@ -41,6 +41,7 @@
|
|
|
@goToSpecialVariety="goToSpecialVariety"
|
|
@goToSpecialVariety="goToSpecialVariety"
|
|
|
@goTree="goTree"
|
|
@goTree="goTree"
|
|
|
@delProduct="delProduct"
|
|
@delProduct="delProduct"
|
|
|
|
|
+ @cancelLimitBuyFn="cancelLimitBuyFn"
|
|
|
></Commondity>
|
|
></Commondity>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -68,6 +69,7 @@
|
|
|
<text style="margin-left:14upx;">{{customData.ratio}}{{customData.smallUnit}}/{{customData.bigUnit}}</text>
|
|
<text style="margin-left:14upx;">{{customData.ratio}}{{customData.smallUnit}}/{{customData.bigUnit}}</text>
|
|
|
<!-- 花样年花门店和出车,要求不显示成本,其他批发商需要 -->
|
|
<!-- 花样年花门店和出车,要求不显示成本,其他批发商需要 -->
|
|
|
<text style="margin-left:14upx;" v-if="customData.mainId!=1553 && customData.mainId!=1563">成本 {{customData.avCost?parseFloat(customData.avCost):0}}</text>
|
|
<text style="margin-left:14upx;" v-if="customData.mainId!=1553 && customData.mainId!=1563">成本 {{customData.avCost?parseFloat(customData.avCost):0}}</text>
|
|
|
|
|
+ <text style="margin-left:14upx;color:red;font-weight:bold;" v-if="customData.limitBuy > 0">限购 {{ customData.limitBuy }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="num_bx">
|
|
<view class="num_bx">
|
|
|
<input style="width:280upx" v-model="customData.userPrice" @focus="customData.userPrice = null" :class="[Number(customData.avCost) > Number(customData.userPrice) ? 'warning-price' : '']"
|
|
<input style="width:280upx" v-model="customData.userPrice" @focus="customData.userPrice = null" :class="[Number(customData.avCost) > Number(customData.userPrice) ? 'warning-price' : '']"
|
|
@@ -133,6 +135,7 @@ import { COMMODITY_TYPE } from "@/utils/declare";
|
|
|
import productMins from "@/mixins/product2";
|
|
import productMins from "@/mixins/product2";
|
|
|
import { getClassRemind,hasClassRemind,getMenu } from "@/api/item-class";
|
|
import { getClassRemind,hasClassRemind,getMenu } from "@/api/item-class";
|
|
|
import { delStatusUpdate } from '@/api/product';
|
|
import { delStatusUpdate } from '@/api/product';
|
|
|
|
|
+import { cancelLimitBuy } from "@/api/item";
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
export default {
|
|
export default {
|
|
|
name: "index",
|
|
name: "index",
|
|
@@ -290,6 +293,17 @@ export default {
|
|
|
this.$util.pageTo({url: "/admin/item/tree?stock="+info.stock+"&price="+price+"&customId="+this.option.customId+"&userPrice="+userPrice+"&productId="+info.id+"&ptItemId="+info.itemId+"&smallUnit="+smallUnit})
|
|
this.$util.pageTo({url: "/admin/item/tree?stock="+info.stock+"&price="+price+"&customId="+this.option.customId+"&userPrice="+userPrice+"&productId="+info.id+"&ptItemId="+info.itemId+"&smallUnit="+smallUnit})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ 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 || '取消成功')
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
selectFlowerNumFn(){
|
|
selectFlowerNumFn(){
|
|
|
this.$refs.globalClassImgRef.open('top')
|
|
this.$refs.globalClassImgRef.open('top')
|
|
|
},
|
|
},
|