帮扶记录管理
This commit is contained in:
429
packageB/priority/jobWill.vue
Normal file
429
packageB/priority/jobWill.vue
Normal file
@@ -0,0 +1,429 @@
|
|||||||
|
<template>
|
||||||
|
<AppLayout :title="title" :show-bg-image="false" >
|
||||||
|
<view class="page-container" >
|
||||||
|
<scroll-view :scroll-y="true" class="nearby-scroll" @scrolltolower="scrollBottom" lower-threshold="50">
|
||||||
|
<view class="main-list" :style="getBackgroundStyle('k.png')" >
|
||||||
|
<view class="list-top">
|
||||||
|
<view class="list-title">
|
||||||
|
<text>求职意愿列表</text>
|
||||||
|
<view class="title-line" style="left: 70rpx;"></view>
|
||||||
|
</view>
|
||||||
|
<view class="title-total">
|
||||||
|
共<text class="total-num">{{totalNum}}</text>条
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="list-box" v-if="dataList.length>0">
|
||||||
|
<view class="con-box" v-for="(item,index) in dataList" :key="index">
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/person.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
意向岗位:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.postType}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/help.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
期望薪资:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.salary}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/base.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
意向区域:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.regionName}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/num.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
期望福利:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.welfare}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/date.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
学历:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{getabelByValue(item.education,educationOptions)}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/next.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
岗位类型:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{getabelByValue(item.jobType,jobTypeOptions)}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/help.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
类型:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{getabelByValue(item.type,gangweiTypeOptions)}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-btns">
|
||||||
|
<button class="mini-btn form-box-btn detail-btn" size="mini" @click="goDetail('edit',item)">编辑</button>
|
||||||
|
<button class="mini-btn form-box-btn follow-btn" size="mini" @click="del(item)">删除</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<empty v-else pdTop="200"></empty>
|
||||||
|
</view>
|
||||||
|
</scroll-view>
|
||||||
|
<view class="float-btn" @click="goDetail('add')">
|
||||||
|
<uni-icons type="plusempty" color="#fff" size="30"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</AppLayout>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { inject, ref, reactive, onMounted } from 'vue';
|
||||||
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
|
const { $api, navTo, navBack } = inject('globalFunction');
|
||||||
|
import config from "@/config.js"
|
||||||
|
|
||||||
|
const title = ref('');
|
||||||
|
const id=ref('')
|
||||||
|
const pageNum = ref(1)
|
||||||
|
const pageSize = ref(2)
|
||||||
|
const totalNum=ref(0)
|
||||||
|
const dataList=ref([])
|
||||||
|
const educationOptions=ref([])
|
||||||
|
const jobTypeOptions=ref([])
|
||||||
|
const gangweiTypeOptions=ref([])
|
||||||
|
const goalPersonId=ref([])
|
||||||
|
const baseUrl = config.imgBaseUrl
|
||||||
|
const getBackgroundStyle = (imageName) => ({
|
||||||
|
backgroundImage: `url(${baseUrl}/dispatch/${imageName})`,
|
||||||
|
backgroundSize: 'cover', // 覆盖整个容器
|
||||||
|
backgroundPosition: 'center', // 居中
|
||||||
|
backgroundRepeat: 'no-repeat'
|
||||||
|
});
|
||||||
|
function getDictionary(){
|
||||||
|
$api.myRequest('/system/public/dict/data/type/education').then((resData) => {
|
||||||
|
if(resData && resData.code == 200){
|
||||||
|
resData.data.forEach(item=>{
|
||||||
|
const obj = {
|
||||||
|
value: item.dictValue,
|
||||||
|
text: item.dictLabel
|
||||||
|
}
|
||||||
|
educationOptions.value.push(obj)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$api.myRequest('/system/public/dict/data/type/job_type').then((resData) => {
|
||||||
|
if(resData && resData.code == 200){
|
||||||
|
resData.data.forEach(item=>{
|
||||||
|
const obj = {
|
||||||
|
value: item.dictValue,
|
||||||
|
text: item.dictLabel
|
||||||
|
}
|
||||||
|
jobTypeOptions.value.push(obj)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$api.myRequest('/system/public/dict/data/type/gangwei_type').then((resData) => {
|
||||||
|
if(resData && resData.code == 200){
|
||||||
|
resData.data.forEach(item=>{
|
||||||
|
const obj = {
|
||||||
|
value: item.dictValue,
|
||||||
|
text: item.dictLabel
|
||||||
|
}
|
||||||
|
gangweiTypeOptions.value.push(obj)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function getabelByValue(value,arr) {
|
||||||
|
if (!Array.isArray(arr)) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
const item = arr.find(item => item.value === String(value))
|
||||||
|
return item ? item.text : '暂无'
|
||||||
|
}
|
||||||
|
function getDataList(){
|
||||||
|
let header={
|
||||||
|
'Authorization':uni.getStorageSync('Padmin-Token'),
|
||||||
|
'Content-Type': "application/x-www-form-urlencoded"
|
||||||
|
}
|
||||||
|
let params={
|
||||||
|
personId: id.value,
|
||||||
|
pageNum: pageNum.value,
|
||||||
|
pageSize: pageSize.value
|
||||||
|
}
|
||||||
|
$api.myRequest('/dispatch/job/willingness/list',params,'get',9100,header).then((resData) => {
|
||||||
|
totalNum.value=resData.total
|
||||||
|
dataList.value=dataList.value.concat(resData.rows)
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function scrollBottom(){
|
||||||
|
if(pageNum.value<totalNum.value/pageSize.value){
|
||||||
|
pageNum.value++
|
||||||
|
getDataList()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function goDetail(val,item){
|
||||||
|
if(val=='add'){
|
||||||
|
navTo('/packageB/priority/jobWillEdit?goalPersonId=' + goalPersonId.value);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
function del(item){}
|
||||||
|
onLoad((options) => {
|
||||||
|
id.value=options.id
|
||||||
|
goalPersonId.value=options.goalPersonId
|
||||||
|
runAsyncTasks()
|
||||||
|
});
|
||||||
|
const runAsyncTasks = async () => {
|
||||||
|
await getDictionary()
|
||||||
|
await getDataList()
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
image
|
||||||
|
height: 100%
|
||||||
|
width: 100%
|
||||||
|
.page-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: calc(100vh - var(--window-top)); /* 如果 AppLayout 有 header,需减去 */
|
||||||
|
/* 或者简单用:height: 100vh; */
|
||||||
|
padding-bottom: 140rpx
|
||||||
|
}
|
||||||
|
.nearby-scroll
|
||||||
|
// 使用flex布局让scroll-view自适应高度,占据剩余空间
|
||||||
|
flex: 1
|
||||||
|
// overflow: hidden;
|
||||||
|
.task-box
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
.task-label
|
||||||
|
font-size: 30rpx
|
||||||
|
color: #6E7E9B
|
||||||
|
.task-name
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 30rpx
|
||||||
|
color: #3D61AC
|
||||||
|
.main-list
|
||||||
|
background-color: #ffffff
|
||||||
|
padding: 20rpx 20rpx 28rpx 20rpx
|
||||||
|
margin: 30rpx 30rpx
|
||||||
|
box-shadow: 0px 3px 20px 0px rgba(0,105,234,0.1)
|
||||||
|
border-radius: 12px
|
||||||
|
.list-top
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
justify-content: space-between
|
||||||
|
.list-title
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 36rpx
|
||||||
|
color: #404040
|
||||||
|
position: relative
|
||||||
|
|
||||||
|
.title-line
|
||||||
|
position: absolute
|
||||||
|
bottom: -10rpx
|
||||||
|
left: 70rpx
|
||||||
|
width: 70rpx
|
||||||
|
height: 8rpx
|
||||||
|
background: linear-gradient(90deg, #FFAD58 0%, #FF7A5B 100%)
|
||||||
|
border-radius: 4rpx
|
||||||
|
.title-total
|
||||||
|
font-size: 24rpx
|
||||||
|
color: #999999
|
||||||
|
.total-num
|
||||||
|
color: #3088FF
|
||||||
|
margin-left: 4rpx
|
||||||
|
margin-right: 4rpx
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 26rpx
|
||||||
|
|
||||||
|
.list-box
|
||||||
|
margin-top: 40rpx
|
||||||
|
|
||||||
|
:deep(.uni-forms-item__label)
|
||||||
|
width: 194rpx !important
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #404040;
|
||||||
|
|
||||||
|
.search-container
|
||||||
|
padding: 20rpx 0rpx 0rpx 0rpx
|
||||||
|
.title-total
|
||||||
|
font-size: 24rpx
|
||||||
|
color: #999999
|
||||||
|
.total-num
|
||||||
|
color: #3088FF
|
||||||
|
margin-left: 4rpx
|
||||||
|
margin-right: 4rpx
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 26rpx
|
||||||
|
.search-item
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
margin-bottom: 30rpx
|
||||||
|
|
||||||
|
.label
|
||||||
|
width: 160rpx
|
||||||
|
font-size: 28rpx
|
||||||
|
color: #404040
|
||||||
|
flex-shrink: 0
|
||||||
|
|
||||||
|
.input,
|
||||||
|
.picker
|
||||||
|
background: #FFFFFF
|
||||||
|
flex: 1
|
||||||
|
min-width: 0
|
||||||
|
.search-box-btn
|
||||||
|
border-radius: 32rpx !important
|
||||||
|
background: #3088FF !important
|
||||||
|
margin-right: 16rpx
|
||||||
|
.reset-box-btn
|
||||||
|
border-radius: 32rpx !important
|
||||||
|
background: #02B44D
|
||||||
|
color: #fff
|
||||||
|
.con-box
|
||||||
|
background: #fff
|
||||||
|
padding: 20rpx
|
||||||
|
box-shadow: 0px 0px 6rpx 0px rgba(0,71,200,0.16)
|
||||||
|
border-radius: 24rpx
|
||||||
|
border: 1rpx solid #EDF5FF
|
||||||
|
margin-top: 30rpx
|
||||||
|
.form-title
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
|
||||||
|
.form-name
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 30rpx
|
||||||
|
color: #595959
|
||||||
|
margin-right:16rpx
|
||||||
|
.form-type
|
||||||
|
border-radius: 8rpx;
|
||||||
|
border: 2rpx solid #FF7D26;
|
||||||
|
font-size: 24rpx
|
||||||
|
color: #F1690E
|
||||||
|
padding: 4rpx 10rpx
|
||||||
|
.form-item
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
justify-content: space-between
|
||||||
|
margin-top: 30rpx
|
||||||
|
.item-left
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
.item-img
|
||||||
|
width: 26rpx
|
||||||
|
height: 26rpx
|
||||||
|
margin-right: 10rpx
|
||||||
|
.item-label
|
||||||
|
font-size: 26rpx
|
||||||
|
color: #B3B3B3
|
||||||
|
width: 190rpx
|
||||||
|
.item-right
|
||||||
|
font-size: 26rpx
|
||||||
|
color: #737373
|
||||||
|
// overflow: hidden
|
||||||
|
// text-overflow: ellipsis
|
||||||
|
// white-space: nowrap
|
||||||
|
word-wrap: break-word
|
||||||
|
overflow-wrap: break-word
|
||||||
|
white-space: normal
|
||||||
|
.form-btns
|
||||||
|
margin-top:30rpx
|
||||||
|
.form-box-btn
|
||||||
|
border-radius: 50rpx !important
|
||||||
|
margin-right: 24rpx
|
||||||
|
padding: 0rpx 40rpx
|
||||||
|
.detail-btn
|
||||||
|
background: #EDF5FF
|
||||||
|
border: 1px solid #3088FF
|
||||||
|
font-size: 28rpx
|
||||||
|
color: #3088FF
|
||||||
|
.follow-btn
|
||||||
|
background: #EEF9F3
|
||||||
|
border: 1px solid #00933E
|
||||||
|
font-size: 28rpx
|
||||||
|
color: #00933E
|
||||||
|
.recommend-btn
|
||||||
|
background: linear-gradient(92deg, #0DCCFF 0%, #4760FF 100%)
|
||||||
|
font-size: 28rpx
|
||||||
|
color: #FFFFFF
|
||||||
|
.button-group
|
||||||
|
position: fixed
|
||||||
|
bottom: 0
|
||||||
|
left: 0
|
||||||
|
width: 100%
|
||||||
|
height: 120rpx
|
||||||
|
background: #fff
|
||||||
|
.btns
|
||||||
|
height: 120rpx
|
||||||
|
width: 100%
|
||||||
|
line-height: 120px
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
justify-content: space-between
|
||||||
|
box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1)
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 45%;
|
||||||
|
height: 80rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reset-btn {
|
||||||
|
background-color: #D8E9FF;
|
||||||
|
color: #1176FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit-btn {
|
||||||
|
background-color: #368BFF;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
.float-btn{
|
||||||
|
position: fixed;
|
||||||
|
bottom: 100rpx;
|
||||||
|
right: 50rpx;
|
||||||
|
background: #368BFF;
|
||||||
|
width: 100rpx;
|
||||||
|
height: 100rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
line-height: 100rpx;
|
||||||
|
text-align: center;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
366
packageB/priority/jobWillEdit.vue
Normal file
366
packageB/priority/jobWillEdit.vue
Normal file
@@ -0,0 +1,366 @@
|
|||||||
|
<template>
|
||||||
|
<AppLayout :title="title" :show-bg-image="false" >
|
||||||
|
<view class="main-list" :style="getBackgroundStyle('k.png')">
|
||||||
|
<view class="list-top">
|
||||||
|
<view class="list-title">
|
||||||
|
<text>新增求职意愿</text>
|
||||||
|
<view class="title-line"></view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="form-container">
|
||||||
|
<uni-forms ref="formRef" v-model="formData" :rules="rules" validate-trigger="submit" >
|
||||||
|
<uni-forms-item label="意向岗位:" name="content" required>
|
||||||
|
<uni-easyinput v-model="formData.postType" placeholder="请输入意向岗位"></uni-easyinput>
|
||||||
|
</uni-forms-item>
|
||||||
|
<uni-forms-item label="期望薪资:" name="content" required>
|
||||||
|
<uni-easyinput v-model="formData.salary" placeholder="请输入期望薪资"></uni-easyinput>
|
||||||
|
</uni-forms-item>
|
||||||
|
<uni-forms-item label="意向工作区域:" name="content" required>
|
||||||
|
<uni-easyinput v-model="formData.regionName" placeholder="请输入意向工作区域"></uni-easyinput>
|
||||||
|
</uni-forms-item>
|
||||||
|
<uni-forms-item label="期望福利:" name="content" required>
|
||||||
|
<uni-easyinput v-model="formData.welfare" placeholder="请输入期望福利"></uni-easyinput>
|
||||||
|
</uni-forms-item>
|
||||||
|
<uni-forms-item label="学历:" name="followWay" required >
|
||||||
|
<uni-data-select v-model="formData.followWay" placeholder="请选择学历" :localdata="followWays" @change="onMethodChange"></uni-data-select>
|
||||||
|
</uni-forms-item>
|
||||||
|
<uni-forms-item label="岗位类型:" name="followWay" required >
|
||||||
|
<uni-data-select v-model="formData.followWay" placeholder="请选择岗位类型" :localdata="followWays" @change="onMethodChange"></uni-data-select>
|
||||||
|
</uni-forms-item>
|
||||||
|
<uni-forms-item label="类型:" name="followWay" required >
|
||||||
|
<uni-data-select v-model="formData.followWay" placeholder="请选择类型" :localdata="followWays" @change="onMethodChange"></uni-data-select>
|
||||||
|
</uni-forms-item>
|
||||||
|
<uni-forms-item label="意向自述:" name="content" required>
|
||||||
|
<uni-easyinput type="textarea" v-model="formData.content" placeholder="请输入意向自述"></uni-easyinput>
|
||||||
|
</uni-forms-item>
|
||||||
|
</uni-forms>
|
||||||
|
<!-- 按钮组 -->
|
||||||
|
<view class="button-group">
|
||||||
|
<button class="btn submit-btn" @click="handleSubmit">保存跟进</button>
|
||||||
|
<button class="btn reset-btn" @click="handleReset">重置</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</AppLayout>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { inject, ref, reactive } from 'vue';
|
||||||
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
|
const { $api, navTo, navBack } = inject('globalFunction');
|
||||||
|
import config from "@/config.js"
|
||||||
|
|
||||||
|
const title = ref('');
|
||||||
|
const formData = reactive({
|
||||||
|
id: null,
|
||||||
|
goalPersonId: '',
|
||||||
|
postType: '',
|
||||||
|
salary: '',
|
||||||
|
regionId: '',
|
||||||
|
regionName: '',
|
||||||
|
description: '',
|
||||||
|
welfare: '',
|
||||||
|
education: '',
|
||||||
|
jobType: '',
|
||||||
|
type: '',
|
||||||
|
})
|
||||||
|
const personInfo=ref({
|
||||||
|
goalPersonId:'',
|
||||||
|
name:'',
|
||||||
|
task_type:'',
|
||||||
|
task_id:'',
|
||||||
|
person_id:''
|
||||||
|
})
|
||||||
|
const followWays = ref([])
|
||||||
|
const followList = ref([])
|
||||||
|
const followListNum=ref(0)
|
||||||
|
const active=ref(null)
|
||||||
|
// 表单引用
|
||||||
|
const formRef = ref(null)
|
||||||
|
|
||||||
|
// 校验规则
|
||||||
|
const rules = {
|
||||||
|
followDate: {
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请选择跟进日期'
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
followWay: {
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请选择跟进方式'
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
content: {
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请填写跟进内容'
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
result: {
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请填写跟进结果'
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const baseUrl = config.imgBaseUrl
|
||||||
|
const getBackgroundStyle = (imageName) => ({
|
||||||
|
backgroundImage: `url(${baseUrl}/dispatch/${imageName})`,
|
||||||
|
backgroundSize: 'cover', // 覆盖整个容器
|
||||||
|
backgroundPosition: 'center', // 居中
|
||||||
|
backgroundRepeat: 'no-repeat'
|
||||||
|
});
|
||||||
|
|
||||||
|
const onFollowDateChange = (e)=>{
|
||||||
|
formData.followDate=e
|
||||||
|
}
|
||||||
|
const onMethodChange = (e) => {
|
||||||
|
formData.followWay=e
|
||||||
|
}
|
||||||
|
// 事件处理
|
||||||
|
const onDateChange = ( e) => {
|
||||||
|
formData.nextContactDate=e
|
||||||
|
}
|
||||||
|
function getFollowList(){
|
||||||
|
followList.value=[]
|
||||||
|
let header={
|
||||||
|
'Authorization':uni.getStorageSync('Padmin-Token'),
|
||||||
|
'Content-Type': "application/x-www-form-urlencoded"
|
||||||
|
}
|
||||||
|
let params={
|
||||||
|
personId:personInfo.value.person_id,
|
||||||
|
taskId:personInfo.value.task_id
|
||||||
|
}
|
||||||
|
$api.myRequest('/dispatch/assist/records/getFollowList', params,'get',9100,header).then((resData) => {
|
||||||
|
if(resData && resData.code == 200){
|
||||||
|
if(resData.data && resData.data.length>0){
|
||||||
|
followListNum.value=resData.data.length
|
||||||
|
resData.data.forEach(item=>{
|
||||||
|
const obj={
|
||||||
|
title:item.followDate,
|
||||||
|
desc:`跟进方式:${getFollowWaysLabelByValue(item.followWay)}\n跟进人:${item.createByName}\n跟进内容:${item.content}\n跟进结果:${item.result}\n下一步计划:${item.nextPlan}`
|
||||||
|
}
|
||||||
|
followList.value.push(obj)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function getDictionary(){
|
||||||
|
$api.myRequest('/system/public/dict/data/type/assist_follow_way').then((resData) => {
|
||||||
|
if(resData && resData.code == 200){
|
||||||
|
resData.data.forEach(item=>{
|
||||||
|
const obj = {
|
||||||
|
value: item.dictValue,
|
||||||
|
text: item.dictLabel
|
||||||
|
}
|
||||||
|
followWays.value.push(obj)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function getFollowWaysLabelByValue(value) {
|
||||||
|
if (!Array.isArray(followWays.value)) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
const item = followWays.value.find(item => item.value === String(value))
|
||||||
|
return item ? item.text : '暂无跟进方式'
|
||||||
|
}
|
||||||
|
const handleSubmit = () => {
|
||||||
|
formRef.value?.validate()
|
||||||
|
.then(() => {
|
||||||
|
let header={
|
||||||
|
'Authorization':uni.getStorageSync('Padmin-Token')
|
||||||
|
}
|
||||||
|
formData.goalPersonId=personInfo.value.goalPersonId
|
||||||
|
$api.myRequest('/dispatch/assist/records/addRecords', formData,'post',9100,header).then((resData) => {
|
||||||
|
console.log("resData",resData)
|
||||||
|
if(resData && resData.code == 200){
|
||||||
|
handleReset()
|
||||||
|
getFollowList()
|
||||||
|
uni.showToast({
|
||||||
|
title: '保存成功',
|
||||||
|
icon: 'success',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
uni.showToast({
|
||||||
|
title: resData.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch((errors) => {
|
||||||
|
console.log('校验失败:', errors);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleReset = () => {
|
||||||
|
formData.followDate = '';
|
||||||
|
formData.followWay = '';
|
||||||
|
formData.content = '';
|
||||||
|
formData.result = '';
|
||||||
|
formData.nextPlan = '';
|
||||||
|
formData.nextContactDate = '';
|
||||||
|
}
|
||||||
|
onLoad((options) => {
|
||||||
|
personInfo.value.goalPersonId=options.goalPersonId
|
||||||
|
personInfo.value.name=options.name
|
||||||
|
personInfo.value.task_type=options.taskType
|
||||||
|
personInfo.value.task_id=options.taskId
|
||||||
|
personInfo.value.person_id=options.personId
|
||||||
|
getDictionary()
|
||||||
|
getFollowList()
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
image
|
||||||
|
height: 100%
|
||||||
|
width: 100%
|
||||||
|
.info-box
|
||||||
|
margin: 30rpx 30rpx
|
||||||
|
background: linear-gradient(0deg, #D9ECFF 0%, #F0F7FF 100%)
|
||||||
|
border-radius: 20rpx
|
||||||
|
padding: 40rpx 0
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
.info-img
|
||||||
|
width: 40rpx
|
||||||
|
height: 40rpx
|
||||||
|
margin-bottom: 20rpx
|
||||||
|
.info-line
|
||||||
|
border-right: 2rpx solid #B7D6FF
|
||||||
|
.info-item
|
||||||
|
display: flex
|
||||||
|
flex-direction: column
|
||||||
|
align-items: center
|
||||||
|
justify-content: center
|
||||||
|
width: 50%
|
||||||
|
.info-label
|
||||||
|
font-size: 26rpx
|
||||||
|
color: #6E7E9B
|
||||||
|
margin-bottom: 20rpx
|
||||||
|
.info-value
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 28rpx
|
||||||
|
color: #3D61AC
|
||||||
|
.main-list
|
||||||
|
background-color: #ffffff
|
||||||
|
padding: 20rpx 20rpx 28rpx 20rpx
|
||||||
|
margin: 30rpx 30rpx
|
||||||
|
box-shadow: 0px 3px 20px 0px rgba(0,105,234,0.1)
|
||||||
|
border-radius: 12px
|
||||||
|
.list-top
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
justify-content: space-between
|
||||||
|
.list-title
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 36rpx
|
||||||
|
color: #404040
|
||||||
|
position: relative
|
||||||
|
|
||||||
|
.title-line
|
||||||
|
position: absolute
|
||||||
|
bottom: -10rpx
|
||||||
|
left: 70rpx
|
||||||
|
width: 70rpx
|
||||||
|
height: 8rpx
|
||||||
|
background: linear-gradient(90deg, #FFAD58 0%, #FF7A5B 100%)
|
||||||
|
border-radius: 4rpx
|
||||||
|
.title-total
|
||||||
|
font-size: 24rpx
|
||||||
|
color: #999999
|
||||||
|
.total-num
|
||||||
|
color: #3088FF
|
||||||
|
margin-left: 4rpx
|
||||||
|
margin-right: 4rpx
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 26rpx
|
||||||
|
|
||||||
|
.label
|
||||||
|
width: 160rpx
|
||||||
|
font-size: 28rpx
|
||||||
|
color: #404040
|
||||||
|
|
||||||
|
.input,
|
||||||
|
.picker
|
||||||
|
flex: 1
|
||||||
|
|
||||||
|
.picker-value
|
||||||
|
color: #666
|
||||||
|
.list-box
|
||||||
|
margin-top: 40rpx
|
||||||
|
|
||||||
|
.form-container
|
||||||
|
margin-top: 30rpx
|
||||||
|
:deep(.uni-forms-item__label)
|
||||||
|
width: 194rpx !important
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #404040;
|
||||||
|
|
||||||
|
.button-group {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 40rpx 20rpx 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 45%;
|
||||||
|
height: 80rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reset-btn {
|
||||||
|
background-color: #D8E9FF;
|
||||||
|
color: #1176FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit-btn {
|
||||||
|
background-color: #368BFF;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
:deep(.uni-steps__column-circle )
|
||||||
|
width: 24rpx !important
|
||||||
|
height: 24rpx !important
|
||||||
|
background: radial-gradient(circle,
|
||||||
|
#00C0FA 0%,
|
||||||
|
#015EEA 50%,
|
||||||
|
#FFFFFF 51%,
|
||||||
|
#FFFFFF 100%) !important
|
||||||
|
border-radius: 50%
|
||||||
|
border: 2rpx solid #015EEA
|
||||||
|
:deep(.uni-steps__column-title)
|
||||||
|
font-size: 28rpx !important
|
||||||
|
color: #006CFF !important
|
||||||
|
margin-bottom: 24rpx
|
||||||
|
:deep(.uni-steps__column-desc)
|
||||||
|
font-size: 28rpx
|
||||||
|
color: #898989 !important
|
||||||
|
line-height: 1.5
|
||||||
|
:deep(.uni-steps__column-text )
|
||||||
|
padding: 16rpx 0 !important
|
||||||
|
border: none
|
||||||
|
:deep(.uni-steps__column-line)
|
||||||
|
background-color: #368BFF !important
|
||||||
|
:deep(.uni-steps__column-line--before)
|
||||||
|
background-color:rgba(0,0,0,0) !important
|
||||||
|
:deep(.uni-date-x)
|
||||||
|
background: rgba(0,0,0,0) !important
|
||||||
|
:deep(.uni-stat-box)
|
||||||
|
background: rgba(0,0,0,0) !important
|
||||||
|
:deep(.uni-easyinput__content)
|
||||||
|
background: rgba(0,0,0,0) !important
|
||||||
|
</style>
|
||||||
297
packageB/priority/recordDetail.vue
Normal file
297
packageB/priority/recordDetail.vue
Normal file
@@ -0,0 +1,297 @@
|
|||||||
|
<template>
|
||||||
|
<AppLayout :title="title" :show-bg-image="false" >
|
||||||
|
<view class="main-list" :style="getBackgroundStyle('k.png')">
|
||||||
|
<view class="list-top">
|
||||||
|
<view class="list-title">
|
||||||
|
<text>帮扶记录详情</text>
|
||||||
|
<view class="title-line"></view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-container">
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="item-label">
|
||||||
|
人员姓名:
|
||||||
|
</view>
|
||||||
|
<view class="item-value">
|
||||||
|
{{formData.name}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="item-label">
|
||||||
|
身份证号:
|
||||||
|
</view>
|
||||||
|
<view class="item-value">
|
||||||
|
{{formData.id_card}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="item-label">
|
||||||
|
联系电话:
|
||||||
|
</view>
|
||||||
|
<view class="item-value">
|
||||||
|
{{formData.phone}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="item-label">
|
||||||
|
帮扶类型:
|
||||||
|
</view>
|
||||||
|
<view class="item-value">
|
||||||
|
{{formData.task_type}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="item-label">
|
||||||
|
帮扶人员:
|
||||||
|
</view>
|
||||||
|
<view class="item-value" >
|
||||||
|
{{formData.create_by_name}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="item-label">
|
||||||
|
帮扶日期:
|
||||||
|
</view>
|
||||||
|
<view class="item-value">
|
||||||
|
{{formData.follow_date}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="item-label">
|
||||||
|
下次联系:
|
||||||
|
</view>
|
||||||
|
<view class="item-value">
|
||||||
|
{{formData.next_contact_date}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="item-label">
|
||||||
|
人员标签:
|
||||||
|
</view>
|
||||||
|
<view class="item-value">
|
||||||
|
{{formData.tag_name}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="item-label">
|
||||||
|
帮扶内容:
|
||||||
|
</view>
|
||||||
|
<view class="item-value">
|
||||||
|
{{formData.detailRecords}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</AppLayout>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { inject, ref, reactive,onMounted } from 'vue';
|
||||||
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
|
const { $api, navTo, navBack } = inject('globalFunction');
|
||||||
|
import config from "@/config.js"
|
||||||
|
|
||||||
|
const title = ref('');
|
||||||
|
const formData = reactive({
|
||||||
|
taskName: '',
|
||||||
|
taskType: '',
|
||||||
|
priority: '',
|
||||||
|
createTime:'',
|
||||||
|
allocationStatus:'',
|
||||||
|
taskAllocation: {
|
||||||
|
goalPersonCount: null,
|
||||||
|
executeDeptId: '',
|
||||||
|
executeDeptName: '',
|
||||||
|
executeDeptAncestors: '',
|
||||||
|
allocationStatus: '1',
|
||||||
|
allocationNote: '',
|
||||||
|
deadline: null,
|
||||||
|
goalPersonList: []
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const taskTypeOptions=ref([])
|
||||||
|
const priorityOptions=ref([])
|
||||||
|
const allocationStatusOptions=ref([])
|
||||||
|
const executeDeptOptions=ref([])
|
||||||
|
// 表单引用
|
||||||
|
const formRef = ref(null)
|
||||||
|
const baseUrl = config.imgBaseUrl
|
||||||
|
const getBackgroundStyle = (imageName) => ({
|
||||||
|
backgroundImage: `url(${baseUrl}/dispatch/${imageName})`,
|
||||||
|
backgroundSize: 'cover', // 覆盖整个容器
|
||||||
|
backgroundPosition: 'center', // 居中
|
||||||
|
backgroundRepeat: 'no-repeat'
|
||||||
|
});
|
||||||
|
|
||||||
|
function getDictionary(){
|
||||||
|
$api.myRequest('/system/public/dict/data/type/assist_task_type').then((resData) => {
|
||||||
|
if(resData && resData.code == 200){
|
||||||
|
resData.data.forEach(item=>{
|
||||||
|
const obj = {
|
||||||
|
value: item.dictValue,
|
||||||
|
text: item.dictLabel
|
||||||
|
}
|
||||||
|
taskTypeOptions.value.push(obj)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function getDetail(id){
|
||||||
|
let header={
|
||||||
|
'Authorization':uni.getStorageSync('Padmin-Token'),
|
||||||
|
'Content-Type': "application/x-www-form-urlencoded"
|
||||||
|
}
|
||||||
|
let params={
|
||||||
|
goalPersonId:id
|
||||||
|
}
|
||||||
|
$api.myRequest('/dispatch/assist/records/getDetail',params,'get',9100,header).then((resData) => {
|
||||||
|
console.log("resData",resData)
|
||||||
|
resData.data.task_type=getabelByValue(resData.data.task_type,taskTypeOptions.value)
|
||||||
|
Object.assign(formData, resData.data)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function getabelByValue(value,arr) {
|
||||||
|
if (!Array.isArray(arr)) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
const item = arr.find(item => item.value === String(value))
|
||||||
|
return item ? item.text : '暂无'
|
||||||
|
}
|
||||||
|
onLoad((options) => {
|
||||||
|
runAsyncTasks(options)
|
||||||
|
});
|
||||||
|
const runAsyncTasks = async (options) => {
|
||||||
|
await getDictionary()
|
||||||
|
await getDetail(options.id)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
image
|
||||||
|
height: 100%
|
||||||
|
width: 100%
|
||||||
|
.main-list
|
||||||
|
background-color: #ffffff
|
||||||
|
padding: 20rpx 20rpx 28rpx 20rpx
|
||||||
|
margin: 30rpx 30rpx
|
||||||
|
box-shadow: 0px 3px 20px 0px rgba(0,105,234,0.1)
|
||||||
|
border-radius: 12px
|
||||||
|
.list-top
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
justify-content: space-between
|
||||||
|
.list-title
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 36rpx
|
||||||
|
color: #404040
|
||||||
|
position: relative
|
||||||
|
|
||||||
|
.title-line
|
||||||
|
position: absolute
|
||||||
|
bottom: -10rpx
|
||||||
|
left: 70rpx
|
||||||
|
width: 70rpx
|
||||||
|
height: 8rpx
|
||||||
|
background: linear-gradient(90deg, #FFAD58 0%, #FF7A5B 100%)
|
||||||
|
border-radius: 4rpx
|
||||||
|
.title-total
|
||||||
|
font-size: 24rpx
|
||||||
|
color: #999999
|
||||||
|
.total-num
|
||||||
|
color: #3088FF
|
||||||
|
margin-left: 4rpx
|
||||||
|
margin-right: 4rpx
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 26rpx
|
||||||
|
.input,
|
||||||
|
.picker
|
||||||
|
flex: 1
|
||||||
|
|
||||||
|
.picker-value
|
||||||
|
color: #666
|
||||||
|
|
||||||
|
.form-container
|
||||||
|
margin-top: 30rpx
|
||||||
|
.con-box
|
||||||
|
background: #fff
|
||||||
|
padding: 20rpx
|
||||||
|
box-shadow: 0px 0px 6rpx 0px rgba(0,71,200,0.16)
|
||||||
|
border-radius: 24rpx
|
||||||
|
border: 1rpx solid #EDF5FF
|
||||||
|
margin-top: 30rpx
|
||||||
|
.form-item
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
margin-bottom: 20rpx
|
||||||
|
.mb-30
|
||||||
|
margin-bottom: 30rpx
|
||||||
|
.item-left
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
.item-img
|
||||||
|
width: 26rpx
|
||||||
|
height: 26rpx
|
||||||
|
margin-right: 10rpx
|
||||||
|
.item-label1
|
||||||
|
font-size: 26rpx
|
||||||
|
color: #B3B3B3
|
||||||
|
width: 130rpx
|
||||||
|
.item-label
|
||||||
|
width:200rpx
|
||||||
|
text-align: left
|
||||||
|
font-size: 30rpx
|
||||||
|
color: #606266
|
||||||
|
height: 72rpx
|
||||||
|
padding: 0 24rpx 0 0
|
||||||
|
vertical-align: middle
|
||||||
|
flex-shrink: 0
|
||||||
|
box-sizing: border-box
|
||||||
|
.item-value
|
||||||
|
color: #333
|
||||||
|
font-size: 30rpx
|
||||||
|
height: 72rpx
|
||||||
|
padding: 0 24rpx 0 0
|
||||||
|
vertical-align: middle
|
||||||
|
flex-shrink: 0
|
||||||
|
box-sizing: border-box
|
||||||
|
:deep(.uni-forms-item__label)
|
||||||
|
width: 194rpx !important
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #404040;
|
||||||
|
|
||||||
|
.button-group {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 40rpx 20rpx 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 45%;
|
||||||
|
height: 80rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reset-btn {
|
||||||
|
background-color: #D8E9FF;
|
||||||
|
color: #1176FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit-btn {
|
||||||
|
background-color: #368BFF;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
.choice-btn{
|
||||||
|
width: 100%;
|
||||||
|
height: 70rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
background-color: #368BFF;
|
||||||
|
color: white;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
:deep(.uni-easyinput__content)
|
||||||
|
background: rgba(0,0,0,0) !important
|
||||||
|
</style>
|
||||||
403
packageB/priority/recordFollow.vue
Normal file
403
packageB/priority/recordFollow.vue
Normal file
@@ -0,0 +1,403 @@
|
|||||||
|
<template>
|
||||||
|
<AppLayout :title="title" :show-bg-image="false" >
|
||||||
|
<view class="info-box">
|
||||||
|
<view class="info-item info-line">
|
||||||
|
<image class="info-img" :src="baseUrl+'/dispatch/person-icon.png'" mode=""></image>
|
||||||
|
<view class="info-label">
|
||||||
|
人员姓名
|
||||||
|
</view>
|
||||||
|
<view class="info-value">
|
||||||
|
{{personInfo.name}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="info-item">
|
||||||
|
<image class="info-img" :src="baseUrl+'/dispatch/help-icon.png'" mode=""></image>
|
||||||
|
<view class="info-label">
|
||||||
|
帮扶类型
|
||||||
|
</view>
|
||||||
|
<view class="info-value">
|
||||||
|
{{personInfo.task_type}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="main-list" :style="getBackgroundStyle('k.png')">
|
||||||
|
<view class="list-top">
|
||||||
|
<view class="list-title">
|
||||||
|
<text>新增跟进记录</text>
|
||||||
|
<view class="title-line"></view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="form-container">
|
||||||
|
<uni-forms ref="formRef" v-model="formData" :rules="rules" validate-trigger="submit" >
|
||||||
|
<!-- 跟进日期 -->
|
||||||
|
<uni-forms-item label="跟进日期:" name="followDate" required >
|
||||||
|
<uni-datetime-picker class="picker-value" type="date" placeholder="请选择跟进日期" v-model="formData.followDate" @change="onFollowDateChange" />
|
||||||
|
</uni-forms-item>
|
||||||
|
|
||||||
|
<!-- 跟进方式 -->
|
||||||
|
<uni-forms-item label="跟进方式:" name="followWay" required >
|
||||||
|
<uni-data-select v-model="formData.followWay" placeholder="请选择跟进方式" :localdata="followWays" @change="onMethodChange"></uni-data-select>
|
||||||
|
</uni-forms-item>
|
||||||
|
|
||||||
|
<!-- 跟进内容 -->
|
||||||
|
<uni-forms-item label="跟进内容:" name="content" required>
|
||||||
|
<uni-easyinput type="textarea" v-model="formData.content" placeholder="请输入跟进内容"></uni-easyinput>
|
||||||
|
</uni-forms-item>
|
||||||
|
|
||||||
|
<!-- 跟进结果 -->
|
||||||
|
<uni-forms-item label="跟进结果:" name="result" required>
|
||||||
|
<uni-easyinput type="textarea" v-model="formData.result" placeholder="请输入跟进结果"></uni-easyinput>
|
||||||
|
</uni-forms-item>
|
||||||
|
|
||||||
|
<!-- 下一步计划 -->
|
||||||
|
<uni-forms-item label="下一步计划:" name="nextPlan">
|
||||||
|
<uni-easyinput type="textarea" v-model="formData.nextPlan" placeholder="请输入下一步计划(可选)"></uni-easyinput>
|
||||||
|
</uni-forms-item>
|
||||||
|
|
||||||
|
<!-- 下次联系时间 -->
|
||||||
|
<uni-forms-item label="下次联系:" name="nextContactDate" >
|
||||||
|
<uni-datetime-picker class="picker-value" type="date" placeholder="请选择跟进日期" v-model="formData.nextContactDate" @change="onDateChange" />
|
||||||
|
</uni-forms-item>
|
||||||
|
</uni-forms>
|
||||||
|
|
||||||
|
<!-- 按钮组 -->
|
||||||
|
<view class="button-group">
|
||||||
|
<button class="btn submit-btn" @click="handleSubmit">保存跟进</button>
|
||||||
|
<button class="btn reset-btn" @click="handleReset">重置</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="main-list" :style="getBackgroundStyle('k.png')">
|
||||||
|
<view class="list-top">
|
||||||
|
<view class="list-title">
|
||||||
|
<text>跟进历史记录</text>
|
||||||
|
<view class="title-line"></view>
|
||||||
|
</view>
|
||||||
|
<view class="title-total">
|
||||||
|
共<text class="total-num">{{followListNum}}</text>条记录
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="list-box" v-if="followListNum>0">
|
||||||
|
<uni-steps :options="followList" active-color="#007AFF" :active="active" direction="column" />
|
||||||
|
</view>
|
||||||
|
<empty v-else pdTop="200"></empty>
|
||||||
|
</view>
|
||||||
|
</AppLayout>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { inject, ref, reactive } from 'vue';
|
||||||
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
|
const { $api, navTo, navBack } = inject('globalFunction');
|
||||||
|
import config from "@/config.js"
|
||||||
|
|
||||||
|
const title = ref('');
|
||||||
|
const formData = reactive({
|
||||||
|
goalPersonId:'',
|
||||||
|
followDate: '',
|
||||||
|
followWay: '',
|
||||||
|
content: '',
|
||||||
|
result: '',
|
||||||
|
nextPlan: '',
|
||||||
|
nextContactDate: ''
|
||||||
|
})
|
||||||
|
const personInfo=ref({
|
||||||
|
goalPersonId:'',
|
||||||
|
name:'',
|
||||||
|
task_type:'',
|
||||||
|
task_id:'',
|
||||||
|
person_id:''
|
||||||
|
})
|
||||||
|
const followWays = ref([])
|
||||||
|
const followList = ref([])
|
||||||
|
const followListNum=ref(0)
|
||||||
|
const active=ref(null)
|
||||||
|
// 表单引用
|
||||||
|
const formRef = ref(null)
|
||||||
|
|
||||||
|
// 校验规则
|
||||||
|
const rules = {
|
||||||
|
followDate: {
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请选择跟进日期'
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
followWay: {
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请选择跟进方式'
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
content: {
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请填写跟进内容'
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
result: {
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请填写跟进结果'
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const baseUrl = config.imgBaseUrl
|
||||||
|
const getBackgroundStyle = (imageName) => ({
|
||||||
|
backgroundImage: `url(${baseUrl}/dispatch/${imageName})`,
|
||||||
|
backgroundSize: 'cover', // 覆盖整个容器
|
||||||
|
backgroundPosition: 'center', // 居中
|
||||||
|
backgroundRepeat: 'no-repeat'
|
||||||
|
});
|
||||||
|
|
||||||
|
const onFollowDateChange = (e)=>{
|
||||||
|
formData.followDate=e
|
||||||
|
}
|
||||||
|
const onMethodChange = (e) => {
|
||||||
|
formData.followWay=e
|
||||||
|
}
|
||||||
|
// 事件处理
|
||||||
|
const onDateChange = ( e) => {
|
||||||
|
formData.nextContactDate=e
|
||||||
|
}
|
||||||
|
function getFollowList(){
|
||||||
|
followList.value=[]
|
||||||
|
let header={
|
||||||
|
'Authorization':uni.getStorageSync('Padmin-Token'),
|
||||||
|
'Content-Type': "application/x-www-form-urlencoded"
|
||||||
|
}
|
||||||
|
let params={
|
||||||
|
personId:personInfo.value.person_id,
|
||||||
|
taskId:personInfo.value.task_id
|
||||||
|
}
|
||||||
|
$api.myRequest('/dispatch/assist/records/getFollowList', params,'get',9100,header).then((resData) => {
|
||||||
|
if(resData && resData.code == 200){
|
||||||
|
if(resData.data && resData.data.length>0){
|
||||||
|
followListNum.value=resData.data.length
|
||||||
|
resData.data.forEach(item=>{
|
||||||
|
const obj={
|
||||||
|
title:item.followDate,
|
||||||
|
desc:`跟进方式:${getFollowWaysLabelByValue(item.followWay)}\n跟进人:${item.createByName}\n跟进内容:${item.content}\n跟进结果:${item.result}\n下一步计划:${item.nextPlan}`
|
||||||
|
}
|
||||||
|
followList.value.push(obj)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function getDictionary(){
|
||||||
|
$api.myRequest('/system/public/dict/data/type/assist_follow_way').then((resData) => {
|
||||||
|
if(resData && resData.code == 200){
|
||||||
|
resData.data.forEach(item=>{
|
||||||
|
const obj = {
|
||||||
|
value: item.dictValue,
|
||||||
|
text: item.dictLabel
|
||||||
|
}
|
||||||
|
followWays.value.push(obj)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function getFollowWaysLabelByValue(value) {
|
||||||
|
if (!Array.isArray(followWays.value)) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
const item = followWays.value.find(item => item.value === String(value))
|
||||||
|
return item ? item.text : '暂无跟进方式'
|
||||||
|
}
|
||||||
|
const handleSubmit = () => {
|
||||||
|
formRef.value?.validate()
|
||||||
|
.then(() => {
|
||||||
|
let header={
|
||||||
|
'Authorization':uni.getStorageSync('Padmin-Token')
|
||||||
|
}
|
||||||
|
formData.goalPersonId=personInfo.value.goalPersonId
|
||||||
|
$api.myRequest('/dispatch/assist/records/addRecords', formData,'post',9100,header).then((resData) => {
|
||||||
|
console.log("resData",resData)
|
||||||
|
if(resData && resData.code == 200){
|
||||||
|
handleReset()
|
||||||
|
getFollowList()
|
||||||
|
uni.showToast({
|
||||||
|
title: '保存成功',
|
||||||
|
icon: 'success',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
uni.showToast({
|
||||||
|
title: resData.msg,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch((errors) => {
|
||||||
|
console.log('校验失败:', errors);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleReset = () => {
|
||||||
|
formData.followDate = '';
|
||||||
|
formData.followWay = '';
|
||||||
|
formData.content = '';
|
||||||
|
formData.result = '';
|
||||||
|
formData.nextPlan = '';
|
||||||
|
formData.nextContactDate = '';
|
||||||
|
}
|
||||||
|
onLoad((options) => {
|
||||||
|
personInfo.value.goalPersonId=options.goalPersonId
|
||||||
|
personInfo.value.name=options.name
|
||||||
|
personInfo.value.task_type=options.taskType
|
||||||
|
personInfo.value.task_id=options.taskId
|
||||||
|
personInfo.value.person_id=options.personId
|
||||||
|
getDictionary()
|
||||||
|
getFollowList()
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
image
|
||||||
|
height: 100%
|
||||||
|
width: 100%
|
||||||
|
.info-box
|
||||||
|
margin: 30rpx 30rpx
|
||||||
|
background: linear-gradient(0deg, #D9ECFF 0%, #F0F7FF 100%)
|
||||||
|
border-radius: 20rpx
|
||||||
|
padding: 40rpx 0
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
.info-img
|
||||||
|
width: 40rpx
|
||||||
|
height: 40rpx
|
||||||
|
margin-bottom: 20rpx
|
||||||
|
.info-line
|
||||||
|
border-right: 2rpx solid #B7D6FF
|
||||||
|
.info-item
|
||||||
|
display: flex
|
||||||
|
flex-direction: column
|
||||||
|
align-items: center
|
||||||
|
justify-content: center
|
||||||
|
width: 50%
|
||||||
|
.info-label
|
||||||
|
font-size: 26rpx
|
||||||
|
color: #6E7E9B
|
||||||
|
margin-bottom: 20rpx
|
||||||
|
.info-value
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 28rpx
|
||||||
|
color: #3D61AC
|
||||||
|
.main-list
|
||||||
|
background-color: #ffffff
|
||||||
|
padding: 20rpx 20rpx 28rpx 20rpx
|
||||||
|
margin: 30rpx 30rpx
|
||||||
|
box-shadow: 0px 3px 20px 0px rgba(0,105,234,0.1)
|
||||||
|
border-radius: 12px
|
||||||
|
.list-top
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
justify-content: space-between
|
||||||
|
.list-title
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 36rpx
|
||||||
|
color: #404040
|
||||||
|
position: relative
|
||||||
|
|
||||||
|
.title-line
|
||||||
|
position: absolute
|
||||||
|
bottom: -10rpx
|
||||||
|
left: 70rpx
|
||||||
|
width: 70rpx
|
||||||
|
height: 8rpx
|
||||||
|
background: linear-gradient(90deg, #FFAD58 0%, #FF7A5B 100%)
|
||||||
|
border-radius: 4rpx
|
||||||
|
.title-total
|
||||||
|
font-size: 24rpx
|
||||||
|
color: #999999
|
||||||
|
.total-num
|
||||||
|
color: #3088FF
|
||||||
|
margin-left: 4rpx
|
||||||
|
margin-right: 4rpx
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 26rpx
|
||||||
|
|
||||||
|
.label
|
||||||
|
width: 160rpx
|
||||||
|
font-size: 28rpx
|
||||||
|
color: #404040
|
||||||
|
|
||||||
|
.input,
|
||||||
|
.picker
|
||||||
|
flex: 1
|
||||||
|
|
||||||
|
.picker-value
|
||||||
|
color: #666
|
||||||
|
.list-box
|
||||||
|
margin-top: 40rpx
|
||||||
|
|
||||||
|
.form-container
|
||||||
|
margin-top: 30rpx
|
||||||
|
:deep(.uni-forms-item__label)
|
||||||
|
width: 194rpx !important
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #404040;
|
||||||
|
|
||||||
|
.button-group {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 40rpx 20rpx 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 45%;
|
||||||
|
height: 80rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reset-btn {
|
||||||
|
background-color: #D8E9FF;
|
||||||
|
color: #1176FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit-btn {
|
||||||
|
background-color: #368BFF;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
:deep(.uni-steps__column-circle )
|
||||||
|
width: 24rpx !important
|
||||||
|
height: 24rpx !important
|
||||||
|
background: radial-gradient(circle,
|
||||||
|
#00C0FA 0%,
|
||||||
|
#015EEA 50%,
|
||||||
|
#FFFFFF 51%,
|
||||||
|
#FFFFFF 100%) !important
|
||||||
|
border-radius: 50%
|
||||||
|
border: 2rpx solid #015EEA
|
||||||
|
:deep(.uni-steps__column-title)
|
||||||
|
font-size: 28rpx !important
|
||||||
|
color: #006CFF !important
|
||||||
|
margin-bottom: 24rpx
|
||||||
|
:deep(.uni-steps__column-desc)
|
||||||
|
font-size: 28rpx
|
||||||
|
color: #898989 !important
|
||||||
|
line-height: 1.5
|
||||||
|
:deep(.uni-steps__column-text )
|
||||||
|
padding: 16rpx 0 !important
|
||||||
|
border: none
|
||||||
|
:deep(.uni-steps__column-line)
|
||||||
|
background-color: #368BFF !important
|
||||||
|
:deep(.uni-steps__column-line--before)
|
||||||
|
background-color:rgba(0,0,0,0) !important
|
||||||
|
:deep(.uni-date-x)
|
||||||
|
background: rgba(0,0,0,0) !important
|
||||||
|
:deep(.uni-stat-box)
|
||||||
|
background: rgba(0,0,0,0) !important
|
||||||
|
:deep(.uni-easyinput__content)
|
||||||
|
background: rgba(0,0,0,0) !important
|
||||||
|
</style>
|
||||||
@@ -8,10 +8,21 @@
|
|||||||
<uni-icons type="contact" color="#175CE9" size="34"></uni-icons>
|
<uni-icons type="contact" color="#175CE9" size="34"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-label">
|
<view class="info-label">
|
||||||
帮扶任务总数
|
帮扶记录总数
|
||||||
</view>
|
</view>
|
||||||
<view class="info-value">
|
<view class="info-value">
|
||||||
{{ stats.taskCount }}
|
{{ stats.totalRecords }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="info-item info-line">
|
||||||
|
<view class="">
|
||||||
|
<uni-icons type="checkbox" color="#175CE9" size="34"></uni-icons>
|
||||||
|
</view>
|
||||||
|
<view class="info-label">
|
||||||
|
进行中记录
|
||||||
|
</view>
|
||||||
|
<view class="info-value">
|
||||||
|
{{ stats.pendingRecords }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-item info-line">
|
<view class="info-item info-line">
|
||||||
@@ -19,21 +30,21 @@
|
|||||||
<uni-icons type="info" color="#175CE9" size="34"></uni-icons>
|
<uni-icons type="info" color="#175CE9" size="34"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-label">
|
<view class="info-label">
|
||||||
待分配任务
|
未帮扶记录
|
||||||
</view>
|
</view>
|
||||||
<view class="info-value">
|
<view class="info-value">
|
||||||
{{ stats.pendingCount }}
|
{{ stats.totalRecords - stats.pendingRecords }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<view class="">
|
<view class="">
|
||||||
<uni-icons type="checkbox" color="#175CE9" size="34"></uni-icons>
|
<uni-icons type="refresh" color="#175CE9" size="34"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-label">
|
<view class="info-label">
|
||||||
已分配任务
|
帮扶率
|
||||||
</view>
|
</view>
|
||||||
<view class="info-value">
|
<view class="info-value">
|
||||||
{{ stats.allocatedCount }}
|
{{ stats.assistRate }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -49,42 +60,36 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="search-container">
|
<view class="search-container">
|
||||||
<!-- 人员姓名 -->
|
|
||||||
<view class="search-item">
|
<view class="search-item">
|
||||||
<text class="label">任务名称:</text>
|
<text class="label">人员姓名:</text>
|
||||||
<uni-easyinput v-model="formData.taskName" placeholder="请输入任务名称"></uni-easyinput>
|
<uni-easyinput v-model="formData.name" placeholder="请输入人员姓名"></uni-easyinput>
|
||||||
</view>
|
</view>
|
||||||
<!-- 任务类型 -->
|
|
||||||
<view class="search-item">
|
<view class="search-item">
|
||||||
<text class="label">任务类型:</text>
|
<text class="label">身份证号:</text>
|
||||||
<uni-data-select :key="1" v-model="formData.taskType" :localdata="taskTypeOptions" placeholder="请选择任务类型" @change="onTaskTypeChange"></uni-data-select>
|
<uni-easyinput v-model="formData.idCard" placeholder="请输入身份证号"></uni-easyinput>
|
||||||
</view>
|
</view>
|
||||||
<!-- 优先级 -->
|
|
||||||
<view class="search-item">
|
<view class="search-item">
|
||||||
<text class="label">优先级:</text>
|
<text class="label">帮扶类型:</text>
|
||||||
<uni-data-select :key="2" v-model="formData.priority" :localdata="priorityOptions" placeholder="请选择优先级" @change="onPriorityChange"></uni-data-select>
|
<uni-data-select :key="1" v-model="formData.taskType" :localdata="taskTypeOptions" placeholder="请选择帮扶类型" @change="onTaskTypeChange"></uni-data-select>
|
||||||
</view>
|
</view>
|
||||||
<!-- 创建时间 -->
|
|
||||||
<view class="search-item">
|
<view class="search-item">
|
||||||
<text class="label">创建时间:</text>
|
<text class="label">帮扶人员:</text>
|
||||||
|
<uni-easyinput v-model="formData.createByName" placeholder="请输入帮扶人员"></uni-easyinput>
|
||||||
|
</view>
|
||||||
|
<view class="search-item">
|
||||||
|
<text class="label">所属区域:</text>
|
||||||
|
<uni-data-select v-model="formData.filterSelectDeptIds" :localdata="executeDeptOptions" placeholder="请选择所属区域" @change="onExecuteDeptChange"></uni-data-select>
|
||||||
|
</view>
|
||||||
|
<view class="search-item">
|
||||||
|
<text class="label">帮扶时间:</text>
|
||||||
<uni-datetime-picker v-model="filterTimeRange" type="datetimerange" rangeSeparator="至" @change="filterTimeRangeChange" />
|
<uni-datetime-picker v-model="filterTimeRange" type="datetimerange" rangeSeparator="至" @change="filterTimeRangeChange" />
|
||||||
</view>
|
</view>
|
||||||
<!-- 分配状态 -->
|
|
||||||
<view class="search-item">
|
|
||||||
<text class="label">分配状态:</text>
|
|
||||||
<uni-data-select :key="3" v-model="formData.allocationStatus" :localdata="allocationStatusOptions" placeholder="请选择分配状态" @change="onAllocationStatusChange"></uni-data-select>
|
|
||||||
</view>
|
|
||||||
<!-- 执行区域 -->
|
|
||||||
<view class="search-item" v-if="false">
|
|
||||||
<text class="label">执行区域:</text>
|
|
||||||
<uni-data-select :key="4" v-model="formData.executeDeptId" :localdata="executeDeptOptions" placeholder="请选择区域" @change="onExecuteDeptChange"></uni-data-select>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="main-list" :style="getBackgroundStyle('k.png')">
|
<view class="main-list" :style="getBackgroundStyle('k.png')">
|
||||||
<view class="list-top">
|
<view class="list-top">
|
||||||
<view class="list-title">
|
<view class="list-title">
|
||||||
<text>帮扶任务列表</text>
|
<text>帮扶记录列表</text>
|
||||||
<view class="title-line" style="left: 70rpx;"></view>
|
<view class="title-line" style="left: 70rpx;"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="title-total">
|
<view class="title-total">
|
||||||
@@ -93,84 +98,112 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="list-box" v-if="dataList.length>0">
|
<view class="list-box" v-if="dataList.length>0">
|
||||||
<view class="con-box" v-for="(item,index) in dataList" :key="index">
|
<view class="con-box" v-for="(item,index) in dataList" :key="index">
|
||||||
<view class="form-title">
|
|
||||||
<view class="form-name">
|
|
||||||
{{item.taskName}}
|
|
||||||
</view>
|
|
||||||
<view class="form-type">
|
|
||||||
优先级:{{item.priority}}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="form-item" >
|
<view class="form-item" >
|
||||||
<view class="item-left">
|
<view class="item-left">
|
||||||
<image class="item-img" :src="baseUrl+'/dispatch/person.png'" mode=""></image>
|
<image class="item-img" :src="baseUrl+'/dispatch/person.png'" mode=""></image>
|
||||||
<view class="item-label">
|
<view class="item-label">
|
||||||
目标人数:
|
人员姓名:
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-right">
|
<view class="item-right">
|
||||||
{{item.taskAllocation.goalPersonCount}}
|
{{item.name}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="form-item">
|
<view class="form-item">
|
||||||
<view class="item-left">
|
<view class="item-left">
|
||||||
<image class="item-img" :src="baseUrl+'/dispatch/num.png'" mode=""></image>
|
<image class="item-img" :src="baseUrl+'/dispatch/num.png'" mode=""></image>
|
||||||
<view class="item-label">
|
<view class="item-label">
|
||||||
任务类型:
|
身份证号:
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-right">
|
<view class="item-right">
|
||||||
{{item.taskType}}
|
{{item.id_card}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="form-item" >
|
<view class="form-item" >
|
||||||
<view class="item-left">
|
<view class="item-left">
|
||||||
<image class="item-img" :src="baseUrl+'/dispatch/date.png'" mode=""></image>
|
<image class="item-img" :src="baseUrl+'/dispatch/date.png'" mode=""></image>
|
||||||
<view class="item-label">
|
<view class="item-label">
|
||||||
分配状态:
|
联系电话:
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-right">
|
<view class="item-right">
|
||||||
{{item.taskAllocation.allocationStatus}}
|
{{item.phone}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="form-item" >
|
<view class="form-item" >
|
||||||
<view class="item-left">
|
<view class="item-left">
|
||||||
<image class="item-img" :src="baseUrl+'/dispatch/base.png'" mode=""></image>
|
<image class="item-img" :src="baseUrl+'/dispatch/base.png'" mode=""></image>
|
||||||
<view class="item-label">
|
<view class="item-label">
|
||||||
执行区域:
|
居住地址:
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-right">
|
<view class="item-right">
|
||||||
{{item.taskAllocation.executeDeptName}}
|
{{item.address}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="form-item" >
|
<view class="form-item" >
|
||||||
<view class="item-left">
|
<view class="item-left">
|
||||||
<image class="item-img" :src="baseUrl+'/dispatch/next.png'" mode=""></image>
|
<image class="item-img" :src="baseUrl+'/dispatch/next.png'" mode=""></image>
|
||||||
<view class="item-label">
|
<view class="item-label">
|
||||||
创建时间:
|
帮扶类型:
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-right">
|
<view class="item-right">
|
||||||
{{item.createTime}}
|
{{item.task_type}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="form-item" >
|
<view class="form-item" >
|
||||||
<view class="item-left">
|
<view class="item-left">
|
||||||
<image class="item-img" :src="baseUrl+'/dispatch/next.png'" mode=""></image>
|
<image class="item-img" :src="baseUrl+'/dispatch/next.png'" mode=""></image>
|
||||||
<view class="item-label">
|
<view class="item-label">
|
||||||
截止时间:
|
帮扶人员:
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-right">
|
<view class="item-right">
|
||||||
{{item.taskAllocation.deadline}}
|
{{item.create_by_name}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/next.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
帮扶单位:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.create_by_dept_name}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/next.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
帮扶日期:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.follow_date}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/next.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
下次联系:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.next_contact_date}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="form-btns">
|
<view class="form-btns">
|
||||||
<button class="mini-btn form-box-btn detail-btn" size="mini" @click="goDetail(item)">详情</button>
|
<button class="action-btn btn-primary" size="mini" @click="goDetail(item)">详情</button>
|
||||||
<button class="mini-btn form-box-btn follow-btn" size="mini" @click="goTarget(item)">目标人员</button>
|
<button class="action-btn btn-success" size="mini" @click="goFollow(item)">跟进</button>
|
||||||
<button class="mini-btn form-box-btn recommend-btn" v-if="item.taskAllocation.allocationStatus == '待分配'" size="mini" @click="goRecommend(item)">分配</button>
|
<button class="action-btn btn-gradient" size="mini" @click="goRecommend(item)">智能推荐</button>
|
||||||
|
<button class="action-btn btn-info" size="mini" @click="goJobWill(item)">求职意愿</button>
|
||||||
|
<button class="action-btn btn-info" size="mini" @click="goTarget(item)">培训意愿</button>
|
||||||
|
<button class="action-btn btn-warning" size="mini" v-if="!item.create_by_name" @click="goTarget(item)">退回</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -190,17 +223,16 @@ import config from "@/config.js"
|
|||||||
const title = ref('');
|
const title = ref('');
|
||||||
const stats=ref({})
|
const stats=ref({})
|
||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
taskName: '',
|
name: '',
|
||||||
|
idCard: '',
|
||||||
taskType: '',
|
taskType: '',
|
||||||
priority: '',
|
createByName: '',
|
||||||
createTimeStart: null,
|
deptTags: '',
|
||||||
createTimeEnd: null,
|
followDateStart: null,
|
||||||
allocationStatus: '',
|
followDateEnd: null,
|
||||||
executeDeptId: '',
|
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10
|
pageSize: 10
|
||||||
})
|
})
|
||||||
const taskName=ref('')
|
|
||||||
const filterTimeRange=ref([])
|
const filterTimeRange=ref([])
|
||||||
const totalNum=ref(0)
|
const totalNum=ref(0)
|
||||||
const dataList=ref([])
|
const dataList=ref([])
|
||||||
@@ -240,8 +272,13 @@ function statisticTask(){
|
|||||||
'Content-Type': "application/x-www-form-urlencoded"
|
'Content-Type': "application/x-www-form-urlencoded"
|
||||||
}
|
}
|
||||||
let params={}
|
let params={}
|
||||||
$api.myRequest('/dispatch/assist/task/allocation/statisticTask',params,'get',9100,header).then((resData) => {
|
$api.myRequest('/dispatch/assist/records/statisticRecords',params,'get',9100,header).then((resData) => {
|
||||||
stats.value=resData.data
|
stats.value=resData.data
|
||||||
|
if (stats.value.totalRecords > 0 && stats.value.pendingRecords > 0) {
|
||||||
|
stats.value.assistRate = ((stats.value.pendingRecords / stats.value.totalRecords) * 100).toFixed(2);
|
||||||
|
} else {
|
||||||
|
stats.value.assistRate = 0;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function getDictionary(){
|
function getDictionary(){
|
||||||
@@ -303,6 +340,7 @@ function onExecuteDeptChange(e){
|
|||||||
formData.executeDeptId=e
|
formData.executeDeptId=e
|
||||||
}
|
}
|
||||||
function handleSearch(){
|
function handleSearch(){
|
||||||
|
formData.pageSize=1
|
||||||
dataList.value=[]
|
dataList.value=[]
|
||||||
getDataList()
|
getDataList()
|
||||||
}
|
}
|
||||||
@@ -311,11 +349,9 @@ function getDataList(){
|
|||||||
'Authorization':uni.getStorageSync('Padmin-Token'),
|
'Authorization':uni.getStorageSync('Padmin-Token'),
|
||||||
'Content-Type': "application/x-www-form-urlencoded"
|
'Content-Type': "application/x-www-form-urlencoded"
|
||||||
}
|
}
|
||||||
$api.myRequest('/dispatch/assist/task/pageAllocateDeptTaskList',formData,'get',9100,header).then((resData) => {
|
$api.myRequest('/dispatch/assist/records/pageRecords',formData,'get',9100,header).then((resData) => {
|
||||||
resData.rows.forEach(item=>{
|
resData.rows.forEach(item=>{
|
||||||
item.priority=getabelByValue(item.priority,priorityOptions)
|
item.task_type=getabelByValue(item.task_type,taskTypeOptions)
|
||||||
item.taskType=getabelByValue(item.taskType,taskTypeOptions)
|
|
||||||
item.taskAllocation.allocationStatus=getabelByValue(item.taskAllocation.allocationStatus,allocationStatusOptions)
|
|
||||||
})
|
})
|
||||||
totalNum.value=resData.total
|
totalNum.value=resData.total
|
||||||
dataList.value=dataList.value.concat(resData.rows)
|
dataList.value=dataList.value.concat(resData.rows)
|
||||||
@@ -324,26 +360,29 @@ function getDataList(){
|
|||||||
}
|
}
|
||||||
const handleReset = () => {
|
const handleReset = () => {
|
||||||
dataList.value=[]
|
dataList.value=[]
|
||||||
formData.taskName=''
|
formData.name=''
|
||||||
|
formData.idCard=''
|
||||||
formData.taskType=''
|
formData.taskType=''
|
||||||
formData.priority=''
|
formData.createByName=''
|
||||||
formData.createTimeStart=null
|
formData.deptTags=null
|
||||||
formData.createTimeEnd=null
|
formData.followDateStart=null
|
||||||
formData.allocationStatus=''
|
formData.followDateEnd=''
|
||||||
formData.executeDeptId=''
|
|
||||||
formData.pageNum=1
|
formData.pageNum=1
|
||||||
formData.pageSize=10
|
formData.pageSize=10
|
||||||
filterTimeRange.value=[]
|
filterTimeRange.value=[]
|
||||||
getDataList()
|
getDataList()
|
||||||
}
|
}
|
||||||
const creatTask = () => {
|
function goDetail(item){
|
||||||
navTo('/packageB/priority/taskCreated');
|
navTo('/packageB/priority/recordDetail?id='+item.goal_person_id);
|
||||||
|
}
|
||||||
|
function goFollow(item){
|
||||||
|
navTo('/packageB/priority/recordFollow?name='+item.name+'&taskType='+item.task_type+'&taskId='+item.task_id+'&personId='+item.person_id+'&goalPersonId='+item.goal_person_id);
|
||||||
}
|
}
|
||||||
function goRecommend(item){
|
function goRecommend(item){
|
||||||
navTo('/packageB/priority/allocate?item='+JSON.stringify(item)+'&url=taskIssue');
|
navTo('/packageB/priority/allocate?item='+JSON.stringify(item)+'&url=taskIssue');
|
||||||
}
|
}
|
||||||
function goDetail(item){
|
function goJobWill(item){
|
||||||
navTo('/packageB/priority/taskDetail?item='+JSON.stringify(item));
|
navTo('/packageB/priority/jobWill?id='+item.person_id+'&goalPersonId='+item.goal_person_id);
|
||||||
}
|
}
|
||||||
function goTarget(item){
|
function goTarget(item){
|
||||||
navTo('/packageB/priority/targetPersonnel?id='+item.taskAllocation.id+'&taskName='+item.taskName);
|
navTo('/packageB/priority/targetPersonnel?id='+item.taskAllocation.id+'&taskName='+item.taskName);
|
||||||
@@ -355,10 +394,6 @@ function scrollBottom(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
onShow(()=>{
|
onShow(()=>{
|
||||||
formData.pageNum=1
|
|
||||||
dataList.value=[]
|
|
||||||
getDataList()
|
|
||||||
console.log("111")
|
|
||||||
})
|
})
|
||||||
onLoad((options) => {
|
onLoad((options) => {
|
||||||
listNotParam()
|
listNotParam()
|
||||||
@@ -533,22 +568,60 @@ image
|
|||||||
white-space: nowrap
|
white-space: nowrap
|
||||||
.form-btns
|
.form-btns
|
||||||
margin-top: 30rpx
|
margin-top: 30rpx
|
||||||
.form-box-btn
|
display: flex
|
||||||
border-radius: 50rpx !important
|
flex-wrap: wrap // 允许换行
|
||||||
margin-right: 24rpx
|
justify-content: space-between // 两端对齐,中间留空
|
||||||
padding: 0rpx 40rpx
|
// 如果希望最后一行也撑开,可以使用 space-evenly,但 space-between 配合固定宽度更整齐
|
||||||
.detail-btn
|
|
||||||
background: #EDF5FF
|
.action-btn
|
||||||
border: 1px solid #3088FF
|
border-radius: 12rpx !important // 稍微方一点的圆角,显得更稳重
|
||||||
font-size: 28rpx
|
font-size: 24rpx !important
|
||||||
color: #3088FF
|
font-weight: 500
|
||||||
.follow-btn
|
padding: 16rpx 0 !important // 上下内边距
|
||||||
background: #EEF9F3
|
margin-bottom: 20rpx // 行间距
|
||||||
border: 1px solid #00933E
|
display: flex
|
||||||
font-size: 28rpx
|
align-items: center
|
||||||
color: #00933E
|
justify-content: center
|
||||||
.recommend-btn
|
// 计算宽度:3个一行,减去间隙。假设总宽100%,gap由justify-content处理
|
||||||
background: linear-gradient(92deg, #0DCCFF 0%, #4760FF 100%)
|
// 这里设定一个固定比例宽度,确保一行能放下3个
|
||||||
font-size: 28rpx
|
width: 32%
|
||||||
color: #FFFFFF
|
height: 72rpx // 固定高度保证整齐
|
||||||
|
line-height: 1.2
|
||||||
|
border-width: 1rpx
|
||||||
|
border-style: solid
|
||||||
|
|
||||||
|
/* --- 样式变体 --- */
|
||||||
|
|
||||||
|
// 1. 详情 (主操作 - 蓝色实心)
|
||||||
|
.btn-primary
|
||||||
|
background-color: #3088FF !important
|
||||||
|
color: #FFFFFF !important
|
||||||
|
border-color: #3088FF !important
|
||||||
|
box-shadow: 0 4rpx 12rpx rgba(48, 136, 255, 0.3)
|
||||||
|
|
||||||
|
// 2. 跟进 (次主操作 - 绿色实心)
|
||||||
|
.btn-success
|
||||||
|
background-color: #00933E !important
|
||||||
|
color: #FFFFFF !important
|
||||||
|
border-color: #00933E !important
|
||||||
|
box-shadow: 0 4rpx 12rpx rgba(0, 147, 62, 0.3)
|
||||||
|
|
||||||
|
// 3. 智能推荐 (特色操作 - 渐变)
|
||||||
|
.btn-gradient
|
||||||
|
background: linear-gradient(92deg, #0DCCFF 0%, #4760FF 100%) !important
|
||||||
|
color: #FFFFFF !important
|
||||||
|
border: none !important
|
||||||
|
box-shadow: 0 4rpx 12rpx rgba(71, 96, 255, 0.4)
|
||||||
|
|
||||||
|
// 4. 求职/培训意愿 (辅助操作 - 浅蓝底深蓝字)
|
||||||
|
.btn-info
|
||||||
|
background-color: #EDF5FF !important
|
||||||
|
color: #3088FF !important
|
||||||
|
border-color: #CBDFFF !important
|
||||||
|
|
||||||
|
// 5. 退回 (特殊操作 - 橙色/警告色)
|
||||||
|
.btn-warning
|
||||||
|
background-color: #FFF7E6 !important
|
||||||
|
color: #FA8C16 !important
|
||||||
|
border-color: #FFD591 !important
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
24
pages.json
24
pages.json
@@ -481,6 +481,30 @@
|
|||||||
"navigationBarTitleText": "帮扶记录管理"
|
"navigationBarTitleText": "帮扶记录管理"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "priority/recordDetail",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "帮扶记录详情"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "priority/recordFollow",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "帮扶记录跟进"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "priority/jobWill",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "求职意愿列表"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "priority/jobWillEdit",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "编辑求职意愿"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "priority/allocate",
|
"path": "priority/allocate",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
Reference in New Issue
Block a user