|
|
@@ -243,6 +243,9 @@
|
|
|
<!-- #ifdef APP-PLUS -->
|
|
|
<button class="admin-button-com default" v-if="detailInfo.status == 4" @click="shareOrder()">分享</button>
|
|
|
<!-- #endif -->
|
|
|
+
|
|
|
+ <button class="admin-button-com default" style="width:240upx;" v-if="detailInfo.status != 1 && detailInfo.status != 5" @click="printOrder(detailInfo)">打印(无价格)</button>
|
|
|
+
|
|
|
<button @click="cancelOrderFn(detailInfo)" v-if="detailInfo.status == 1" class="admin-button-com default" :class="active">取消</button>
|
|
|
<template v-for="s in detailInfo.buttonList">
|
|
|
<button :key="s.type" @click="clickBtn(s, detailInfo)" v-if="s.show == 1" :disabled="s.disable === 1" class="admin-button-com default" :class="s.disable === 1?'active':''">
|
|
|
@@ -460,6 +463,12 @@ export default {
|
|
|
//console.log(unixTimestamp);
|
|
|
return unixTimestamp;
|
|
|
},
|
|
|
+ printOrder(item){
|
|
|
+ uni.showLoading({title:"打印中..."})
|
|
|
+ cloudPrintOrder({id:item.id,noPrice:1}).then((res) => {
|
|
|
+ uni.hideLoading()
|
|
|
+ })
|
|
|
+ },
|
|
|
clickBtn(s, item) {
|
|
|
this.orderId = item.id;
|
|
|
if (s.type === "selfGet") {
|
|
|
@@ -480,17 +489,6 @@ export default {
|
|
|
item.printNum++
|
|
|
uni.hideLoading()
|
|
|
})
|
|
|
- }else{
|
|
|
- console.log('走蓝牙打印方式')
|
|
|
- let BleVal = JSON.parse(item.printData);
|
|
|
- switch(uni.getSystemInfoSync().platform){
|
|
|
- case 'android':
|
|
|
- this.destroyed(BleVal);
|
|
|
- break;
|
|
|
- case 'ios':
|
|
|
- this.autoLinkBle(BleVal);
|
|
|
- break;
|
|
|
- }
|
|
|
}
|
|
|
} else if (s.type === "send") {
|
|
|
//发货
|