|
|
@@ -214,18 +214,22 @@ export default {
|
|
|
methods: {
|
|
|
printLabel(item){
|
|
|
let that = this
|
|
|
- printItem({id:item.id}).then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- that.$msg(res.msg)
|
|
|
- }
|
|
|
+ that.$util.confirmModal({content:'确认打印'},() => {
|
|
|
+ printItem({id:item.id}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$msg(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
printAllLabel(item){
|
|
|
let that = this
|
|
|
- printAll({orderSn:item.orderSn}).then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- that.$msg(res.msg)
|
|
|
- }
|
|
|
+ that.$util.confirmModal({content:'确认打印'},() => {
|
|
|
+ printAll({orderSn:item.orderSn}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$msg(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
goToClear (item) {
|