123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143 |
- <template>
- <div class="container">
- <div class="titbox">
- <div class="titbox-flex">
- <eltabs :tabList="tabList" @status="clickTabs"></eltabs>
- <el-button type="primary" @click="newMake()" style="width: 150px; height: 40px; margin: 10px 15px 0 0"
- v-if="editstatus">+新建</el-button>
- </div>
- <tableList :list="Table" ref="TableList" @clickDemand="clickDemand" @changeNum="changeNum"></tableList>
- <el-dialog :title="dialogTitle + '工单'" :visible.sync="dialogVisible" v-if="dialogVisible"
- :before-close="handleClose" width="100%" height="500vh" class="dialogClass" top="0" :modal="false"
- :modal-append-to-body="true">
- <span class="dialog-body">
- <div class="flex-title">备份需求及变更</div>
- <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
- <!--dialogVisible1 = true -->
- <el-form-item style="position: fixed; top: 70px; left: -60px; z-index: 1000">
- <el-button type="primary" @click="newFormgong" v-if="baocun">保存</el-button>
- <el-button type="primary" v-if="deal" @click="dealwith()">处理</el-button>
- <el-button type="primary" @click="close()">关闭</el-button>
- <!-- <el-button type="primary" @click="submitForm()" v-if = "baocun">保存</el-button> -->
- </el-form-item>
- <div class="flex-header">
- <el-form-item label="文件标题" prop="needName" style="width: 33%">
- <el-input v-model="ruleForm.needName" :disabled="isdisabled"></el-input>
- </el-form-item>
- <el-form-item label="发起人" prop="proposer" style="width: 33%">
- <el-input v-model="ruleForm.proposer" disabled></el-input>
- </el-form-item>
- <el-form-item label="工单号" prop="workOrderNo" style="width: 33%">
- <el-input v-model="ruleForm.workOrderNo" disabled></el-input>
- </el-form-item>
- </div>
- <div class="flex-header">
- <el-form-item label="申请类型" style="width: 33%;" prop="proposerType">
- <el-select v-model="ruleForm.proposerType" placeholder="请选择" @change="changeSelect"
- :disabled="isdisabled">
- <el-option label="新增" value="新增"></el-option>
- <el-option label="修改" value="修改"></el-option>
- <el-option label="删除" value="删除"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="发起时间" prop="proposerTime" style="width: 33%">
- <el-input v-model="ruleForm.proposerTime" disabled></el-input>
- </el-form-item>
- </div>
- <!-- @change="changeDeptValue" -->
- <div class="flex-header-input">
- <el-form-item label="申请需求描述:" label-width="110px" prop="proposerContent" style="width: 100%">
- <el-input type="textarea" :rows="2" v-model="ruleForm.proposerContent" id="input1"
- :disabled="isdisabled"></el-input>
- </el-form-item>
- </div>
- <!-- -->
- <div class="flex-header-upload flex-upload" style="display: flex; flex-direction: column">
- <el-form-item label="附件:" prop="mkFileShareAttachList" label-width="68px">
- <my-upload @uploadBack="uploadBack" @clickDownload="download" :disabled="updisabled" :fileInfo="fileInfo"
- :fileList="fileInfo.fileList" ref="myupload" style="width: 15% ; heigth: 120% !important">
- </my-upload>
- </el-form-item>
- </div>
- </el-form>
- <div class="table-title">
- <h2>流程追踪</h2>
- </div>
- <div class="flex-header-process">
- <!-- <tableList :list="processTable" ref="el-form" @clickDemand = "clickDemand"></tableList> -->
- <el-table :data="tableData" row-key="id" :header-cell-style="{ textAlign: 'center' }"
- :cell-style="{ textAlign: 'center' }" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
- style="width: 100%" max-height="350">
- <el-table-column type="index" label="序号" width="50">
- </el-table-column>
- <el-table-column prop="taskName" label="环节名称" width="280" class="is-center">
- </el-table-column>
- <el-table-column prop="assignee" label="处理人" width="280">
- </el-table-column>
- <el-table-column prop="startTime" label="到达时间" width="280">
- </el-table-column>
- <el-table-column prop="endTime" label="处理时间" width="280">
- </el-table-column>
- <el-table-column prop="content" label="回复意见" width="280">
- </el-table-column>
- </el-table>
- </div>
- </span>
- </el-dialog>
- </div>
- <div class="containtbox">
- <el-dialog title="处理操作" :visible.sync="dialogVisible1" v-if="dialogVisible1" :before-close="handleCloses"
- width="100%" height="100vh" class="dialogClass" top="0" :modal="false" :modal-append-to-body="true"
- :destroy-on-close="true">
- <!-- -->
- <!-- <Workflow :list="ruleForm" :requestForm="requestForm" @dialogVisible1 = "Visible1"/> -->
- <Workflow :list="ruleForm" @updateForm="updateForm" :requestForm="requestForm" :request_formTitle="request_form.title"/>
- <!-- @dialogVisible1 = "Visible1" -->
- <!-- <WorkflowEntrance
- :list="ruleForm"
- v-else
- :lastManList="lastManList"
-
- @beforeClose = "beforeClose"
- :requestForm="requestForm"
- /> -->
- <span slot="footer" class="dialog-footer">
- </span>
- </el-dialog>
- </div>
- </div>
- </template>
- <script>
- import eltabs from "../../../components/el-tabs";
- import tableList from "../../../components/el-form";
- import myUpload from "../../../components/uploadfour";
- import Workflow from "../../../components/workflowBase";
- // import Workflow from "../../../components/workflow";
- import WorkflowEntrance from "../../../components/workflowEntrance";
- import getConfig from '../../../config/dev.js'
- import {
- getTodoBase,
- getDoneBase,
- getInitiateBase,
- } from "../../../http/api.js";
- export default {
- components: {
- eltabs,
- tableList,
- myUpload,
- Workflow,
- WorkflowEntrance,
- },
- data() {
- return {
- editstatus: true,
- dialogVisible: false,
- deal: true,
- baocun: true,
- isdisabled: false,
- xiaohu: false,
- dialogVisible1: false,
- updisabled: false,
- xinzeng: true,
- shanchu: true,
- isWorkflowStatus: true, //默认展示模式组件,为true时展示多人处理组件
- childname: 'first',
- dialogTitle: "",
- page: "1",
- currentPage: "1", //当前页数
- pageSize: "10", //每页显示十条
- fileInfo: {
- type: "bt1n",
- typename: "上传文件",
- limit: 50,
- url: "/market/waf/uploadByMinio",
- fileList: [],
- },
- tableData: [],
- optionList: [],
- mkFileShareAttachList: [],
- requestForm: {
- // fresourceId: "4e2aaa61-b339-11ed-886f-d6cd97160e00",
- // fresourceId: "ed1f02d2-b33e-11ed-be6b-00505687dcd3",
- fresourceId: getConfig().backupRequire,
- processDefinitionKey: "BFXQ_process",
- taskId: "",
- },
- request_form: {
- userId: "",
- userName: "",
- path: this.$router.currentRoute.name,
- userCode: JSON.parse(window.sessionStorage.userInfo).loginNo,
- title: "",
- businessKey: "",
- processDefinitionKey: "BFXQ_process",
- },
- lastManList: [],
- fufujian: [],
- fuback: [],
- ruleForm: {
- // domains: [{
- // value: ''
- // }],
- // attId:[],
- // bsAccount: [],
- // bsAmount: [],
- // tzOutNo: [],
- // tzInNo: [],
- },
- tabList: [
- {
- index: "first",
- label: "我的待办",
- number: "",
- name: "prosss_key",
- },
- {
- index: "two",
- label: "我的已办",
- number: "",
- },
- {
- index: "three",
- label: "我发起的",
- number: "",
- },
- ],
- Table: {},
- firstTable: {
- name: "first",
- height: "500",
- titledata: [
- {
- label: "文件标题",
- prop: "need_name",
- width: 310,
- },
- {
- label: "发起人",
- prop: "proposer",
- width: 310,
- },
- {
- label: "发起时间",
- prop: "proposer_time",
- width: 310,
- },
- {
- label: "当前环节",
- prop: "taskName",
- width: 310,
- },
- ], //表格头
- data: [
- {
- label: "文件标题", // 操作名
- handleRow: (e, r, o) => {
- this.operationZuo(r);
- }
- }
- ], //内容数据
- loading: true,
- pageData: {
- total: 100, // 总条数
- pageSize: 10, // 每页数量
- pageNum: 1, // 页码
- },
- isSelection: false, // 表格有多选时设置
- isOperation: false, // 表格有操作列时设置
- isIndex: false, // 列表序号
- operation: {
- // 表格有操作列时设置
- label: "操作", // 列名
- width: "50", // 根据实际情况给宽度
- data: [],
- },
- },
- twoTable: {
- name: "two",
- titledata: [
- {
- label: "文件标题",
- prop: "need_name",
- width: 310,
- },
- {
- label: "发起人",
- prop: "proposer",
- width: 310,
- },
- {
- label: "发起时间",
- prop: "proposer_time",
- width: 310,
- },
- {
- label: "当前环节",
- prop: "taskName",
- width: 310,
- },
- ],
- data: [], //内容数据
- loading: true,
- pageData: {
- total: 100, // 总条数
- pageSize: 10, // 每页数量
- pageNum: 1, // 页码
- },
- isSelection: false,
- },
- threeTable: {
- name: "three",
- titledata: [
- {
- label: "文件标题",
- prop: "need_name",
- width: 250,
- },
- {
- label: "发起人",
- prop: "proposer",
- width: 250,
- },
- {
- label: "发起时间",
- prop: "proposer_time",
- width: 300,
- },
- {
- label: "当前环节",
- prop: "taskName",
- width: 250,
- },
- {
- label: "当前处理人",
- prop: "currentMan",
- width: 250,
- },
- ],
- data: [], //内容数据
- loading: true,
- pageData: {
- total: 100, // 总条数
- pageSize: 10, // 每页数量
- pageNum: 1, // 页码
- },
- isSelection: false,
- },
- rules: {
- needName: [{ required: true, message: "请输入文件标题", trigger: "blur" },],
- proposer: [{ required: true, message: "请输入发起人", trigger: "blur" }],
- workOrderNo: [{ required: true, message: "请输入文件流水号", trigger: "blur" }],
- proposerType: [{ required: true, message: "请选择申请类别", trigger: "change" }],
- dealMan: [{ required: true, message: "请选择处理部门接收人", trigger: "change" }],
- proposerTime: [{ required: true, message: "请输入拟稿时间", trigger: "blur" }],
- proposerContent: [{ required: true, message: "请输入申请内容", trigger: "blur" }],
- },
- };
- },
- watch: {
- "ruleForm.taskName1": {
- handler(e) {
- if (e != "发起备份申请") {
- this.disshan = true;
- this.disxin = true;
- } else {
- }
- }
- },
- },
- methods: {
- download(u) {
- // if (this.ruleForm.wfFileShareAttachList.length > 1) {
- this.$http({
- url: "/market/waf/downAllFileByMinio",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- responseType: "blob",
- data: { wfFileShareAttachList: this.fileInfo.fileList },
- }).then((response) => {
- if (window.navigator && window.navigator.msSaveOrOpenBlob) {
- let blob = new Blob([response.data], {
- type: "application/vnd.ms-excel",
- });
- window.navigator.msSaveOrOpenBlob(
- blob,
- new Date().getTime().toString() + ".zip"
- );
- } else {
- /* 火狐谷歌的文件下载方式 */
- var blob = new Blob([response.data]);
- var downloadElement = document.createElement("a");
- var href = window.URL.createObjectURL(blob);
- downloadElement.href = href;
- // downloadElement.download = this.ruleForm.fileName + ".zip";
- downloadElement.download = "附件.zip";
- document.body.appendChild(downloadElement);
- downloadElement.click();
- document.body.removeChild(downloadElement);
- window.URL.revokeObjectURL(href);
- }
- if (this.infolist.authType === "3") {
- this.dialogCli(10);
- }
- });
- },
- handleClose() {
- this.ruleForm = {};
- this.backlogTodo();
- this.haveDone();
- this.iniTiate();
- this.getneedNo();
- this.dialogVisible = false;
- this.tableData = [];
- this.fileInfo.fileList = [];
- },
- handleCloses() {
- this.treeList = [];
- this.textarea = "";
- this.dialogVisible1 = false;
- },
- clickTabs(name) {
- this.$refs.TableList.page = 1;
- this.childname = name;
- this.page = 1;
- this.baocun = false;
- if (name == "first") {
- this.Table = this.firstTable;
- this.backlogTodo();
- this.deal = true;
- this.baocun = false;
- this.editstatus = true;
- } else {
- this.editstatus = false;
- }
- if (name == "two") {
- this.Table = this.twoTable;
- this.haveDone();
- this.deal = false;
- this.baocun = false;
- }
- if (name == "three") {
- this.Table = this.threeTable;
- this.iniTiate();
- this.baocun = false;
- }
- },
- clickDemand(e, r) {
- if (e === "文件标题") {
- if (this.childname == "first") {
- if (r.taskName == "发起备份申请") {
- this.isdisabled = false;
- this.deal = true;
- this.baocun = true;
- this.shanchu = true;
- this.xinzeng = true;
- } else {
- this.isdisabled = true;
- this.deal = true;
- this.baocun = false;
- this.shanchu = false;
- this.xinzeng = false;
- }
- }
- if (this.childname == "two") {
- this.isdisabled = true;
- this.deal = false;
- this.baocun = false;
- this.shanchu = false;
- this.xinzeng = false;
- }
- if (this.childname == "three") {
- this.shanchu = false;
- this.xinzeng = false;
- this.isdisabled = true;
- if (r.taskName == "发起备份申请") {
- this.isdisabled = false;
- this.deal = true;
- this.baocun = true;
- } else {
- this.deal = false;
- this.baocun = false;
- }
- }
- this.operationZuo(r);
- this.clickForm(r);
- }
- },
- operationZuo(r) {
- let list = {}
- list.id = r.id,
- this.$http({
- url: "/market/BfxqProcess/query",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: list,
- }).then((res) => {
- this.dialogTitle = "查看";
- this.dialogVisible = true;
- this.ruleForm = res.data;
- this.ruleForm.taskId = r.taskId;
- this.ruleForm.resourceId = r.resourceId;
- this.ruleForm.createId = r.createId;
- this.ruleForm.taskName1 = r.taskName;
- this.fileInfo.fileList = res.data.mkFileShareAttachList;
- if (r.taskName == "发起备份申请") {
- this.ruleForm.tableName1 = "发起备份申请"
- } else {
- this.baocun = false;
- }
- if (r.taskName != "发起备份申请") {
- this.updisabled = true;
- } else {
- this.updisabled = false;
- }
- this.handleCloses();
- });
- },
- changeNum(val) {
- this.page = val;
- switch (this.childname) {
- case "first":
- this.backlogTodo();
- // this.iniTiate();
- break;
- case "two":
- this.haveDone();
- break;
- case "three":
- this.iniTiate();
- // this.Table = this.thirdTable;
- }
- },
- uploadBack(u) {
- this.attList = u;
- },
- close() {
- this.handleClose();
- },
- newMake() {
- this.dialogTitle = "新建";
- this.baocun = true;
- this.dialogVisible = true;
- // this.ruleForm = {}
- this.isdisabled = false;
- this.getUser();
- this.time();
- },
- getUser() {
- this.userInfo = JSON.parse(window.sessionStorage.userInfo);
- // this.ruleForm.docId = this.userInfo.loginNo;
- this.ruleForm.proposer = this.userInfo.loginName;
- },
- time() {
- // this.ruleForm.createTime = this.formatDateTime;
- this.ruleForm.proposerTime = this.$formatDate(new Date(), "YYYY-MM-DD");
- },
- changeSelect(e) { },
- newFormgong() {
- this.submitForm();
- },
- submitForm(formName) {
- this.$refs.ruleForm.validate((valid) => {
- if (valid) {
- this.$message.success("保存成功");
- this.getUserIds();
- // this.iniTiate();
- // this.newForm();
- // if(this.ruleForm.tableName1 == "发起备份申请" || this.ruleForm.id){
- // this.newUpdate();
- // }else{
- // this.newForm();
- // }
- } else {
- this.$message.error("请完善表单信息");
- return false;
- }
- });
- },
- newForm() {
- // for(let i = 0; i<this.fuback.length; i++){
- // this.ruleForm.attId.push(this.fuback[i].id);
- // }
- this.ruleForm.mkFileShareAttachList = this.attList;
- this.$http({
- url: "/market/BfxqProcess/add",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: this.ruleForm,
- }).then((res) => {
- this.ruleForm.id = res.data.body;
- this.request_form.businessKey = res.data.body;
- this.request_form.title = '[IT工作台]-' + '备份需求及变更-' + this.$refs.ruleForm.model.needName;
- this.clickHandle(this.ruleForm);
- if (res.data.body == null) {
- this.$message.error("请先点保存");
- }
- });
- },
- newUpdate() {
- // for(let i = 0; i<this.fuback.length; i++){
- // this.ruleForm.attId.push(this.fuback[i].id);
- // }
- if (this.attList == null) {
- this.ruleForm.mkFileShareAttachList = this.fileInfo.fileList
- } else {
- this.ruleForm.mkFileShareAttachList = this.attList;
- }
- this.request_form.title = '[IT工作台]-' + '备份需求及变更-' + this.$refs.ruleForm.model.needName;
- this.$http({
- url: "/market/BfxqProcess/update",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: this.ruleForm,
- }).then((res) => {
- });
- },
- //获取userID
- getUserIds() {
- let id = JSON.parse(window.sessionStorage.userInfo).loginNo
- this.$http({
- url: "/market//api/user/info/queryNodePers?params=" + id,
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {
- // params: JSON.parse(window.sessionStorage.userInfo).loginNo,
- },
- }).then((res) => {
- this.request_form.userName = res.data[0].children[0].loginNameStr;
- this.request_form.userId = res.data[0].children[0].loginNoStr;
- this.request_form.title = '[IT工作台]-' + '备份需求及变更-' + this.$refs.ruleForm.model.needName;
- if (this.ruleForm.tableName1 == "发起备份申请" || this.ruleForm.id) {
- this.newUpdate();
- } else {
- this.newForm();
- }
- });
- },
- async clickHandle(e) {
- let _this = this;
- let obj = {
- url: this.$url.formList.startWork, //开始工作流接口
- data: _this.request_form,
- status: "form",
- headers: {
- "Content-Type": "application/x-www-form-urlencoded",
- },
- };
- let res = await this.common.httpPost(obj, success);
- function success(data) {
- // _this.ruleForm.taskId = _this.ruleForm.taskId;
- // a = a
- // _this.taskId = data.data;
- _this.ruleForm.processId = data.data;
- let list = {
- id: e.id,
- // taskId:_this.formId,
- processId: data.data,
- tableName: _this.requestForm.processDefinitionKey,
- // resourceId: _this.nextPath.currentShape[0].resourceId,
- };
- _this.setUpdate(list);
- }
- },
- //更新工作流接口
- setUpdate(e) {
- this.$http({
- url: "/market/waf/updateBase",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: e,
- }).then((res) => {
- this.ruleForm.taskId = res.data.body[0].taskId;
- });
- },
- async clickForm(r) {
- let list = {
- processInstanceId: r.process_id,
- // taskId:e.taskId
- };
- let _this = this;
- let obj = {
- url: this.$url.formList.getCommentsByProcessId, //流程追踪接口
- data: list,
- headers: {
- "Content-Type": "application/json",
- },
- };
- let res = await this.common.httpPost(obj, success);
- function success(data) {
- _this.tableData = data.data.data;
- data.data.data.map((item) => {
- item.startTime = _this.$util.datetimeFormat(item.startTime);
- item.endTime = _this.$util.datetimeFormat(item.endTime);
- });
- // _this.getProcess(e, data.data);
- _this.tableData = data.data.data;
- }
- },
- // async clickForm(r) {
- // let list = {
- // processInstanceId: r.process_id,
- // // taskId:e.taskId
- // };
- // let _this = this;
- // let obj = {
- // url: this.$url.formList.getCommentsByProcessId, //流程追踪接口
- // data: list,
- // headers: {
- // "Content-Type": "application/json",
- // },
- // };
- // let res = await this.common.httpPost(obj, success);
- // function success(data) {
- // console.log('[ 接口返回值第一曾 ] >', data)
- // let list = [];
- // list = data.data.data;
- // // list.map((item,index) => {
- // // item.startTime = _this.$util.datetimeFormat(item.startTime);
- // // item.endTime = _this.$util.datetimeFormat(item.endTime);
- // // item.id = index + 1;
- // // if (item.traceList) {
- // // if (item.traceList.length > 0) {
- // // item.children = item.traceList;
- // // }
- // // }
- // // });
- // // console.log(list);
- // if (data.data.lastmandata.length != 0) {
- // data.data.lastmandata.map((item, index) => {
- // item.id = index + 22;
- // });
- // }
- // list.map((item, index) => {
- // item.startTime = _this.$util.datetimeFormat(item.startTime);
- // item.endTime = _this.$util.datetimeFormat(item.endTime);
- // item.id = index + 1;
- // item.children = [];
- // if (data.data.lastmandata.length != 0) {
- // let indexs = data.data.lastmandata.findIndex((items) => {
- // if (items.taskId == item.taskId) {
- // item.children.push(items);
- // }
- // });
- // }
- // console.log(item.children);
- // });
- // console.log(list);
- // // _this.lables.data = list;
- // _this.tableData = list;
- // // console.log("[ _this.lables.data ] >", _this.lables.data);
- // // _this.abc = true;
- // }
- // },
- //处理按钮,开始工作流接口
- dealwith() {
- if (this.ruleForm.id) {
- this.dialogVisible1 = true;
- } else {
- this.$message.error("请先点保存按钮");
- }
- },
- //需求编号
- getneedNo() {
- this.$http({
- url: "/market/BfxqProcess/getNeedNo",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- }).then((res) => {
- // this.ruleForm.applyNew = res.data;
- this.ruleForm.workOrderNo = res.data.body;
- });
- },
- getdealMan() {
- let id = "itcThird"
- this.$http({
- url: "/market//api/user/info/queryNodePers?params=" + id,
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- }).then((res) => {
- // this.optionList = res.data;
- for (let i = 0; i < res.data.length; i++) {
- for (let j = 0; j < res.data[i].children.length; j++) {
- this.optionList.push({
- name: res.data[i].children[j].label
- })
- }
- }
- });
- },
- backlogTodo() {
- let list = {
- tableName: this.requestForm.processDefinitionKey,
- };
- // getInitiateBase getTodoBase
- getTodoBase(this.page, "", list).then((res) => {
- this.firstTable.data = res.data.data;
- this.firstTable.pageData.total = res.data.totalRecord;
- // this.Table = this.firstTable;
- this.tabList[0].number = res.data.totalRecord;
- })
- },
- iniTiate() {
- let list = {
- tableName: this.requestForm.processDefinitionKey
- };
- getInitiateBase(this.page, "", list).then((res) => {
- this.threeTable.data = res.data.data;
- this.threeTable.pageData.total = res.data.totalRecord;
- this.tabList[2].number = res.data.totalRecord;
- })
- },
- //我的已办
- haveDone() {
- // let list = {}
- // list.tableName = this.requestForm.processDefinitionKey,
- // this.$http({
- // url: "/market/waf/queryDoneBase",
- // method: "post",
- // headers: {
- // "Content-Type": "application/json",
- // page: '{"pageNo":"' + this.totalPage + '","pageSize":"10"}',
- // },
- // data: list,
- // }).then((res) => {
- // this.tabList[1].number = res.data.totalRecord;
- // this.twoTable.data = res.data.data;
- // this.twoTable.pageData.total = res.data.totalRecord;
- // this.Table = this.twoTable;
- // });
- let list = {
- tableName: this.requestForm.processDefinitionKey
- }
- getDoneBase(this.page, "", list).then((res) => {
- this.twoTable.data = res.data.data;
- this.twoTable.pageData.total = res.data.totalRecord;
- this.tabList[1].number = res.data.totalRecord;
- })
- },
- updateForm() {
- this.handleClose();
- this.iniTiate();
- this.haveDone();
- this.handleCloses();
- },
- },
- mounted() {
- },
- created() {
- this.Table = this.firstTable;
- this.haveDone();
- this.iniTiate();
- this.backlogTodo();
- this.getneedNo();
- this.getdealMan();
- // this.getDept();
- },
- };
- </script>
- <style scoped lang="scss">
- .container {
- height: 650px;
- }
- .titbox {
- width: 100%;
- }
- .titbox-flex {
- width: 100%;
- height: 75px;
- display: flex;
- justify-content: space-between;
- border-bottom: 1px solid #e1e1e1;
- }
- ::v-deep .el-tabs__nav {
- margin: 12px 0 0 12px;
- }
- ::v-deep .el-tabs__nav-wrap::after {
- display: none;
- }
- ::v-deep .el-tabs__active-bar {
- display: none;
- }
- ::v-deep .el-tabs .is-active {
- color: #fff;
- background-color: #0583cd;
- }
- ::v-deep .el-tabs__item {
- padding: 0;
- margin-right: 20px;
- width: 166px;
- text-align: center;
- background-color: #d8eaf6;
- color: #000;
- height: 40px;
- box-sizing: border-box;
- line-height: 40px;
- display: inline-block;
- list-style: none;
- font-size: 14px;
- font-weight: 500;
- color: #303133;
- position: relative;
- }
- ::v-deep .el-form-item__content {
- display: flex;
- }
- // ::v-deep .el-input__inner{
- // width:162px;
- // }
- ::v-deep .container .el-upload-dragger {
- width: 192px !important;
- height: 116px !important;
- }
- .containtbox {
- ::v-deep .el-dialog.import-dialog {
- height: auto;
- max-height: 80vh;
- }
- }
- // ::v-deep .el-dialog {
- // height: auto;
- // max-height: 1500vh;
- // }
- .flex-title {
- width: 100%;
- height: 63px;
- margin-top: 10px;
- text-align: center;
- font-size: 24px;
- line-height: 60px;
- border-bottom: 1px solid #e1e1e1;
- font-weight: 700;
- }
- .flex-header {
- width: 100%;
- height: 63px;
- margin-top: 20px;
- display: flex;
- border-bottom: 1px solid #e1e1e1;
- span {
- margin: 10px 0 0 22px;
- }
- .el-input {
- width: 162px;
- }
- ::v-deep .el-input__inner {
- width: 162px;
- }
- }
- .flex-header-dongtai {
- margin-top: 20px;
- display: flex;
- // border-bottom: 1px solid #e1e1e1;
- span {
- margin: 10px 0 0 22px;
- }
- .el-input {
- width: 162px;
- }
- ::v-deep .el-input__inner {
- width: 162px;
- }
- }
- .flex-header-input {
- width: 100%;
- height: 63px;
- margin-top: 20px;
- display: flex;
- border-bottom: 1px solid #e1e1e1;
- ::v-deep .el-form-item {
- width: 100%;
- // margin-right: 5%;
- }
- .el-input {
- width: 100%;
- }
- }
- .flex-header-upload {
- width: 100%;
- height: 200px;
- margin-top: 20px;
- display: flex;
- border-bottom: 1px solid #e1e1e1;
- overflow: auto;
- span {
- margin: 10px 0 0 25px;
- }
- ::v-deep .el-form-item__content {
- line-height: 25px;
- }
- ::v-deep .container .el-upload {
- width: 200%;
- }
- // ::v-deep .el-form-item {
- // width: 150%;
- // }
- }
- .flex-upload {
- ::v-deep .el-form-item {
- width: 100%;
- }
- ::v-deep .container__el-upload {
- width: 200%;
- }
- }
- .table-title {
- width: 100%;
- height: 50px;
- line-height: 50px;
- background-color: rgb(243, 250, 255);
- // font-size: 18px;
- font-weight: 700;
- }
- .flex-header-process {
- width: 100%;
- // height: 242px;
- display: flex;
- }
- .flex-header-process .el-table .el-table__cell .is-center {
- text-align: center;
- }
- // .el-upload__tip{
- // }
- </style>
|