hetongCard.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <uni-collapse ref="collapse" class="sfht-collapse-box" @change="onChange">
  3. <uni-collapse-item title="合同信息" :open="true">
  4. <!-- 合同内容 -->
  5. <view class="phone-form-label"><text class="form-label-require"></text>服务类型</view>
  6. <picker :range="leixings" mode='selector' :value="leixingIndex" range-key="text" @change="onSelectLeixing"
  7. class="select-picker-box">
  8. <view class="form-radio-select">
  9. <view v-if="leixings[leixingIndex]">{{leixings[leixingIndex].text}}</view>
  10. <icon></icon>
  11. </view>
  12. </picker>
  13. <!-- 服务内容 -->
  14. <fuWuNeiRong @change="onChange"></fuWuNeiRong>
  15. <!-- 服务报酬 -->
  16. <fuWuBaoChou @change="onChange"></fuWuBaoChou>
  17. <!-- 服务时间 -->
  18. <fuWuShiJian @change="onChange"></fuWuShiJian>
  19. <!-- 丙方服务费 -->
  20. <bingFuWuFei @change="onChange"></bingFuWuFei>
  21. </uni-collapse-item>
  22. </uni-collapse>
  23. </template>
  24. <script setup>
  25. import {
  26. ref,
  27. reactive,
  28. nextTick
  29. } from "vue";
  30. import fuWuNeiRong from "./fuWuNeiRong.vue"
  31. import fuWuBaoChou from "./fuWuBaoChou.vue"
  32. import fuWuShiJian from "./fuWuShiJian.vue"
  33. import bingFuWuFei from "./bingFuWuFei.vue"
  34. import {
  35. useHetong
  36. } from "../useHetong.js"
  37. const {
  38. injectHetong
  39. } = useHetong();
  40. const data = injectHetong()
  41. const collapse = ref(null)
  42. const leixings = [{
  43. value: 1,
  44. text: '普通家务保姆'
  45. },
  46. {
  47. value: 2,
  48. text: '钟点工保姆'
  49. },
  50. {
  51. value: 3,
  52. text: '育儿嫂'
  53. },
  54. {
  55. value: 4,
  56. text: '其他'
  57. }
  58. ]
  59. const leixingIndex = ref(0);
  60. setTimeout(() => {
  61. collapse.value && collapse.value.resize()
  62. }, 300)
  63. function onChange() {
  64. setTimeout(() => {
  65. collapse.value && collapse.value.resize()
  66. }, 300)
  67. }
  68. function onSelectLeixing(e) {
  69. }
  70. </script>
  71. <style>
  72. </style>