-
¥{{ +oilActualPay + (+goodsActualPay) }}
+
¥{{ ((+oilActualPay) + (+goodsActualPay)).toFixed(2) }}
优惠合计:{{ oilDiscount + goodsDiscount + fullReduction + couponAmount }}元/{{consumeRefuelMoney}}L
实付款
¥{{ (+oilActualPay)+(+goodsActualPay) }}
@@ -809,6 +821,8 @@
name: "homeindex",
data(){
return{
+ gunIndex:[],
+ autofocus:false,
baseUrl:process.env.VUE_APP_BASE_API,
// 满减全选
checkAll1: false,
@@ -1198,6 +1212,7 @@
},
clear(){
+ this.autofocus = false
this.dialogVisiblej = false
this.seekZero = 0
},
@@ -1786,6 +1801,7 @@
// }
if (this.balance>0){
this.checkAll4 = true
+ this.countAmountFull()
}
await this.getGrade(this.member.id,this.member.gradeId)
if (!this.isFixingLevel){
@@ -1794,6 +1810,7 @@
},
getOilCoupon(){
let type = 0;
+ // if (this.consumeAmount==0){
if (this.consumeAmount==0){
type = 1;
}else {
@@ -2197,6 +2214,7 @@
},
// 立即结算
settlement(){
+ this.autofocus = true
if (this.payType=="APPLET_CODE") {
if (this.goodsOrder.length > 0) {
this.$modal.msgError("非油商品不可使用小程序码支付")
@@ -2284,6 +2302,7 @@
// }
if (this.balance>0){
this.checkAll4 = true
+ this.countAmountFull()
}
await this.getGrade(this.member.id,this.member.gradeId)
if (!this.isFixingLevel){
@@ -2429,6 +2448,7 @@
},
// 加油金额
refuel(data){
+ // this.gunIndex.push(data.id)
this.select = "元";
this.rise = [
{value:"¥100"},
@@ -2464,7 +2484,11 @@
// 确定收款
async collection(){
if (this.payType=="CASH"){
- if (this.authCode==undefined || this.authCode=="" || this.seekZero<0){
+ if (this.authCode<((+this.oilActualPay) + (+this.goodsActualPay)) || this.seekZero<0){
+ this.$modal.msgError("请输入正确的金额");
+ return;
+ }
+ if (!this.authCode && ((+this.oilActualPay) + (+this.goodsActualPay))>0){
this.$modal.msgError("请输入正确的金额");
return;
}
@@ -2533,6 +2557,7 @@
isPaySuccess = true
_this.isPay = true;
_this.seekZero = 0
+ _this.loading = false;
_this.amount = 0
for (let i =0;i<_this.oilPreferentialData.length;i++){
_this.oilPreferentialData[i].oilPreferential.storeId = response.data.oilOrder.storeId
@@ -2552,6 +2577,7 @@
_this.isPay = true;
_this.seekZero = 0
_this.amount = 0
+ _this.loading = false;
_this.printLocally()
_this.resetting1()
return;
@@ -2560,6 +2586,7 @@
if (response.data.error==1){
this.$modal.msgError("商品库存不足,请重新选择商品")
this.loading = false;
+ this.autofocus = false
this.dialogVisiblej = false;
return;
}
@@ -2733,6 +2760,7 @@
}, 1000);
},
handClose(){
+ this.loading = false
this.dialogVisiblejLoading = false
// this.resetting1()
this.authCode = "";
@@ -2781,6 +2809,7 @@
this.isPaySuccess = false;
this.isPay = false;
+ this.autofocus = false
this.dialogVisiblej = false
},
// 支付方式
@@ -3024,6 +3053,17 @@
padding: 10px;
color: #3e4f60;
}
+ .of-box2{
+ width: 31%;
+ margin-right: 10px;
+ margin-bottom: 10px;
+ border-radius: 8px;
+ box-sizing: border-box;
+ background-color: #2773fc;
+ height: 110px;
+ padding: 10px;
+ color: #3e4f60;
+ }
.of-title{
font-weight: bold;
font-size: 22px;
diff --git a/fuintCashierWeb/src/views/cashier/orderComponents/order_Goods.vue b/fuintCashierWeb/src/views/cashier/orderComponents/order_Goods.vue
index 5ad96ac43..ee64a7484 100644
--- a/fuintCashierWeb/src/views/cashier/orderComponents/order_Goods.vue
+++ b/fuintCashierWeb/src/views/cashier/orderComponents/order_Goods.vue
@@ -244,7 +244,7 @@ export default {
// 日期范围
dateRange: [],
// 遮罩层
- loading: true,
+ loading: false,
loadingRes: true,
// 标题
title: "",
@@ -428,27 +428,12 @@ export default {
if (val!=undefined){
this.queryParams.page = val
}
- this.loading = true;
+ this.loadingRes = true;
listOrder(this.addDateRange(this.queryParams, this.dateRange)).then( response => {
this.list = response.data.records;
this.total = response.data.total;
- this.loading = false;
+ this.loadingRes = false;
})
- // const app = this;
- // app.loading = true;
- // app.queryParams.storeIds = app.storeIds ? app.storeIds.join(",") : '';
- // getOrderList(app.queryParams).then( response => {
- // this.list = response.data.paginationResponse.content;
- // this.total = response.data.paginationResponse.totalElements;
- // this.typeList = response.data.typeList;
- // this.statusList = response.data.statusList;
- // this.payStatusList = response.data.payStatusList;
- // this.orderModeList = response.data.orderModeList;
- // this.payTypeList = response.data.payTypeList;
- // this.storeList = response.data.storeList;
- // this.loading = false;
- // }
- // );
},
// 搜索按钮操作
handleQuery() {
diff --git a/fuintCashierWeb/src/views/cashier/orderComponents/order_Unpaid.vue b/fuintCashierWeb/src/views/cashier/orderComponents/order_Unpaid.vue
index c3d86fd0d..4635e9f22 100644
--- a/fuintCashierWeb/src/views/cashier/orderComponents/order_Unpaid.vue
+++ b/fuintCashierWeb/src/views/cashier/orderComponents/order_Unpaid.vue
@@ -173,7 +173,7 @@
未支付
- 支付失败
+
@@ -216,14 +216,14 @@
import {exportExcelOilOrderApi} from "@/api/order/exportExcel";
export default {
- name: "order_Cashier",
+ name: "order_Unpaid",
data(){
return{
// 查询参数
queryParams: {
page: 1,
pageSize: 10,
- orderStatus:"paid",
+ orderStatus:"unpaid",
},
// 总条数
total:0,
diff --git a/fuintCashierWeb/src/views/details/index.vue b/fuintCashierWeb/src/views/details/index.vue
index 79cdf8256..0f6abe257 100644
--- a/fuintCashierWeb/src/views/details/index.vue
+++ b/fuintCashierWeb/src/views/details/index.vue
@@ -385,32 +385,50 @@
-->
-
+
-
-
-
+ placeholder="扫描或输入付款码、支持微信、支付宝、云闪付">
+
+
+
+
+
+
+
+
+
+
+
+
+ 应找零
+ ¥{{ seekZero }}
+
+
+
取消收款
@@ -873,6 +891,7 @@ export default {
childComponentKey:1,
authCode: '', // 支付码
+ seekZero:0,
timer: null,
@@ -1003,6 +1022,10 @@ export default {
this.getAllAmount()
},
methods: {
+ // 计算找零金额
+ changeSeekZero(){
+ this.seekZero = (this.authCode - this.cardValueForm.amount).toFixed(2)
+ },
getName(list,type){
let name = ""
list.forEach(item => {
@@ -1466,7 +1489,16 @@ export default {
},
async collection() {
-
+ if (this.cardValueForm.paymentType=="CASH"){
+ if (this.authCode
-
-
-
-
- {{getName(payTypeList,scope.row.payType)}}
+ 现金
+ 微信
+ 支付宝
+ 银联二维码
+ 小程序码
+
diff --git a/gasStation-uni/pagesRefuel/orderDetail/index.vue b/gasStation-uni/pagesRefuel/orderDetail/index.vue
index f1637486d..80c2c0c70 100644
--- a/gasStation-uni/pagesRefuel/orderDetail/index.vue
+++ b/gasStation-uni/pagesRefuel/orderDetail/index.vue
@@ -485,7 +485,7 @@
this.isStoreValueCard = true;
if (val == 0) {
// 没有使用囤油卡
- if (this.user.cardBalance >= (this.oilOrder.orderAmount - this.fullRedece - this.couponRedece - this.gradeRedece).toFixed(2)){
+ if (this.user.cardBalance >= (this.oilOrder.orderAmount - this.fullRedece - this.couponRedece - this.gradeRedece)){
this.balanceRedece = (this.oilOrder.orderAmount - this.fullRedece - this.couponRedece - this.gradeRedece).toFixed(2)
} else {
this.balanceRedece = this.user.cardBalance