sicknessBenefit.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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 === '0'">
  6. <hsInput label="出院小结" v-model="form.cyxj" />
  7. <hsInput label="疾病名称" v-model="form.jbmc" />
  8. <hsInput label="住院日期" v-model="form.date1" model="date" />
  9. <hsInput label="出院日期" v-model="form.date2" model="date" />
  10. <hsPhoto label="添加出院小结照片" limit="5" v-model="form.fjtp"></hsPhoto>
  11. </view>
  12. <view v-if="type === '1'">
  13. <hsInput label="出院小结" v-model="form.cyxj" />
  14. <hsInput label="疾病名称" v-model="form.jbmc" />
  15. <hsInput label="住院日期" v-model="form.date1" model="date" />
  16. <hsInput label="出院日期" v-model="form.date2" model="date" />
  17. <hsPhoto label="清添加”疾病病理报告” 和“出院小结” 照片" limit="5" v-model="form.fjtp"></hsPhoto>
  18. </view>
  19. <view v-if="type === '2'">
  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" inputSpan="12" 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. }
  62. }
  63. },
  64. mounted() {
  65. this.type = this.$root.$mp.query.type
  66. this.form.userName = uni.getStorageSync("userInfo").nickName
  67. },
  68. methods: {
  69. submit() {
  70. uni.showModal({
  71. content: " 请确保填写会员卡【" + this.form.clubNo +
  72. "】内容准确无误,以免申请异常,确认无误后点击【确认】"
  73. })
  74. this.$httpRequest({
  75. url: '/app/condoleRecord',
  76. method: 'post',
  77. data: this.form,
  78. urlType: this.$getUrlType()
  79. }).then(res => {
  80. if (res.code === 200) {
  81. this.$showModal("成功")
  82. } else {
  83. this.$showModal(res.msg)
  84. }
  85. })
  86. }
  87. }
  88. }
  89. </script>
  90. <style lang="scss" scoped>
  91. .desc {
  92. padding: 10rpx 15rpx 0 15rpx;
  93. color: #818181;
  94. font-size: 20rpx;
  95. }
  96. .bottim_view {
  97. padding: 5px 20px 30px;
  98. position: fixed;
  99. left: 0px;
  100. bottom: 0px;
  101. width: 100%;
  102. height: 40px;
  103. background-color: #ffffff;
  104. }
  105. </style>