sicknessBenefit.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <view>
  3. <hsInput label="姓名" v-model="form.userName" :disabled="true" />
  4. <hsInput label="工会会员卡卡号" labelSize="8" inputSpan="16" v-model="form.clubNo" />
  5. <view v-if="type === '1'">
  6. <hsInput label="出院小结" v-model="form.cyxj" />
  7. <hsInput label="疾病名称" v-model="form.jbmc" />
  8. <hsInput label="住院日期" v-model="form.zhuyuanDate" model="date" />
  9. <hsInput label="出院日期" v-model="form.chuyuanDate" model="date" />
  10. <hsPhoto label="添加出院小结照片,工会会员卡照片" limit="5" v-model="form.fjtp"></hsPhoto>
  11. </view>
  12. <view v-if="type === '2'">
  13. <hsInput label="出院小结" v-model="form.cyxj" />
  14. <hsInput label="疾病名称" v-model="form.jbmc" />
  15. <hsInput label="住院日期" v-model="form.zhuyuanDate" model="date" />
  16. <hsInput label="出院日期" v-model="form.chuyuanDate" model="date" />
  17. <hsPhoto label="请添加疾病病理报告,出院小结照片,工会会员卡照片" limit="5" v-model="form.fjtp"></hsPhoto>
  18. </view>
  19. <view v-if="type === '3'">
  20. <view class="desc">
  21. <hsDictSelect label="申请事项" dictKey="condole_renshenshanghai_type" v-model="form.remark" />
  22. </view>
  23. <hsInput label="案情简介" v-model="form.cyxj" model="textarea" />
  24. <hsInput label="伤害时间" v-model="form.shanghaiDate" model="date" />
  25. <hsInput label="具体工作场所" labelSize="8" v-model="form.jtgzcs" model="textarea" />
  26. <hsInput label="双方关系" v-model="form.sfgx" model="textarea" />
  27. <hsPhoto label="附件" limit="5" v-model="form.fjtp"></hsPhoto>
  28. </view>
  29. <view style="padding: 200px 0;"></view>
  30. <view class="bottim_view">
  31. <view>
  32. <u-row>
  33. <u-col span="11">
  34. <u-button :disabled="isDisabled" class="btnDoPay" shape="circle" @click="submit"
  35. color="rgb(55,186,189)" text="提交">
  36. </u-button>
  37. </u-col>
  38. </u-row>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import hsDictSelect from "../components/dictSelect.vue"
  45. import hsInput from "../components/input.vue"
  46. import hsPhoto from "../components/photo.vue"
  47. export default {
  48. components: {
  49. hsDictSelect,
  50. hsInput,
  51. hsPhoto
  52. },
  53. data() {
  54. return {
  55. type: null,
  56. isDisabled: false,
  57. form: {
  58. nickName: '',
  59. clubNo: '',
  60. fjtp: '',
  61. zhuyuanDate: '',
  62. chuyuanDate: ''
  63. }
  64. }
  65. },
  66. mounted() {
  67. this.type = this.$root.$mp.query.type
  68. this.form.wwlx = this.$root.$mp.query.type
  69. this.form.userName = uni.getStorageSync("userInfo").nickName
  70. },
  71. methods: {
  72. submit() {
  73. if (!this.form.clubNo) {
  74. this.$showModal("请填写工会会员卡号")
  75. return
  76. }
  77. let that = this
  78. uni.showModal({
  79. title: "提醒",
  80. content: " 请确保填写会员卡【" + this.form.clubNo +
  81. "】内容准确无误,以免申请异常,确认无误后点击【确定】",
  82. success(res) {
  83. if (res.confirm) {
  84. that.$httpRequest({
  85. url: '/app/condoleRecord',
  86. method: 'post',
  87. data: that.form,
  88. urlType: that.$getUrlType()
  89. }).then(res => {
  90. if (res.data.code === 200) {
  91. uni.navigateBack()
  92. } else {
  93. that.$showModal(res.msg)
  94. }
  95. })
  96. }
  97. }
  98. })
  99. }
  100. }
  101. }
  102. </script>
  103. <style lang="scss" scoped>
  104. .desc {
  105. padding: 10rpx 15rpx 0 15rpx;
  106. color: #818181;
  107. font-size: 20rpx;
  108. }
  109. .bottim_view {
  110. padding: 5px 20px 30px;
  111. position: fixed;
  112. left: 0px;
  113. bottom: 0px;
  114. width: 100%;
  115. height: 40px;
  116. background-color: #ffffff;
  117. }
  118. </style>