|
|
|
@ -11,6 +11,7 @@ const emit = defineEmits<{
|
|
|
|
|
(e: "reject", params: any);
|
|
|
|
|
(e: "notPass", params: any);
|
|
|
|
|
}>();
|
|
|
|
|
const message = useMessage()
|
|
|
|
|
|
|
|
|
|
const dialog = useDialog();
|
|
|
|
|
|
|
|
|
@ -33,25 +34,35 @@ function showModal(id) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function getDetail(id) {
|
|
|
|
|
console.log('getDetail',id)
|
|
|
|
|
// const userInfo = storage.get(CURRENT_USER);
|
|
|
|
|
// const nodeType = userInfo.nodeType;
|
|
|
|
|
// id = "264626184091111068";
|
|
|
|
|
const res = await aiApprovaltools({ taskid: id });
|
|
|
|
|
if (res.code === "OK") {
|
|
|
|
|
state.detail = res.data;
|
|
|
|
|
show.value = true;
|
|
|
|
|
if(Number(res.data.similarComplete) > 0){
|
|
|
|
|
show.value = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const handleReject = async () => {
|
|
|
|
|
const res = await audit()
|
|
|
|
|
// const res = await setTF({
|
|
|
|
|
// taskchildpictureids: state.detail.taskIdList.join(","),
|
|
|
|
|
// packageid: state.packageid,
|
|
|
|
|
// iztrueorfalse: 0,
|
|
|
|
|
// });
|
|
|
|
|
// console.log(res, "handleReject");
|
|
|
|
|
const param = {
|
|
|
|
|
result: false,
|
|
|
|
|
comment: '',
|
|
|
|
|
disposeType: '',
|
|
|
|
|
disposeTypeId: '',
|
|
|
|
|
failCauseId: '',
|
|
|
|
|
failCauseName: '',
|
|
|
|
|
flowTaskInfoList: state.detail.flowTaskInfoList,
|
|
|
|
|
}
|
|
|
|
|
const res = await audit(param)
|
|
|
|
|
if(res.code == 'OK'){
|
|
|
|
|
message.success(res.message)
|
|
|
|
|
}else{
|
|
|
|
|
message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
closeModal();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
async function clearMark() {
|
|
|
|
@ -138,7 +149,7 @@ defineExpose({
|
|
|
|
|
</div>
|
|
|
|
|
<div class="time_box">
|
|
|
|
|
任务包生成时间:
|
|
|
|
|
{{ format(detail?.createtime || 0, "yyyy-MM-dd HH:mm:ss") }}
|
|
|
|
|
{{ format(detail?.createTime || 0, "yyyy-MM-dd HH:mm:ss") }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|