You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

83 lines
2.4 KiB

  1. <template>
  2. <view class="lr-form-container">
  3. <view>
  4. <l-select v-model="queryData.PayFeeStatus" :range="dataSource.PayStatus" title="线上缴费状态" placeholder="请选择" />
  5. </view>
  6. <view>
  7. <l-input v-model="queryData.StudentLoan" :disabled="disabled" title="贷款回执码" placeholder="请填写贷款回执码" right />
  8. </view>
  9. <view>
  10. <l-select v-model="queryData.OnsitePayFeeStatus" :range="dataSource.OnsitePayStatus" title="现场缴费状态" placeholder="请选择" />
  11. </view>
  12. <view class="btn" @click="tapBtn">
  13. 提交
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default{
  19. data() {
  20. return {
  21. disabled: false,
  22. // 数据源
  23. dataSource: {
  24. PayStatus: Object.values(this.GET_GLOBAL('dataDictionary').PayStatus).map(t => ({ value: t.value, text: t.text })),
  25. OnsitePayStatus: Object.values(this.GET_GLOBAL('dataDictionary').OnsitePayStatus).map(t => ({ value: t.value, text: t.text }))
  26. },
  27. queryData: {
  28. StudentLoan: '',
  29. PayFeeStatus: '',
  30. OnsitePayFeeStatus: '',
  31. StudentLoanStatus: '0'
  32. },
  33. pageInfo:{}
  34. }
  35. },
  36. methods:{
  37. init() {
  38. // console.log(this.dataSource)
  39. this.pageInfo = this.GET_PARAM(); //获取页面传递参数
  40. this.LOADING('加载数据中…');
  41. this.HTTP_GET('StuInfoFresh/form', this.pageInfo.ID,'加载数据时出错').then(res => {
  42. this.HIDE_LOADING();
  43. // console.log(res)
  44. if(res){
  45. let data = res.StuInfoFresh;
  46. this.queryData.StudentLoan = data.StudentLoan == null? '' : data.StudentLoan;
  47. this.queryData.PayFeeStatus = data.PayFeeStatus == null? '' : data.PayFeeStatus;
  48. this.queryData.OnsitePayFeeStatus = data.OnsitePayFeeStatus == null? '' : data.OnsitePayFeeStatus;
  49. this.disabled = data.StudentLoanStatus == "1"? true : false;
  50. }
  51. })
  52. },
  53. tapBtn() {
  54. if(this.queryData.StudentLoan.trim() != ""){
  55. this.queryData.StudentLoanStatus = 1;
  56. }
  57. let _postData = {
  58. keyValue: this.pageInfo.ID,
  59. strEntity: JSON.stringify(this.queryData)
  60. }
  61. this.LOADING('提交数据中…');
  62. this.HTTP_POST('StuInfoFresh/save', _postData,'加载数据时出错').then(res => {
  63. this.HIDE_LOADING();
  64. console.log(res)
  65. if(res){
  66. this.TOAST('提交数据成功');
  67. this.EMIT('stuInfoFreshPayFee');
  68. this.NAV_BACK()
  69. }
  70. })
  71. }
  72. },
  73. created() {
  74. this.init()
  75. }
  76. }
  77. </script>
  78. <style lang="less" scoped>
  79. </style>