|
@@ -236,24 +236,20 @@ export default {
|
|
|
watch:{
|
|
watch:{
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- printLabel(){
|
|
|
|
|
|
|
+ printLabel(item){
|
|
|
let that=this;
|
|
let that=this;
|
|
|
let doList = ['打1个标签', '打2个标签','打5个标签', '打10个标签','打100个标签','打500个标签']
|
|
let doList = ['打1个标签', '打2个标签','打5个标签', '打10个标签','打100个标签','打500个标签']
|
|
|
let doNum = [1,2,5,10,100,500]
|
|
let doNum = [1,2,5,10,100,500]
|
|
|
uni.showActionSheet({
|
|
uni.showActionSheet({
|
|
|
itemList: doList,
|
|
itemList: doList,
|
|
|
success: function (respond) {
|
|
success: function (respond) {
|
|
|
- let index = respond.tapIndex
|
|
|
|
|
- if (index == 0) {
|
|
|
|
|
- that.pageTo({url: '/admin/item/copy',query: {id: item.id}})
|
|
|
|
|
- }else{
|
|
|
|
|
- let currentNum = Number(doNum[index])
|
|
|
|
|
- print({id:item.id,num:currentNum}).then(res=>{
|
|
|
|
|
- if(res.code == 1){
|
|
|
|
|
- that.$msg(res.msg)
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ let index = respond.tapIndex
|
|
|
|
|
+ let currentNum = Number(doNum[index])
|
|
|
|
|
+ print({id:item.id,num:currentNum}).then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ that.$msg(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|