|
@@ -69,8 +69,14 @@
|
|
|
|
|
|
|
|
<view class="title">
|
|
<view class="title">
|
|
|
商品信息
|
|
商品信息
|
|
|
- <text @click="goRefund(detailInfo)" v-if="detailInfo.status == 4" style="float:right;font-weight:normal;color:#3385FF;margin-right:20upx;">申请退款</text>
|
|
|
|
|
- <text @click="printAllLabel(detailInfo)" style="float:right;font-weight:normal;color:#3385FF;margin-right:100upx;">打全部标签</text>
|
|
|
|
|
|
|
+ <text @click="goRefund(detailInfo)" v-if="detailInfo.status == 4"
|
|
|
|
|
+ style="float:right;font-weight:normal;color:#3385FF;margin-right:30upx;">申请退款</text>
|
|
|
|
|
+ <text @click="printAllLabel(detailInfo,1)" style="float:right;font-weight:normal;color:#3385FF;margin-right:30upx;">
|
|
|
|
|
+ 打全部标签(价格码)
|
|
|
|
|
+ </text>
|
|
|
|
|
+ <text @click="printAllLabel(detailInfo,0)" style="float:right;font-weight:normal;color:#3385FF;margin-right:30upx;">
|
|
|
|
|
+ 打全部标签
|
|
|
|
|
+ </text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="module-com content-box">
|
|
<view class="module-com content-box">
|
|
|
<view class="commodity-view">
|
|
<view class="commodity-view">
|
|
@@ -89,8 +95,11 @@
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="info-line">
|
|
<view class="info-line">
|
|
|
- <text class="item-type" style="color:#3385FF;" @click.stop="printLabel(s)">打标签</text>
|
|
|
|
|
- <text class="item-count">{{ parseFloat(s.itemNum) }}扎 × ¥{{ s.bigPrice ? parseFloat(s.bigPrice) : 0 }}</text>
|
|
|
|
|
|
|
+ <text class="item-type" style="color:#3385FF;" @click.stop="printLabel(s,0)">打标签</text>
|
|
|
|
|
+ <text class="item-type" style="color:#3385FF;" @click.stop="printLabel(s,1)">打标签(价格码)</text>
|
|
|
|
|
+ <text class="item-count">
|
|
|
|
|
+ {{ parseFloat(s.itemNum) }}扎 × ¥{{ s.bigPrice ? parseFloat(s.bigPrice) : 0 }}
|
|
|
|
|
+ </text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -264,20 +273,20 @@ export default {
|
|
|
goRefund(info){
|
|
goRefund(info){
|
|
|
this.$util.pageTo({url:'/pagesPurchase/refund?orderSn='+info.orderSn})
|
|
this.$util.pageTo({url:'/pagesPurchase/refund?orderSn='+info.orderSn})
|
|
|
},
|
|
},
|
|
|
- printLabel(item){
|
|
|
|
|
|
|
+ printLabel(item,type){
|
|
|
let that = this
|
|
let that = this
|
|
|
that.$util.confirmModal({content:'确认打印'},() => {
|
|
that.$util.confirmModal({content:'确认打印'},() => {
|
|
|
- printItem({id:item.id}).then(res=>{
|
|
|
|
|
|
|
+ printItem({id:item.id,type:type}).then(res=>{
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
that.$msg(res.msg)
|
|
that.$msg(res.msg)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- printAllLabel(item){
|
|
|
|
|
|
|
+ printAllLabel(item,type){
|
|
|
let that = this
|
|
let that = this
|
|
|
that.$util.confirmModal({content:'确认打印'},() => {
|
|
that.$util.confirmModal({content:'确认打印'},() => {
|
|
|
- printAll({orderSn:item.orderSn}).then(res=>{
|
|
|
|
|
|
|
+ printAll({orderSn:item.orderSn,type:type}).then(res=>{
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
that.$msg(res.msg)
|
|
that.$msg(res.msg)
|
|
|
}
|
|
}
|