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