|
@@ -1,79 +1,75 @@
|
|
<template>
|
|
<template>
|
|
<view class="pagesCons">
|
|
<view class="pagesCons">
|
|
<view class="tab-body">
|
|
<view class="tab-body">
|
|
- <view class="uTabs">
|
|
|
|
- <u-tabs-swiper ref="uTabs" :list="tabList" name="dispName" :current="current" @change="tabsChange" :is-scroll="false"
|
|
|
|
- swiperWidth="750"></u-tabs-swiper>
|
|
|
|
|
|
+ <view class="uTabs">
|
|
|
|
+ <u-tabs-swiper ref="uTabs" :list="tabList" name="dispName" :current="current" @change="tabsChange" :is-scroll="false"
|
|
|
|
+ swiperWidth="750"></u-tabs-swiper>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="all-filter" v-show="current==2">
|
|
|
|
+ <u-row>
|
|
|
|
+ <text>发起时间</text>
|
|
|
|
+ <view @click="changeSort('createTime')" class="filter-icon">
|
|
|
|
+ <u-icon name="arrow-up-fill" :color="(sortIndex===0)?'#2979ff':'#888888'" size="24"></u-icon>
|
|
|
|
+ <u-icon name="arrow-down-fill" :color="(sortIndex===1)?'#2979ff':'#888888'" size="24"></u-icon>
|
|
|
|
+ </view>
|
|
|
|
+ </u-row>
|
|
|
|
+ <u-row>
|
|
|
|
+ <text>处理时间</text>
|
|
|
|
+ <view @click="changeSort('handleTime')" class="filter-icon">
|
|
|
|
+ <u-icon name="arrow-up-fill" :color="(sortIndex===2)?'#2979ff':'#888888'" size="24"></u-icon>
|
|
|
|
+ <u-icon name="arrow-down-fill" :color="(sortIndex===3)?'#2979ff':'#888888'" size="24"></u-icon>
|
|
|
|
+ </view>
|
|
|
|
+ </u-row>
|
|
|
|
+ <view class="filter" @click="showSearch=true">
|
|
|
|
+ <text>筛选</text>
|
|
|
|
+ <u-icon name="shaixuan" custom-prefix="xd-icon" size="32" color="#888888"></u-icon>
|
|
</view>
|
|
</view>
|
|
- <view class="all-filter" v-show="current==2">
|
|
|
|
- <u-row>
|
|
|
|
- <text>发起时间</text>
|
|
|
|
- <view @click="changeSort('createTime')" class="filter-icon">
|
|
|
|
- <u-icon name="arrow-up-fill" :color="(sortIndex===0)?'#2979ff':'#888888'" size="24"></u-icon>
|
|
|
|
- <u-icon name="arrow-down-fill" :color="(sortIndex===1)?'#2979ff':'#888888'" size="24"></u-icon>
|
|
|
|
|
|
+ </view>
|
|
|
|
+ <swiper class="check-list" :current="swiperCurrent" @transition="transition" @change="swiperChange" @animationfinish="animationfinish">
|
|
|
|
+ <swiper-item class="swiper-item" v-for="(tabs, index) in tabList" :key="index">
|
|
|
|
+ <scroll-view scroll-y class="scroll-view" @scrolltolower="onreachBottom">
|
|
|
|
+ <view class="check-order-list" v-if="index==current" v-for="(item,sindex) in list" :key="item.id+'-'+sindex"
|
|
|
|
+ @click="viewRow(item)">
|
|
|
|
+ <view class="check-row">
|
|
|
|
+ <view class="ellipsis-one">{{item.storeName}}</view>
|
|
|
|
+ <view class="createDate">{{item.createDate}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="check-row">
|
|
|
|
+ <view v-if="item.clsName" class="ellipsis-one">
|
|
|
|
+ {{item.clsName}}
|
|
|
|
+ </view>
|
|
|
|
+ <view v-else class="ygq">
|
|
|
|
+ <u-icon name="info-circle"></u-icon>
|
|
|
|
+ 未关联问题项
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text-right">
|
|
|
|
+ <text>{{item.putUserName}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-if="$hasPermissions('M_backlog_detail_mobile')" class="icon-xian">
|
|
|
|
+ <u-icon name="icon-xian-11" custom-prefix="xd-icon" size="30" color="#888888"></u-icon>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="check-row">
|
|
|
|
+ <view>
|
|
|
|
+ {{item.sourceTypeDictValue}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text-right">
|
|
|
|
+ <text v-if="item.copyFlag && item.copyFlag == 1" class="mark">
|
|
|
|
+ 抄送
|
|
|
|
+ </text>
|
|
|
|
+ <view :class="['status',clsStatus(item.statusDictValue)]">{{item.statusDictValue}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- </u-row>
|
|
|
|
- <u-row>
|
|
|
|
- <text>处理时间</text>
|
|
|
|
- <view @click="changeSort('handleTime')" class="filter-icon">
|
|
|
|
- <u-icon name="arrow-up-fill" :color="(sortIndex===2)?'#2979ff':'#888888'" size="24"></u-icon>
|
|
|
|
- <u-icon name="arrow-down-fill" :color="(sortIndex===3)?'#2979ff':'#888888'" size="24"></u-icon>
|
|
|
|
|
|
+ <u-empty style="padding-top: 10vh;height: auto;" :text="noDataText" img-width="120" v-if="list.length==0 && status!='loading'"
|
|
|
|
+ mode="list"></u-empty>
|
|
|
|
+ <view class="list-nomore" v-if="status == 'nomore'">已经到底了</view>
|
|
|
|
+ <view v-if="index==current" style="padding: 20upx;">
|
|
|
|
+ <u-loadmore v-if="total>pageSize || status=='loading'" :status="status" />
|
|
</view>
|
|
</view>
|
|
- </u-row>
|
|
|
|
- <view class="filter" @click="showSearch=true">
|
|
|
|
- <text>筛选</text>
|
|
|
|
- <u-icon name="shaixuan" custom-prefix="xd-icon" size="32" color="#888888"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <swiper class="check-list" :current="swiperCurrent" @transition="transition" @change="swiperChange" @animationfinish="animationfinish">
|
|
|
|
- <swiper-item class="swiper-item" v-for="(tabs, index) in tabList" :key="index">
|
|
|
|
- <scroll-view scroll-y class="scroll-view" @scrolltolower="onreachBottom">
|
|
|
|
- <view
|
|
|
|
- class="check-order-list"
|
|
|
|
- v-if="index==current"
|
|
|
|
- v-for="(item,sindex) in list"
|
|
|
|
- :key="item.id+'-'+sindex"
|
|
|
|
- @click="viewRow(item)"
|
|
|
|
- >
|
|
|
|
- <view class="check-row">
|
|
|
|
- <view class="ellipsis-one">{{item.storeName}}</view>
|
|
|
|
- <view class="createDate">{{item.createDate}}</view>
|
|
|
|
- </view>
|
|
|
|
- <view class="check-row">
|
|
|
|
- <view v-if="item.clsName" class="ellipsis-one">
|
|
|
|
- {{item.clsName}}
|
|
|
|
- </view>
|
|
|
|
- <view v-else class="ygq">
|
|
|
|
- <u-icon name="info-circle"></u-icon>
|
|
|
|
- 未关联问题项
|
|
|
|
- </view>
|
|
|
|
- <view class="text-right">
|
|
|
|
- <text>{{item.putUserName}}</text>
|
|
|
|
- </view>
|
|
|
|
- <view v-if="$hasPermissions('M_backlog_detail_mobile')" class="icon-xian" >
|
|
|
|
- <u-icon name="icon-xian-11" custom-prefix="xd-icon" size="30" color="#888888"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="check-row">
|
|
|
|
- <view>
|
|
|
|
- {{item.sourceTypeDictValue}}
|
|
|
|
- </view>
|
|
|
|
- <view class="text-right">
|
|
|
|
- <text v-if="item.copyFlag && item.copyFlag == 1" class="mark">
|
|
|
|
- 抄送
|
|
|
|
- </text>
|
|
|
|
- <view :class="['status',clsStatus(item.statusDictValue)]">{{item.statusDictValue}}</view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <u-empty style="padding-top: 10vh;height: auto;" :text="noDataText" img-width="120" v-if="list.length==0 && status!='loading'" mode="list"></u-empty>
|
|
|
|
- <view class="list-nomore" v-if="status == 'nomore'">已经到底了</view>
|
|
|
|
- <view v-if="index==current" style="padding: 20upx;">
|
|
|
|
- <u-loadmore v-if="total>pageSize || status=='loading'" :status="status" />
|
|
|
|
- </view>
|
|
|
|
- </scroll-view>
|
|
|
|
- </swiper-item>
|
|
|
|
- </swiper>
|
|
|
|
|
|
+ </scroll-view>
|
|
|
|
+ </swiper-item>
|
|
|
|
+ </swiper>
|
|
</view>
|
|
</view>
|
|
<!-- 待办单查询弹框 -->
|
|
<!-- 待办单查询弹框 -->
|
|
<search-modal :visible="showSearch" @refresh="refresh" @close="showSearch=false"></search-modal>
|
|
<search-modal :visible="showSearch" @refresh="refresh" @close="showSearch=false"></search-modal>
|
|
@@ -81,8 +77,13 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- import { getBackLogList } from '@/api/backLog.js'
|
|
|
|
- import { getLookUpDatas, listLookUp } from '@/api/data'
|
|
|
|
|
|
+ import {
|
|
|
|
+ getBackLogList
|
|
|
|
+ } from '@/api/backLog.js'
|
|
|
|
+ import {
|
|
|
|
+ getLookUpDatas,
|
|
|
|
+ listLookUp
|
|
|
|
+ } from '@/api/data'
|
|
import searchModal from './searchModal.vue'
|
|
import searchModal from './searchModal.vue'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -98,33 +99,32 @@
|
|
// 渐变色
|
|
// 渐变色
|
|
backgroundImage: 'linear-gradient(45deg, rgb(85, 170, 255), rgb(21, 102, 223))'
|
|
backgroundImage: 'linear-gradient(45deg, rgb(85, 170, 255), rgb(21, 102, 223))'
|
|
},
|
|
},
|
|
- tabList: [
|
|
|
|
- {
|
|
|
|
- dispName: '发给我的',
|
|
|
|
- typeId: 3,
|
|
|
|
- queryLabel: 'TO_ME' // tab参数
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- dispName: '我创建的',
|
|
|
|
- typeId: 1,
|
|
|
|
|
|
+ tabList: [{
|
|
|
|
+ dispName: '我创建的',
|
|
|
|
+ typeId: 1,
|
|
queryLabel: 'FROM_ME' // tab参数
|
|
queryLabel: 'FROM_ME' // tab参数
|
|
- },
|
|
|
|
- {
|
|
|
|
- dispName: '全部',
|
|
|
|
- typeId: 2,
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ dispName: '发给我的',
|
|
|
|
+ typeId: 3,
|
|
|
|
+ queryLabel: 'TO_ME' // tab参数
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ dispName: '全部',
|
|
|
|
+ typeId: 2,
|
|
queryLabel: 'ALL' // tab参数
|
|
queryLabel: 'ALL' // tab参数
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
current: 0,
|
|
current: 0,
|
|
swiperCurrent: 0,
|
|
swiperCurrent: 0,
|
|
pageNo: 1,
|
|
pageNo: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
list: [],
|
|
list: [],
|
|
total: 0,
|
|
total: 0,
|
|
- action:'swiperChange', // 操作类型,上划分页,或左右滑动
|
|
|
|
|
|
+ action: 'swiperChange', // 操作类型,上划分页,或左右滑动
|
|
sortField: 'create_time', // 全部 排序字段 默认按发起时间
|
|
sortField: 'create_time', // 全部 排序字段 默认按发起时间
|
|
sortOrder: 'desc', // 全部 排序字段 默认按发起时间降序
|
|
sortOrder: 'desc', // 全部 排序字段 默认按发起时间降序
|
|
- sortList: [ // 排序列表
|
|
|
|
|
|
+ sortList: [ // 排序列表
|
|
{
|
|
{
|
|
sortField: 'create_time',
|
|
sortField: 'create_time',
|
|
sortOrder: 'asc'
|
|
sortOrder: 'asc'
|
|
@@ -141,12 +141,12 @@
|
|
sortField: 'handle_time',
|
|
sortField: 'handle_time',
|
|
sortOrder: 'desc'
|
|
sortOrder: 'desc'
|
|
}
|
|
}
|
|
- ],
|
|
|
|
|
|
+ ],
|
|
sortIndex: 1, // 排序下标 默认按发起时间降序
|
|
sortIndex: 1, // 排序下标 默认按发起时间降序
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
- if(this.$hasPermissions("B_todoList_new_mobile")){
|
|
|
|
|
|
+ if (this.$hasPermissions("B_todoList_new_mobile")) {
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|
|
// 设置标题栏按钮
|
|
// 设置标题栏按钮
|
|
let currentWebview = this.$scope.$getAppWebview();
|
|
let currentWebview = this.$scope.$getAppWebview();
|
|
@@ -160,17 +160,17 @@
|
|
// #endif
|
|
// #endif
|
|
}
|
|
}
|
|
// 监听新增后刷新
|
|
// 监听新增后刷新
|
|
- uni.$on('refreshBL',this.refresh)
|
|
|
|
|
|
+ uni.$on('refreshBL', this.refresh)
|
|
// 监听待办处理后刷新
|
|
// 监听待办处理后刷新
|
|
- uni.$on('refreshBl-handle',this.handleRefresh)
|
|
|
|
- this.pageInit()
|
|
|
|
|
|
+ uni.$on('refreshBl-handle', this.handleRefresh)
|
|
|
|
+ this.pageInit()
|
|
},
|
|
},
|
|
onUnload() {
|
|
onUnload() {
|
|
- uni.$off('refreshBL',this.refresh)
|
|
|
|
- uni.$off('refreshBl-handle',this.handleRefresh)
|
|
|
|
|
|
+ uni.$off('refreshBL', this.refresh)
|
|
|
|
+ uni.$off('refreshBl-handle', this.handleRefresh)
|
|
},
|
|
},
|
|
- methods:{
|
|
|
|
- pageInit () {
|
|
|
|
|
|
+ methods: {
|
|
|
|
+ pageInit() {
|
|
this.sortIndex = 1
|
|
this.sortIndex = 1
|
|
this.searchParams = {}
|
|
this.searchParams = {}
|
|
this.pageNo = 1
|
|
this.pageNo = 1
|
|
@@ -183,7 +183,7 @@
|
|
tabsChange(index) {
|
|
tabsChange(index) {
|
|
this.swiperCurrent = index;
|
|
this.swiperCurrent = index;
|
|
},
|
|
},
|
|
- swiperChange(event){
|
|
|
|
|
|
+ swiperChange(event) {
|
|
this.action = 'swiperChange'
|
|
this.action = 'swiperChange'
|
|
this.status = 'loading'
|
|
this.status = 'loading'
|
|
},
|
|
},
|
|
@@ -197,9 +197,9 @@
|
|
animationfinish(e) {
|
|
animationfinish(e) {
|
|
let current = e.detail.current;
|
|
let current = e.detail.current;
|
|
let isCurtab = this.current == current
|
|
let isCurtab = this.current == current
|
|
- if(this.status!="nomore"){
|
|
|
|
|
|
+ if (this.status != "nomore") {
|
|
let loadData = this.action == 'swiperChange' ? !isCurtab : isCurtab;
|
|
let loadData = this.action == 'swiperChange' ? !isCurtab : isCurtab;
|
|
- if(loadData){
|
|
|
|
|
|
+ if (loadData) {
|
|
this.$refs.uTabs.setFinishCurrent(current);
|
|
this.$refs.uTabs.setFinishCurrent(current);
|
|
this.swiperCurrent = current;
|
|
this.swiperCurrent = current;
|
|
this.current = current;
|
|
this.current = current;
|
|
@@ -208,7 +208,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 全部 排序
|
|
// 全部 排序
|
|
- changeSort (type) {
|
|
|
|
|
|
+ changeSort(type) {
|
|
if (type === 'createTime') {
|
|
if (type === 'createTime') {
|
|
this.sortIndex = this.sortIndex === 1 ? 0 : 1
|
|
this.sortIndex = this.sortIndex === 1 ? 0 : 1
|
|
}
|
|
}
|
|
@@ -220,10 +220,10 @@
|
|
// scroll-view到底部加载更多
|
|
// scroll-view到底部加载更多
|
|
onreachBottom() {
|
|
onreachBottom() {
|
|
this.action = 'onreachBottom'
|
|
this.action = 'onreachBottom'
|
|
- if(this.list.length < this.total){
|
|
|
|
|
|
+ if (this.list.length < this.total) {
|
|
this.pageNo += 1
|
|
this.pageNo += 1
|
|
this.getRow()
|
|
this.getRow()
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: '已经到底了',
|
|
title: '已经到底了',
|
|
icon: 'none'
|
|
icon: 'none'
|
|
@@ -232,58 +232,58 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 查询列表
|
|
// 查询列表
|
|
- getRow (pageNo) {
|
|
|
|
- if (pageNo) {
|
|
|
|
- this.pageNo = pageNo
|
|
|
|
- }
|
|
|
|
- let params = {
|
|
|
|
- pageNo: this.pageNo,
|
|
|
|
- pageSize: this.pageSize,
|
|
|
|
- queryLabel: this.tabList[this.current].queryLabel, // tab分类
|
|
|
|
- }
|
|
|
|
- if (params.queryLabel == 'ALL') {
|
|
|
|
- // 排序字段 create_time 发起时间 handle_time 处理时间
|
|
|
|
- params.sortField = this.sortList[this.sortIndex].sortField
|
|
|
|
- // asc 升序 desc 降序
|
|
|
|
- params.sortOrder = this.sortList[this.sortIndex].sortOrder
|
|
|
|
- params.statusList = this.searchParams.status ? this.searchParams.status : [] // 状态(pending 待整改 check_pending待审核 finished 整改完成 expired 已过期)
|
|
|
|
- params.sourceTypeList = this.searchParams.sourceType ? this.searchParams.sourceType : [] // 问题来源(远程巡店 VIDEO_INSPECTION /现场巡店 SPOT_INSPECTION/点检 POINT_INSPECTION /手动创建 MANUAL)
|
|
|
|
- params.putUserName = this.searchParams.putUserName ? this.searchParams.putUserName : '' // 巡店人
|
|
|
|
- params.storeName = this.searchParams.storeName ? this.searchParams.storeName : '' // 门店名称
|
|
|
|
- params.beginDate = this.searchParams.beginDate ? this.searchParams.beginDate : '' // 发起开始时间
|
|
|
|
- params.endDate = this.searchParams.endDate ? this.searchParams.endDate : '' // 发起结束时间
|
|
|
|
- }
|
|
|
|
- this.status = "loading"
|
|
|
|
- getBackLogList(params).then(res => {
|
|
|
|
- if (res.status == 200) {
|
|
|
|
- if(this.pageNo>1){
|
|
|
|
- this.list = this.list.concat(res.data.list || [])
|
|
|
|
- }else{
|
|
|
|
- this.list = res.data.list || []
|
|
|
|
- }
|
|
|
|
- this.total = res.data.count || 0
|
|
|
|
- } else {
|
|
|
|
- this.list = []
|
|
|
|
- this.total = 0
|
|
|
|
- this.noDataText = res.message
|
|
|
|
|
|
+ getRow(pageNo) {
|
|
|
|
+ if (pageNo) {
|
|
|
|
+ this.pageNo = pageNo
|
|
|
|
+ }
|
|
|
|
+ let params = {
|
|
|
|
+ pageNo: this.pageNo,
|
|
|
|
+ pageSize: this.pageSize,
|
|
|
|
+ queryLabel: this.tabList[this.current].queryLabel, // tab分类
|
|
|
|
+ }
|
|
|
|
+ if (params.queryLabel == 'ALL') {
|
|
|
|
+ // 排序字段 create_time 发起时间 handle_time 处理时间
|
|
|
|
+ params.sortField = this.sortList[this.sortIndex].sortField
|
|
|
|
+ // asc 升序 desc 降序
|
|
|
|
+ params.sortOrder = this.sortList[this.sortIndex].sortOrder
|
|
|
|
+ params.statusList = this.searchParams.status ? this.searchParams.status : [] // 状态(pending 待整改 check_pending待审核 finished 整改完成 expired 已过期)
|
|
|
|
+ params.sourceTypeList = this.searchParams.sourceType ? this.searchParams.sourceType : [] // 问题来源(远程巡店 VIDEO_INSPECTION /现场巡店 SPOT_INSPECTION/点检 POINT_INSPECTION /手动创建 MANUAL)
|
|
|
|
+ params.putUserName = this.searchParams.putUserName ? this.searchParams.putUserName : '' // 巡店人
|
|
|
|
+ params.storeName = this.searchParams.storeName ? this.searchParams.storeName : '' // 门店名称
|
|
|
|
+ params.beginDate = this.searchParams.beginDate ? this.searchParams.beginDate : '' // 发起开始时间
|
|
|
|
+ params.endDate = this.searchParams.endDate ? this.searchParams.endDate : '' // 发起结束时间
|
|
}
|
|
}
|
|
- this.status = "loadmore"
|
|
|
|
- })
|
|
|
|
|
|
+ this.status = "loading"
|
|
|
|
+ getBackLogList(params).then(res => {
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
+ if (this.pageNo > 1) {
|
|
|
|
+ this.list = this.list.concat(res.data.list || [])
|
|
|
|
+ } else {
|
|
|
|
+ this.list = res.data.list || []
|
|
|
|
+ }
|
|
|
|
+ this.total = res.data.count || 0
|
|
|
|
+ } else {
|
|
|
|
+ this.list = []
|
|
|
|
+ this.total = 0
|
|
|
|
+ this.noDataText = res.message
|
|
|
|
+ }
|
|
|
|
+ this.status = "loadmore"
|
|
|
|
+ })
|
|
},
|
|
},
|
|
- resetPage(){
|
|
|
|
|
|
+ resetPage() {
|
|
this.status = 'loading';
|
|
this.status = 'loading';
|
|
// 上划分页
|
|
// 上划分页
|
|
- if(this.action == 'onreachBottom'){
|
|
|
|
|
|
+ if (this.action == 'onreachBottom') {
|
|
this.getRow();
|
|
this.getRow();
|
|
}
|
|
}
|
|
// 左右切换tab
|
|
// 左右切换tab
|
|
- if(this.action == 'swiperChange'){
|
|
|
|
|
|
+ if (this.action == 'swiperChange') {
|
|
this.list = [];
|
|
this.list = [];
|
|
this.getRow(1);
|
|
this.getRow(1);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 获取查询参数 刷新列表
|
|
// 获取查询参数 刷新列表
|
|
- refresh(params){
|
|
|
|
|
|
+ refresh(params) {
|
|
// console.log(params,'1111111111')
|
|
// console.log(params,'1111111111')
|
|
this.searchParams = params
|
|
this.searchParams = params
|
|
this.getRow(1)
|
|
this.getRow(1)
|
|
@@ -295,27 +295,27 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 详细页
|
|
// 详细页
|
|
- viewRow(item){
|
|
|
|
|
|
+ viewRow(item) {
|
|
if (!this.$hasPermissions('M_backlog_detail_mobile')) {
|
|
if (!this.$hasPermissions('M_backlog_detail_mobile')) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
// 已完成的
|
|
// 已完成的
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: "/pages/toDoList/backlogDetail?id="+item.id
|
|
|
|
|
|
+ url: "/pages/toDoList/backlogDetail?id=" + item.id
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 状态颜色处理
|
|
// 状态颜色处理
|
|
- clsStatus(status){
|
|
|
|
- if(status == '待审核'){
|
|
|
|
|
|
+ clsStatus(status) {
|
|
|
|
+ if (status == '待审核') {
|
|
return 'dsh'
|
|
return 'dsh'
|
|
}
|
|
}
|
|
- if(status == '待整改'){
|
|
|
|
|
|
+ if (status == '待整改') {
|
|
return 'dzg'
|
|
return 'dzg'
|
|
}
|
|
}
|
|
- if(status == '整改完成'){
|
|
|
|
|
|
+ if (status == '整改完成') {
|
|
return 'ywc'
|
|
return 'ywc'
|
|
}
|
|
}
|
|
- if(status == '已过期'){
|
|
|
|
|
|
+ if (status == '已过期') {
|
|
return 'ygq'
|
|
return 'ygq'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -323,34 +323,41 @@
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" >
|
|
|
|
- page{
|
|
|
|
|
|
+<style lang="scss">
|
|
|
|
+ page {
|
|
height: 100%;
|
|
height: 100%;
|
|
background: #F8F8F8;
|
|
background: #F8F8F8;
|
|
}
|
|
}
|
|
- .pagesCons{
|
|
|
|
|
|
+
|
|
|
|
+ .pagesCons {
|
|
height: 100%;
|
|
height: 100%;
|
|
background: #F8F8F8;
|
|
background: #F8F8F8;
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
|
+
|
|
.text-right {
|
|
.text-right {
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
- .tab-body{
|
|
|
|
|
|
+
|
|
|
|
+ .tab-body {
|
|
flex: 1;
|
|
flex: 1;
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
- .uTabs{
|
|
|
|
|
|
+
|
|
|
|
+ .uTabs {
|
|
border-bottom: 1px solid #EEEEEE;
|
|
border-bottom: 1px solid #EEEEEE;
|
|
box-shadow: 1px 1px 3px #eeeeee;
|
|
box-shadow: 1px 1px 3px #eeeeee;
|
|
}
|
|
}
|
|
- .check-list{
|
|
|
|
|
|
+
|
|
|
|
+ .check-list {
|
|
flex: 1;
|
|
flex: 1;
|
|
overflow-y: scroll;
|
|
overflow-y: scroll;
|
|
- .swiper-item{
|
|
|
|
|
|
+
|
|
|
|
+ .swiper-item {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
|
+
|
|
.scroll-view {
|
|
.scroll-view {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
@@ -358,51 +365,61 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
// 全部筛选
|
|
// 全部筛选
|
|
- .all-filter{
|
|
|
|
|
|
+ .all-filter {
|
|
width: 100%;
|
|
width: 100%;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: space-around;
|
|
justify-content: space-around;
|
|
box-shadow: 1px 1px 3px #EEEEEE;
|
|
box-shadow: 1px 1px 3px #EEEEEE;
|
|
- .filter-icon{
|
|
|
|
|
|
+
|
|
|
|
+ .filter-icon {
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
padding: 20upx;
|
|
padding: 20upx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
// 列表样式
|
|
// 列表样式
|
|
- .check-order-list{
|
|
|
|
|
|
+ .check-order-list {
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
padding: 10upx 20upx;
|
|
padding: 10upx 20upx;
|
|
margin: 25upx;
|
|
margin: 25upx;
|
|
border-radius: 6upx;
|
|
border-radius: 6upx;
|
|
box-shadow: 1px 1px 3px #EEEEEE;
|
|
box-shadow: 1px 1px 3px #EEEEEE;
|
|
- .check-row{
|
|
|
|
|
|
+
|
|
|
|
+ .check-row {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
padding: 20upx 10upx;
|
|
padding: 20upx 10upx;
|
|
font-size: 28upx;
|
|
font-size: 28upx;
|
|
- .icon-xian{
|
|
|
|
|
|
+
|
|
|
|
+ .icon-xian {
|
|
text-align: right;
|
|
text-align: right;
|
|
width: 40upx;
|
|
width: 40upx;
|
|
}
|
|
}
|
|
- &:first-child{
|
|
|
|
|
|
+
|
|
|
|
+ &:first-child {
|
|
border-bottom: 1px dashed #F8F8F8;
|
|
border-bottom: 1px dashed #F8F8F8;
|
|
- .createDate{
|
|
|
|
|
|
+
|
|
|
|
+ .createDate {
|
|
color: #666;
|
|
color: #666;
|
|
font-size: 26upx;
|
|
font-size: 26upx;
|
|
margin-left: 10upx;
|
|
margin-left: 10upx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- &:last-child{
|
|
|
|
|
|
+
|
|
|
|
+ &:last-child {
|
|
border-top: 1px dashed #F8F8F8;
|
|
border-top: 1px dashed #F8F8F8;
|
|
}
|
|
}
|
|
- > view{
|
|
|
|
- &:first-child{
|
|
|
|
|
|
+
|
|
|
|
+ >view {
|
|
|
|
+ &:first-child {
|
|
flex: 1;
|
|
flex: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
// 抄送标记
|
|
// 抄送标记
|
|
.mark {
|
|
.mark {
|
|
color: #00C1DE;
|
|
color: #00C1DE;
|
|
@@ -412,20 +429,25 @@
|
|
border-radius: 6upx;
|
|
border-radius: 6upx;
|
|
margin-right: 10upx;
|
|
margin-right: 10upx;
|
|
}
|
|
}
|
|
|
|
+
|
|
// 状态
|
|
// 状态
|
|
.status {
|
|
.status {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
width: 200upx;
|
|
width: 200upx;
|
|
}
|
|
}
|
|
- .dsh{
|
|
|
|
|
|
+
|
|
|
|
+ .dsh {
|
|
color: red;
|
|
color: red;
|
|
}
|
|
}
|
|
- .dzg{
|
|
|
|
|
|
+
|
|
|
|
+ .dzg {
|
|
color: #ff736e;
|
|
color: #ff736e;
|
|
}
|
|
}
|
|
|
|
+
|
|
.ygq {
|
|
.ygq {
|
|
color: #999;
|
|
color: #999;
|
|
}
|
|
}
|
|
|
|
+
|
|
.ywc {
|
|
.ywc {
|
|
color: #10c71e;
|
|
color: #10c71e;
|
|
}
|
|
}
|
|
@@ -433,6 +455,4 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
</style>
|
|
</style>
|