@@ -783,7 +783,7 @@
@@ -230,6 +261,7 @@ import {getDicts} from "@/api/dict/data";
import {queryStaffs} from "@/api/cashier/staff";
import {refundApi} from "@/api/cashier/refund";
import {exportExcelVipApi} from "@/api/order/exportExcel";
+import {getLodop} from "@/api/LodopFuncs";
export default {
name: "order_Cashier",
@@ -291,12 +323,96 @@ export default {
},
+ async printLocally() {
+ //初始化打印函数
+ let LODOP = getLodop(); // 初始化打印
+ LODOP.PRINT_INIT();
+ var bodyStyle = `
+ `
+ var fromHtml = bodyStyle+this.$refs.report.innerHTML
+
+
+ LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", fromHtml);
+
+ LODOP.SET_PRINT_MODE("FULL_WIDTH_FOR_OVERFLOW",true);
+
+ // LODOP.ADD_PRINT_BARCODE(10,40,100,100,'QRCode','123456789');
+ // let preview = LODOP.PREVIEW();
+ // console.log("preview",preview);
+ LODOP.PRINT();
+
+ },
// 补打
patchwork(data){
const orderNo = data.name
this.$modal.confirm('确定您要补打当前订单吗?当前会员[' + orderNo + '],请确保云打印机正在运行中').then(function() {
// return delUser(row.id);
- }).then(() => {
+ }).then(async () => {
+ await cardValueRecordInfo(data.id).then( response => {
+ this.oilOrder = response.data
+ })
+ this.printLocally()
this.$modal.msgSuccess("打印指令已发送打印机,请查看打印结果");
}).catch(() => {});
},
diff --git a/gasStation-uni/pages/index/index.vue b/gasStation-uni/pages/index/index.vue
index 76abf5c4b..207687bef 100644
--- a/gasStation-uni/pages/index/index.vue
+++ b/gasStation-uni/pages/index/index.vue
@@ -153,9 +153,7 @@
shows: '',
title: '',
oilTypeList: '',
- columns: [
-
- ],
+ columns: [],
oilInfo: {
oilName: '未添加',
oilPrice: '0',
@@ -402,54 +400,28 @@
})
- console.log("appltType", uni.getStorageSync("appltType"))
- if (uni.getStorageSync("appltType") == "WECHAT") {
- // 判断当前登录的code是否相同
- wx.login({
- success(res) {
- if (res.code) {
- //发起网络请求
- request({
- url: 'clientApi/sign/mpWxLogin2',
- method: "POST",
- data: {
- code: res.code
- }
- }).then(res => {
- if (!res.data) {
- uni.removeStorageSync("App-Token");
- }
- })
- } else {
- console.log('登录失败!' + res.errMsg)
- }
- }
- })
- } else if (uni.getStorageSync("appltType") == "ALIPAY") {
- my.getAuthCode({
- scopes: 'auth_base',
- success: res => {
- const authCode = res.authCode;
- console.log(res)
+ // 判断当前登录的code是否相同
+ wx.login({
+ success(res) {
+ if (res.code) {
+ //发起网络请求
request({
- url: "clientApi/sign/alipayLogin/getUserid2",
- method: 'post',
+ url: 'clientApi/sign/mpWxLogin2',
+ method: "POST",
data: {
- authCode: authCode,
- storeId: uni.getStorageSync("storeId"),
- },
- }).then((resp) => {
+ code: res.code
+ }
+ }).then(res => {
if (!res.data) {
uni.removeStorageSync("App-Token");
}
-
})
- },
- fail: err => {
- console.log('my.getAuthCode 调用失败', err)
+ } else {
+ console.log('登录失败!' + res.errMsg)
}
- });
- }
+ }
+ })
+
},
@@ -510,7 +482,7 @@
},
}).then((response) => {
- if (response.data.store) {
+ if (response.data.store){
_this.distance = (Math.ceil(response.data.distance))
.toFixed(1)
_this.store = response.data.store
@@ -535,13 +507,13 @@
}
_this.lon = _this.store.longitude,
- _this.lat = _this.store.latitude,
+ _this.lat = _this.store.latitude,
- _this.getIndexBanner()
- } else {
+ _this.getIndexBanner()
+ }else{
uni.showToast({
- title: "当前店铺已关闭!!!",
- icon: "none"
+ title:"当前店铺已关闭!!!",
+ icon:"none"
})
}
@@ -952,4 +924,4 @@
color: white;
margin: 0 auto;
}
-
\ No newline at end of file
+
diff --git a/gasStation-uni/pages/refuel/refuel.vue b/gasStation-uni/pages/refuel/refuel.vue
index c9400c669..7fe84b48a 100644
--- a/gasStation-uni/pages/refuel/refuel.vue
+++ b/gasStation-uni/pages/refuel/refuel.vue
@@ -666,7 +666,7 @@
width: 100%;
display: flex;
flex-wrap: wrap;
- height: 77%;
+
overflow-y: scroll;
}
@@ -694,6 +694,7 @@
margin-top: 5px;
padding: 12px 0px;
border-radius: 6px;
+ margin-bottom: 10px;
}
.box-oil2 {
@@ -706,7 +707,7 @@
color: #666666;
background: white;
margin-right: 13px;
- margin-top: 10px;
+
padding: 12px 0px;
border-radius: 6px;
}
@@ -760,4 +761,4 @@
text-align: right;
color: #999999;
}
-
\ No newline at end of file
+
diff --git a/gasStation-uni/pagesHome/oilRecharge/oilRecharge.vue b/gasStation-uni/pagesHome/oilRecharge/oilRecharge.vue
index 9f5528fab..ba23a96ee 100644
--- a/gasStation-uni/pagesHome/oilRecharge/oilRecharge.vue
+++ b/gasStation-uni/pagesHome/oilRecharge/oilRecharge.vue
@@ -282,79 +282,71 @@
if (res.code === 200) {
let _this = this
console.log(res)
- let payProvider = "wxpay"
- _this.orderInfo = JSON.parse(res.data.reservedPayInfo);
- uni.requestPayment({
- // 微信支付provider: 'wxpay' 支付宝支付 'alipay'
- provider: payProvider,
- timeStamp: _this.orderInfo.timeStamp,
- nonceStr: _this.orderInfo.nonceStr,
- package: _this.orderInfo.package,
- signType: 'MD5',
- paySign: _this.orderInfo.paySign,
- success: function(res) {
- console.log('success:', res);
- uni.reLaunch({
- url: '/pagesRefuel/orderSuccess/index'
- })
- },
- fail: function(err) {
- request({
- url: "/business/marketingActivity/activeExchange/cardValueOrders",
- method: 'put',
- data: {
- "orderNo": res.data.data.orderNo,
- "status": "payFail"
- },
- }).then((res) => {
- uni.showToast({
- title: "支付失败!",
- icon: "error"
+ if (uni.getStorageSync("appltType") == "WECHAT") {
+ let payProvider = "wxpay"
+ _this.orderInfo = JSON.parse(res.data.reservedPayInfo);
+ uni.requestPayment({
+ // 微信支付provider: 'wxpay' 支付宝支付 'alipay'
+ provider: payProvider,
+ timeStamp: _this.orderInfo.timeStamp,
+ nonceStr: _this.orderInfo.nonceStr,
+ package: _this.orderInfo.package,
+ signType: 'MD5',
+ paySign: _this.orderInfo.paySign,
+ success: function(res) {
+ console.log('success:', res);
+ uni.reLaunch({
+ url: '/pagesRefuel/orderSuccess/index'
})
- })
- console.log('fail:', err);
- }
- });
- }
- if (_this.appltType == "ALIPAY") {
- my.tradePay({
- tradeNO: res.data.data.reservedTransactionId
- }, function(resp) {
- if (resp.resultCode == '9000') {
- console.log("支付成功")
- // 支付成功后调用修改使用后的优惠券情况
- /* _this.preferentialData.storeId = _this.oilOrder.storeId
- _this.preferentialData.orderAmount = _this.oilOrder.orderAmount
- _this.preferentialData.oilId = _this.oilOrder.oils
- _this.preferentialData.mtUserLevel = _this.user.gradeId
- request({
- url: "business/marketingActivity/cardFavorableRecord/updateCardAndActiveById",
- method: 'post',
- data: _this.preferentialData,
- }).then((res)=>{
- console.log(res);
- }) */
- uni.reLaunch({
- url: '/pagesRefuel/orderSuccess/index'
- })
- } else {
- request({
- url: "/business/allOrderInfo/orderStatus",
- method: 'post',
- data: {
- "orderNo": res.data.data.orderNo,
- "status": "payFail"
- },
- }).then((res) => {
- uni.showToast({
- title: "支付失败!",
- icon: "error"
+ },
+ fail: function(err) {
+ request({
+ url: "/business/marketingActivity/activeExchange/cardValueOrders",
+ method: 'put',
+ data: {
+ "orderNo": res.data.data.orderNo,
+ "status": "payFail"
+ },
+ }).then((res) => {
+ uni.showToast({
+ title: "支付失败!",
+ icon: "error"
+ })
})
- })
- console.log('支付失败,' + resp.resultCode);
- }
- });
+ console.log('fail:', err);
+ }
+ });
+ }
+
+ if (uni.getStorageSync("appltType") == "ALIPAY") {
+ my.tradePay({
+ tradeNO: res.data.data.reservedTransactionId
+ }, function(resp) {
+ if (resp.resultCode == '9000') {
+ console.log("支付成功")
+ uni.reLaunch({
+ url: '/pagesRefuel/orderSuccess/index'
+ })
+ } else {
+ request({
+ url: "/business/allOrderInfo/orderStatus",
+ method: 'post',
+ data: {
+ "orderNo": res.data.data.orderNo,
+ "status": "payFail"
+ },
+ }).then((res) => {
+ uni.showToast({
+ title: "支付失败!",
+ icon: "error"
+ })
+ })
+ console.log('支付失败,' + resp.resultCode);
+ }
+ });
+ }
}
+
})
},
diff --git a/gasStation-uni/pagesLogin/login/webview.vue b/gasStation-uni/pagesLogin/login/webview.vue
index 3faf16b3b..a4001dd10 100644
--- a/gasStation-uni/pagesLogin/login/webview.vue
+++ b/gasStation-uni/pagesLogin/login/webview.vue
@@ -6,7 +6,27 @@
-
+
+ 来个油惠小程序隐私保护指引
+ 本指引是来个油惠小程序开发者 "山东华夏深蓝数字科技有限公司"(以下简称“开发者”)为处理你的个人信息而制定。
+ 开发者处理的信息
+ 根据法律规定,开发者仅处理实现小程序功能所必要的信息。
+ 为了您能正常使用小程序,需要您进行登录,开发者将在获取你的明示同意后,收集你的手机号。
+ 为了获取离您最近的店铺信息,开发者将在获取你的明示同意后,收集你的位置信息。
+ 你的权益
+ 关于你的个人信息,你可以通过以下方式与开发者联系,行使查阅、复制、更正、删除等法定权利。
+ 若你在小程序中注册了账号,你可以通过以下方式与开发者联系,申请注销你在小程序中使用的账号。在受理你的申请后,开发者承诺在十五个工作日内完成核查和处理,并按照法律法规要求处理你的相关信息。
+ 电话:15288868301
+ 开发者对信息的存储
+ 开发者承诺,除法律法规另有规定外,开发者对你的信息的保存期限应当为实现处理目的所必要的最短时间。
+ 信息的使用规则
+ 开发者将会在本指引所明示的用途内使用收集的信息
+ 如开发者使用你的信息超出本指引目的或合理范围,开发者必须在变更使用目的或范围前,再次以电话方式告知并征得你的明示同意。
+ 信息对外提供
+ 开发者承诺,不会主动共享或转让你的信息至任何第三方,如存在确需共享或转让时,开发者应当直接征得或确认第三方征得你的单独同意。
+ 开发者承诺,不会对外公开披露你的信息,如必须公开披露时,开发者应当向你告知公开披露的目的、披露信息的类型及可能涉及的信息,并征得你的单独同意。
+ 你认为开发者未遵守上述约定,或有其他的投诉建议、或未成年人个人信息保护相关问题,可通过以下方式与开发者联系;或者向微信进行投诉。
+ 电话 : 15288868301
@@ -75,4 +95,4 @@
position: fixed;
top: 0px;
}
-
\ No newline at end of file
+
diff --git a/gasStation-uni/pagesRefuel/orderDetail/index.vue b/gasStation-uni/pagesRefuel/orderDetail/index.vue
index 0a1841724..a2e7e9c47 100644
--- a/gasStation-uni/pagesRefuel/orderDetail/index.vue
+++ b/gasStation-uni/pagesRefuel/orderDetail/index.vue
@@ -338,17 +338,15 @@
return;
}
if(res.data.success == "ok"){
- _this.preferentialData.storeId = _this.oilOrder.storeId
- _this.preferentialData.orderAmount = _this.oilOrder.orderAmount
- _this.preferentialData.oilId = _this.oilOrder.oils
- _this.preferentialData.mtUserLevel = _this.user.gradeId
- request({
- url: "business/marketingActivity/cardFavorableRecord/updateCardAndActiveById",
- method: 'post',
- data: _this.preferentialData,
- }).then((res)=>{
- console.log(res);
- })
+ // _this.preferentialData.storeId = _this.oilOrder.storeId
+ // _this.preferentialData.orderAmount = _this.oilOrder.orderAmount
+ // _this.preferentialData.oilId = _this.oilOrder.oils
+ // _this.preferentialData.mtUserLevel = _this.user.gradeId
+ // request({
+ // url: "business/marketingActivity/cardFavorableRecord/updateCardAndActiveById",
+ // method: 'post',
+ // data: _this.preferentialData,
+ // }).then((res)=>{})
uni.reLaunch({
url: '/pagesRefuel/orderSuccess/index'
})
@@ -378,17 +376,17 @@
success: function (res) {
console.log('success');
// 支付成功后调用修改使用后的优惠券情况
- _this.preferentialData.storeId = _this.oilOrder.storeId
- _this.preferentialData.orderAmount = _this.oilOrder.orderAmount
- _this.preferentialData.oilId = _this.oilOrder.oils
- _this.preferentialData.mtUserLevel = _this.user.gradeId
- request({
- url: "business/marketingActivity/cardFavorableRecord/updateCardAndActiveById",
- method: 'post',
- data: _this.preferentialData,
- }).then((res)=>{
- console.log(res);
- })
+ // _this.preferentialData.storeId = _this.oilOrder.storeId
+ // _this.preferentialData.orderAmount = _this.oilOrder.orderAmount
+ // _this.preferentialData.oilId = _this.oilOrder.oils
+ // _this.preferentialData.mtUserLevel = _this.user.gradeId
+ // request({
+ // url: "business/marketingActivity/cardFavorableRecord/updateCardAndActiveById",
+ // method: 'post',
+ // data: _this.preferentialData,
+ // }).then((res)=>{
+ // console.log(res);
+ // })
uni.reLaunch({
url: '/pagesRefuel/orderSuccess/index'
})
@@ -413,17 +411,15 @@
if(resp.resultCode == '9000'){
console.log("支付成功")
// 支付成功后调用修改使用后的优惠券情况
- _this.preferentialData.storeId = _this.oilOrder.storeId
- _this.preferentialData.orderAmount = _this.oilOrder.orderAmount
- _this.preferentialData.oilId = _this.oilOrder.oils
- _this.preferentialData.mtUserLevel = _this.user.gradeId
- request({
- url: "business/marketingActivity/cardFavorableRecord/updateCardAndActiveById",
- method: 'post',
- data: _this.preferentialData,
- }).then((res)=>{
- console.log(res);
- })
+ // _this.preferentialData.storeId = _this.oilOrder.storeId
+ // _this.preferentialData.orderAmount = _this.oilOrder.orderAmount
+ // _this.preferentialData.oilId = _this.oilOrder.oils
+ // _this.preferentialData.mtUserLevel = _this.user.gradeId
+ // request({
+ // url: "business/marketingActivity/cardFavorableRecord/updateCardAndActiveById",
+ // method: 'post',
+ // data: _this.preferentialData,
+ // }).then((res)=>{})
uni.reLaunch({
url: '/pagesRefuel/orderSuccess/index'
})