| | |
| | | <view class="home_swipe"><u-swiper :list="list3" indicator indicatorMode="line" circular></u-swiper></view>
|
| | | <!-- 图表 -->
|
| | | <combined-title title="煤仓库存明细"></combined-title>
|
| | | <view class="charts-box"><qiun-data-charts type="pie" :opts="opts" :chartData="chartData" /></view>
|
| | | <view class="charts-box">
|
| | | <qiun-data-charts type="pie" :opts="opts" :chartData="chartData" v-if="uchartsData.length > 0" />
|
| | | <u-empty
|
| | | mode="data"
|
| | | icon="http://cdn.uviewui.com/uview/empty/data.png"
|
| | | v-if="uchartsData.length == 0" |
| | | >
|
| | | </u-empty>
|
| | | </view>
|
| | | <!-- 我的申请 -->
|
| | | <combined-title title="我的申请" detailsPath="/pages/my-application/my-application" v-if="shenqingMenu"></combined-title>
|
| | | <view class="card-group">
|
| | |
| | | <text>所属流程:{{ item.processName }}</text>
|
| | | </view>
|
| | | <view class="">
|
| | | <text>审批环节:{{ item.currTaskName }}</text>
|
| | | <text>审批环节:{{ item.currTaskName || '' }}</text>
|
| | | </view>
|
| | | </view>
|
| | | <view class="center-content__two center-margin">
|
| | |
| | | <image src="@/static/home/jindu.png" mode=""></image>
|
| | | <view>查看进度</view>
|
| | | </view>
|
| | | <view @click="theFormDataClick(item.tableId)" v-if="item.status == 1 || item.status == 2">
|
| | | <view @click="theFormDataClick(item.tableId)" v-if="(item.status == 1 || item.status == 2) && (item.procDefId == 'WAY_BILL:4:87504')">
|
| | | <image src="@/static/home/biaodan.png" mode=""></image>
|
| | | <view>表单数据</view>
|
| | | </view>
|
| | |
| | | <image src="@/static/home/history.png" mode=""></image>
|
| | | <view>重新申请</view>
|
| | | </view>
|
| | | <view @click="editMyApplication(item)" v-if="item.status == 3">
|
| | | <view @click="editMyApplication(item)" v-if="item.status == 3 && item.procDefId == 'WAY_BILL:4:87504'">
|
| | | <image src="@/static/home/history.png" mode=""></image>
|
| | | <view>编辑</view>
|
| | | </view>
|
| | |
| | | <view class="center-container">
|
| | | <view class="center-content__one center-margin">
|
| | | <view class="">
|
| | | <text>任务名称:{{ item.name }}</text>
|
| | | <text>任务名称:{{ item.name || '' }}</text>
|
| | | </view>
|
| | | <view class="">
|
| | | <text>所属流程:{{ item.processName }}</text>
|
| | | <text>所属流程:{{ item.processName || '' }}</text>
|
| | | </view>
|
| | | </view>
|
| | | <view class="center-content__two center-margin">
|
| | |
| | | <text>任务名称:{{ item.name }}</text>
|
| | | </view>
|
| | | <view>
|
| | | <text>所属流程:{{ item.processName }}</text>
|
| | | <text>所属流程:{{ item.processName || '' }}</text>
|
| | | </view>
|
| | | </view>
|
| | | <view class="center-content__two center-margin">
|
| | |
| | | </view>
|
| | | <view class="center-content__three center-margin">
|
| | | <view class="">
|
| | | <text>审批意见:{{ item.comment }}</text>
|
| | | <text>审批意见:{{ item.comment || '' }}</text>
|
| | | </view>
|
| | | <view class="">
|
| | | <text>
|
| | |
| | | <view class="bottom-container">
|
| | | <!-- 已办按钮 -->
|
| | | <view class="bottom-content__item">
|
| | | <view @click="theFormDataClick(item.tableId)">
|
| | | <view @click="theFormDataClick(item.tableId)" v-if="item.procDefId == 'WAY_BILL:4:87504'">
|
| | | <image src="@/static/home/biaodan.png" mode=""></image>
|
| | | <view>表单数据</view>
|
| | | </view>
|
| | |
| | |
|
| | | <script>
|
| | | import { timeConsuming } from '@/utils/nowDate.js';
|
| | | import { BaseUrl } from '@/utils/request.js';
|
| | | // import popupMenu from '@/components/common/popup-menu/popup-menu.vue';
|
| | | import combinedTitle from '@/components/common/combined-title/combined-title.vue';
|
| | | import combinationCard from '@/components/common/combination-card/combination-card.vue';
|
| | |
| | | statusColor: ['#dd8b8c', '#FF9900', '#007AFF', '#06BE00'],
|
| | | result: ['未提交', '处理中', '通过', '驳回'],
|
| | | resultColor: ['#dd8b8c', '#FF9900', '#06BE00', '#be2b2d'],
|
| | | list3: ['https://cdn.uviewui.com/uview/swiper/swiper3.png', 'https://cdn.uviewui.com/uview/swiper/swiper2.png', 'https://cdn.uviewui.com/uview/swiper/swiper1.png'],
|
| | | list3: ['../../../../static/groupAppTotalImg/banner.png'],
|
| | | // 撤回模态框
|
| | | withDrawShow: false,
|
| | | fyData: [],
|
| | |
| | | // },
|
| | | // 点击导航栏菜单后
|
| | | onNavigationBarButtonTap(e) {
|
| | | console.log(e);
|
| | | console.log('退出导航栏按钮事件',e);
|
| | | // this.$refs.menuRef.menuClick();
|
| | | },
|
| | | // 监听左上角的回退事件
|
| | | onUnload(event){ //多层级跳转之后,监听左上角返回事件,直接退回到index
|
| | | console.log('监听左上角',event);
|
| | | uni.request({
|
| | | url: `${BaseUrl}/auth/token/logout`,
|
| | | method: 'DELETE',
|
| | | header: {
|
| | | 'TENANT-ID': 5,
|
| | | Authorization: 'Bearer ' + uni.getStorageSync('access_token'),
|
| | | VERSION: 'zzl'
|
| | | }
|
| | | }).then(res=>{
|
| | | console.log('缓存清理成功');
|
| | | }).catch(err => {
|
| | | uni.showToast({
|
| | | title: '缓存清理失败!',
|
| | | })
|
| | | })
|
| | | },
|
| | | onShow() {
|
| | | // 菜单注释(app待用)
|
| | |
| | | this.getProcessDataList(); // 申请列表
|
| | | this.todoList(); // 我的待办
|
| | | this.doneList(); // 我的已办
|
| | | this.xscarshippingdayplan(); //日计划
|
| | | this.xscarshippingdayplan(); // 日计划
|
| | | },
|
| | | getUserInfo() {
|
| | | this.$reqGet('getUserInfo').then(res => {
|
| | |
| | | });
|
| | | },
|
| | | getServerData() {
|
| | | console.log('加载图表',this.uchartsData);
|
| | | //模拟从服务器获取数据时的延时
|
| | | setTimeout(() => {
|
| | | //模拟服务器返回数据,如果数据格式和标准格式不同,需自行按下面的格式拼接
|
| | |
| | | width: 91%;
|
| | | height: vww(330);
|
| | | margin: 0 auto;
|
| | | .u-empty{
|
| | | height:100%;
|
| | | }
|
| | | }
|
| | |
|
| | | .u-input {
|