|
|
|
@ -32,7 +32,12 @@ import { useKeydown } from '@/hooks/event/useKeydown'
|
|
|
|
|
import { useDataHeaderStore } from '@/store/modules/DataHeader'
|
|
|
|
|
import CheckingTaskModal from '@/views/home/content/modal/CheckingTaskModal.vue'
|
|
|
|
|
import { getCheckDuplicateStatus, getCheckDuplicateStatusx, getLastCheckNox, removeCheckDuplicate } from '@/api/home/main'
|
|
|
|
|
import TishiDialog from "@/views/home/aside/comp/modals/TiShi.vue"
|
|
|
|
|
|
|
|
|
|
const tishiref=ref()
|
|
|
|
|
const tishireftwo=ref()
|
|
|
|
|
const paramasreftwo=ref()
|
|
|
|
|
const paramasref=ref()
|
|
|
|
|
const batch = ref(false) // 批量审批状态
|
|
|
|
|
const selectItems = ref<any[]>([])
|
|
|
|
|
const message = useMessage()
|
|
|
|
@ -504,8 +509,10 @@ function handleApproveMainImage(items?: any) {
|
|
|
|
|
failCauseName: '',
|
|
|
|
|
flowTaskInfoList: list,
|
|
|
|
|
}
|
|
|
|
|
tishireftwo.value.showModalx()
|
|
|
|
|
passDialog.value = true
|
|
|
|
|
dialog.info({
|
|
|
|
|
paramasreftwo.value=param
|
|
|
|
|
/*dialog.info({
|
|
|
|
|
title: '确认提示',
|
|
|
|
|
content: '确认给该任务审批为【通过】吗?',
|
|
|
|
|
positiveText: '确定',
|
|
|
|
@ -527,7 +534,22 @@ function handleApproveMainImage(items?: any) {
|
|
|
|
|
onNegativeClick: () => {
|
|
|
|
|
passDialog.value = false
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
})*/
|
|
|
|
|
}
|
|
|
|
|
function tishioktwo(){
|
|
|
|
|
passDialog.value = false
|
|
|
|
|
audit(paramasreftwo).then(async (res) => {
|
|
|
|
|
const { code } = res
|
|
|
|
|
if (code === 'OK') {
|
|
|
|
|
message.info(res.message)
|
|
|
|
|
const packageid = workStore.getActiveId
|
|
|
|
|
taskDetailInfo.value = await getTaskDetailInfo(packageid)
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function approvalHandler(items?: any) {
|
|
|
|
|
let cloneItem: any
|
|
|
|
@ -567,8 +589,9 @@ function approvalHandler(items?: any) {
|
|
|
|
|
failCauseName: '',
|
|
|
|
|
flowTaskInfoList: list,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dialog.info({
|
|
|
|
|
tishiref.value.showModalx()
|
|
|
|
|
paramasref.value=param
|
|
|
|
|
/*dialog.info({
|
|
|
|
|
title: '确认提示',
|
|
|
|
|
content: '确认给该任务审批为【通过】吗?',
|
|
|
|
|
positiveText: '确定',
|
|
|
|
@ -577,9 +600,12 @@ function approvalHandler(items?: any) {
|
|
|
|
|
doAudit(param)
|
|
|
|
|
},
|
|
|
|
|
onNegativeClick: () => {},
|
|
|
|
|
})
|
|
|
|
|
})*/
|
|
|
|
|
}
|
|
|
|
|
function tishiok(){
|
|
|
|
|
doAudit(paramasref.value)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function doAudit(param: any) {
|
|
|
|
|
audit(param).then((res) => {
|
|
|
|
|
const { code } = res
|
|
|
|
@ -1036,6 +1062,8 @@ defineExpose({
|
|
|
|
|
@show="onRejectDialog"
|
|
|
|
|
@success="reloadDetailInfo"
|
|
|
|
|
/>
|
|
|
|
|
<TishiDialog ref="tishiref" :label="'确认给该任务审批为【通过】吗?'" @tishiok="tishiok"/>
|
|
|
|
|
<TishiDialog ref="tishireftwo" :label="'确认给该任务审批为【通过】吗?'" @tishiok="tishioktwo"/>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|