-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
-
+
-
+
+
+ {{scope.row.oilOrderAmount ? scope.row.oilOrderAmount : '0'}}
+
-
+
+
+ {{scope.row.goodsOrderAmount ? scope.row.goodsOrderAmount : '0'}}
+
-
-
-
-
+
+
未支付
已支付
@@ -208,7 +189,7 @@
- {{ getName(oilNameList,scope.row.oils) }}/{{ scope.row.oilGunNum }}号枪
+ {{ getName(oilNameList,scope.row.oils) }}/{{ scope.row.oilGunNum }}
diff --git a/fuintCashierWeb/src/views/cashier/orderComponents/order_Oil.vue b/fuintCashierWeb/src/views/cashier/orderComponents/order_Oil.vue
index a341a58cd..7cd0367d1 100644
--- a/fuintCashierWeb/src/views/cashier/orderComponents/order_Oil.vue
+++ b/fuintCashierWeb/src/views/cashier/orderComponents/order_Oil.vue
@@ -45,7 +45,7 @@
-
+
-
- {{ getName(oilNameList,item.oilName) }}
- {{ item.oilGunNum }}号枪
+ {{ item.oilName }}
+ {{ item.gunName }}
-
+
{{ getVal(terminalList,props.row.terminal) }}
-
-
+
-
+
- {{ getName(oilNameList,props.row.oils) }}/{{ props.row.oilGunNum }}
+ {{ getName(oilNameList,props.row.oils) }}/{{ getName1(oilGunList,props.row.oilGunNum) }}
-
-
-
-
+
+
-
+
+
+
+
+ {{getType(payList,scope.row.payType)}}
+
-
-
-
+
未支付
已支付
@@ -214,11 +193,7 @@
-
-
+
@@ -228,7 +203,6 @@
-
补打
@@ -289,6 +263,8 @@
import {getOilNameList, getOilNumGun } from "@/api/cashier/oilnumgun";
import {listOilOrder, oilOrderInfo, orderStatisticsApi} from "@/api/cashier/oilorder";
import {getUser} from "@/api/cashier/user/user";
+ import {oilNumberList, oilNumbers} from "@/api/cashier/oilnumber";
+ import {getOilGuns, getOilNumberGun} from "@/api/cashier/oilGuns";
export default {
name: "order_Cashier",
@@ -313,12 +289,15 @@
dateRange: [],
// 油品订单列表
oilOrderList:[],
+ payTypeList:[],
// 查询参数
queryParams: {
page: 1,
pageSize: 10,
},
total:0,
+ // 油枪列表
+ oilGunList:[],
orderStatistics: {
numberOfOilPens:'0',
@@ -336,8 +315,29 @@
this.getStaffList();
this.getOrderStatistics();
this.getList();
+ this.getPayType();
+ this.getOilGunList();
},
methods:{
+ // 获取油枪信息
+ getOilGunList(){
+ getOilNumberGun().then(res => {
+ console.log(res)
+ res.data.forEach(item => {
+ if (item.oilGunList.length>0){
+ item.oilGunList.forEach(i => {
+ i.oilName = item.oilName
+ this.oilGunList.push(i)
+ })
+ }
+ })
+ })
+ },
+ getPayType(){
+ getDicts("payment_type").then(res => {
+ this.payTypeList = res.data
+ })
+ },
// 订单统计
getOrderStatistics() {
orderStatisticsApi().then(res=>{
@@ -370,6 +370,15 @@
})
return name;
},
+ getType(list,val){
+ let name = "";
+ list.forEach(item => {
+ if (item.dictValue == val){
+ name = item.dictLabel
+ }
+ })
+ return name;
+ },
// 根据id查询会员信息
async queryUser(id){
let result = "";
@@ -428,8 +437,8 @@
getOilNameList().then( response => {
this.oilNameList = response.data;
})
- getOilNumGun({oilNum : "全部"}).then( response => {
- this.oilNumList = response.data
+ oilNumbers().then(response => {
+ this.oilNumList = response.data;
})
},
// 获取油号名称
@@ -446,6 +455,19 @@
}
return name;
},
+ // 获取油枪名称
+ getName1(oilNameList,id){
+ let name = ""
+ let _this = this;
+ if(oilNameList!=null && oilNameList!=""){
+ oilNameList.forEach(item => {
+ if (item.id == id){
+ name = item.gunName;
+ }
+ })
+ }
+ return name;
+ },
}
}
diff --git a/fuintCashierWeb/src/views/cashier/orderComponents/order_Unpaid.vue b/fuintCashierWeb/src/views/cashier/orderComponents/order_Unpaid.vue
index bdc5eae0e..fab9f847a 100644
--- a/fuintCashierWeb/src/views/cashier/orderComponents/order_Unpaid.vue
+++ b/fuintCashierWeb/src/views/cashier/orderComponents/order_Unpaid.vue
@@ -41,7 +41,7 @@
-
+
-
- {{ getName(oilNameList,item.oilName) }}
- {{ item.oilGunNum }}号枪
+ {{ item.oilName }}
+ {{ item.gunName }}号枪
-
+
@@ -148,7 +148,7 @@
- {{ getName(oilNameList,props.row.oils) }}/{{ props.row.oilGunNum }}号枪
+ {{ getName(oilNameList,props.row.oils) }}/{{ getName1(oilGunList,props.row.oilGunNum) }}
@@ -209,6 +209,7 @@
import {getDicts} from "@/api/dict/data";
import {getOilNameList, getOilNumGun} from "@/api/cashier/oilnumgun";
import {queryStaffs} from "@/api/cashier/staff";
+ import {getOilNumberGun} from "@/api/cashier/oilGuns";
export default {
name: "order_Cashier",
@@ -249,15 +250,44 @@
wechat:'0',
alipay:'0',
cash:'0',
- }
+ },
+ oilGunList:[],
}
},
created() {
this.getList();
this.getOrderStatistics();
this.getPayList();
+ this.getOilGunList();
},
methods:{
+ // 获取油枪信息
+ getOilGunList(){
+ getOilNumberGun().then(res => {
+ console.log(res)
+ res.data.forEach(item => {
+ if (item.oilGunList.length>0){
+ item.oilGunList.forEach(i => {
+ i.oilName = item.oilName
+ this.oilGunList.push(i)
+ })
+ }
+ })
+ })
+ },
+ // 获取油枪名称
+ getName1(oilNameList,id){
+ let name = ""
+ let _this = this;
+ if(oilNameList!=null && oilNameList!=""){
+ oilNameList.forEach(item => {
+ if (item.id == id){
+ name = item.gunName;
+ }
+ })
+ }
+ return name;
+ },
// 获取订单统计信息
getOrderStatistics() {
diff --git a/gasStation-uni/config.js b/gasStation-uni/config.js
index a8e4a127c..1b9f11cf4 100644
--- a/gasStation-uni/config.js
+++ b/gasStation-uni/config.js
@@ -3,7 +3,7 @@ module.exports = {
// baseUrl: 'https://vue.ruoyi.vip/prod-api',
// baseUrl: 'http://192.168.0.196:8081/',
// baseUrl: 'http://192.168.1.4:8080/',
- baseUrl: 'http://192.168.0.178:8008/',
+ baseUrl: 'http://192.168.0.138:8008/',
// baseUrl: 'http://192.168.1.5:8002/cdJdc',
@@ -30,4 +30,4 @@ module.exports = {
}
]
}
-}
\ No newline at end of file
+}
diff --git a/gasStation-uni/pagesLogin/login/login.vue b/gasStation-uni/pagesLogin/login/login.vue
index 106e68f2e..05675eb60 100644
--- a/gasStation-uni/pagesLogin/login/login.vue
+++ b/gasStation-uni/pagesLogin/login/login.vue
@@ -71,7 +71,7 @@
authCode: authCode,
storeId: 0,
staffId: "",
- phone: "16548796325",
+ phone: "18457621459",
},
}).then((resp) => {
console.log(resp)
@@ -347,4 +347,4 @@
border: 1px solid #0078FF;
color: white;
}
-
\ No newline at end of file
+