补充提交

This commit is contained in:
PC-202311141343\Administrator
2025-09-01 10:16:33 +08:00
parent 487a367c5a
commit 036f2a61bf
3 changed files with 67 additions and 24 deletions

View File

@@ -10,18 +10,18 @@
<!-- 正文内容 --> <!-- 正文内容 -->
<view> <view>
<!-- 搜索 --> <!-- 搜索 -->
<view class="search"> <!-- <view class="search">-->
<picker mode="date" :value="defaultDate" :start="startDate" :end="endDate" @change="bindDateChange" <!-- <picker mode="date" :value="defaultDate" :start="startDate" :end="endDate" @change="bindDateChange"-->
class="picker-bg"> <!-- class="picker-bg">-->
<view class="picker"> <!-- <view class="picker">-->
<uni-icons custom-prefix="iconfont" color="#ffffff" type="icon-phoneshizhong" <!-- <uni-icons custom-prefix="iconfont" color="#ffffff" type="icon-phoneshizhong"-->
size="18"></uni-icons> <!-- size="18"></uni-icons>-->
<view>{{ defaultDate }}</view> <!-- <view>{{ defaultDate }}</view>-->
<uni-icons type="down" size="18"></uni-icons> <!-- <uni-icons type="down" size="18"></uni-icons>-->
</view> <!-- </view>-->
</picker> <!-- </picker>-->
<button type="default" @click="handleSearch" size="mini" class="btn-search">查询</button> <!-- <button type="default" @click="handleSearch" size="mini" class="btn-search">查询</button>-->
</view> <!-- </view>-->
<!-- 分页部分 --> <!-- 分页部分 -->
<view class="white-bg margin-bottom20" v-for="(item, index) in list"> <view class="white-bg margin-bottom20" v-for="(item, index) in list">

View File

@@ -95,7 +95,12 @@ import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import customHeader from '@/components/customHeader.vue' import customHeader from '@/components/customHeader.vue'
import customTabs from '@/components/customTabs.vue'; import customTabs from '@/components/customTabs.vue';
import { auditActivityReport, getVisistDetailList, getYsVisistInfo } from '../../../../api/crm/activity/activity'; import {
auditActivityReport,
getRejectReason,
getVisistDetailList,
getYsVisistInfo
} from '../../../../api/crm/activity/activity';
let visistId = ref(0) let visistId = ref(0)
@@ -127,10 +132,38 @@ const activeTab = ref(0);//默认报告明细
const tabList = ['报告明细']; const tabList = ['报告明细'];
//点击驳回 //点击驳回
function refuse() { // 修正后的驳回方法
uni.navigateTo({ const refuse = async () => {
url: './auditReject?visistId=' + visistId.value uni.showModal({
}) title: '驳回原因',
content: '',
editable: true,
success: async function (modalRes) { // 使用modalRes避免重名
if (modalRes.confirm) {
try {
const param = {
visistId: visistId.value,
rejectReason: modalRes.content // 用户输入的驳回原因
};
const apiRes = await getRejectReason(param); // 避免与modalRes重名
uni.showToast({
title: '驳回成功',
icon: 'success'
});
// 操作完成后返回
setTimeout(() => {
uni.navigateBack(1);
}, 800);
} catch (err) {
console.log('驳回失败:', err);
uni.showToast({
title: '驳回失败',
icon: 'error'
});
}
}
}
});
} }
//点击通过 //点击通过
@@ -145,7 +178,7 @@ function adopt(item) {
reportStaffName: item.staffName, reportStaffName: item.staffName,
}).then(res => { }).then(res => {
if (res.code == 200) { if (res.code == 200) {
// that.mescroll.resetUpScroll() mescroll.resetUpScroll()
} else { } else {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
@@ -153,6 +186,10 @@ function adopt(item) {
}); });
} }
}) })
uni.navigateBack({
})
} }
} }

View File

@@ -69,7 +69,10 @@
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-forms-item> </uni-forms-item>
@@ -138,7 +141,9 @@ const submitForm = async () => {
icon: 'success' icon: 'success'
}); });
saveVisistReportForm.cusId = formData.value.cusId saveVisistReportForm.cusId = formData.value.cusId
saveVisistReportForm.joinUser = formData.value.leader.map(item => item.text).join(',') if (Array.isArray(formData.value.leader)) {
saveVisistReportForm.joinUser = formData.value.leader.map(item => item.text).join(',');
}
saveVisistReportForm.visistDate = formData.value.visitDate saveVisistReportForm.visistDate = formData.value.visitDate
saveVisistReportForm.visistType = 'I类活动走访' saveVisistReportForm.visistType = 'I类活动走访'
saveVisistReportForm.mapId = mapId.value saveVisistReportForm.mapId = mapId.value
@@ -249,10 +254,11 @@ function chooseRecord(e) {
.form-con { .form-con {
/* #ifdef APP-PLUS */ /* #ifdef APP-PLUS */
height: calc(100vh - 100px) height: calc(100vh - 95px) !important;
/* #endif */ /* #endif */
/* #ifndef APP-PLUS */ /* #ifndef APP-PLUS */
/* #endif */ height:calc(100vh - 68px) !important;
/* #endif */
} }
:deep(.uni-date-x) { :deep(.uni-date-x) {