|
@@ -57,15 +57,27 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<modal-module :show="printLabelShow" @click="dialogInputConfirm" :maskClosable="true" title="数量" padding="30rpx 30rpx" >
|
|
<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="printBlur" :focus="printFocus" v-model="printNum" :adjust-position="false" class="inp-input" />
|
|
|
|
|
|
|
+ <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="printBlur" :focus="printFocus" v-model="printNum" :adjust-position="false" class="inp-input" />
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </modal-module>
|
|
|
|
|
+
|
|
|
|
|
+ <modal-module :show="moveLabelShow" @click="confirmToLosing" :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;" v-model="moveNum" :adjust-position="false" class="inp-input" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
</modal-module>
|
|
</modal-module>
|
|
|
|
|
|
|
|
<modal-module :show="breakShow" @click="breakConfirm" :maskClosable="true" title="拆散数量" padding="30rpx 30rpx" >
|
|
<modal-module :show="breakShow" @click="breakConfirm" :maskClosable="true" title="拆散数量" padding="30rpx 30rpx" >
|
|
@@ -108,17 +120,18 @@
|
|
|
<view style="width:100vw;"><button @click="costChange()">成本变动记录</button></view>
|
|
<view style="width:100vw;"><button @click="costChange()">成本变动记录</button></view>
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="priceChange()">价格变动记录</button></view>
|
|
<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="varietyManage()">多颜色</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="copyCreate()">复制新建</button></view>
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="copyCreate()">复制新建</button></view>
|
|
|
- <view style="width:100vw;margin-top:8upx;"><button @click="sendStock()">分配库存</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="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="toSubHalf()">减半扎</button></view>
|
|
|
|
|
|
|
+ <view style="width:100vw;margin-top:8upx;"><button @click="orderRecord()">下单记录</button></view>
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="onStockChange()">路上库存变动</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="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:8upx;"><button @click="sendStock()">分配库存</button></view>
|
|
|
|
|
+ <view style="width:100vw;margin-top:8upx;"><button @click="preSell()">预售</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>
|
|
|
</uni-popup>
|
|
</uni-popup>
|
|
@@ -145,7 +158,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,changeHalf } from '@/api/item'
|
|
|
|
|
|
|
+import { getHdPoster,getSkPoster,breakItem,changeFrontHide,applyAuth,changeHalf,moveToLosing } 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 {
|
|
@@ -169,7 +182,9 @@ export default {
|
|
|
printItemId:0,
|
|
printItemId:0,
|
|
|
printType:0,
|
|
printType:0,
|
|
|
printLabelShow:false,
|
|
printLabelShow:false,
|
|
|
|
|
+ moveLabelShow:false,
|
|
|
printNum:'',
|
|
printNum:'',
|
|
|
|
|
+ moveNum:'',
|
|
|
printFocus:false,
|
|
printFocus:false,
|
|
|
warning:0,
|
|
warning:0,
|
|
|
currentInfo:{},
|
|
currentInfo:{},
|
|
@@ -177,8 +192,7 @@ export default {
|
|
|
breakNum:'',
|
|
breakNum:'',
|
|
|
breakFocus:false,
|
|
breakFocus:false,
|
|
|
breakShow:false,
|
|
breakShow:false,
|
|
|
- halfRemark:'',
|
|
|
|
|
- halfRemind:''
|
|
|
|
|
|
|
+ halfRemark:''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed:{
|
|
computed:{
|
|
@@ -197,23 +211,41 @@ export default {
|
|
|
let that = this
|
|
let that = this
|
|
|
that.$util.confirmModal({content:'请选择操作项',okText:'拆散',cancelText:'报损',cacelTextColor:'#37863a',okTextColor:'#37863a'},() => {
|
|
that.$util.confirmModal({content:'请选择操作项',okText:'拆散',cancelText:'报损',cacelTextColor:'#37863a',okTextColor:'#37863a'},() => {
|
|
|
that.halfRemark = '拆散减半扎'
|
|
that.halfRemark = '拆散减半扎'
|
|
|
- that.halfRemind = '确认拆散减半?'
|
|
|
|
|
that.subHalf()
|
|
that.subHalf()
|
|
|
},()=>{
|
|
},()=>{
|
|
|
- that.halfRemind = '确认报损减半?'
|
|
|
|
|
that.halfRemark = '报损减半扎'
|
|
that.halfRemark = '报损减半扎'
|
|
|
that.subHalf()
|
|
that.subHalf()
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
subHalf(){
|
|
subHalf(){
|
|
|
let that = this
|
|
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:1800,icon:'success'})
|
|
|
|
|
|
|
+ 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
|
|
|
|
|
+ },
|
|
|
|
|
+ confirmToLosing(val){
|
|
|
|
|
+ let that=this;
|
|
|
|
|
+ if (val.index == 0) {
|
|
|
|
|
+ that.moveLabelShow = false
|
|
|
|
|
+ that.moveNum = ''
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ that.$util.confirmModal({content:'确定挪动?'},() => {
|
|
|
|
|
+ moveToLosing({id:this.currentInfo.id,num:that.moveNum}).then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ that.$msg(res.msg)
|
|
|
|
|
+ that.moveLabelShow = false
|
|
|
|
|
+ that.moveNum = ''
|
|
|
|
|
+ that.closeRightShow()
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|