qa-prevention-xgf-app/pages/eight_assignments/view_info.vue

78 lines
2.2 KiB
Vue
Raw Normal View History

2024-07-05 18:01:23 +08:00
<template>
<view class="content">
2024-07-08 17:59:08 +08:00
<view class="card">
<u-divider text="基本信息" textPosition="left"></u-divider>
<u-cell-group>
<block v-for="(item,index) in form">
<u-cell v-if="item.TYPE === 0" :key="index" :title="item.ITEM" :value="item.ITEM_VALUE"></u-cell>
</block>
</u-cell-group>
<u-divider text="审批人员" textPosition="left"></u-divider>
<u-cell-group>
<block v-for="(item,index) in jobs">
2024-07-09 13:36:05 +08:00
<u-cell :key="index" :title="item.TYPE_DESCRIBE">
<template #label>
<view class="mt-10">
<view>部门{{item.DEPARTMENT_NAME}}</view>
<view>人员{{item.USER_NAME}}</view>
<view v-if="item.SIGN_PICTURE">
<u-image width="400rpx" height="200rpx" :src="$filePath + '/' +item.SIGN_PICTURE" mode="widthFix"/>
<view>审批意见{{item.APPROVAL_OPINIONS}}</view>
<view>审批意见{{item.APPROVAL_TIME}}</view>
</view>
</view>
</template>
</u-cell>
2024-07-08 17:59:08 +08:00
</block>
</u-cell-group>
<view class="mt-10">
<u-button type="primary" text="下一步" @click="$u.debounce(fnSubmit, 1000,true)"/>
</view>
</view>
2024-07-05 18:01:23 +08:00
</view>
</template>
<script>
import {getTaskInfo} from "@/api";
2024-07-08 17:59:08 +08:00
import {resolveNextOperation} from "@/utils/submitHomeworkProcess";
2024-07-05 18:01:23 +08:00
export default {
2024-07-08 17:59:08 +08:00
data() {
return {
taskId: '',
type: '',
jobId: '',
form: [],
jobs: []
}
},
2024-07-05 18:01:23 +08:00
onLoad(query) {
2024-07-08 17:59:08 +08:00
this.taskId = query.taskId
this.type = query.type
this.jobId = query.jobId
2024-07-05 18:01:23 +08:00
this.fnGetData(query.taskId)
uni.setNavigationBarTitle({
title: query.title + '查看'
})
},
methods: {
async fnGetData(taskId) {
let resData = await getTaskInfo({EW_RU_TASK_ID: taskId})
2024-07-08 17:59:08 +08:00
this.form = resData.list.form
2024-07-09 13:36:05 +08:00
this.jobs = resData.list.jobs
2024-07-08 17:59:08 +08:00
},
async fnSubmit() {
await resolveNextOperation({
EW_RU_TASK_ID: this.taskId,
TYPE: this.type,
EW_RU_JOB_ID: this.jobId,
})
2024-07-05 18:01:23 +08:00
}
},
}
</script>
<style scoped lang="scss">
</style>