镇公司身份改变
This commit is contained in:
parent
670ab6ff0b
commit
73aa7f8c19
@ -4,39 +4,25 @@
|
||||
<!-- <u-navbar @leftClick="leftClick" bgColor="rgba(0,0,0,0)"
|
||||
leftIconColor=" #fff" :autoBack="false">
|
||||
</u-navbar> -->
|
||||
<view
|
||||
class="home_header"
|
||||
:class="!ApproveList.length > 0 ? 'home_header_no_data' : ''"
|
||||
>
|
||||
<view
|
||||
style="
|
||||
<view class="home_header" :class="!ApproveList.length > 0 ? 'home_header_no_data' : ''">
|
||||
<view style="
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
overflow: hidden;
|
||||
border-radius: 0 0 30rpx 30rpx;
|
||||
"
|
||||
>
|
||||
<hx-lottie
|
||||
:options="options"
|
||||
ref="lottie"
|
||||
style="
|
||||
">
|
||||
<hx-lottie :options="options" ref="lottie" style="
|
||||
width: 100vw;
|
||||
height: 440rpx;
|
||||
transform: scale(1.2);
|
||||
background-color: #0122c7;
|
||||
"
|
||||
/>
|
||||
" />
|
||||
</view>
|
||||
<!-- #ifdef APP-PLUS||H5 -->
|
||||
<view style="height: var(--status-bar-height)"></view>
|
||||
<view v-if="uniMP" style="height: 44px">
|
||||
<u-icon
|
||||
name="arrow-left"
|
||||
color="#fff"
|
||||
size="20"
|
||||
@click="leftClick"
|
||||
></u-icon>
|
||||
<u-icon name="arrow-left" color="#fff" size="20" @click="leftClick"></u-icon>
|
||||
</view>
|
||||
<view v-else style="height: 30rpx"></view>
|
||||
<!-- <view v-if="uniMP" style="height: 44px;"></view> -->
|
||||
@ -50,46 +36,30 @@
|
||||
</view>
|
||||
<view class="head_img">
|
||||
<view class="img_box">
|
||||
<u--image
|
||||
:showLoading="true"
|
||||
width="131.43rpx"
|
||||
height="131.43rpx"
|
||||
class="img_box_img"
|
||||
:src="myOaInfo.avatar || '../../static/img/public/avatar.png'"
|
||||
shape="circle"
|
||||
></u--image>
|
||||
<u--image :showLoading="true" width="131.43rpx" height="131.43rpx" class="img_box_img"
|
||||
:src="myOaInfo.avatar || '../../static/img/public/avatar.png'" shape="circle"></u--image>
|
||||
</view>
|
||||
|
||||
<text class="head_text">工作证: {{ myOaInfo.nickname }}</text>
|
||||
<text class="head_text" style="flex-shrink: 0"
|
||||
>身份: {{ myOaInfo.admin_id ? "管理员" : "普通用户" }}</text
|
||||
>
|
||||
<text class="head_text" style="flex-shrink: 0">身份: {{ myOaInfo.admin_id ? "管理员" : "普通用户" }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 占位 -->
|
||||
<view style="height: 150rpx"></view>
|
||||
|
||||
<view
|
||||
class="backlog"
|
||||
:class="!ApproveList.length > 0 ? 'backlog_no_data' : ''"
|
||||
>
|
||||
<view class="backlog" :class="!ApproveList.length > 0 ? 'backlog_no_data' : ''">
|
||||
<view class="head_title flex_a_c_j_sb">
|
||||
<view class="title">公告列表</view>
|
||||
<view class="flex_a_c" @click="navTo('/subpkg/noticeList/noticeList')"
|
||||
>更多
|
||||
<view class="flex_a_c" @click="navTo('/subpkg/noticeList/noticeList')">更多
|
||||
<view class="iconfont icon-you">
|
||||
<uni-icons type="forward"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<block v-if="ApproveList.length > 0">
|
||||
<view
|
||||
class="backlog_item flex_a_c_j_sb"
|
||||
v-for="(item, index) in ApproveList.slice(0, 2)"
|
||||
:key="index"
|
||||
@click="clickNotice(item.id)"
|
||||
>
|
||||
<view class="backlog_item flex_a_c_j_sb" v-for="(item, index) in ApproveList.slice(0, 2)"
|
||||
:key="index" @click="clickNotice(item.id)">
|
||||
<view class="text">
|
||||
<text class="text_time">{{
|
||||
item.create_time.substring(0, 10).replace(/-/g, ".")
|
||||
@ -97,23 +67,20 @@
|
||||
{{ item.title }}
|
||||
</view>
|
||||
|
||||
<i class="iconfont icon-you"
|
||||
><uni-icons type="forward"></uni-icons
|
||||
></i>
|
||||
<i class="iconfont icon-you"><uni-icons type="forward"></uni-icons></i>
|
||||
</view>
|
||||
</block>
|
||||
<view v-else class="backlog_no flex_a_c_j_sb">
|
||||
<view class="text">暂无更多消息</view>
|
||||
<i class="iconfont icon-you"
|
||||
><uni-icons type="forward"></uni-icons
|
||||
></i>
|
||||
<i class="iconfont icon-you"><uni-icons type="forward"></uni-icons></i>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 片区经理聊天 -->
|
||||
<view class="chat" @click="navTo('/subpkg/chatMang/index')" style="margin-top: 130rpx;">
|
||||
<view class="chat-l">
|
||||
<u--image shape="circle" :showLoading="true" :src="managerInfo.manager_avatar" width="91rpx" height="91rpx"></u--image>
|
||||
<u--image shape="circle" :showLoading="true" :src="managerInfo.manager_avatar" width="91rpx"
|
||||
height="91rpx"></u--image>
|
||||
<view class="" style="margin-left: 40rpx;">
|
||||
{{managerInfo.manager_name}}
|
||||
</view>
|
||||
@ -144,11 +111,7 @@
|
||||
<view class="fast_track">
|
||||
<block v-for="(item, index) in oaHomeData" :key="item.id">
|
||||
<view class="track_item" @click="navTwo(item.paths, index)">
|
||||
<image
|
||||
:src="item.icon"
|
||||
mode="aspectFit"
|
||||
style="width: 77rpx;height: 77rpx;"
|
||||
>
|
||||
<image :src="item.icon" mode="aspectFit" style="width: 77rpx;height: 77rpx;">
|
||||
</image>
|
||||
<view class="title">{{ item.name }}</view>
|
||||
</view>
|
||||
@ -158,8 +121,7 @@
|
||||
<view class="my_task">
|
||||
<view class="task_title flex_a_c_j_sb">
|
||||
<view class="title">配送信息</view>
|
||||
<view class="flex_a_c" @click="goOrderList"
|
||||
>更多
|
||||
<view class="flex_a_c" @click="goOrderList">更多
|
||||
<view class="iconfont icon-you">
|
||||
<uni-icons type="forward"></uni-icons>
|
||||
</view>
|
||||
@ -168,20 +130,14 @@
|
||||
|
||||
<view v-if="orderList.length > 0">
|
||||
<globalPopup ref="globalPopup"></globalPopup>
|
||||
<logistiBriefCard
|
||||
v-for="(item, index) in orderList"
|
||||
:key="index"
|
||||
:goodsInfo="item"
|
||||
>
|
||||
<logistiBriefCard v-for="(item, index) in orderList" :key="index" :goodsInfo="item">
|
||||
</logistiBriefCard>
|
||||
<u-loadmore :status="status" />
|
||||
</view>
|
||||
|
||||
<view v-else class="no_task">
|
||||
<view class="title">暂无配送信息</view>
|
||||
<view class="tips" v-if="!$store.state.app.token"
|
||||
>登录后查看配送信息详情</view
|
||||
>
|
||||
<view class="tips" v-if="!$store.state.app.token">登录后查看配送信息详情</view>
|
||||
</view>
|
||||
<!-- <view class="head_title flex_a_c_j_sb">
|
||||
<view class="">我的任务</view>
|
||||
@ -359,8 +315,10 @@ export default {
|
||||
// this.getUserIndex()
|
||||
// this.getIndexList()
|
||||
let user_id = JSON.parse(uni.getStorageSync("USER_INFO")).id
|
||||
getAreaManagerApi({user_id}).then(res=>{
|
||||
console.log(res.data)
|
||||
getAreaManagerApi({
|
||||
user_id
|
||||
}).then(res => {
|
||||
// console.log(res.data)
|
||||
this.managerInfo = res.data
|
||||
})
|
||||
await this.$onLaunched;
|
||||
@ -1001,6 +959,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.chat {
|
||||
margin-top: 1000px;
|
||||
// margin-top: 2000rpx;
|
||||
@ -1014,11 +973,13 @@ export default {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.chat-l {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.brange {
|
||||
color: white;
|
||||
background-color: red;
|
||||
|
@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<view class="all_box">
|
||||
<block v-if="skeleton">
|
||||
<u-skeleton :loading="skeleton" :animate="true" title rows="2" rows-width="100%"
|
||||
rowsHeight="40" v-for="i in 3" :key="i" style="padding: 28rpx;">
|
||||
<u-skeleton :loading="skeleton" :animate="true" title rows="2" rows-width="100%" rowsHeight="40"
|
||||
v-for="i in 3" :key="i" style="padding: 28rpx;">
|
||||
</u-skeleton>
|
||||
</block>
|
||||
<block v-else>
|
||||
@ -10,6 +10,7 @@
|
||||
<view v-else class="task_list">
|
||||
<!-- <taskCard class="task_card" v-for="item in 10" :key="item"></taskCard> -->
|
||||
<task-item :datas="item" v-for="item in list" :key="item.id"></task-item>
|
||||
|
||||
</view>
|
||||
</block>
|
||||
<!-- <u-loadmore v-else :status="loadConfig.status" :loading-text="loadConfig.loadingText"
|
||||
@ -18,10 +19,16 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getTaskListApi } from '@/api/oa'
|
||||
import { Toast } from '@/libs/uniApi.js'
|
||||
import {
|
||||
getTaskListApi
|
||||
} from '@/api/oa'
|
||||
import {
|
||||
Toast
|
||||
} from '@/libs/uniApi.js'
|
||||
import taskItem from "@/components/task/taskItem.vue"
|
||||
import { taskLists } from "@/api/task.js"
|
||||
import {
|
||||
taskLists
|
||||
} from "@/api/task.js"
|
||||
export default {
|
||||
components: {
|
||||
taskItem
|
||||
@ -52,17 +59,21 @@
|
||||
},
|
||||
methods: {
|
||||
async loadList() {
|
||||
let res = await taskLists({limit: 15, page: 1});
|
||||
let res = await taskLists({
|
||||
limit: 15,
|
||||
page: 1
|
||||
});
|
||||
this.list = res.data;
|
||||
this.skeleton = false;
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.loadList();
|
||||
this.$u.sleep(500).then(()=>{uni.stopPullDownRefresh()});
|
||||
},
|
||||
onReachBottom() {
|
||||
this.$u.sleep(500).then(() => {
|
||||
uni.stopPullDownRefresh()
|
||||
});
|
||||
},
|
||||
onReachBottom() {},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -70,6 +81,7 @@
|
||||
.task_list {
|
||||
padding-top: 28rpx;
|
||||
}
|
||||
|
||||
.loading {
|
||||
padding: 28rpx;
|
||||
margin-top: 28rpx;
|
||||
|
@ -172,7 +172,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- 镇街公司 -->
|
||||
<view v-if='company_type==16'>
|
||||
<view v-if='company_type==41'>
|
||||
|
||||
<view class="info">
|
||||
<text>可监管车辆数量 {{datas.monitor_num}}</text>
|
||||
@ -397,6 +397,8 @@
|
||||
res.data.apply.length >= 2 ? this.applicationList = res.data.apply : this.applicationList =
|
||||
res.data.apply.slice(0, 2)
|
||||
this.dataList = res.data.car_list
|
||||
|
||||
|
||||
this.showLoading = false
|
||||
})
|
||||
}
|
||||
|
@ -13,7 +13,8 @@
|
||||
<view class="file">
|
||||
<view class="file_item" v-for="(item, index) in study_photo" :key="'file'+index">
|
||||
<image class="image" :src="item" @click="priview(index)"></image>
|
||||
<image v-if="taskInfo.status==2" class="del" src="/static/icons/delete.png" @click.stop="deleteFile(index)">
|
||||
<image v-if="taskInfo.status==2" class="del" src="/static/icons/delete.png"
|
||||
@click.stop="deleteFile(index)">
|
||||
</image>
|
||||
</view>
|
||||
<view v-if="taskInfo.status==2" class="file_btn" @click="chooseFile">
|
||||
@ -27,11 +28,12 @@
|
||||
<view class="file">
|
||||
<view v-if="sign_in_table" class="file_item">
|
||||
<image class="image" :src="sign_in_table" @click="priviewOne(index)"></image>
|
||||
<image v-if="taskInfo.status==2 && other.is_commit==0" class="del" src="/static/icons/delete.png"
|
||||
@click.stop="deleteFile(index, 'sign_in_table')">
|
||||
<image v-if="taskInfo.status==2 && other.is_commit==0" class="del"
|
||||
src="/static/icons/delete.png" @click.stop="deleteFile(index, 'sign_in_table')">
|
||||
</image>
|
||||
</view>
|
||||
<view v-if="taskInfo.status==2 && other.is_commit==0 && !sign_in_table" class="file_btn" @click="chooseOneFile">
|
||||
<view v-if="taskInfo.status==2 && other.is_commit==0 && !sign_in_table" class="file_btn"
|
||||
@click="chooseOneFile">
|
||||
<image src="/static/icons/plus.png"></image>
|
||||
</view>
|
||||
<view class="file_empty"></view>
|
||||
@ -45,8 +47,10 @@
|
||||
style="font-size: 28rpx;background-color: #eee;min-height: 100px;padding-bottom: 50rpx;"></u--textarea>
|
||||
</view>
|
||||
<mybtn v-if="taskInfo.status==2" text="确认提交" @click="$u.throttle(submit, 1500)"></mybtn>
|
||||
<mybtn v-else-if="taskInfo.status==3" text="已完成" :my_btn_disabled="true" @click="showToast('任务已完成')"></mybtn>
|
||||
<mybtn v-else-if="taskInfo.status==5" text="已关闭" :my_btn_disabled="true" @click="showToast('任务已关闭!')"></mybtn>
|
||||
<mybtn v-else-if="taskInfo.status==3" text="已完成" :my_btn_disabled="true" @click="showToast('任务已完成')">
|
||||
</mybtn>
|
||||
<mybtn v-else-if="taskInfo.status==5" text="已关闭" :my_btn_disabled="true" @click="showToast('任务已关闭!')">
|
||||
</mybtn>
|
||||
<!-- <mybtn v-else-if="approve_status==3" text="已驳回,请重新提交" @click="toUpdate"></mybtn> -->
|
||||
<mybtn v-else text="已提交,请等待审核" :my_btn_disabled="true" @click="showToast('请耐心等待审核结果')"></mybtn>
|
||||
</block>
|
||||
@ -57,8 +61,13 @@
|
||||
import {
|
||||
upLoadImage,
|
||||
} from "@/api/file.js";
|
||||
import { Toast } from "../../libs/uniApi";
|
||||
import { townTaskDetails, serviceTask4Commit } from "@/api/task.js"
|
||||
import {
|
||||
Toast
|
||||
} from "../../libs/uniApi";
|
||||
import {
|
||||
townTaskDetails,
|
||||
serviceTask4Commit
|
||||
} from "@/api/task.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -89,7 +98,8 @@
|
||||
computed: {
|
||||
// 占位长度
|
||||
placeholderLength() {
|
||||
if (this.taskInfo.status!=2) return this.study_photo.length % 3 == 0 ? 0 : 3 - this.study_photo.length % 3;
|
||||
if (this.taskInfo.status != 2) return this.study_photo.length % 3 == 0 ? 0 : 3 - this.study_photo.length %
|
||||
3;
|
||||
return (this.study_photo.length + 1) % 3 == 0 ? 0 : 3 - (this.study_photo.length + 1) % 3;
|
||||
},
|
||||
},
|
||||
@ -102,7 +112,8 @@
|
||||
this.taskInfo = res.data;
|
||||
this.sign_in_table = this.taskInfo?.extend?.town_task_type_4?.sign_in_table;
|
||||
this.study_content = this.taskInfo?.extend?.town_task_type_4?.study_content;
|
||||
this.study_photo = JSON.parse(JSON.stringify(this.taskInfo?.extend?.town_task_type_4?.study_photo || []));
|
||||
this.study_photo = JSON.parse(JSON.stringify(this.taskInfo?.extend?.town_task_type_4?.study_photo ||
|
||||
[]));
|
||||
this.skeleton = false;
|
||||
},
|
||||
// 提交
|
||||
|
Loading…
x
Reference in New Issue
Block a user