|
@@ -101,6 +101,7 @@ import { showDialog } from 'vant';
|
|
|
import { getPersonalTodoList } from '@/api/personal';
|
|
|
import { getMajorTodoList } from '@/api/major';
|
|
|
import { getAssetsTodoList } from '@/api/assets';
|
|
|
+import { checkHasBusinessHandle } from '@/api/workFlowNodeInstance';
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
@@ -276,16 +277,23 @@ export default {
|
|
|
case 'LETTER_OUT':
|
|
|
showDialog({
|
|
|
message: '当前节点需要业务操作, 请在电脑端处理节点',
|
|
|
- }).then(() => {
|
|
|
- // on close
|
|
|
});
|
|
|
break;
|
|
|
default:
|
|
|
- this.$router.push(
|
|
|
- `/index/personal/todoDetail?id=${row.businessId}¤tNodeCode=${row.nodeCode}&orderId=${row.orderId}&doWorkflow=${true}&isOnline=${row.isOnline}&handlerName=${
|
|
|
- row.handlerName
|
|
|
- }&nodeTime=${row.nodeCreated}`
|
|
|
- );
|
|
|
+ checkHasBusinessHandle(row.currentNodeId).then((res) => {
|
|
|
+ // 跳转钱判断节点是否需要业务操作
|
|
|
+ if (!res.data) {
|
|
|
+ this.$router.push(
|
|
|
+ `/index/personal/todoDetail?id=${row.businessId}¤tNodeCode=${row.nodeCode}&orderId=${row.orderId}&doWorkflow=${true}&isOnline=${row.isOnline}&handlerName=${
|
|
|
+ row.handlerName
|
|
|
+ }&nodeTime=${row.nodeCreated}`
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ showDialog({
|
|
|
+ message: '当前节点需要业务操作, 请在电脑端处理节点',
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
break;
|
|
|
}
|
|
|
},
|
|
@@ -317,31 +325,40 @@ export default {
|
|
|
});
|
|
|
break;
|
|
|
default:
|
|
|
- if (reportNo && statementNo) {
|
|
|
- this.$router.push(
|
|
|
- `/index/major/todoDetail?id=${row.businessId}&orderId=${row.orderId}&reportNo=${reportNo}&statementNo=${row.statementNo}&doWorkflow=${true}¤tNodeId=${
|
|
|
- row.currentNodeId
|
|
|
- }¤tNodeCode=${row.nodeCode}&taskCreated=${row.taskCreated}&projectName=${row.productionName == null ? row.orderName : row.productionName}&principal=${row.principal}`
|
|
|
- );
|
|
|
- } else if (!reportNo && statementNo) {
|
|
|
- this.$router.push(
|
|
|
- `/index/major/todoDetail?id=${row.businessId}&orderId=${row.orderId}&statementNo=${row.statementNo}&doWorkflow=${true}¤tNodeId=${row.currentNodeId}¤tNodeCode=${
|
|
|
- row.nodeCode
|
|
|
- }&taskCreated=${row.taskCreated}&projectName=${row.productionName == null ? row.orderName : row.productionName}&principal=${row.principal}`
|
|
|
- );
|
|
|
- } else if (reportNo && !statementNo) {
|
|
|
- this.$router.push(
|
|
|
- `/index/major/todoDetail?id=${row.businessId}&orderId=${row.orderId}&reportNo=${reportNo}&doWorkflow=${true}¤tNodeId=${row.currentNodeId}¤tNodeCode=${
|
|
|
- row.nodeCode
|
|
|
- }&taskCreated=${row.taskCreated}&projectName=${row.productionName == null ? row.orderName : row.productionName}&principal=${row.principal}`
|
|
|
- );
|
|
|
- } else {
|
|
|
- this.$router.push(
|
|
|
- `/index/major/todoDetail?id=${row.businessId}&orderId=${row.orderId}&doWorkflow=${true}¤tNodeId=${row.currentNodeId}¤tNodeCode=${row.nodeCode}&taskCreated=${
|
|
|
- row.taskCreated
|
|
|
- }&projectName=${row.productionName == null ? row.orderName : row.productionName}&principal=${row.principal}`
|
|
|
- );
|
|
|
- }
|
|
|
+ checkHasBusinessHandle(row.currentNodeId).then((res) => {
|
|
|
+ // 跳转钱判断节点是否需要业务操作
|
|
|
+ if (!res.data) {
|
|
|
+ if (reportNo && statementNo) {
|
|
|
+ this.$router.push(
|
|
|
+ `/index/major/todoDetail?id=${row.businessId}&orderId=${row.orderId}&reportNo=${reportNo}&statementNo=${row.statementNo}&doWorkflow=${true}¤tNodeId=${
|
|
|
+ row.currentNodeId
|
|
|
+ }¤tNodeCode=${row.nodeCode}&taskCreated=${row.taskCreated}&projectName=${row.productionName == null ? row.orderName : row.productionName}&principal=${row.principal}`
|
|
|
+ );
|
|
|
+ } else if (!reportNo && statementNo) {
|
|
|
+ this.$router.push(
|
|
|
+ `/index/major/todoDetail?id=${row.businessId}&orderId=${row.orderId}&statementNo=${row.statementNo}&doWorkflow=${true}¤tNodeId=${row.currentNodeId}¤tNodeCode=${
|
|
|
+ row.nodeCode
|
|
|
+ }&taskCreated=${row.taskCreated}&projectName=${row.productionName == null ? row.orderName : row.productionName}&principal=${row.principal}`
|
|
|
+ );
|
|
|
+ } else if (reportNo && !statementNo) {
|
|
|
+ this.$router.push(
|
|
|
+ `/index/major/todoDetail?id=${row.businessId}&orderId=${row.orderId}&reportNo=${reportNo}&doWorkflow=${true}¤tNodeId=${row.currentNodeId}¤tNodeCode=${
|
|
|
+ row.nodeCode
|
|
|
+ }&taskCreated=${row.taskCreated}&projectName=${row.productionName == null ? row.orderName : row.productionName}&principal=${row.principal}`
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ this.$router.push(
|
|
|
+ `/index/major/todoDetail?id=${row.businessId}&orderId=${row.orderId}&doWorkflow=${true}¤tNodeId=${row.currentNodeId}¤tNodeCode=${row.nodeCode}&taskCreated=${
|
|
|
+ row.taskCreated
|
|
|
+ }&projectName=${row.productionName == null ? row.orderName : row.productionName}&principal=${row.principal}`
|
|
|
+ );
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ showDialog({
|
|
|
+ message: '当前节点需要业务操作, 请在电脑端处理节点',
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
break;
|
|
|
}
|
|
|
},
|
|
@@ -363,29 +380,40 @@ export default {
|
|
|
});
|
|
|
break;
|
|
|
default:
|
|
|
- if (row.statementNo && row.reportNo) {
|
|
|
- this.$router.push(
|
|
|
- `/index/assets/todoDetail?assetsId=${row.assetsId}&statementNo=${row.statementNo}&reportNo=${row.reportNo}¤tNodeCode=${row.currentNodeCode}&handlerName=${
|
|
|
- row.handlerName
|
|
|
- }&projectName=${row.reportName || row.statementName || row.name}`
|
|
|
- );
|
|
|
- } else if (row.statementNo && !row.reportNo) {
|
|
|
- this.$router.push(
|
|
|
- `/index/assets/todoDetail?assetsId=${row.assetsId}&statementNo=${row.statementNo}¤tNodeCode=${row.currentNodeCode}&handlerName=${row.handlerName}&projectName=${
|
|
|
- row.reportName || row.statementName || row.name
|
|
|
- }`
|
|
|
- );
|
|
|
- } else if (!row.statementNo && row.reportNo) {
|
|
|
- this.$router.push(
|
|
|
- `/index/assets/todoDetail?assetsId=${row.assetsId}&reportNo=${row.reportNo}¤tNodeCode=${row.currentNodeCode}&handlerName=${row.handlerName}&projectName=${
|
|
|
- row.reportName || row.statementName || row.name
|
|
|
- }`
|
|
|
- );
|
|
|
- } else {
|
|
|
- this.$router.push(
|
|
|
- `/index/assets/todoDetail?assetsId=${row.assetsId}¤tNodeCode=${row.currentNodeCode}&handlerName=${row.handlerName}&projectName=${row.reportName || row.statementName || row.name}`
|
|
|
- );
|
|
|
- }
|
|
|
+ checkHasBusinessHandle(row.currentNodeId).then((res) => {
|
|
|
+ // 跳转钱判断节点是否需要业务操作
|
|
|
+ if (!res.data) {
|
|
|
+ if (row.statementNo && row.reportNo) {
|
|
|
+ this.$router.push(
|
|
|
+ `/index/assets/todoDetail?assetsId=${row.assetsId}&statementNo=${row.statementNo}&reportNo=${row.reportNo}¤tNodeCode=${row.currentNodeCode}&handlerName=${
|
|
|
+ row.handlerName
|
|
|
+ }&projectName=${row.reportName || row.statementName || row.name}`
|
|
|
+ );
|
|
|
+ } else if (row.statementNo && !row.reportNo) {
|
|
|
+ this.$router.push(
|
|
|
+ `/index/assets/todoDetail?assetsId=${row.assetsId}&statementNo=${row.statementNo}¤tNodeCode=${row.currentNodeCode}&handlerName=${row.handlerName}&projectName=${
|
|
|
+ row.reportName || row.statementName || row.name
|
|
|
+ }`
|
|
|
+ );
|
|
|
+ } else if (!row.statementNo && row.reportNo) {
|
|
|
+ this.$router.push(
|
|
|
+ `/index/assets/todoDetail?assetsId=${row.assetsId}&reportNo=${row.reportNo}¤tNodeCode=${row.currentNodeCode}&handlerName=${row.handlerName}&projectName=${
|
|
|
+ row.reportName || row.statementName || row.name
|
|
|
+ }`
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ this.$router.push(
|
|
|
+ `/index/assets/todoDetail?assetsId=${row.assetsId}¤tNodeCode=${row.currentNodeCode}&handlerName=${row.handlerName}&projectName=${
|
|
|
+ row.reportName || row.statementName || row.name
|
|
|
+ }`
|
|
|
+ );
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ showDialog({
|
|
|
+ message: '当前节点需要业务操作, 请在电脑端处理节点',
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
break;
|
|
|
}
|
|
|
},
|