123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832 |
- <template>
- <div class="process-mange-wrap">
- <!-- <el-card shadow="always" :body-style="{ padding: '20px' }"> -->
- <el-row>
- <el-col :xs="24" :md="8" :xl="8" class="col">
- <div class="statistic-wrap">
- <div class="discription">
- <span class="title">已完成</span>
- <span class="sub-title">已经完成的生产任务数</span>
- </div>
- <span class="data">{{ doneNum }}</span>
- </div>
- </el-col>
- <el-col :xs="24" :md="8" :xl="8" class="col">
- <div class="statistic-wrap">
- <div class="discription">
- <span class="title">进行中</span>
- <span class="sub-title">正在进行的生产任务数</span>
- </div>
- <span class="data">{{ doingNum }}</span>
- </div>
- </el-col>
- <!-- <el-col :xs="24" :md="8" :xl="8" class="col">
- <div class="statistic-wrap">
- <div class="discription">
- <span class="title">完成</span>
- <span class="sub-title">已经完成的管道</span>
- </div>
- <span class="data">0</span>
- </div>
- </el-col> -->
- </el-row>
- <!-- </el-card> -->
- <div class="main-area">
- <div class="show-header">
- <h3 class="header">流程列表</h3>
- <div class="search-list">
- <div class="search-tab">
- <el-radio-group v-model="taskType" v-show="false">
- <el-radio-button :label="1">我的处理</el-radio-button>
- <el-radio-button :label="2">其他处理</el-radio-button>
- </el-radio-group>
- <el-radio-group
- class="btn-list-two"
- v-model="queryParams.taskProcessState"
- @change="getList"
- >
- <el-radio-button label="3">已完成</el-radio-button>
- <el-radio-button label="0">进行中</el-radio-button>
- <!-- <el-radio-button label="">所有</el-radio-button> -->
- </el-radio-group>
- </div>
- <div class="search-input">
- <el-input
- placeholder="请输入..."
- v-model="queryString"
- @keyup.enter.native="getList"
- >
- <el-button
- slot="append"
- icon="el-icon-search"
- @click="getList"
- ></el-button>
- </el-input>
- </div>
- </div>
- </div>
- <div class="show-body">
- <!-- 流程任务列表 -->
- <el-table :data="tableData" v-loading="loading" border stripe>
- <el-table-column type="selection" width="55" align="center" />
- <el-table-column type="index" width="50" align="center" />
- <el-table-column
- v-for="col in newColumn"
- :prop="col.prop"
- :key="col.prop"
- :label="col.label"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="col.prop == 'benCreateTime'">{{
- scope.row.benCreateTime.replace("T", " ")
- }}</span>
- <span v-else-if="col.prop == 'bepTaskProcessType'">{{
- getDictLabel(scope.row.bepTaskProcessType, dict.type.bpm_type)
- }}</span>
- <span v-else-if="col.prop == 'benTaskNodeState'">{{
- scope.row.benTaskNodeState == "0" ? "未执行" : "已执行"
- }}</span>
- <span v-else-if="col.prop == 'bepTaskProcessState'">{{
- getDictLabel(
- scope.row.bepTaskProcessState,
- dict.type.task_process_state
- )
- }}</span>
- <span v-else>{{ scope.row[col.prop] }}</span>
- </template>
- </el-table-column>
- <el-table-column label="操作" align="center">
- <template slot-scope="scope">
- <div class="excute-wrap">
- <el-button
- type="warning"
- plain
- size="small"
- class="mr10 mb5"
- v-show="scope.row.bepTaskProcessState == '0'"
- @click="opneExecuteNode(scope.row)"
- >
- 运行
- </el-button>
- <!-- <el-dropdown>-->
- <!-- <el-button type="warning" plain size="small">-->
- <!-- 处理<i class="el-icon-arrow-down el-icon--right"></i>-->
- <!-- </el-button>-->
- <!-- <el-dropdown-menu slot="dropdown">-->
- <!-- <!– <el-dropdown-item>-->
- <!-- <el-button-->
- <!-- size="mini"-->
- <!-- type="text"-->
- <!-- icon="el-icon-edit"-->
- <!-- @click="excuteHandler(scope.row)"-->
- <!-- v-hasPermi="['system:user:edit']"-->
- <!-- >处理-->
- <!-- </el-button>-->
- <!-- </el-dropdown-item> –>-->
- <!-- <el-dropdown-item v-if="scope.row.exceptionScriptList && scope.row.exceptionScriptList.length">-->
- <!-- <el-dropdown size="mini">-->
- <!-- <el-button size="mini" type="text" icon="el-icon-d-arrow-right">触发异常</el-button>-->
- <!-- <el-dropdown-menu slot="dropdown">-->
- <!-- <el-dropdown-item-->
- <!-- v-for="item in scope.row.exceptionScriptList" :key="item.id">-->
- <!-- <el-button @click="exceptionTrigger(scope.row, item)" size="mini" type="text">{{ item.scriptName }}</el-button>-->
- <!-- </el-dropdown-item>-->
- <!-- </el-dropdown-menu>-->
- <!-- </el-dropdown>-->
- <!-- </el-dropdown-item>-->
- <!-- </el-dropdown-menu>-->
- <!-- </el-dropdown>-->
- </div>
- </template>
- </el-table-column>
- </el-table>
- <!-- 分页 -->
- <pagination
- v-show="total > 0"
- :total="total"
- :page.sync="queryParams.pageNum"
- :limit.sync="queryParams.pageSize"
- @pagination="getList"
- />
- </div>
- <div class="show-window">
- <!-- 运行节点弹窗 -->
- <el-dialog :title="nodeTitle" :visible.sync="open">
- <!-- <el-form label-width="100px" :model="commonData">
- <h1>这里会引入当前节点需要处理的表单</h1>
- </el-form> -->
- <!-- <k-form-build
- v-if="formType == 'dragForm'"
- class="formBuild"
- ref="addFromRef"
- :dynamicData="dynamicData"
- :defaultValue="defaultValue"
- :value="jsonData"
- /> -->
- <component
- :is="myForm"
- :formData="formData"
- :row="row"
- :timestamp="timestamp"
- ref="myFormRef"
- v-if="myForm"
- ></component>
- <!-- <Sorting ref="myFormRef" :formData="formData" :row="row"></Sorting> -->
- <!-- <NodeInStorage-->
- <!-- :formData="formData"-->
- <!-- :row="row"-->
- <!-- ></NodeInStorage>-->
- <span slot="footer" class="dialog-footer" style="margin-top: 60px">
- <el-button @click="closeExecuteNode">取消</el-button>
- <el-button type="primary" @click="executeNode">确认运行</el-button>
- </span>
- </el-dialog>
- </div>
- </div>
- </div>
- </template>
- <script>
- import {
- processList,
- runProcessNodeExecution,
- getProcessNodeFormTemplate,
- getProcessNodeFormInfoData,
- } from "@/api/bpmprocess/run/executeProcess";
- import { triggerExceptionNode } from "@/api/bpmprocess/process";
- import getNodeSequence from "@/utils/bpmn/getNodeSequence";
- import GY02 from "./dialogCompments/GongYi/GY02.vue";
- import ZL01 from "./dialogCompments/ZhiLiang/ZL1.vue";
- import { getForm } from "@/api/dragform/form";
- import DialogTemplate from "@/views/dialogTemplate/components/index.vue";
- // 弹窗表单组件
- import GY01 from "./dialogCompments/GongYi/GY01.vue";
- import GY03 from "./dialogCompments/GongYi/GY03.vue";
- import CG1 from "./dialogCompments/test-component/CaiGou/CG1.vue";
- import CG02 from "./dialogCompments/test-component/CaiGou/CG02.vue";
- import KC01 from "./dialogCompments/test-component/KuCun/KC1.vue";
- import KC02 from "./dialogCompments/test-component/KuCun/KC02.vue";
- import GY06 from "./dialogCompments/GongYi/GY06.vue";
- import KB01 from "./dialogCompments/KongBai/KB01.vue"; //空白提示组件
- import SC01 from "./dialogCompments/ShengChan/SC01.vue";
- import Loading from "./dialogCompments/Edu/Loading.vue";
- import Processing from "./dialogCompments/Edu/Processing.vue";
- import Assemble from "./dialogCompments/Edu/Assemble.vue";
- import Detection from "./dialogCompments/Edu/Detection.vue";
- import WareHousing from "./dialogCompments/Edu/WareHousing.vue";
- //Mec组件
- import AssignEmployees from "./dialogCompments/Mec/AssignEmployees.vue";
- import Notes from "./dialogCompments/Mec/Notes.vue";
- import Print from "./dialogCompments/Mec/Print.vue";
- import NodeShow from "./dialogCompments/Mec/NodeShow.vue";
- import RecordQuality from "./dialogCompments/Mec/RecordQuality.vue";
- import ProductionProcesses from "./dialogCompments/Mec/ProductionProcesses.vue";
- import PersonalDistribution from "./dialogCompments/Mec/PersonalDistribution.vue";
- import RecordSplitData from "./dialogCompments/Mec/RecordSplitData.vue";
- import EditFinishTime from "./dialogCompments/Mec/EditFinishTime.vue";
- import EditQualityCard from "./dialogCompments/Mec/EditQualityCard.vue";
- import FinishTask from "./dialogCompments/Mec/FinishTask.vue";
- import QualityControlCardSubCardProcessing from "./dialogCompments/Mec/QualityControlCardSubCardProcessing.vue";
- import ScrapDisposition from "./dialogCompments/Mec/ScrapDisposition.vue";
- import QRCode from "./dialogCompments/Mec/QRCode.vue";
- import Inspect from "./dialogCompments/GongYi/Inspect.vue";
- // 物理指标
- import PhysicalInspection from "./dialogCompments/GongYi/PhysicalInspection.vue";
- // 外观指标
- import AppearanceInspection from "./dialogCompments/GongYi/AppearanceInspection.vue";
- //
- import Sorting from "./dialogCompments/GongYi/Sorting.vue";
- import UpSilk from "./dialogCompments/GongYi/UpSilk.vue";
- //节点报工
- import NodeReport from "@/views/amichi/dialogCompments/NodeReport.vue";
- //节点报工
- import NodeInStorage from "@/views/amichi/dialogCompments/NodeInStorage.vue";
- export default {
- name: "processMange",
- props: [],
- components: {
- GY01,
- DialogTemplate,
- CG1,
- CG02,
- KC01,
- GY06,
- GY03,
- KC02,
- GY02,
- KB01,
- SC01,
- ZL01,
- NodeShow,
- AssignEmployees,
- Notes,
- Print,
- RecordQuality,
- ProductionProcesses,
- PersonalDistribution,
- RecordSplitData,
- EditFinishTime,
- EditQualityCard,
- FinishTask,
- QualityControlCardSubCardProcessing,
- ScrapDisposition,
- QRCode,
- Inspect,
- Loading,
- Processing,
- Assemble,
- Detection,
- WareHousing,
- PhysicalInspection,
- AppearanceInspection,
- Sorting, //分拣
- UpSilk, //上丝
- NodeReport,//节点报工
- NodeInStorage,//节点入库
- },
- dicts: ["bpm_type", "task_process_state"],
- data() {
- return {
- timestamp: new Date().getTime(),//时间戳
- doneNum: 0, //已完成数
- doingNum: 0, //进行中数
- row: {}, //当前操作行数据
- myForm: "", //自定义表单组件名
- // 节点弹窗title
- nodeTitle: "节点弹窗",
- open: false,
- // 节点弹窗对应的formData
- commonData: {},
- taskType: 1,
- queryString: "",
- taskStatus: "",
- tableData: [], //表格数据
- // 查询参数
- queryParams: {
- pageNum: 1,
- pageSize: 10,
- taskProcessState: "0",
- taskProcessType: 0,
- },
- total: 0,
- columns: [
- {
- prop: "bepTaskKey",
- label: "任务编号",
- },
- {
- prop: "bepTaskName",
- label: "任务名称",
- },
- // {
- // prop: "bepTaskProcessType",
- // label: "任务流程类型",
- // },
- {
- prop: "bepTaskProcessState",
- label: "任务流程状态",
- },
- {
- prop: "benTaskNodeName",
- label: "节点名称",
- },
- {
- prop: "benTaskNodeType",
- label: "节点类型",
- },
- {
- prop: "benTaskNodeState",
- label: "节点状态",
- },
- {
- prop: "benCreateBy",
- label: "创建人",
- },
- {
- prop: "benCreateTime",
- label: "创建时间",
- },
- ],
- formType: "", //表单类型 dragForm:拖拽表单 composeForm:工艺组合表单 designForm:定制表单
- // k-form-build 数据
- dynamicData: {},
- tableName: "",
- defaultValue: {},
- jsonData: {},
- // 拖拽数据
- taskInfo: {},
- groupKey: "",
- subCount: {},
- tableCount: {},
- subTableName: "",
- // 弹窗表单渲染数据
- formData: {},
- backExceptionTaskList: ["GY06"], //特殊回退表单组件列表
- loading: true,
- };
- },
- computed: {
- newColumn() {
- if (this.queryParams.taskProcessState == "3") {
- return [
- {
- prop: "bepTaskKey",
- label: "任务编号",
- },
- {
- prop: "bepTaskName",
- label: "任务名称",
- },
- // {
- // prop: "bepTaskProcessType",
- // label: "任务流程类型",
- // },
- {
- prop: "bepTaskProcessState",
- label: "任务流程状态",
- },
- {
- prop: "benCreateBy",
- label: "创建人",
- },
- {
- prop: "benCreateTime",
- label: "创建时间",
- },
- ];
- } else {
- return this.columns;
- }
- },
- },
- mounted() {
- this.getList();
- this.getDoneNumber();
- this.getDoingNumber();
- },
- methods: {
- // 获取列表数据
- getList() {
- this.loading = true;
- processList({ ...this.queryParams, taskName: this.queryString })
- .then((res) => {
- if (res.code == 200) {
- this.tableData = res.rows.map((item) => item.resultMap);
- this.total = res.total;
- console.log(this.tableData);
- } else {
- this.$message.error("网络异常,请稍后再试");
- }
- this.loading = false;
- })
- .finally((e) => {
- console.log(e);
- this.loading = false;
- });
- },
- getDoneNumber() {
- let params = {
- pageNum: 1,
- pageSize: 10,
- taskProcessState: "3",
- taskProcessType: 0,
- };
- processList(params)
- .then((res) => {
- if (res.code == 200) {
- this.doneNum = res.total;
- } else {
- this.$message.error("网络异常,请稍后再试");
- }
- })
- .finally((e) => {
- console.log(e);
- this.loading = false;
- });
- },
- getDoingNumber() {
- let params = {
- pageNum: 1,
- pageSize: 10,
- taskProcessState: "0",
- taskProcessType: 0,
- };
- processList(params)
- .then((res) => {
- if (res.code == 200) {
- this.doingNum = res.total;
- } else {
- this.$message.error("网络异常,请稍后再试");
- }
- })
- .finally((e) => {
- console.log(e);
- this.loading = false;
- });
- },
- // 获取表单数据
- async getFormData() {
- let formData = {};
- // switch (this.formType) {
- // case "dragForm":
- // try {
- // formData = await this.$refs.addFromRef.getData();
- // } catch (error) {
- // console.log(error);
- // this.$message.error("表单校验异常,请稍后重试");
- // return {};
- // }
- // break;
- // case "designForm":
- // let temp = await this.$refs.myFormRef.getFormData();
- // if (!temp.flag) {
- // this.$message.error(temp.msg);
- // return {};
- // } else {
- // formData = temp.data;
- // }
- // break;
- // default:
- // break;
- // }
- let temp = await this.$refs.myFormRef?.getFormData();
- console.log("temp", temp);
- if (!temp?.flag) {
- if (!temp) {
- //没有表单
- // formData.flag = true;
- } else {
- //表单数据不合法
- this.$message.error(temp.msg);
- return false;
- }
- } else {
- formData = temp.data;
- }
- return formData;
- },
- // 重置弹窗数据
- resetDialogForm() {
- this.formType = ""; //表单类型 dragForm:拖拽表单 composeForm:工艺组合表单 designForm:定制表单
- // k-form-build 数据
- this.dynamicData = {};
- this.defaultValue = {};
- this.jsonData = {};
- },
- // 打开运行节点弹窗
- async opneExecuteNode(row) {
- this.timestamp = new Date().getTime();//更新时间戳
- this.resetDialogForm();
- console.log(row);
- this.nodeTitle = row.benTaskNodeName;
- // let preFix = row.benTaskNodeName.split("-")[0];
- let preFix = row.benTaskNodeFormKey;
- let {
- benTaskNodeFormKey,
- benTaskNodeFormType,
- bepTaskPlanKey,
- bepTaskKey,
- bepTaskNodeKey,
- benTaskProcessKey,
- benmTaskAutomaticScriptTriggerType,
- bepTaskNodeNextKey,
- } = row;
- // 新的运行逻辑
- let payLoad = {
- taskNodeKey: bepTaskNodeNextKey,
- taskProcessKey: benTaskProcessKey,
- taskAutomaticScriptTriggerType: benmTaskAutomaticScriptTriggerType,
- taskPlanKey: bepTaskPlanKey,
- };
- // let formData = await getProcessNodeFormTemplate(payLoad);
- // console.log(formData);
- // if (benTaskNodeFormKey) {
- // if (benTaskNodeFormType == "dragForm") {
- // let templateInfo = formData.data[0]?.template;
- // //拖拽表单
- // this.formType = "dragForm";
- // this.jsonData = JSON.parse(templateInfo.dfVueTemplate);
- // this.tableName = templateInfo.dfTableName;
- // if (Object.keys(JSON.parse(templateInfo.dfFormSql)).length) {
- // this.dynamicData = JSON.parse(templateInfo.dfFormSql);
- // }
- // // await this.getDragFormInfo(benTaskNodeFormKey);
- // } else if (benTaskNodeFormType == "composeForm") {
- // //工艺组合表单
- // this.formType = "composeForm";
- // this.groupKey = benTaskNodeFormKey;
- // let queryPayload = {
- // row,
- // groupKey: benTaskNodeFormKey,
- // };
- // this.$nextTick(() => {
- // this.$refs.dialogRef.getLists(queryPayload);
- // });
- // }
- // } else if (preFix) {
- // //定制表单
- // this.formType = "designForm";
- // this.myForm = preFix;
- // }
- //定制表单
- this.formType = "designForm";
- this.myForm = preFix;
- let res = await getProcessNodeFormInfoData(payLoad);
- if (res.code == 200) {
- this.formData = res.data;
- } else {
- this.$message.error("网络异常,请稍后再试");
- }
- this.row = row; //记录当前行数据
- // if (!this.formType) return; //没有表单,直接掉运行逻辑
- this.open = true; // 打开弹窗
- this.$nextTick(() => {
- // this.$refs.myFormRef?.resetForm();
- });
- // 根据当前节点绑定的表单信息查询对应的表单进行展示
- },
- // 运行节点按钮 确认运行回调
- async executeNode() {
- let { benTaskNodeKey, bepTaskProcessXmlContent, implementationName } =
- this.row;
- let { nodeId, nextNodeId } = this.getNextNodeKey(
- benTaskNodeKey,
- bepTaskProcessXmlContent
- );
- // 只有完成状态的可以运行
- if (this.formType == "composeForm") {
- let res = this.$refs.dialogRef.getComposeFormData();
- if (!res.isSuccess) {
- this.$message.warning("非完成状态节点不能运行!");
- return;
- }
- }
- // return;
- let formData = await this.getFormData();
- if (!formData) return;
- formData.taskPlanKey = this.row.bepTaskPlanKey;
- let payLoad = {
- taskProcessKey: this.row.bepTaskKey, //当前任务流程编码
- taskNodeKey: nodeId, //当前执行节点唯一编码
- nextNodeKey: nextNodeId, //下一节点编码
- implementationName: this.row.benmTaskAutomaticScriptTriggerType, //当前节点绑定的脚本名
- // taskProcessXmlContent: this.row.bepTaskProcessXmlContent, //当前流程xml
- tableName: this.tableName,
- formDataMapString: JSON.stringify(formData), //自定义表单组件收集的表单数据
- taskNodeType: this.backExceptionTaskList.includes(
- this.row.benTaskNodeFormKey
- )
- ? "backExceptionTask"
- : this.row.benTaskNodeType,
- };
- let fileXML = new File(
- [this.row.bepTaskProcessXmlContent],
- this.row.bepTaskKey + ".bpmn",
- {
- type: "text/bpmn",
- }
- );
- const subformData = new FormData();
- subformData.append("fileXML", fileXML);
- for (let key in payLoad) {
- subformData.append(key, payLoad[key] == null ? "" : payLoad[key]);
- }
- runProcessNodeExecution(subformData).then((res) => {
- if (res.code == 200) {
- this.$message.success("运行成功!");
- this.getList();
- this.getDoneNumber();
- this.getDoingNumber();
- this.open = false;
- }
- });
- },
- // 获取拖拽表单数据
- async getDragFormInfo(fid) {
- try {
- let res = await getForm(fid);
- console.log(res);
- if (res.code == 200) {
- this.jsonData = JSON.parse(res.data.dfVueTemplate);
- this.tableName = res.data.dfTableName;
- if (res.data.dfFormSql) {
- this.dynamicData = JSON.parse(res.data.dfFormSql);
- console.log(this.dynamicData);
- }
- } else {
- console.log(res);
- throw new Error(res);
- }
- } catch (error) {
- console.log(error);
- this.$message.error("网络异常,请稍后再试");
- }
- },
- // 关闭运行节点弹窗
- closeExecuteNode(row) {
- this.open = false;
- },
- // 获取下一个节点的nodekey
- getNextNodeKey(nodeKey, xmlStr) {
- let xmlObj = this.xmlStr2XmlObj(xmlStr);
- let nodeSequence = getNodeSequence(xmlObj);
- return nodeSequence.find((item) => item.nodeId == nodeKey) || {};
- },
- // xml字符串转xml对象
- xmlStr2XmlObj(xmlStr) {
- var xmlObj = {};
- if (document.all) {
- var xmlDom = new ActiveXObject("Microsoft.XMLDOM");
- xmlDom.loadXML(xmlStr);
- xmlObj = xmlDom;
- } else {
- xmlObj = new DOMParser().parseFromString(xmlStr, "text/xml");
- }
- return xmlObj;
- },
- // 触发异常回调
- exceptionTrigger(row, scriptData) {
- // console.log(taskNodeType);
- let _this = this;
- this.$modal
- .confirm("是否确认触发<" + scriptData.scriptName + ">异常?")
- .then(function (val) {
- console.log(val);
- // 发送触发异常节点的请求
- let payLoad = {
- taskProcessKey: row.bepTaskKey,
- taskNodeKey: row.benTaskNodeKey,
- sysBpmNodeScriptVO: scriptData,
- taskNodeType: row.benTaskNodeType,
- };
- // 异常节点抛异常 需要下一个节点key
- if (row.benTaskNodeType == "exceptionTask") {
- let { nodeId, nextNodeId } = _this.getNextNodeKey(
- row.benTaskNodeKey,
- row.bepTaskProcessXmlContent
- );
- payLoad.taskNextNodeKey = nextNodeId;
- }
- triggerExceptionNode(payLoad).then((res) => {
- console.log(res);
- if (res.code == 200) {
- _this.$message.success("触发成功");
- _this.open = false;
- _this.getList();
- } else {
- _this.$message.error("触发失败请稍后再试");
- }
- });
- })
- .catch((err) => {
- console.log(err);
- _this.open = false;
- _this.$message.info("取消成功");
- });
- },
- // 获取字典对应label
- getDictLabel(value, dictLsit = []) {
- return dictLsit.find((item) => {
- return item.value == value;
- })?.label;
- },
- },
- };
- </script>
- <style scoped lang="scss">
- .process-mange-wrap {
- background-color: #f2f3f8;
- padding: 20px;
- .col {
- background-color: #fff;
- border-right: 1px solid #ebedf2;
- /* margin-right: 3px; */
- .statistic-wrap {
- /* // height: 70px; */
- box-sizing: border-box;
- display: flex;
- align-items: center;
- padding: 10px 17px;
- justify-content: space-between;
- .discription {
- display: flex;
- flex-direction: column;
- .title {
- line-height: 20px;
- font-size: 18px;
- font-weight: 700;
- margin-bottom: 5px;
- }
- .sub-title {
- font-size: 14px;
- }
- }
- .data {
- font-size: 20px;
- font-weight: 700;
- }
- }
- }
- .main-area {
- margin-top: 30px;
- box-shadow: 0 1px 15px 1px rgb(69 65 78 / 8%);
- background-color: #fff;
- .show-header {
- border-bottom: 1px solid #ebedf2;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0px 20px 0px 20px;
- height: 70px;
- /* .header {
- } */
- .search-list {
- display: flex;
- .search-tab {
- margin-right: 20px;
- .btn-list-two {
- margin-left: 10px;
- }
- }
- }
- }
- .show-body {
- padding: 25px;
- }
- }
- }
- </style>
|