|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<uni-popup ref="popupRef" type="bottom" background-color="#fff" :is-mask-click="false" :mask-click="false">
|
|
<uni-popup ref="popupRef" type="bottom" background-color="#fff" :is-mask-click="false" :mask-click="false">
|
|
|
<view class="ht-qm-popup">
|
|
<view class="ht-qm-popup">
|
|
|
- <view class="phone-navBar-box">
|
|
|
|
|
|
|
+ <view class="phone-navBar-box">
|
|
|
<view @click="goback2" class="nav-bar-icon"></view>
|
|
<view @click="goback2" class="nav-bar-icon"></view>
|
|
|
<text>选择客户</text>
|
|
<text>选择客户</text>
|
|
|
<uni-icons class="nav-bar-right-icon bar-ml10" type="search" size="20"
|
|
<uni-icons class="nav-bar-right-icon bar-ml10" type="search" size="20"
|
|
@@ -11,11 +11,11 @@
|
|
|
<search-dialog ref="searchDialogRef" shenfen="kh" @search-btn="dialogSearchBtn"
|
|
<search-dialog ref="searchDialogRef" shenfen="kh" @search-btn="dialogSearchBtn"
|
|
|
@reset-search="dialogSearchReset"></search-dialog>
|
|
@reset-search="dialogSearchReset"></search-dialog>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<view class="jz-new-btn-box">
|
|
<view class="jz-new-btn-box">
|
|
|
<button type="default" class="phone-green-btn" @click="handleAddKehu">新增客户</button>
|
|
<button type="default" class="phone-green-btn" @click="handleAddKehu">新增客户</button>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<!-- 无限滚动容器 -->
|
|
<!-- 无限滚动容器 -->
|
|
|
<view>
|
|
<view>
|
|
|
<scroll-view scroll-y="true" refresher-enabled="true" :refresher-triggered="data.loading"
|
|
<scroll-view scroll-y="true" refresher-enabled="true" :refresher-triggered="data.loading"
|
|
@@ -47,6 +47,9 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</uni-popup>
|
|
</uni-popup>
|
|
|
|
|
+
|
|
|
|
|
+ <addKh ref="addKhRef"></addKh>
|
|
|
|
|
+
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
@@ -60,6 +63,7 @@
|
|
|
} from "@dcloudio/uni-app";
|
|
} from "@dcloudio/uni-app";
|
|
|
import * as httpApi from "@/api/sanfang.js"
|
|
import * as httpApi from "@/api/sanfang.js"
|
|
|
import searchDialog from "./search.vue";
|
|
import searchDialog from "./search.vue";
|
|
|
|
|
+ import addKh from "./addKh"
|
|
|
|
|
|
|
|
const emits = defineEmits(['select'])
|
|
const emits = defineEmits(['select'])
|
|
|
|
|
|
|
@@ -67,6 +71,7 @@
|
|
|
popupRef.value.close();
|
|
popupRef.value.close();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ const addKhRef = ref(null)
|
|
|
const searchDialogRef = ref(null);
|
|
const searchDialogRef = ref(null);
|
|
|
const popupRef = ref(null)
|
|
const popupRef = ref(null)
|
|
|
const data = reactive({
|
|
const data = reactive({
|
|
@@ -164,8 +169,10 @@
|
|
|
function radioChange(opt) {
|
|
function radioChange(opt) {
|
|
|
data.activeData = opt.id
|
|
data.activeData = opt.id
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- function handleAddKehu() {}
|
|
|
|
|
|
|
+
|
|
|
|
|
+ function handleAddKehu() {
|
|
|
|
|
+ addKhRef.value.handleShow()
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
function handleSelect() {
|
|
function handleSelect() {
|
|
@@ -177,7 +184,7 @@
|
|
|
popupRef.value.open();
|
|
popupRef.value.open();
|
|
|
onRefresh();
|
|
onRefresh();
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
defineExpose({
|
|
defineExpose({
|
|
|
handleShow
|
|
handleShow
|
|
|
})
|
|
})
|