|
@@ -1036,7 +1036,14 @@ let vm = new Vue({
|
|
|
}
|
|
|
});
|
|
|
})
|
|
|
-
|
|
|
+ },
|
|
|
+ //确认提货
|
|
|
+ confirmDelivery: function(){
|
|
|
+ confirm('确认提货吗?', function () {
|
|
|
+ $.get("../pickupcode/confirmDelivery/"+vm.orderEntity.orderSn, function (r) {
|
|
|
+ alert(r.msg);
|
|
|
+ });
|
|
|
+ })
|
|
|
},
|
|
|
retrySendOrder:function(){
|
|
|
},
|
|
@@ -1082,7 +1089,7 @@ let vm = new Vue({
|
|
|
});
|
|
|
|
|
|
function getPrintContent(ticket) {
|
|
|
- var content = "<div style=\"width: 250px;font-family: 微软雅黑;font-size: 15px;\">";
|
|
|
+ var content = "<div style=\"width: 300px;font-family: 微软雅黑;font-size: 15px;\">";
|
|
|
// // 打印ogo
|
|
|
// content += "<div style=\"text-align: center;width: 100%;height: 50px;\">";
|
|
|
// // content += "<img src='./../../statics/img/cw_logo.png' />";
|
|
@@ -1140,7 +1147,6 @@ function printArea(content) {
|
|
|
|
|
|
frameWindow.focus();
|
|
|
frameWindow.print();
|
|
|
- frameWindow.print();
|
|
|
alert('打印小票完成');
|
|
|
/*if(!vm.firstPrint){
|
|
|
setTimeout(function() {
|
|
@@ -1179,7 +1185,7 @@ function printArea2(content) {
|
|
|
doc.close();
|
|
|
var frameWindow = iframe.contentWindow;
|
|
|
frameWindow.focus();
|
|
|
- frameWindow.print();
|
|
|
+ // frameWindow.print();
|
|
|
frameWindow.print();
|
|
|
frameWindow.close();
|
|
|
}
|
|
@@ -1201,8 +1207,8 @@ function openWebSocket() {
|
|
|
//无法使用wss,浏览器打开WebSocket时报错
|
|
|
//ws对应http、wss对应https。
|
|
|
// webSocket = new WebSocket("ws://183.62.225.124:8080/ws/server/"+storeId);
|
|
|
- // webSocket = new WebSocket("ws://127.0.0.1:8080//ws/server/"+storeId);
|
|
|
- webSocket = new WebSocket("wss://cb.k1net.cn/ws/server/"+storeId);
|
|
|
+ webSocket = new WebSocket("ws://127.0.0.1:8070//ws/server/"+storeId);
|
|
|
+ // webSocket = new WebSocket("wss://cb.k1net.cn/ws/server/"+storeId);
|
|
|
if (webSocket.readyState === webSocket.CONNECTING) {
|
|
|
console.log('1.连接正在打开......');
|
|
|
}
|