|
@@ -1,7 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<view class="replenishment-manualPrint-wrap">
|
|
<view class="replenishment-manualPrint-wrap">
|
|
<view class="replenishment-manualPrint-body">
|
|
<view class="replenishment-manualPrint-body">
|
|
- <u-alert-tips :show="show" @close="show = false" type="warning" description="正在打印中,请勿息屏或退出应用!"></u-alert-tips>
|
|
|
|
<view class="part-list">
|
|
<view class="part-list">
|
|
<!-- 补货产品 -->
|
|
<!-- 补货产品 -->
|
|
<partList :list="partList" title="补货产品" model="checkbox" fromPage="manualPrint" ref="partList" noDataText="暂无产品" @allChecked="allCheckedCallback"></partList>
|
|
<partList :list="partList" title="补货产品" model="checkbox" fromPage="manualPrint" ref="partList" noDataText="暂无产品" @allChecked="allCheckedCallback"></partList>
|
|
@@ -19,6 +18,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+ import { clzConfirm, numberToFixed } from '@/libs/tools';
|
|
import kkPrinter from '@/components/kk-printer/index.vue';
|
|
import kkPrinter from '@/components/kk-printer/index.vue';
|
|
import { shelfReplenishDetail, shelfReplenishDetailList, shelfReplenishPrintSign } from '@/api/shelfReplenish'
|
|
import { shelfReplenishDetail, shelfReplenishDetailList, shelfReplenishPrintSign } from '@/api/shelfReplenish'
|
|
import partList from '@/pages/common/partList.vue'
|
|
import partList from '@/pages/common/partList.vue'
|
|
@@ -92,6 +92,10 @@
|
|
item.printQty = item.confirmQty ? Number(item.confirmQty) : 0
|
|
item.printQty = item.confirmQty ? Number(item.confirmQty) : 0
|
|
})
|
|
})
|
|
this.partList = res.data || []
|
|
this.partList = res.data || []
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
+ this.allCheckeChange({value:true})
|
|
|
|
+ this.allChecked = true
|
|
|
|
+ })
|
|
}else{
|
|
}else{
|
|
this.partList = []
|
|
this.partList = []
|
|
}
|
|
}
|
|
@@ -135,7 +139,16 @@
|
|
_this.printIndex = 0
|
|
_this.printIndex = 0
|
|
_this.$refs.kkprinter.onPrintSuccess()
|
|
_this.$refs.kkprinter.onPrintSuccess()
|
|
_this.isParinting = false
|
|
_this.isParinting = false
|
|
- _this.show = false
|
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ clzConfirm({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '打印已经结束,是否返回上页!',
|
|
|
|
+ success (ret) {
|
|
|
|
+ if (ret.confirm || ret.index == 0) {
|
|
|
|
+ uni.navigateBack()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -147,7 +160,10 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
this.isParinting = true
|
|
this.isParinting = true
|
|
- this.show = true
|
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
+ mask: true,
|
|
|
|
+ title: '正在打印中,请勿息屏或退出应用!'
|
|
|
|
+ })
|
|
this.printOnce(opt,tsc,blesdk,result[this.printIndex])
|
|
this.printOnce(opt,tsc,blesdk,result[this.printIndex])
|
|
}else{
|
|
}else{
|
|
this.toashMsg("请选择产品!")
|
|
this.toashMsg("请选择产品!")
|