diff --git a/fuintAdmin/src/views/member/creditIndex.vue b/fuintAdmin/src/views/member/creditIndex.vue index 2f4842fa2..5f74b6c65 100644 --- a/fuintAdmin/src/views/member/creditIndex.vue +++ b/fuintAdmin/src/views/member/creditIndex.vue @@ -62,13 +62,18 @@ - - - - - - - + + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + - + - + @@ -460,7 +547,7 @@ - + @@ -475,7 +562,7 @@ - + @@ -490,9 +577,6 @@ - - 额度为当前单位最大可挂账金额,如已挂账金额归还,额度将也同步返还 - @@ -502,9 +586,20 @@ - - 额度为当前单位最大可挂账金额,如已挂账金额归还,额度将也同步返还 - + + + + + + + + + + @@ -692,16 +787,16 @@ - - - - 查询 - - - + + + + + + + + + +
+ :limit.sync="queryParam.pageSize"> +
@@ -807,20 +902,28 @@ import { import { addCreditUnit, creditUnitInfo, - creditUnits, + creditUnits, creditUnitsStatistic, deleteCreditUnit, editCreditUnit, listCreditUnit } from "@/api/cashier/creditunit"; import {getDicts} from "@/api/dict/data"; import {listReturnRecord, returnRecordByOrderNo, returnRecordInfo} from "@/api/cashier/returnrecord"; +import {queryStaffs} from "@/api/staff/staff"; export default { name: "credit", data(){ return{ + staffList:[], // 归还账单总数 returnTotal:0, + // 预设挂账总额 + allCreditLimit:0, + // 已使用挂账总额 + allUsedCreditLimit:0, + // 剩余可挂账总额 + allResidueCreditLimit:0, // 挂账总额 allAmount:0, // 归还总额 @@ -860,7 +963,9 @@ import {listReturnRecord, returnRecordByOrderNo, returnRecordInfo} from "@/api/c unitName:"", personCredit:"", contactMobile:"", - creditLimit:0, + creditLimit:"", + usedCreditLimit:0, + residueCreditLimit:0, remark:'', status:'qy', }, @@ -870,6 +975,14 @@ import {listReturnRecord, returnRecordByOrderNo, returnRecordInfo} from "@/api/c // 挂账信息 record:{}, // 查询参数 + queryParams2:{ + page:1, + pageSize: 10, + unitName:"", + personCredit:"", + contactMobile:"", + status:"", + }, queryParams: { page: 1, pageSize: 10, @@ -895,6 +1008,7 @@ import {listReturnRecord, returnRecordByOrderNo, returnRecordInfo} from "@/api/c total: 0, total1: 0, total2: 0, + total3: 0, // 是否开启提示框 open:false, open1:false, @@ -929,8 +1043,9 @@ import {listReturnRecord, returnRecordByOrderNo, returnRecordInfo} from "@/api/c // this.getList(); // this.getUnitList(); this.getPayList(); - this.getLists(); + // this.getLists(); this.getCreditUnits(); + this.getStaffList(); }, directives: { // 注册一个局部的自定义指令 v-focus @@ -946,6 +1061,36 @@ import {listReturnRecord, returnRecordByOrderNo, returnRecordInfo} from "@/api/c }, }, methods:{ + getStaffList(){ + queryStaffs().then(res => { + this.staffList = res.data + }) + }, + // 搜索按钮操作 + handleQuery1() { + this.queryParams.page = 1; + this.getCreditUnits(); + }, + // 重置按钮操作 + resetQuery1() { + this.resetForm("queryForm"); + this.dateRange = [] + this.handleQuery1(); + }, + changeCreditAmount(){ + if (this.title = "新增挂账单位") { + this.form1.usedCreditLimit = 0 + this.form1.residueCreditLimit = this.form1.creditLimit + } + if (this.title = "修改挂账单位") { + this.form1.usedCreditLimit = this.form1.creditLimit - this.form1.residueCreditLimit + } + }, + addUnit(){ + this.form1 = {} + this.title = "新增挂账单位" + this.open1 = true + }, handleUpdate(data){ creditUnitInfo(data.id).then(res => { this.form1 = res.data @@ -966,13 +1111,24 @@ import {listReturnRecord, returnRecordByOrderNo, returnRecordInfo} from "@/api/c }, getCreditUnits(val){ if (val!=undefined){ - this.queryParams.page = val + this.queryParams2.page = val } - creditUnits().then(res => { + creditUnits(this.addDateRange(this.queryParams2, this.dateRange)).then(res => { this.creditUnitList = res.data.records - this.total = res.data.total; - }) + this.total3 = res.data.total; + }) + this.getUnitStatistic(val) + }, + getUnitStatistic(val){ + if (val!=undefined){ + this.queryParams2.page = val + } + creditUnitsStatistic(this.addDateRange(this.queryParams2, this.dateRange)).then(res => { + this.allCreditLimit = res.data.allCreditLimit + this.allUsedCreditLimit = res.data.allUsedCreditLimit + this.allResidueCreditLimit = res.data.allResidueCreditLimit + }) }, // 获取挂账统计信息 getStatistic(){ @@ -1048,11 +1204,11 @@ import {listReturnRecord, returnRecordByOrderNo, returnRecordInfo} from "@/api/c this.form4.payType = "WECHAT" this.open4 = true; }, - batchReturn(){ + batchReturn(data){ this.open3 = true this.repayList = []; this.unitName = "" - this.getLists(); + this.getLists(data.id); }, getRepayList(){ let result = []; @@ -1077,8 +1233,8 @@ import {listReturnRecord, returnRecordByOrderNo, returnRecordInfo} from "@/api/c }) this.repayList = result }, - getLists(){ - hangBills().then(response => { + getLists(id){ + hangBills({creditUnitId:id}).then(response => { this.list = response.data; this.repayList = response.data; for (let i = 0; i - 新增挂账单位 + @@ -1006,11 +1006,11 @@ - + - 可用额度为挂账人的最大可用额度,如挂账金额大于可用额度,将无法进行挂账,0为不限额 + 可用额度为挂账人的最大可用额度,如挂账金额大于可用额度,将无法进行挂账 @@ -1065,7 +1065,7 @@ - 0为不限额,额度为当前单位最大可挂账金额,如已挂账金额归还,额度将也同步返还 + 额度为当前单位最大可挂账金额,如已挂账金额归还,额度将也同步返还 @@ -1109,6 +1109,7 @@
微信
支付宝
银联二维码
+
挂账
小程序码
@@ -1125,7 +1126,8 @@
实付款
-
¥{{ ((+oilActualPay)+(+goodsActualPay)).toFixed(2) }}
+
¥0.00
+
¥{{ ((+oilActualPay)+(+goodsActualPay)).toFixed(2) }}
找零
@@ -1334,7 +1336,9 @@ goods:"", select:"元", form:{ amount : 0,exist:false }, - form1:{}, + form1:{ + amount:"", + }, form2:{ unitName:"", personCredit:"", @@ -2142,6 +2146,10 @@ }, // 挂账 addCredits(type){ + if (this.oilAmount==0){ + this.$message.error("请先选择挂账订单") + return; + } this.typeIdex = type this.map.payType = "credit" this.payType = "credit" @@ -2178,12 +2186,14 @@ addHangbill(){ this.$refs["form"].validate((valid) => { if (valid) { - addHangBill(this.form1).then( response => { + addHangBill(this.form1).then( async response => { if (response.data==0){ this.$modal.msgError("挂账单位可用额度不足,无法进行挂账"); }else { this.$modal.msgSuccess("挂账记录添加成功"); this.dialogVisibleCredit = false; + this.form1.unitName = "" + this.printLocally() this.resetMember(); this.resetting(); this.empty(); @@ -2198,6 +2208,7 @@ changeUnit(val){ this.form1.creditUnitId = val.id; this.form1.creditLimit = val.creditLimit + this.form1.residueCreditLimit = val.residueCreditLimit return val.id }, querySearch1(queryString, cb) { diff --git a/fuintCashierWeb/src/views/cashier/orderComponents/order_Added.vue b/fuintCashierWeb/src/views/cashier/orderComponents/order_Added.vue index f207e6b7a..1fcfe0c8f 100644 --- a/fuintCashierWeb/src/views/cashier/orderComponents/order_Added.vue +++ b/fuintCashierWeb/src/views/cashier/orderComponents/order_Added.vue @@ -109,7 +109,7 @@
挂账订单列表
- 导出订单 + 导出订单
@@ -292,6 +292,7 @@ import { } from "@/api/cashier/hangbill"; import {getDicts} from "@/api/dict/data"; import {listReturnRecord} from "@/api/cashier/returnrecord"; +import {exportExcelCashierApi, exportExcelHangBillApi} from "@/api/order/exportExcel"; export default { name: "order_Cashier", @@ -338,6 +339,14 @@ import {listReturnRecord} from "@/api/cashier/returnrecord"; }, methods: { + exportExcelCashier() { + // this.dateRange.push(this.beginTime) + // this.dateRange.push(this.endTime) + exportExcelHangBillApi(this.addDateRange(this.queryParams, this.dateRange)).then(res=>{ + const blob = new Blob([res], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' }); + this.$download.saveAs(blob,'挂账订单统计.xLsx') + }) + }, // 归还记录详情弹框 returnRecord(id){ this.record = {} diff --git a/gasStation-uni/pages/refuel/refuel.vue b/gasStation-uni/pages/refuel/refuel.vue index 7d6168445..90cdd2ee3 100644 --- a/gasStation-uni/pages/refuel/refuel.vue +++ b/gasStation-uni/pages/refuel/refuel.vue @@ -306,9 +306,9 @@ } } }).catch(err => { - uni.showLoading({ - title: JSON.stringify(err) + 222 - }) + // uni.showLoading({ + // title: JSON.stringify(err) + 222 + // }) }) }, // 获取当前位置 @@ -567,7 +567,8 @@ url: 'clientApi/sign/mpWxLogin2', method: "POST", data: { - code: res.code + code: res.code, + isRefuel: true, } }).then(res => { if (!res.data) { diff --git a/gasStation-uni/pagesHome/QRcode/QRcode.vue b/gasStation-uni/pagesHome/QRcode/QRcode.vue index e0243833a..551e4692b 100644 --- a/gasStation-uni/pagesHome/QRcode/QRcode.vue +++ b/gasStation-uni/pagesHome/QRcode/QRcode.vue @@ -30,25 +30,39 @@ {{timestamp}}秒后自动刷新 - + + + + + 优先使用囤油卡付款 + 若囤油卡升数不足以进行支付,则会与储值卡组合付款 + + + + + + + + 根据账户自动识别的付款方式 - + --> - 付款码有效时长180秒,切勿截屏使用 + 付款码有效时长60秒,切勿截屏使用