|
|
@@ -28,10 +28,9 @@
|
|
|
<view v-if="!$util.isEmpty(globalCpList)">
|
|
|
<template v-for="(productItem, productIndex) in globalCpList">
|
|
|
<view style="height:255upx" :key="productIndex">
|
|
|
- <cpStock :info="productItem" @moreAction="moreAction" @doIt="doIt" @editCp="editCp"
|
|
|
- @doPrintLabel="doPrintLabel" @cancelDiscountFn="cancelDiscountFn" @cancelFullOff="cancelFullOff"
|
|
|
- :ref="`productRef${productItem.id}`" @hideChangeFn="hideChangeFn"
|
|
|
- @cancelPreSellFn="cancelPreSellFn" @breakSingleItem="breakSingleItem">
|
|
|
+ <cpStock :info="productItem" @moreAction="moreAction" @doIt="doIt" @editCp="editCp" @delCp="delCp"
|
|
|
+ @cancelDiscountFn="cancelDiscountFn" @cancelFullOff="cancelFullOff"
|
|
|
+ :ref="`cpRef${productItem.id}`" @hideChangeFn="hideChangeFn">
|
|
|
</cpStock>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -53,30 +52,6 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <modal-module :show="printLabelShow" @click="dialogInputConfirm" :maskClosable="true" title="数量" padding="30rpx 30rpx" >
|
|
|
- <template v-slot:content>
|
|
|
- <div class="app-modal-input-wrap">
|
|
|
- <div class="inp-list-line">
|
|
|
- <div class="line-input">
|
|
|
- <input type="number" ref="input" style="width:61.8%;text-align:center;" @blur="blur" :focus="printFocus" v-model="printNum" :adjust-position="false" class="inp-input" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </modal-module>
|
|
|
-
|
|
|
- <modal-module :show="breakShow" @click="breakConfirm" :maskClosable="true" title="拆散数量" padding="30rpx 30rpx" >
|
|
|
- <template v-slot:content>
|
|
|
- <div class="app-modal-input-wrap">
|
|
|
- <div class="inp-list-line">
|
|
|
- <div class="line-input">
|
|
|
- <input type="number" ref="input" style="width:61.8%;text-align:center;" @blur="blur" :focus="breakFocus" v-model="breakNum" :adjust-position="false" class="inp-input" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </modal-module>
|
|
|
-
|
|
|
<uni-popup ref="selectFlowerNumRef" background-color="#fff" type="center" :animation="false" class="class-popup-style">
|
|
|
<view style="display:flex;padding:20upx;height:auto;justify-content: space-between;align-items:center;flex-wrap:wrap;max-height:100vh;overflow:auto;">
|
|
|
|
|
|
@@ -97,9 +72,8 @@
|
|
|
import cpMins from "@/mixins/cp";
|
|
|
import { mapGetters } from "vuex";
|
|
|
import { getWeixinId } from "@/api/invite";
|
|
|
- import { getCpClassMenu,getCpList } from "@/api/cp";
|
|
|
- import { print,cancelDiscountPrice,cancelPreSell } from '@/api/product';
|
|
|
- import { getHdPoster,getSkPoster,breakItem,changeFrontHide,applyAuth } from '@/api/item'
|
|
|
+ import { getCpClassMenu,getCpList,delCpFn } from "@/api/cp";
|
|
|
+ import { getHdPoster,getSkPoster,changeFrontHide,applyAuth } from '@/api/item'
|
|
|
import uniPopup from '@/uni_modules/uni-popup/components/uni-popup/uni-popup.vue';
|
|
|
import ModalModule from "@/components/plugin/modal"
|
|
|
export default {
|
|
|
@@ -120,17 +94,9 @@
|
|
|
getAppIdList:{},
|
|
|
status:0,
|
|
|
delStatus:0,
|
|
|
- printItemId:0,
|
|
|
- printType:0,
|
|
|
- printLabelShow:false,
|
|
|
- printNum:'',
|
|
|
- printFocus:false,
|
|
|
warning:0,
|
|
|
currentInfo:{},
|
|
|
posterUrl:'',
|
|
|
- breakNum:'',
|
|
|
- breakFocus:false,
|
|
|
- breakShow:false,
|
|
|
classIndex: 0,
|
|
|
globalCpClassList:[],
|
|
|
globalCpList:[],
|
|
|
@@ -181,6 +147,16 @@
|
|
|
selectFlowerNumFn(){
|
|
|
this.$msg('开发中')
|
|
|
},
|
|
|
+ delCp(info){
|
|
|
+ let that = this
|
|
|
+ this.$util.confirmModal({content:'确认删除?'},() => {
|
|
|
+ delCpFn({id:info.id}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$msg(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
editCp(info){
|
|
|
this.$util.pageTo({url: '/admin/cp/updateCp?id='+info.id})
|
|
|
},
|