From 25a84cc833c75bd2a6e4187a71ce83408dd52ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=99=93=E7=90=AA?= Date: Sat, 3 Sep 2022 10:47:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=81=E7=94=9F=E7=BC=B4=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LearunApp-2.2.0/pages.json | 13 ++- .../StuInfoBasic_PayFee/PayFee/list.vue | 2 - .../StuInfoBasic_PayFee/PayFee/payInvioce.vue | 86 +++++++++++++++++++ .../StuInfoBasic_PayFee/PayFee/single.vue | 49 ++++------- 4 files changed, 116 insertions(+), 34 deletions(-) create mode 100644 Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/payInvioce.vue diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json index 6040c1aa5..287d27156 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json @@ -1038,7 +1038,7 @@ "path" : "pages/onlienpay/payInvioce", "style" : { - "navigationBarTitleText": "", + "navigationBarTitleText": "查看发票", "enablePullDownRefresh": false } @@ -1056,11 +1056,20 @@ "path" : "pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/single", "style" : { - "navigationBarTitleText": "", + "navigationBarTitleText": "老生缴费", "enablePullDownRefresh": false } } + ,{ + "path" : "pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/payInvioce", + "style" : + { + "navigationBarTitleText": "查看发票", + "enablePullDownRefresh": false + } + + } ], // 全局样式 diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/list.vue index 2535678e9..e5ebb8b49 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/list.vue @@ -175,7 +175,6 @@ export default { this.ready = true; }, tapLi({Id}) { - // console.log(data) this.NAV_TO('./single', {Id}, true); }, // 拉取列表 @@ -195,7 +194,6 @@ export default { this.LOADING('加载数据中…'); await this.HTTP_GET('/learun/payfee/getpayfeelist', _postParam,'加载数据时出错').then(res => { this.HIDE_LOADING(); - // console.log(res) this.total = res.total; this.page = res.page + 1; this.list = isConcat?this.list.concat(res.rows):res.rows; diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/payInvioce.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/payInvioce.vue new file mode 100644 index 000000000..61b806f75 --- /dev/null +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/payInvioce.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/single.vue index 9de683ebc..90d332d81 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/single.vue @@ -40,15 +40,21 @@ --> - + 生成二维码 - + 查询缴费结果 - + + 查看发票 + + 取消缴费 + + + @@ -67,6 +73,7 @@ export default{ return { disabled: false, ready:false, + canPay:false, // 数据源 dataSource: { ClassNo:[], @@ -113,7 +120,6 @@ export default{ watch: { FinaChargesStandardList: { handler (val) { - console.log(val) this.getpayfeetotal() }, // 这里是关键,代表递归监听 demo 的变化 @@ -153,32 +159,13 @@ export default{ this.FinaChargesStandardList = res.FinaChargesStandardList this.StuInfoFreshData = res.StuInfoFreshData this.PayFeeTotal = res.PayFeeTotal + if(Number(this.PayFeeTotal)>0){ + this.canPay = true + }else{ + this.TOAST("缴费已经完成") + } this.YJAmount = res.YJAmount this.ready = true - - // this.HTTP_GET('/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo&keyId=deptno'+'&key='+this.StuInfoFreshData.DeptNo).then(res=>{ - // if(!res)return - // this.StuInfoFreshData.deptname = res.deptname - // }) - - - // var deptName = ""; - // learun.clientdata.getAsync('custmerData', { - // url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', - // key: StuInfoFresh.DeptNo, - // keyId: 'deptno', - // callback: function (_data) { - // deptName = _data['deptname']; - // if (!deptName) { - // deptName = "未知"; - // } - // } - // }); - // let data = res.StuInfoFresh; - // this.queryData.StudentLoan = data.StudentLoan == null? '' : data.StudentLoan; - // this.queryData.PayFeeStatus = data.PayFeeStatus == null? '' : data.PayFeeStatus; - // this.queryData.OnsitePayFeeStatus = data.OnsitePayFeeStatus == null? '' : data.OnsitePayFeeStatus; - // this.disabled = data.StudentLoanStatus == "1"? true : false; }) }, // 显示列表中的标题项 @@ -250,7 +237,6 @@ export default{ param.PayFeeDetail = detail; param.PayMoney = this.payfeetotal; this.LOADING('正在生成付款信息请稍等…'); - // $("#confirmPayFee").hide(); console.log({ strEntity: param, detailList: list }); this.HTTP_POST('/learun/payfee/generateqrcode?keyValue=' + this.pageInfo.Id, { strEntity: JSON.stringify(param), detailList: JSON.stringify(list) }).then((res)=> { this.HIDE_LOADING(); @@ -258,7 +244,6 @@ export default{ return } this.qrCodeUrl = this.CONFIG("webHost")+res.imgUrl - console.log(this.CONFIG("webHost")+res.imgUrl) // $('#qrcodeImg').attr('src', res.info); }); } @@ -271,7 +256,11 @@ export default{ this.init() } }, + lookInvioce(){ + this.NAV_TO("./payInvioce?keyValue="+this.pageInfo.Id) + }, getpayfeetotal(){ + this.qrCodeUrl = "" let value = 0 this.FinaChargesStandardList.map(item=>{ if(/^-?\d+(,\d{3})*(\.\d{1,2})?$/.test(item.SJAmount)){