|
|
@@ -121,7 +121,6 @@
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="priceChange()">价格变动记录</button></view>
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="varietyManage()">多颜色</button></view>
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="copyCreate()">复制新建</button></view>
|
|
|
- <view style="width:100vw;margin-top:8upx;"><button @click="toSubHalf()">减半扎</button></view>
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="moveToLose()">挪到处理区</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>
|
|
|
@@ -207,26 +206,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
- toSubHalf(){
|
|
|
- let that = this
|
|
|
- that.$util.confirmModal({content:'请选择操作项',okText:'拆散',cancelText:'报损',cacelTextColor:'#37863a',okTextColor:'#37863a'},() => {
|
|
|
- that.halfRemark = '拆散减半扎'
|
|
|
- that.subHalf()
|
|
|
- },()=>{
|
|
|
- that.halfRemark = '报损减半扎'
|
|
|
- that.subHalf()
|
|
|
- })
|
|
|
- },
|
|
|
- subHalf(){
|
|
|
- let that = this
|
|
|
- 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:1400,icon:'success'})
|
|
|
- })
|
|
|
- },
|
|
|
moveToLose(){
|
|
|
this.moveLabelShow = true
|
|
|
this.moveNum = this.currentInfo.stock?parseFloat(this.currentInfo.stock):0
|