Explorar el Código

老生缴费

西昌缴费二期
杨晓琪 hace 2 años
padre
commit
25a84cc833
Se han modificado 4 ficheros con 116 adiciones y 34 borrados
  1. +11
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json
  2. +0
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/list.vue
  3. +86
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/payInvioce.vue
  4. +19
    -30
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/single.vue

+ 11
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json Ver fichero

@@ -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
}
}
],

// 全局样式


+ 0
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/list.vue Ver fichero

@@ -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;


+ 86
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/payInvioce.vue Ver fichero

@@ -0,0 +1,86 @@
<template>
<view>
<view class="menu">
<view v-for="item in menuOptions" :key="item.Id" :class="{menu_item:true,active:activeId==item.Id}" @click="()=>{activeId = item.Id;activeIdChange(item)}">
{{item.billNo}}
</view>
</view>
<iframe v-for="item in menuOptions" :key="item.Id" v-show="activeId == item.Id" :src="item.billUrl"></iframe>
</view>
</template>

<script>
export default {
data() {
return {
menuOptions:[],
activeId:'',
keyValue:''
}
},
onLoad({keyValue}) {
if(!keyValue){
this.NAV_BACK()
setTimeout(()=>{
this.TOAST("请传入发票信息")
},100)
return
}
this.keyValue = keyValue
this.init()
},
methods: {
// 选项卡改变
activeIdChange(item){
//
},
init(){
this.LOADING()
this.HTTP_GET("/learun/payfee/getinvoice?keyValue="+this.keyValue).then((success)=>{
this.HIDE_LOADING()
if(!success)return
if(!success.length){
this.NAV_BACK()
setTimeout(()=>{
this.TOAST("暂无发票信息")
},100)
}
this.menuOptions = success
this.activeId = this.menuOptions[0].Id
})
},
},
}
</script>

<style lang="scss" scoped>
.menu{
display: flex;
justify-content: space-between;
background-color: #fff;
border: 1px solid #E4E7ED;
.menu_item{
flex: 1;
text-align: center;
box-sizing: border-box;
line-height: 36px;
border: 1px solid #E4E7ED;
position: relative;
}
.menu_item.active::after{
content: "";
display: block;
background-color: #409EFF;
position: absolute;
width: 50%;
height: 2px;
left: 0;right: 0;
margin: auto;
bottom: 0;
}
}
iframe{
width: 100%;
height: calc(100vh - 40px);
}
</style>

+ 19
- 30
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuInfoBasic_PayFee/PayFee/single.vue Ver fichero

@@ -40,15 +40,21 @@
<view>
<l-select v-model="queryData.OnsitePayFeeStatus" :range="dataSource.OnsitePayStatus" title="现场缴费状态" placeholder="请选择" />
</view> -->
<view v-if="ready" class="btn" @click="tapBtn('getQRCode')">
<view v-if="ready&&canPay" class="btn" @click="tapBtn('getQRCode')">
生成二维码
</view>
<view v-if="ready" class="btn" @click="tapBtn('getPayRes')">
<view v-if="ready&&canPay" class="btn" @click="tapBtn('getPayRes')">
查询缴费结果
</view>
<view class="btn" style="background:;margin-bottom: 18px;" @click="NAV_BACK()">
<view class="btn" v-if="ready" @click="lookInvioce">
查看发票
</view>
<view class="btn" @click="NAV_BACK()">
取消缴费
</view>
<view style="height: 18px;">
</view>
</view>
</template>

@@ -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)){


Cargando…
Cancelar
Guardar