2024-07-09 13:36:05 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<u-list @scrolltolower="scrolltolower" v-if="list.length > 0">
|
|
|
|
|
<u-list-item v-for="(item, index) in list" :key="index">
|
|
|
|
|
<view class="flex-between main-title">
|
|
|
|
|
<text>申请人:{{ item.jobName }}</text>
|
|
|
|
|
</view>
|
2024-09-03 14:49:32 +08:00
|
|
|
|
<view class="flex-between main-title">
|
|
|
|
|
<text>身份:{{ item.taskName }}</text>
|
|
|
|
|
</view>
|
2024-07-09 13:36:05 +08:00
|
|
|
|
<view class="flex-between main-title">
|
|
|
|
|
<text>作业编号:{{ item.id }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="flex-between main-title">
|
|
|
|
|
<text>作业分公司:{{ item.corpName }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="flex-between main-title">
|
|
|
|
|
<text>申请时间:{{ item.createdTime }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="flex-between mt-10 subtitle">
|
|
|
|
|
<view></view>
|
|
|
|
|
<view class="flex-between">
|
2024-11-04 11:34:13 +08:00
|
|
|
|
<view class="flex-between">
|
|
|
|
|
<u-button type="primary" text="详情" size="mini" class="bth-mini"
|
|
|
|
|
@click="$u.route({
|
|
|
|
|
url: '/pages/eight_assignments/view_info',
|
|
|
|
|
params: {taskId:item.taskId,jobId:item.jobId,type,title,isView:'1'}
|
|
|
|
|
})"/>
|
|
|
|
|
</view>
|
2024-11-22 13:58:29 +08:00
|
|
|
|
<view class="flex-between quarantine">
|
2024-11-04 11:34:13 +08:00
|
|
|
|
<u-button type="primary" text="流程" size="mini" class="bth-mini"
|
|
|
|
|
@click="$u.route({
|
2024-07-09 13:36:05 +08:00
|
|
|
|
url: '/pages/eight_assignments/technological_process',
|
|
|
|
|
params: {taskId:item.taskId,type,title}
|
|
|
|
|
})"/>
|
2024-11-04 11:34:13 +08:00
|
|
|
|
</view>
|
2024-07-09 13:36:05 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-list-item>
|
|
|
|
|
</u-list>
|
|
|
|
|
<empty v-else></empty>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {getToDoTaskList} from "@/api";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
type: '',
|
|
|
|
|
title: '',
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
currentPage: 1,
|
|
|
|
|
totalPage: 0,
|
|
|
|
|
list: []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onLoad(query) {
|
|
|
|
|
this.type = query.type
|
|
|
|
|
this.title = query.title
|
|
|
|
|
uni.setNavigationBarTitle({
|
|
|
|
|
title: this.title + '已办'
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
this.resetList()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
async getData() {
|
|
|
|
|
let resData = await getToDoTaskList({
|
|
|
|
|
showCount: this.pageSize,
|
|
|
|
|
currentPage: this.currentPage,
|
|
|
|
|
TYPE: this.type,
|
|
|
|
|
vectors: '1'
|
|
|
|
|
});
|
|
|
|
|
this.list = [...this.list, ...resData.list.list];
|
|
|
|
|
this.totalPage = resData.list.totalPage;
|
|
|
|
|
},
|
|
|
|
|
resetList() {
|
|
|
|
|
this.pageSize = 10
|
|
|
|
|
this.currentPage = 1
|
|
|
|
|
this.list = []
|
|
|
|
|
this.getData()
|
|
|
|
|
},
|
|
|
|
|
scrolltolower() {
|
|
|
|
|
this.currentPage++;
|
|
|
|
|
if (this.totalPage >= this.currentPage) this.getData();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
2024-11-22 13:58:29 +08:00
|
|
|
|
.quarantine {
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
}
|
2024-07-09 13:36:05 +08:00
|
|
|
|
</style>
|