|
@@ -111,12 +111,13 @@
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="preSell()">预售</button></view>
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="preSell()">预售</button></view>
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="orderRecord()">下单记录</button></view>
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="orderRecord()">下单记录</button></view>
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="copyCreate()">复制新建</button></view>
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="copyCreate()">复制新建</button></view>
|
|
|
- <view style="width:100vw;margin-top:8upx;"><button @click="onStockChange()">路上库存变动</button></view>
|
|
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="sendStock()">分配库存</button></view>
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="sendStock()">分配库存</button></view>
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="shareItem()">打开分享(批发)</button></view>
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="shareItem()">打开分享(批发)</button></view>
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="getHdPosterFn()">分享海报(批发)</button></view>
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="getHdPosterFn()">分享海报(批发)</button></view>
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="getSkPosterFn()">分享海报(零售)</button></view>
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="getSkPosterFn()">分享海报(零售)</button></view>
|
|
|
- <view style="width:100vw;margin-top:8upx;"><button @click="ptAuth()">申请平台认证</button></view>
|
|
|
|
|
|
|
+ <view style="width:100vw;margin-top:8upx;"><button @click="toSubHalf()">减半扎</button></view>
|
|
|
|
|
+ <view style="width:100vw;margin-top:8upx;"><button @click="onStockChange()">路上库存变动</button></view>
|
|
|
|
|
+ <!-- <view style="width:100vw;margin-top:8upx;"><button @click="ptAuth()">申请平台认证</button></view> -->
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="delItem()">删除</button></view>
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="delItem()">删除</button></view>
|
|
|
<view style="width:100vw;margin-top:30upx;"><button @click="closeRightShow()">取消</button></view>
|
|
<view style="width:100vw;margin-top:30upx;"><button @click="closeRightShow()">取消</button></view>
|
|
|
</view>
|
|
</view>
|
|
@@ -144,7 +145,7 @@ import productMins from "@/mixins/product2";
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
import { getWeixinId } from "@/api/invite";
|
|
import { getWeixinId } from "@/api/invite";
|
|
|
import { print,cancelDiscountPrice,cancelPreSell,delStatusUpdate,cancelFullOffFn } 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,changeHalf } 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"
|
|
|
export default {
|
|
export default {
|
|
@@ -175,7 +176,9 @@ export default {
|
|
|
posterUrl:'',
|
|
posterUrl:'',
|
|
|
breakNum:'',
|
|
breakNum:'',
|
|
|
breakFocus:false,
|
|
breakFocus:false,
|
|
|
- breakShow:false
|
|
|
|
|
|
|
+ breakShow:false,
|
|
|
|
|
+ halfRemark:'',
|
|
|
|
|
+ halfRemind:''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed:{
|
|
computed:{
|
|
@@ -190,6 +193,30 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ toSubHalf(){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ that.$util.confirmModal({content:'请选择操作项',okText:'拆散',cancelText:'报损',cacelTextColor:'#37863a',okTextColor:'#37863a'},() => {
|
|
|
|
|
+ that.halfRemark = '拆散减半扎'
|
|
|
|
|
+ that.halfRemind = '确认拆散减半?'
|
|
|
|
|
+ that.subHalf()
|
|
|
|
|
+ },()=>{
|
|
|
|
|
+ that.halfRemind = '确认报损减半?'
|
|
|
|
|
+ that.halfRemark = '报损减半扎'
|
|
|
|
|
+ that.subHalf()
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ subHalf(){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ that.$util.confirmModal({content:this.halfRemind},() => {
|
|
|
|
|
+ that.closeRightShow()
|
|
|
|
|
+ uni.showLoading()
|
|
|
|
|
+ changeHalf({productId:this.currentInfo.id,add:0,remark:this.halfRemark}).then((res) => {
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
|
+ let stock = res.data.stock ? res.data.stock : 0
|
|
|
|
|
+ uni.showToast({title: '成功,剩 '+stock,duration:4000,icon:'success'})
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
goSearchFn(){
|
|
goSearchFn(){
|
|
|
this.searchFn()
|
|
this.searchFn()
|
|
|
},
|
|
},
|