{
* @return
*/
OilOrderVo selectOilOrderDescByOrderId(Integer orderId);
+
+ /**
+ * 小程序添加订单评论信息
+ * @param oilOrder
+ * @return
+ */
+ int editOilOrder(OilOrder oilOrder);
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java
index 5a1571837..f0402b898 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java
@@ -1616,4 +1616,11 @@ return stringDoubleMap;
public OilOrderVo selectOilOrderDescByOrderId(Integer orderId) {
return baseMapper.selectOilOrderDescByOrderId(orderId);
}
+
+ @Override
+ public int editOilOrder(OilOrder oilOrder) {
+ OilOrder oilOrder1 = this.selectOilOrderById(oilOrder.getId());
+ oilOrder1.setRemark(oilOrder.getRemark());
+ return baseMapper.updateById(oilOrder1);
+ }
}
diff --git a/fuintCashierWeb/src/views/cashier/NewComponents/homeindex.vue b/fuintCashierWeb/src/views/cashier/NewComponents/homeindex.vue
index 338b66be2..962f8b463 100644
--- a/fuintCashierWeb/src/views/cashier/NewComponents/homeindex.vue
+++ b/fuintCashierWeb/src/views/cashier/NewComponents/homeindex.vue
@@ -308,7 +308,7 @@
{{ item.memberPrice }}
+ @change="handleChange" :min="1" :max="10000">
@@ -802,6 +802,7 @@
import {addCreditUnit, listCreditUnit} from "@/api/cashier/creditunit";
import {getSysConfig} from "@/api/staff/user/sysconfig";
import {cashierOrderByOrderNo} from "@/api/cashier/cashierorder";
+ import {getLodop} from "@/api/LodopFuncs";
const cityOptions = ['上海', '北京'];
export default {
@@ -1120,11 +1121,80 @@
},
methods:{
async printLocally() {
- const printHTML = document.querySelector('#reportSuccess').innerHTML
- // 将打印的区域赋值,进行打印
- window.document.body.innerHTML = printHTML
- window.print() // 调用window打印方法
- window.location.reload() // 打印完成后重新加载页面
+ //初始化打印函数
+ 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();
},
clear(){
@@ -2433,6 +2503,7 @@
_this.loading = false;
_this.isPay = true;
_this.isPaySuccess = true;
+ _this.printLocally()
_this.resetting1();
},3000)
}else {
@@ -2449,15 +2520,18 @@
return;
}
+ let isPaySuccess = false;
+
await addLJGoods(_this.map).then( response => {
_this.orderNo = response.data.orderNo;
if (response.data.oilOrder!=null){
+ console.log(123,response.data.oilOrder)
if (response.data.oilOrder.orderStatus == "paid"){
_this.isPaySuccess = true;
+ isPaySuccess = true
_this.isPay = true;
_this.seekZero = 0
_this.amount = 0
- _this.resetting1()
for (let i =0;i<_this.oilPreferentialData.length;i++){
_this.oilPreferentialData[i].oilPreferential.storeId = response.data.oilOrder.storeId
_this.oilPreferentialData[i].oilPreferential.userId = response.data.oilOrder.userId
@@ -2465,17 +2539,19 @@
usePaymentActive(_this.oilPreferentialData[i].oilPreferential).then(res => {})
}
_this.printLocally()
+ _this.resetting1()
return;
}
}
if (response.data.goodsOrder!=null){
if (response.data.goodsOrder.status == "paid"){
_this.isPaySuccess = true;
+ isPaySuccess = true
_this.isPay = true;
_this.seekZero = 0
_this.amount = 0
- _this.resetting1()
_this.printLocally()
+ _this.resetting1()
return;
}
}
@@ -2493,9 +2569,11 @@
}
})
this.loading = true;
- _this.queryPayStatus();
+ if ( !isPaySuccess ){
+ await _this.queryPayStatus();
- _this.resetting1();
+ _this.resetting1();
+ }
},
resetting1(){
let _this = this;
diff --git a/gasStation-uni/pages/index/index.vue b/gasStation-uni/pages/index/index.vue
index d2480aca4..dd013c029 100644
--- a/gasStation-uni/pages/index/index.vue
+++ b/gasStation-uni/pages/index/index.vue
@@ -142,6 +142,7 @@
export default {
data() {
return {
+ chainStoreId: '',
indicatorDots: true,
autoplay: true,
interval: 2000,
@@ -218,6 +219,7 @@
uni.setStorageSync("storeId", storeId)
uni.setStorageSync("inviteStaffId", staffId)
this.storeId = uni.getStorageSync("storeId")
+ this.chainStoreId = uni.getStorageSync("chainStoreId")
this.staffId = uni.getStorageSync("inviteStaffId")
await this.getUserAuthority();
await this.getOilType();
@@ -303,7 +305,8 @@
url: 'business/marketingActivity/activeNewlywedsRecords',
method: 'post',
data: {
- storeId: this.storeId
+ storeId: this.storeId,
+ chainStoreId: this.chainStoreId,
}
}).then(res => {
console.log("11111" + res)
diff --git a/gasStation-uni/pagesMy/CardManagement/CardManagement.vue b/gasStation-uni/pagesMy/CardManagement/CardManagement.vue
index fc7f69264..3a36602f7 100644
--- a/gasStation-uni/pagesMy/CardManagement/CardManagement.vue
+++ b/gasStation-uni/pagesMy/CardManagement/CardManagement.vue
@@ -83,7 +83,7 @@
订单时间
- {{parseTime(item.payTime)}}
+ {{item.payTime}}
{{item.createTime}}
diff --git a/gasStation-uni/pagesMy/Recharge/Recharge.vue b/gasStation-uni/pagesMy/Recharge/Recharge.vue
index 1d7187ffc..e78c28fa3 100644
--- a/gasStation-uni/pagesMy/Recharge/Recharge.vue
+++ b/gasStation-uni/pagesMy/Recharge/Recharge.vue
@@ -56,6 +56,7 @@
export default {
data() {
return {
+ appltType: "",
title: '',
tindex: 0,
status: 'loading',
@@ -68,7 +69,8 @@
storeId: '',
recordName: '',
pageNo: 1,
- pageSize: 10
+ pageSize: 10,
+ appltType: '',
},
tapList: [{
text: "全部"
@@ -88,6 +90,9 @@
components: {
+ },
+ onLoad() {
+ this.appltType = uni.getstorageSync("appltType");
},
onShow() {
this.getAllOrderList();
diff --git a/gasStation-uni/pagesMy/comment/comment.vue b/gasStation-uni/pagesMy/comment/comment.vue
index d7b0b2159..eac4fabbc 100644
--- a/gasStation-uni/pagesMy/comment/comment.vue
+++ b/gasStation-uni/pagesMy/comment/comment.vue
@@ -30,7 +30,7 @@
-->
-
+
提交
@@ -75,6 +75,9 @@
baseUrl: this.$baseUrl,
}
},
+ onLoad(e){
+ this.orderId = e.orderId
+ },
onShow() {
this.getUser()
},
@@ -82,6 +85,21 @@
},
methods: {
+ editOilOrder(){
+ let remark = "评分:"+this.value+"分,"+this.value1
+ request({
+ url: 'business/oilOrder/editOilOrder',
+ method: 'put',
+ data: {"id":this.orderId,"remark":remark},
+ }).then(res => {
+ if (res.data==1) {
+ uni.showToast({
+ title:"评论成功"
+ })
+ this.goback()
+ }
+ })
+ },
// 查询当前登录用户信息
getUser(){
request({
diff --git a/gasStation-uni/pagesMy/details/details.vue b/gasStation-uni/pagesMy/details/details.vue
index 043018aab..6bf19eff4 100644
--- a/gasStation-uni/pagesMy/details/details.vue
+++ b/gasStation-uni/pagesMy/details/details.vue
@@ -48,15 +48,19 @@
储值卡或囤油卡消费金额
{{oilOrder.orderAmount - oilOrder.discountAmount - oilOrder.payAmount}}元
-
- 加油数量
- {{oilOrder.oilNum}}升
-
优惠金额
{{oilOrder.discountAmount}}元
+
+ 加油数量
+ {{oilOrder.oilNum}}升
+
+
+ 交易时间
+ {{oilOrder.payTime}}升
+
@@ -115,7 +119,7 @@
},
gocomment() {
uni.navigateTo({
- url: '/pagesMy/comment/comment'
+ url: '/pagesMy/comment/comment?orderId=' + this.orderId
})
},
goback() {
diff --git a/gasStation-uni/pagesMy/myorder/myorder.vue b/gasStation-uni/pagesMy/myorder/myorder.vue
index 20fb0a2b4..e01ead1be 100644
--- a/gasStation-uni/pagesMy/myorder/myorder.vue
+++ b/gasStation-uni/pagesMy/myorder/myorder.vue
@@ -52,10 +52,15 @@
订单时间
- {{parseTime(item.payTime)}}
+ {{item.payTime}}
{{item.createTime}}
-
+
+
+ 去评价
+
+
+
去评价
@@ -171,6 +176,9 @@
this.getStores()
// this.getPayList()
},
+ onShow() {
+ this.getTapIndex(0)
+ },
components: {
},
@@ -336,6 +344,9 @@
})
},
getTapIndex(index) {
+ this.orderList = []
+ this.list = []
+ this.total = 0
this.tapindex = index
if (this.tapindex == 0) {
this.map = {
@@ -413,9 +424,9 @@
url: '/pagesMy/details/details?orderId=' + orderId,
})
},
- goComment() {
+ goComment(orderId) {
uni.navigateTo({
- url: "/pagesMy/comment/comment"
+ url: "/pagesMy/comment/comment?orderId=" + orderId,
})
},
goBack() {