Compare commits
2 Commits
b46899331f
...
e1d31fb8e7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e1d31fb8e7 | ||
|
|
a6ee6db40d |
@@ -56,7 +56,6 @@ const props = defineProps({
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 表单数据
|
// 表单数据
|
||||||
const formData = ref({
|
const formData = ref({
|
||||||
customerUserList,
|
customerUserList,
|
||||||
@@ -69,6 +68,7 @@ const formRef = ref(null);
|
|||||||
|
|
||||||
//删除明细项的内容
|
//删除明细项的内容
|
||||||
let lyDeleteForm = reactive({})
|
let lyDeleteForm = reactive({})
|
||||||
|
|
||||||
function handleDeleteVisistDetailItem() {
|
function handleDeleteVisistDetailItem() {
|
||||||
lyDeleteForm.treeName = '联谊活动'
|
lyDeleteForm.treeName = '联谊活动'
|
||||||
lyDeleteForm.visistId = props.visistId
|
lyDeleteForm.visistId = props.visistId
|
||||||
@@ -94,6 +94,7 @@ let handleDelete = () => {
|
|||||||
formData.value.customerUserList = null
|
formData.value.customerUserList = null
|
||||||
formData.value.myUserList = null
|
formData.value.myUserList = null
|
||||||
formData.value.activeTxt = null
|
formData.value.activeTxt = null
|
||||||
|
stayDaysIndex.value = 0
|
||||||
if (cache.get('checkedLYClientList') != null) {
|
if (cache.get('checkedLYClientList') != null) {
|
||||||
cache.remove('checkedYWClientList');
|
cache.remove('checkedYWClientList');
|
||||||
}
|
}
|
||||||
@@ -194,7 +195,6 @@ let getLYVisitReportDetailContent = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//页面卸载之后,删除缓存信息
|
//页面卸载之后,删除缓存信息
|
||||||
onUnload(() => {
|
onUnload(() => {
|
||||||
handleDeleteLocal()
|
handleDeleteLocal()
|
||||||
|
|||||||
@@ -80,9 +80,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<!-- 评论 -->
|
<!-- 评论 -->
|
||||||
<block v-if="activeTab === 1">
|
<!-- <block v-if="activeTab === 1">-->
|
||||||
<view class="white-bg white-bg-2">评论内容</view>
|
<!-- <view class="white-bg white-bg-2">评论内容</view>-->
|
||||||
</block>
|
<!-- </block>-->
|
||||||
</customTabs>
|
</customTabs>
|
||||||
|
|
||||||
|
|
||||||
@@ -139,7 +139,7 @@ const getVisitorReportDetail = async () => {
|
|||||||
|
|
||||||
// 报告明细&评论
|
// 报告明细&评论
|
||||||
const activeTab = ref(0);//默认报告明细
|
const activeTab = ref(0);//默认报告明细
|
||||||
const tabList = ['报告明细', '评论'];
|
const tabList = ['报告明细'];
|
||||||
|
|
||||||
// 点击赞
|
// 点击赞
|
||||||
let zanFlag = ref(false)
|
let zanFlag = ref(false)
|
||||||
|
|||||||
@@ -71,7 +71,11 @@ import { ref, reactive, onMounted } from 'vue'
|
|||||||
import MescrollUni from 'mescroll-uni/mescroll-uni.vue';
|
import MescrollUni from 'mescroll-uni/mescroll-uni.vue';
|
||||||
import { getNavBarPaddingTop } from '@/utils/system.js'
|
import { getNavBarPaddingTop } from '@/utils/system.js'
|
||||||
import { getQueryVisistList } from '../../../../api/crm/activity/activity';
|
import { getQueryVisistList } from '../../../../api/crm/activity/activity';
|
||||||
|
import {onShow} from "@dcloudio/uni-app";
|
||||||
|
|
||||||
|
onShow(()=>{
|
||||||
|
downCallback(mescrollRef.value.mescroll)
|
||||||
|
})
|
||||||
|
|
||||||
let list = ref([])
|
let list = ref([])
|
||||||
let queryParams = reactive({
|
let queryParams = reactive({
|
||||||
@@ -118,17 +122,22 @@ const downCallback = async (mescroll) => {
|
|||||||
const upCallback = async (mescroll) => {
|
const upCallback = async (mescroll) => {
|
||||||
try {
|
try {
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
// const res = await getVisitorReportList(mescroll.num, mescroll.size);
|
queryParams.pageNum = 1;
|
||||||
|
queryParams.pageSize = upOption.value.page.size;
|
||||||
|
const res = await getQueryVisistList(queryParams);
|
||||||
if (mescroll.num === 1) {
|
if (mescroll.num === 1) {
|
||||||
// list.value = res.list;
|
list.value = res.rows;
|
||||||
} else {
|
} else {
|
||||||
// list.value.push(...res.list);
|
list.value.push(...res.rows);
|
||||||
}
|
}
|
||||||
// mescroll.endBySize(res.list.length, res.total);
|
console.log(res,'长度测试')
|
||||||
|
mescroll.endBySize(res.rows.length, res.total);
|
||||||
}, 500);
|
}, 500);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
mescroll.endErr();
|
mescroll.endErr();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('长度测试111')
|
||||||
}
|
}
|
||||||
|
|
||||||
const upOption = ref({
|
const upOption = ref({
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<!-- 正文内容 -->
|
<!-- 正文内容 -->
|
||||||
<view class="white-bg">
|
<view class="white-bg">
|
||||||
<view class="form-con">
|
<view class="form-con">
|
||||||
<uni-forms ref="formRef" :model="formData" :rules="rules" label-width="100px">
|
<uni-forms ref="formRef" :model="formData" label-width="100px">
|
||||||
<view @click="addVisistReport" class="form-item-container">
|
<view @click="addVisistReport" class="form-item-container">
|
||||||
<uni-forms-item label="客户名称" name="cusName" class="f-c-right">
|
<uni-forms-item label="客户名称" name="cusName" class="f-c-right">
|
||||||
<text class="name">{{ formData.cusName }}</text>
|
<text class="name">{{ formData.cusName }}</text>
|
||||||
@@ -65,14 +65,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<uni-forms-item label="我方领导" name="leader" required
|
<uni-forms-item label="我方领导" name="leader"
|
||||||
class="uni-forms-item is-direction-top is-top">
|
class="uni-forms-item is-direction-top is-top">
|
||||||
|
|
||||||
<multipleSelect :multiple="true" :value="chooseMyLeaderList" downInner
|
<multipleSelect :multiple="true" :value="chooseMyLeaderList" downInner
|
||||||
:options="myLeaderList" @change="changeValue2" :key="Math.round()" :slabel="'text'">
|
:options="myLeaderList" @change="changeValue2" :key="Math.round()" :slabel="'text'">
|
||||||
</multipleSelect>
|
</multipleSelect>
|
||||||
<!-- <uni-easyinput v-model="formData.leader" placeholder="请输入我方领导" />-->
|
|
||||||
|
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
|
|
||||||
|
|
||||||
@@ -123,14 +121,6 @@ const changeValue2 = (item, value) => {
|
|||||||
formData.value.leader = chooseMyLeaderList
|
formData.value.leader = chooseMyLeaderList
|
||||||
};
|
};
|
||||||
|
|
||||||
// 验证规则
|
|
||||||
const rules = {
|
|
||||||
leader: {
|
|
||||||
rules: [
|
|
||||||
{ required: true, errorMessage: '我方领导不能为空' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
// 修改日期
|
// 修改日期
|
||||||
let changeDate = (e) => {
|
let changeDate = (e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user