d0f9b24a by lxs

数据资产登记更新

1 parent 8e4f7bc0
......@@ -943,7 +943,7 @@ const passDialogInfo = ref({
footer: {
btns: [
{ type: "default", label: "取消", value: "cancel" },
{ type: "primary", label: "确定", value: "submit" },
{ type: "primary", label: "确定", value: "submit", loading: false },
],
},
});
......@@ -975,6 +975,7 @@ const passDialogBtnClick = (btn, info) => {
if (submitPromise.value) {
return;
}
passDialogInfo.value.footer.btns[1].loading = true;
let params = {
guid: detailInfo.value.approveVO.approveGuid,
flowType: detailInfo.value.approveVO.flowType,
......@@ -983,6 +984,7 @@ const passDialogBtnClick = (btn, info) => {
}
submitPromise.value = passFlowData(params, tenantGuid).then((res: any) => {
submitPromise.value = null;
passDialogInfo.value.footer.btns[1].loading = false;
if (res?.code == proxy.$passCode) {
if (res.data) {
ElMessage.success('审批成功');
......@@ -995,11 +997,14 @@ const passDialogBtnClick = (btn, info) => {
} else {
ElMessage.error(res.msg);
}
}).catch(() => {
passDialogInfo.value.footer.btns[1].loading = false;
});
} else if (detailType.value == 'qualityEvaluate') {
if (submitPromise.value) {
return;
}
passDialogInfo.value.footer.btns[1].loading = true;
submitPromise.value = qualityAllow({
bizGuid: detailInfo.value.guid,
flowType: detailInfo.value.approveVO.flowType,
......@@ -1017,6 +1022,7 @@ const passDialogBtnClick = (btn, info) => {
}) || [],
}, tenantGuid).then((res: any) => {
submitPromise.value = null;
passDialogInfo.value.footer.btns[1].loading = false;
if (res?.code == proxy.$passCode) {
if (res.data) {
ElMessage.success('审批成功');
......@@ -1034,6 +1040,7 @@ const passDialogBtnClick = (btn, info) => {
if (submitPromise.value) {
return;
}
passDialogInfo.value.footer.btns[1].loading = true;
submitPromise.value = costAssessAllow({
bizGuid: detailInfo.value.guid,
flowType: detailInfo.value.approveVO.flowType,
......@@ -1050,6 +1057,7 @@ const passDialogBtnClick = (btn, info) => {
}) || []
}, tenantGuid).then((res: any) => {
submitPromise.value = null;
passDialogInfo.value.footer.btns[1].loading = false;
if (res?.code == proxy.$passCode) {
if (res.data) {
ElMessage.success('审批成功');
......@@ -1067,6 +1075,7 @@ const passDialogBtnClick = (btn, info) => {
if (submitPromise.value) {
return;
}
passDialogInfo.value.footer.btns[1].loading = true;
submitPromise.value = updateCertificate({
guid: certificateGuid.value,
tenantGuid: userData.tenantGuid,
......@@ -1075,6 +1084,7 @@ const passDialogBtnClick = (btn, info) => {
documentFile: info.documentFile?.map(f => f.url) || []
}).then((res: any) => {
submitPromise.value = null;
passDialogInfo.value.footer.btns[1].loading = false;
if (res?.code == proxy.$passCode) {
ElMessage.success('该资产发证确认成功');
passDialogInfo.value.visible = false;
......@@ -1121,7 +1131,7 @@ const rejectDialogInfo = ref({
footer: {
btns: [
{ type: "default", label: "取消", value: "cancel" },
{ type: "primary", label: "确定", value: "submit", loading: true },
{ type: "primary", label: "确定", value: "submit", loading: false },
],
},
});
......
......@@ -417,7 +417,7 @@ const passDialogInfo = ref({
footer: {
btns: [
{ type: "default", label: "取消", value: "cancel" },
{ type: "primary", label: "确定", value: "submit" },
{ type: "primary", label: "确定", value: "submit", loading: false },
],
},
});
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!