parent
e76bb4df08
commit
00e04c3ade
|
@ -0,0 +1,39 @@
|
|||
<template>
|
||||
<view class="fab_button" @click="$emit('click')">
|
||||
<block v-if="type === 'plus'">
|
||||
<u-icon name="plus" color="#fff" size="28rpx"></u-icon>
|
||||
</block>
|
||||
<block v-if="type === 'search'">
|
||||
<u-icon name="search" color="#fff" size="28rpx"></u-icon>
|
||||
</block>
|
||||
<block v-if="type === 'edit'">
|
||||
<u-icon name="edit-pen" color="#fff" size="28rpx"></u-icon>
|
||||
</block>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
type: {
|
||||
type: String,
|
||||
default: "plus",
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.fab_button {
|
||||
position: fixed;
|
||||
bottom: 200rpx;
|
||||
right: 30rpx;
|
||||
background-color: #3377ff;
|
||||
border-radius: 50%;
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
</style>
|
|
@ -26,13 +26,20 @@
|
|||
</view>
|
||||
<empty v-else></empty>
|
||||
</view>
|
||||
<app-fab-button v-if="isView !== '1'" type="plus" @click="fnScan" />
|
||||
<app-fab-up-button v-if="isView !== '1'" type="edit" @click="fnUpScan" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getHotWorkRecord, setTaskSign} from "../../../../api";
|
||||
import AppFabButton from "@/components/fab_button/index.vue";
|
||||
import AppFabUpButton from "@/components/fab_button/up_index.vue";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
AppFabButton,AppFabUpButton
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
|
@ -48,6 +55,7 @@ export default {
|
|||
this.EW_RU_TASK_ID = event.taskId
|
||||
this.EW_RU_JOB_ID = event.EW_RU_JOB_ID
|
||||
this.TYPE = event.TYPE
|
||||
this.isView = event.isView
|
||||
},
|
||||
onShow() {
|
||||
this.resetList()
|
||||
|
@ -104,6 +112,18 @@ export default {
|
|||
})
|
||||
}, 2000)
|
||||
},
|
||||
fnScan() {
|
||||
uni.$u.route({
|
||||
url: '/pages/eight_assignments/hot_work/delay_fire_monitoring/add',
|
||||
params: {taskId: this.EW_RU_TASK_ID, EW_RU_JOB_ID:this.EW_RU_JOB_ID,TYPE:this.TYPE}
|
||||
});
|
||||
},
|
||||
fnUpScan(){
|
||||
uni.$u.route({
|
||||
url: '/pages/eight_assignments/hot_work/delay_fire_monitoring/task_forward',
|
||||
params: {taskId: this.EW_RU_TASK_ID, EW_RU_JOB_ID:this.EW_RU_JOB_ID,TYPE:this.TYPE}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -72,7 +72,7 @@ export default {
|
|||
url: '/pages/employed_by/index'
|
||||
},
|
||||
{
|
||||
img: require('../../static/icon-apps/app_icons6.png'),
|
||||
img: require('../../static/icon-apps/app_icons7.png'),
|
||||
title: '高危作业',
|
||||
url: '/pages/eight_assignments/index'
|
||||
},
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 8.1 KiB |
|
@ -183,7 +183,7 @@ export const addFlowInfo = async ({form, list, taskId, EW_RU_JOB_ID, TYPE,CORP_I
|
|||
export const resolveNextOperation = async ({EW_RU_TASK_ID = '', CORP_ID = '', TYPE = '', EW_RU_JOB_ID = '',vernier = ''}, isLastStep = true) => {
|
||||
let stepNum = 0
|
||||
if (isLastStep) {
|
||||
const {info} = await getCurrentNextOperation({EW_RU_TASK_ID, EW_RU_JOB_ID, VERNIER: vernier})
|
||||
const {info} = await getCurrentNextOperation({EW_RU_TASK_ID, EW_RU_JOB_ID, VERNIER: vernier, REQUEST_SOURCE: '2'})
|
||||
// 选人
|
||||
if (info.chooseNextFlag === '1') {
|
||||
uni.navigateTo({
|
||||
|
|
Loading…
Reference in New Issue