addSanfangHetong.vue 917 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view class="phone-navBar-box">
  3. <view @click="goUpPage" class="nav-bar-icon"></view>
  4. <text class="nav-bar-title">新增三方合同</text>
  5. </view>
  6. <button @click="handleSelct('kh')">选择客户</button>
  7. <button @click="handleSelct('jz')">选择家政</button>
  8. <!-- 客户 -->
  9. <selectKh ref="khRef"></selectKh>
  10. <!-- 家政 -->
  11. <selectJz ref="jzRef"></selectJz>
  12. </template>
  13. <script setup>
  14. import {
  15. ref,
  16. reactive,
  17. nextTick
  18. } from "vue";
  19. import {
  20. onLoad
  21. } from "@dcloudio/uni-app";
  22. import * as httpApi from "@/api/sanfang.js"
  23. import selectKh from "./components/selectKh.vue"
  24. import selectJz from "./components/selectJz.vue"
  25. const khRef = ref(null)
  26. const jzRef = ref(null)
  27. function handleSelct(code) {
  28. if (code == 'kh') {
  29. khRef.value.handleShow();
  30. } else {
  31. jzRef.value.handleShow();
  32. }
  33. }
  34. function goUpPage() {
  35. uni.navigateBack()
  36. }
  37. </script>
  38. <style>
  39. </style>