demandHome.vue 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598
  1. <template>
  2. <div class="flex-box">
  3. <!-- 头部组件 -->
  4. <div :span="24" class="flex-header">
  5. <Tabs :tabList="tabList" @status="clickTabs">
  6. <!-- <UserIntegral slot="first" />
  7. <GrowthSystem slot="second" />
  8. <RuleConfiguration slot="third" /> -->
  9. </Tabs>
  10. <el-button
  11. type="primary"
  12. @click="clickNewTag"
  13. v-show="lable.name === 'first'"
  14. >+新建</el-button
  15. >
  16. </div>
  17. <div class="flex-count">
  18. <Table
  19. @clickDemand="clickDemand"
  20. :list="lable"
  21. ref="TableList"
  22. @num="getNum"
  23. @changeNum="changeNum"
  24. >
  25. <template v-slot:first>
  26. <Export
  27. :num="num"
  28. ref="export"
  29. :exportStatusList="exportStatus"
  30. @seachExportList="seachExportList"
  31. @export="batchExport"
  32. @clickApproval="clickApproval"
  33. ></Export>
  34. </template>
  35. <template v-slot:three>
  36. <Seach :list="filterData" @seachList="seachList"></Seach>
  37. </template>
  38. </Table>
  39. </div>
  40. <el-dialog
  41. :title="dialogTitle + '需求'"
  42. :visible.sync="dialogStatus"
  43. width="100%"
  44. :before-close="handleClose"
  45. :modal="false"
  46. v-if="dialogStatus"
  47. :destroy-on-close="true"
  48. >
  49. <!-- 后期维护 -->
  50. <div style="position: fixed; z-index: 10000" v-if="buttonStatus">
  51. <el-button type="primary" v-if="startStatus" @click="clickHandles"
  52. >处理</el-button
  53. >
  54. <el-button type="primary" v-if="closeStatus" @click="handleClose"
  55. >关闭</el-button
  56. >
  57. <el-button
  58. type="primary"
  59. v-if="forwardStatus"
  60. @click="clickReassignment"
  61. >转需求管理平台</el-button
  62. >
  63. <el-button type="primary" v-if="exportBtnStatus" @click="clickExport"
  64. >导出</el-button
  65. >
  66. <el-button type="primary" v-if="saveStatus" @click="clickSave"
  67. >保存</el-button
  68. >
  69. </div>
  70. <FormTable
  71. :list="fromList"
  72. :disabled="disabled"
  73. class="flex-form"
  74. ref="formTable"
  75. />
  76. <div>
  77. <div class="table-title">流程追踪</div>
  78. <Table :list="lables"></Table>
  79. </div>
  80. </el-dialog>
  81. <div v-if="destroy">
  82. <el-dialog
  83. title="处理操作"
  84. width="100%"
  85. :visible.sync="handleStatus"
  86. :before-close="handleCloses"
  87. :modal="false"
  88. v-if="handleStatus"
  89. :destroy-on-close="true"
  90. >
  91. <Workflow
  92. :list="fromList"
  93. @beforeClose="beforeClose"
  94. :requestForm="requestForm"
  95. />
  96. <!-- 后期维护 -->
  97. </el-dialog>
  98. </div>
  99. <!-- <el-dialog
  100. title="修改常用意见"
  101. :visible.sync="editStatus"
  102. width="100%"
  103. :before-close="editCloses"
  104. :modal="false"
  105. :destroy-on-close="true"
  106. >
  107. <div style="overflow-y: scroll; overflow-x: hidden; height: 240px">
  108. <div
  109. v-for="(item, index) in commonlyList"
  110. :key="index"
  111. ref="common"
  112. class="flex-common"
  113. >
  114. {{ item.dataName
  115. }}<i class="el-icon-circle-close" @click="deleStatus(item)"></i>
  116. </div>
  117. <div class="flex-common">
  118. <i class="el-icon-circle-plus-outline" @click="addStatus()"></i>
  119. </div>
  120. </div>
  121. </el-dialog> -->
  122. </div>
  123. </template>
  124. <script>
  125. import Workflow from "../../../../components/workflow";
  126. import FormTable from "../components/formTable.vue";
  127. import Seach from "../components/search.vue";
  128. import Export from "../components/export.vue";
  129. import Tabs from "../components/tabs.vue";
  130. import Table from "../components/form.vue";
  131. import deptTree from "../components/deptThree.vue";
  132. import Qs from "qs";
  133. export default {
  134. components: {
  135. Tabs,
  136. Table,
  137. Export,
  138. Seach,
  139. FormTable,
  140. deptTree,
  141. Workflow,
  142. },
  143. data() {
  144. return {
  145. buttonStatus: true,
  146. copyStatus: false,
  147. dialogTitle: "",
  148. disabled: false,
  149. destroy: false,
  150. //分页数据
  151. totalPage: "1", //默认第一页
  152. currentPage: "1", //当前页数
  153. pageSize: "10", //每页显示十条
  154. currentPageList: ["1", "2"],
  155. startStatus: true,
  156. closeStatus: true, //关闭按钮状态
  157. forwardStatus: false, //转需求管理平台状态
  158. exportBtnStatus: false, //导出按钮状态
  159. saveStatus: false, //保存按钮状态
  160. fromList: {}, //表单数据
  161. rejectStatus: true,
  162. taskId: "", //工单taskID
  163. treeUser: {},
  164. formId: "",
  165. fileId: "", //工作流开启Id
  166. request_form: {
  167. userId: "",
  168. userName: "",
  169. path: this.$router.currentRoute.name,
  170. userCode: JSON.parse(window.sessionStorage.userInfo).loginNo,
  171. // path:this.$roter.options.routers,
  172. // nextDealMan:'',
  173. title: "title",
  174. businessKey: "288",
  175. processDefinitionKey: "request_form_process",
  176. },
  177. requestForm: {
  178. // fresourceId: "0d94de8a-0281-11ed-a302-4ae7da54db39", // 本地环境
  179. fresourceId: "canvas", // 生产环境
  180. // fresourceId: "bf79721c-33f3-11ed-ba0b-00505687dcd3", //测试环境
  181. processDefinitionKey: "request_form_process",
  182. },
  183. treeList: [], //候选人列表
  184. treeCopyList: [], //抄送人列表
  185. editStatus: false,
  186. querryList: [], //已选人员名单
  187. commonlyList: [
  188. //常用意见列表页
  189. ],
  190. textarea: "未填写意见",
  191. num: 0,
  192. dialogStatus: false, //新建dialog显示
  193. handleStatus: false, //处理按钮状态
  194. tabList: [
  195. {
  196. index: "first",
  197. label: "我的待办",
  198. number: 1,
  199. name: "prosss_key",
  200. },
  201. {
  202. index: "two",
  203. label: "我的已办",
  204. number: 2,
  205. },
  206. {
  207. index: "three",
  208. label: "我发起的",
  209. number: 3,
  210. },
  211. {
  212. index: "four",
  213. label: "待阅",
  214. number: 4,
  215. },
  216. {
  217. index: "five",
  218. label: "已阅",
  219. number: 5,
  220. },
  221. ],
  222. filterData: {
  223. timeSelect: false, //是否显示日期控件
  224. sreach: true,
  225. restet: false,
  226. elinput: [
  227. {
  228. name: "需求名称", //提示语275
  229. key: "needName", //字段名
  230. width: 275, //宽度
  231. },
  232. ],
  233. elselect: [
  234. {
  235. name: "状态",
  236. key: "taskName",
  237. width: 300,
  238. option: [
  239. {
  240. key: 1,
  241. value: "起草",
  242. },
  243. {
  244. key: 2,
  245. value: "部门人员审核",
  246. },
  247. {
  248. key: 3,
  249. value: "部门领导审核",
  250. },
  251. {
  252. key: 4,
  253. value: "市场需求管理员审核",
  254. },
  255. {
  256. key: 5,
  257. value: "起草人发送",
  258. },
  259. {
  260. key: 6,
  261. value: "送信息技术中心办理",
  262. },
  263. {
  264. key: 7,
  265. value: "业支人员办理",
  266. },
  267. {
  268. key: 8,
  269. value: "结束",
  270. },
  271. ],
  272. },
  273. ],
  274. },
  275. firstTable: {
  276. name: "first",
  277. height: "650",
  278. titledata: [
  279. {
  280. label: "需求名称",
  281. prop: "needName",
  282. width: 300,
  283. color: "#0682CD",
  284. },
  285. {
  286. label: "需求类型",
  287. prop: "needType",
  288. width: 200,
  289. },
  290. {
  291. label: "发起部门",
  292. prop: "applyDept",
  293. width: 200,
  294. },
  295. {
  296. label: "发起科室",
  297. prop: "applyDepartment",
  298. width: 200,
  299. },
  300. {
  301. label: "发起人",
  302. prop: "proposer",
  303. width: 200,
  304. },
  305. {
  306. label: "发起时间",
  307. prop: "proposerTime",
  308. width: 250,
  309. },
  310. {
  311. label: "上一步处理人",
  312. prop: "predealman",
  313. width: 200,
  314. },
  315. {
  316. label: "状态",
  317. prop: "taskName",
  318. width: 200,
  319. },
  320. ], //表格头
  321. data: [], //内容数据
  322. loading: true,
  323. pageData: {
  324. total: 100, // 总条数
  325. pageSize: 10, // 每页数量
  326. pageNum: 1, // 页码
  327. },
  328. isSelection: true, // 表格有多选时设置
  329. isOperation: false, // 表格有操作列时设置
  330. isIndex: false, // 列表序号
  331. operation: {
  332. // 表格有操作列时设置
  333. label: "操作", // 列名
  334. width: "50", // 根据实际情况给宽度
  335. data: [
  336. {
  337. label: "操作", // 操作名称
  338. type: "", //按钮类型
  339. handleRow: (e, r, o) => {
  340. // this.disabled = true;
  341. // this.dialogTitle = "查看";
  342. // if (r.taskName === "起草") {
  343. // this.disabled = false;
  344. // } else {
  345. // this.disabled = true;
  346. // }
  347. // this.fromList = r;
  348. // this.clickForm(r);
  349. // this.getFromQuery(r);
  350. // this.dialogStatus = true;
  351. // setTimeout(() => {
  352. // this.getBtnStatus(r);
  353. // }, 500);
  354. // this.formWorkId = r.id;
  355. // this.formId = r.taskId;
  356. // this.taskName = r.taskName;
  357. // this.getQuery()
  358. }, // 自定义事件
  359. },
  360. ],
  361. },
  362. },
  363. twoTable: {
  364. name: "two",
  365. disabled: true,
  366. titledata: [
  367. {
  368. label: "需求名称",
  369. prop: "needName",
  370. width: 300,
  371. color: "#0682CD",
  372. },
  373. {
  374. label: "发起部门",
  375. prop: "applyDept",
  376. width: 200,
  377. },
  378. {
  379. label: "发起科室",
  380. prop: "applyDepartment",
  381. width: 200,
  382. },
  383. {
  384. label: "发起人",
  385. prop: "proposer",
  386. width: 200,
  387. },
  388. {
  389. label: "发起时间",
  390. prop: "proposerTime",
  391. width: 250,
  392. },
  393. {
  394. label: "处理时间",
  395. prop: "endtime",
  396. width: 250,
  397. },
  398. {
  399. label: "状态",
  400. prop: "taskName",
  401. width: 200,
  402. },
  403. ], //表格头
  404. data: [], //内容数据
  405. loading: true,
  406. pageData: {
  407. total: 100, // 总条数
  408. pageSize: 10, // 每页数量
  409. pageNum: 1, // 页码
  410. },
  411. isSelection: false, // 表格有多选时设置
  412. isOperation: false, // 表格有操作列时设置
  413. isIndex: false, // 列表序号
  414. operation: {
  415. // 表格有操作列时设置
  416. label: "操作", // 列名
  417. width: "50", // 根据实际情况给宽度
  418. data: [
  419. {
  420. label: "操作", // 操作名称
  421. type: "", //按钮类型
  422. handleRow: function () {}, // 自定义事件
  423. },
  424. ],
  425. },
  426. },
  427. threeTable: {
  428. name: "three",
  429. titledata: [
  430. {
  431. label: "需求名称",
  432. prop: "needName",
  433. width: 300,
  434. color: "#0682CD",
  435. },
  436. {
  437. label: "需求类型",
  438. prop: "needType",
  439. width: 200,
  440. },
  441. {
  442. label: "发起部门",
  443. prop: "applyDept",
  444. width: 200,
  445. },
  446. {
  447. label: "发起科室",
  448. prop: "applyDepartment",
  449. width: 200,
  450. },
  451. {
  452. label: "发起人",
  453. prop: "proposer",
  454. width: 200,
  455. },
  456. {
  457. label: "发起时间",
  458. prop: "proposerTime",
  459. width: 250,
  460. },
  461. {
  462. label: "工单状态",
  463. prop: "taskName",
  464. width: 200,
  465. },
  466. ], //表格头
  467. data: [], //内容数据
  468. loading: true,
  469. pageData: {
  470. total: 100, // 总条数
  471. pageSize: 10, // 每页数量
  472. pageNum: 1, // 页码
  473. },
  474. isSelection: false, // 表格有多选时设置
  475. isOperation: true, // 表格有操作列时设置
  476. isIndex: false, // 列表序号
  477. operation: {
  478. // 表格有操作列时设置
  479. label: "支撑状态", // 列名
  480. width: "100", // 根据实际情况给宽度
  481. data: [
  482. {
  483. label: "查看", // 操作名称
  484. type: "", //按钮类型
  485. handleRow: (e, r, o) => {
  486. if (r.needNo !== null) {
  487. this.$router.push({
  488. path: "/supportState",
  489. query: { id: r.needNo },
  490. });
  491. this.setabList(
  492. "支撑状态查看",
  493. "/supportState?id=" + r.needNo
  494. );
  495. } else {
  496. this.$message.error("暂无支撑状态可查看");
  497. }
  498. // this.getQuery()
  499. }, // 自定义事件
  500. },
  501. ],
  502. },
  503. },
  504. fourTable: {
  505. name: "four",
  506. titledata: [
  507. {
  508. label: "待阅需求",
  509. prop: "needName",
  510. width: 300,
  511. color: "#0682CD",
  512. },
  513. {
  514. label: "需求类型",
  515. prop: "needType",
  516. width: 200,
  517. },
  518. {
  519. label: "发起部门",
  520. prop: "applyDept",
  521. width: 200,
  522. },
  523. {
  524. label: "发起科室",
  525. prop: "applyDepartment",
  526. width: 200,
  527. },
  528. {
  529. label: "发起人",
  530. prop: "proposer",
  531. width: 200,
  532. },
  533. {
  534. label: "发起时间",
  535. prop: "proposerTime",
  536. width: 300,
  537. },
  538. {
  539. label: "状态",
  540. prop: "taskName",
  541. width: 200,
  542. },
  543. ], //表格头
  544. data: [], //内容数据
  545. loading: true,
  546. pageData: {
  547. total: 100, // 总条数
  548. pageSize: 10, // 每页数量
  549. pageNum: 1, // 页码
  550. },
  551. isSelection: false, // 表格有多选时设置
  552. isOperation: true, // 表格有操作列时设置
  553. isIndex: false, // 列表序号
  554. operation: {
  555. // 表格有操作列时设置
  556. label: "操作", // 列名
  557. width: "100", // 根据实际情况给宽度
  558. data: [
  559. {
  560. label: "查看", // 操作名称
  561. type: "", //按钮类型
  562. handleRow: (e, r, o) => {
  563. this.fromList = r;
  564. this.dialogStatus = true;
  565. this.disabled = true;
  566. this.buttonStatus = false;
  567. this.getReadList(r.copytaskid);
  568. }, // 自定义事件
  569. },
  570. ],
  571. },
  572. },
  573. fiveTable: {
  574. name: "five",
  575. titledata: [
  576. {
  577. label: "需求名称",
  578. prop: "needName",
  579. width: 300,
  580. color: "#0682CD",
  581. },
  582. {
  583. label: "需求类型",
  584. prop: "needType",
  585. width: 200,
  586. },
  587. {
  588. label: "发起部门",
  589. prop: "applyDept",
  590. width: 200,
  591. },
  592. {
  593. label: "发起科室",
  594. prop: "applyDepartment",
  595. width: 200,
  596. },
  597. {
  598. label: "发起人",
  599. prop: "proposer",
  600. width: 200,
  601. },
  602. {
  603. label: "发起时间",
  604. prop: "proposerTime",
  605. width: 300,
  606. },
  607. // {
  608. // label: "工单状态",
  609. // prop: "taskName",
  610. // width: 200,
  611. // },
  612. ], //表格头
  613. data: [], //内容数据
  614. loading: true,
  615. pageData: {
  616. total: 100, // 总条数
  617. pageSize: 10, // 每页数量
  618. pageNum: 1, // 页码
  619. },
  620. isSelection: false, // 表格有多选时设置
  621. isOperation: false, // 表格有操作列时设置
  622. isIndex: false, // 列表序号
  623. operation: {
  624. // 表格有操作列时设置
  625. label: "支撑状态", // 列名
  626. width: "100", // 根据实际情况给宽度
  627. data: [
  628. {
  629. label: "查看", // 操作名称
  630. type: "", //按钮类型
  631. handleRow: (e, r, o) => {
  632. this.getReadList(r.copytaskid);
  633. // if (r.needNo !== null) {
  634. // this.$router.push({
  635. // path: "/supportState",
  636. // query: { id: r.needNo },
  637. // });
  638. // } else {
  639. // this.$message.error("暂无支撑状态可查看");
  640. // }
  641. // this.getQuery()
  642. }, // 自定义事件
  643. },
  644. ],
  645. },
  646. },
  647. lable: {},
  648. copyUser: "", //抄送人
  649. backThree: [],
  650. backCopyThree: [], //抄送人数组
  651. lables: {
  652. height: "400",
  653. titledata: [
  654. {
  655. label: "环节名称",
  656. prop: "taskName",
  657. width: 300,
  658. },
  659. {
  660. label: "处理人",
  661. prop: "assignee",
  662. width: 300,
  663. },
  664. {
  665. label: "到达时间",
  666. prop: "startTime",
  667. width: 300,
  668. },
  669. {
  670. label: "处理时间",
  671. prop: "endTime",
  672. width: 300,
  673. },
  674. {
  675. label: "回复意见",
  676. prop: "content",
  677. width: 300,
  678. },
  679. ], //表格头
  680. data: [], //内容数据
  681. loading: true,
  682. pageData: {
  683. total: 10, // 总条数
  684. pageSize: 10, // 每页数量
  685. pageNum: 1, // 页码
  686. },
  687. isSelection: false, // 表格有多选时设置
  688. isOperation: false, // 表格有操作列时设置
  689. isIndex: true, // 列表序号
  690. operation: {
  691. // 表格有操作列时设置
  692. label: "操作", // 列名
  693. width: "50", // 根据实际情况给宽度
  694. data: [
  695. {
  696. label: "操作", // 操作名称
  697. type: "", //按钮类型
  698. handleRow: function () {}, // 自定义事件
  699. },
  700. ],
  701. },
  702. },
  703. formWorkId: "",
  704. taskName: "", //工单是否为起草阶段
  705. clicknextName: "", //点击选择流程节点
  706. firstStatus: false,
  707. selectUser: "", //选择人userName
  708. isSync: "1", //什么yes no起草状态判断
  709. createdId: "", //获取表单创始人Id
  710. batchList: ["fanyan"], //多选数组
  711. exportStatus: false, //批量导出按钮权限控制
  712. userList: [
  713. //选择路径列表页
  714. ],
  715. props: {
  716. lazy: true,
  717. lazyLoad: this.lazyLoad,
  718. },
  719. propsList: [],
  720. DepartmentName: "",
  721. seleIndex: 9,
  722. clickTagName: "first",
  723. value: "",
  724. nextPath: [],
  725. nextPaths: [],
  726. node: [],
  727. nodes: [],
  728. transferStatus: false,
  729. TransferStatus: false,
  730. CopyStatus: false,
  731. initialList: [],
  732. clickTaskName: "",
  733. seachLists: {},
  734. timeList: {},
  735. };
  736. },
  737. created() {
  738. //oa跳转回来显示
  739. let status = JSON.stringify(this.$route.query) == "{}";
  740. if (status) {
  741. this.getQueryList();
  742. this.getMeDone();
  743. this.getMeLaunch();
  744. this.getToBeRead();
  745. this.getBeReadList();
  746. } else {
  747. let { id, copy } = this.$route.query;
  748. let list = {
  749. taskId: id,
  750. };
  751. //待做
  752. if (copy == 0) {
  753. this.getQueryList(list, 0);
  754. }
  755. //待阅
  756. if (copy == 1) {
  757. this.clickTagName = "four"
  758. this.getToBeRead(list, 1);
  759. }
  760. }
  761. this.lable = this.firstTable;
  762. },
  763. methods: {
  764. //添加面包屑
  765. setabList(n, p) {
  766. let params = {
  767. children: "",
  768. name: n,
  769. rountPath: p,
  770. target: "_self",
  771. };
  772. for (let i = 0; i < this.$store.state.tabList.length; i++) {
  773. if (this.$store.state.tabList[i].name === params.name) {
  774. this.$store.state.tabList[i] = params;
  775. }
  776. }
  777. let set = new Set([...this.$store.state.tabList, params]);
  778. set.add(params);
  779. this.$store.commit("setDefaultActive", params.rountPath);
  780. this.$store.commit("setTabList", Array.from(set));
  781. },
  782. beforeClose() {
  783. this.dialogStatus = false;
  784. this.handleCloses();
  785. this.getQueryList();
  786. this.getMeDone();
  787. this.getMeLaunch();
  788. this.getToBeRead();
  789. this.getBeReadList();
  790. },
  791. clickGetTree(e, index) {
  792. this.CopyStatus = false;
  793. this.TransferStatus = false;
  794. this.clickTaskName = e.properties.name;
  795. this.clicknextName = e.properties.name;
  796. this.seleIndex = index;
  797. this.getNextPath(e.resourceId); //1 为点击后获取线
  798. },
  799. //常用意见添加
  800. addStatus() {
  801. let newData = Date.parse(new Date());
  802. this.$prompt("请输入常用意见", "提示", {
  803. confirmButtonText: "确定",
  804. cancelButtonText: "取消",
  805. })
  806. .then(({ value }) => {
  807. let list = {
  808. dictCode: "approval",
  809. dataCode: newData,
  810. dataName: value,
  811. dictName: "审批意见",
  812. };
  813. this.geaddctType(list);
  814. this.$message({
  815. type: "success",
  816. message: "常用意见添加成功",
  817. });
  818. })
  819. .catch(() => {
  820. this.$message({
  821. type: "info",
  822. message: "取消输入",
  823. });
  824. });
  825. },
  826. //常用意见删除
  827. deleStatus(e) {
  828. this.$confirm("此操作将删除此常用意见, 是否继续?", "提示", {
  829. confirmButtonText: "确定",
  830. cancelButtonText: "取消",
  831. type: "warning",
  832. })
  833. .then(() => {
  834. let list = {
  835. dataCode: e.dataCode,
  836. dictCode: "approval",
  837. };
  838. this.geDelectType(list);
  839. this.$message({
  840. type: "success",
  841. message: "删除成功!",
  842. });
  843. })
  844. .catch(() => {
  845. this.$message({
  846. type: "info",
  847. message: "已取消删除",
  848. });
  849. });
  850. },
  851. //转需求管理平台
  852. clickReassignment() {
  853. this.$http({
  854. url: "/market/waf/sync",
  855. method: "post",
  856. headers: {
  857. "Content-Type": "application/json",
  858. },
  859. data: this.$refs.formTable.form,
  860. }).then((res) => {
  861. if (res.code === 0) {
  862. this.$message.success("转需求管理平台成功!");
  863. } else {
  864. this.$message.error("转需求管理平台错误!");
  865. }
  866. });
  867. },
  868. //批量导出搜索
  869. seachExportList(e) {
  870. let timeList = {
  871. stime: e[0],
  872. etime: e[1],
  873. };
  874. this.timeList = timeList;
  875. this.getQueryList(this.timeList);
  876. },
  877. //点击工单状态跳转需求流程显示页面
  878. clickDemand(e, res) {
  879. if (e === "工单状态" || e === "需求名称") {
  880. if (this.clickTagName === "first") {
  881. this.disabled = true;
  882. this.dialogTitle = "查看";
  883. if (res.taskName === "起草") {
  884. this.disabled = false;
  885. } else {
  886. this.disabled = true;
  887. }
  888. // this.clickForm(res);
  889. // this.getFromQuery(res);
  890. setTimeout(() => {
  891. this.getBtnStatus(res);
  892. }, 500);
  893. }
  894. if (this.clickTagName === "two") {
  895. this.disabled = true;
  896. this.startStatus = false;
  897. this.saveStatus = false;
  898. }
  899. if (this.clickTagName === "three") {
  900. if (res.taskName === "起草") {
  901. console.log(res);
  902. this.startStatus = true;
  903. this.disabled = false;
  904. this.saveStatus = true;
  905. } else {
  906. this.startStatus = false;
  907. this.disabled = true;
  908. this.saveStatus = false;
  909. }
  910. }
  911. if (this.clickTagName === "four" || this.clickTagName === "five") {
  912. this.buttonStatus = false;
  913. }
  914. this.fromList = res;
  915. this.clickForm(res);
  916. this.getFromQuery(res);
  917. }
  918. },
  919. //批量导出
  920. batchExport() {
  921. this.downloadExcel(this.batchList);
  922. },
  923. clickExport() {
  924. let array = [];
  925. array.push(this.$refs.formTable.form);
  926. this.downloadExcel(array);
  927. },
  928. getNowTime() {
  929. let date = new Date();
  930. let year = date.getFullYear(); //获取当前年份
  931. let mon = date.getMonth() + 1; //获取当前月份
  932. let da = date.getDate(); //获取当前日
  933. let h = date.getHours(); //获取小时
  934. let m = date.getMinutes(); //获取分钟
  935. return year + "-" + mon + "-" + da + "-" + h + ":" + m;
  936. },
  937. //导出方法
  938. downloadExcel(e) {
  939. console.log(e.length);
  940. let res = this.getNowTime();
  941. this.$http({
  942. url: "/market/waf/exportAll",
  943. method: "post",
  944. headers: {
  945. "Content-Type": "application/json",
  946. },
  947. responseType: "blob",
  948. data: e,
  949. }).then((response) => {
  950. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  951. let blob = new Blob([response.data.size], {
  952. type: "application/vnd.ms-excel;",
  953. });
  954. if (e.length > 1) {
  955. window.navigator.msSaveOrOpenBlob(
  956. blob,
  957. this.fromList.needName + ".zip"
  958. );
  959. // window.navigator.msSaveOrOpenBlob(blob, res + "需求申请单" + ".zip");
  960. } else {
  961. window.navigator.msSaveOrOpenBlob(
  962. blob,
  963. this.fromList.needName + ".zip"
  964. );
  965. }
  966. //window.navigator.msSaveOrOpenBlob(blob, t his.form.needName);
  967. } else {
  968. /* 火狐谷歌的文件下载方式 */
  969. var blob = new Blob([response.data]);
  970. var downloadElement = document.createElement("a");
  971. var href = window.URL.createObjectURL(blob);
  972. downloadElement.href = href;
  973. if (e.length > 1) {
  974. downloadElement.download = res + "需求申请单" + ".zip";
  975. } else {
  976. console.log(e);
  977. downloadElement.download = e[0].needName + ".zip";
  978. }
  979. document.body.appendChild(downloadElement);
  980. downloadElement.click();
  981. document.body.removeChild(downloadElement);
  982. window.URL.revokeObjectURL(href);
  983. }
  984. });
  985. },
  986. //驳回方法
  987. clickReject(res) {
  988. let e = "no";
  989. this.submitWork(e, res);
  990. },
  991. //我发起的接口
  992. getMeLaunch(e) {
  993. this.$http({
  994. url: "/market/waf/queryInitiate",
  995. method: "post",
  996. headers: {
  997. "Content-Type": "application/json",
  998. page: '{"pageNo":"' + this.totalPage + '","pageSize":"10"}',
  999. },
  1000. data: e || {},
  1001. }).then((res) => {
  1002. // let size = this.isNaNStatus(res.data);
  1003. this.tabList[2].number = res.data.totalRecord;
  1004. this.threeTable.data = res.data.data;
  1005. this.threeTable.pageData.total = res.data.totalRecord;
  1006. });
  1007. },
  1008. //按钮权限方法
  1009. getBtnStatus(e) {
  1010. this.$refs.formTable.form = e;
  1011. },
  1012. //我的已办接口
  1013. getMeDone() {
  1014. this.$http({
  1015. url: "/market/waf/queryDone",
  1016. method: "post",
  1017. headers: {
  1018. "Content-Type": "application/json",
  1019. page: '{"pageNo":"' + this.totalPage + '","pageSize":"10"}',
  1020. },
  1021. data: {},
  1022. }).then((res) => {
  1023. this.tabList[1].number = res.data.totalRecord;
  1024. this.twoTable.data = res.data.data;
  1025. this.twoTable.pageData.total = res.data.totalRecord;
  1026. // let size = this.isNaNStatus(res.data);
  1027. // this.tabList[1].number = size;
  1028. // this.twoTable.pageData.total = res.data.totalRecord;
  1029. // this.twoTable.pageData.total = res.data.size;
  1030. // this.twoTable.data = res.data.list;
  1031. // this.twoTable.data = this.getCurrentPageList(this.twoTable.data);
  1032. });
  1033. },
  1034. isNaNStatus(e) {
  1035. if (e.size === 0) {
  1036. return "0";
  1037. } else {
  1038. return e.size;
  1039. }
  1040. },
  1041. //选择树的回调
  1042. changeTree(e) {
  1043. if (e.length > 1) {
  1044. this.$message.error("只能选择一个人");
  1045. return;
  1046. } else {
  1047. this.backThree = e;
  1048. if (e[0]) {
  1049. this.selectUser = e[0].loginNameStr;
  1050. } else {
  1051. this.selectUser = "暂无选择";
  1052. }
  1053. }
  1054. },
  1055. changeTreeCopy(e) {
  1056. if (e.length > 1) {
  1057. this.$message.error("只能选择一个人");
  1058. return;
  1059. } else {
  1060. this.backCopyThree = e;
  1061. if (e[0]) {
  1062. this.copyUser = e[0].loginNameStr;
  1063. } else {
  1064. this.copyUser = "暂无选择";
  1065. }
  1066. }
  1067. },
  1068. //查询form表单数据
  1069. getFromQuery(e) {
  1070. this.$http({
  1071. url: "/market/waf/query",
  1072. method: "post",
  1073. headers: {
  1074. "Content-Type": "application/json",
  1075. },
  1076. data: { id: e.id },
  1077. }).then((res) => {
  1078. // this.fromList = res.data;
  1079. this.dialogStatus = true;
  1080. // console.log(this.$refs.formTable);
  1081. // this.$refs.formTable.fileInfo.fileList = res.data.mkFileShareAttachList;
  1082. this.fromList.mkFileShareAttachList = res.data.mkFileShareAttachList;
  1083. this.taskId = res.data.taskId;
  1084. if (res.data.taskName == "起草") {
  1085. this.saveStatus = true;
  1086. } else if (res.data.taskName === "部门人员审核") {
  1087. } else if (res.data.taskName === "部门领导审核") {
  1088. } else if (res.data.taskName === "市场需求管理员审核") {
  1089. this.exportBtnStatus = true;
  1090. } else if (res.data.taskName === "起草人发送") {
  1091. } else if (res.data.taskName === "送信息技术中心办理") {
  1092. this.exportBtnStatus = true;
  1093. } else if (res.data.taskName === "业支人员办理") {
  1094. this.exportBtnStatus = true;
  1095. this.forwardStatus = true;
  1096. } else if (res.data.taskName === "送起草人结束") {
  1097. }
  1098. });
  1099. },
  1100. //我发起的搜索内容
  1101. seachList(e) {
  1102. console.log(e);
  1103. this.seachLists = e;
  1104. this.getMeLaunch(e);
  1105. },
  1106. //点击修改
  1107. clickEdit() {
  1108. this.editStatus = true;
  1109. },
  1110. //点击职位显示右侧列表
  1111. //常用意见点击选择
  1112. clickCommonly(e) {
  1113. this.textarea = e.currentTarget.innerHTML;
  1114. },
  1115. //保存按钮
  1116. //获取自己idname
  1117. getUserIds() {
  1118. this.$http({
  1119. url: "/market/waf/queryRoleByName",
  1120. method: "post",
  1121. headers: {
  1122. "Content-Type": "application/json",
  1123. },
  1124. data: {
  1125. userCode: JSON.parse(window.sessionStorage.userInfo).loginNo,
  1126. },
  1127. }).then((res) => {
  1128. this.request_form.userName = res.data.data.rows[0].name;
  1129. this.request_form.userId = res.data.data.rows[0].userCode;
  1130. });
  1131. },
  1132. async clickSave() {
  1133. this.$refs.formTable.$refs.form.validate((valid) => {
  1134. if (valid) {
  1135. if (this.fromList.id) {
  1136. this.setUpdate(this.$refs.formTable.form);
  1137. } else {
  1138. this.getUserIds();
  1139. this.setForm();
  1140. }
  1141. } else {
  1142. this.$message.error("请完善表单信息");
  1143. return false;
  1144. }
  1145. });
  1146. },
  1147. //新建按钮
  1148. async clickNewTag() {
  1149. this.dialogTitle = "新建";
  1150. this.lables.data = [];
  1151. this.disabled = false;
  1152. await this.getDepartmentName();
  1153. },
  1154. //获取用户部门名称
  1155. getDepartmentName() {
  1156. this.$http({
  1157. url: "/market/waf/queryDept",
  1158. method: "post",
  1159. headers: {
  1160. "Content-Type": "application/json",
  1161. },
  1162. data: {},
  1163. }).then((res) => {
  1164. let list = {
  1165. applyDept: res.data,
  1166. applyDepartment: JSON.parse(window.sessionStorage.userInfo).groupName,
  1167. proposer: JSON.parse(window.sessionStorage.userInfo).loginName,
  1168. };
  1169. this.fromList = list;
  1170. if (this.$refs.formTable) {
  1171. this.$refs.formTable.form = list;
  1172. }
  1173. this.DepartmentName = res.data;
  1174. this.dialogStatus = true;
  1175. this.saveStatus = true;
  1176. });
  1177. },
  1178. setForm(e) {
  1179. this.request_form.title = this.$refs.formTable.form.needName;
  1180. // this.$refs.formTable.form.taskId = e;
  1181. this.$http({
  1182. url: "/market/waf/add",
  1183. method: "post",
  1184. headers: {
  1185. "Content-Type": "application/json",
  1186. },
  1187. data: this.$refs.formTable.form,
  1188. }).then((res) => {
  1189. this.request_form.businessKey = res.data.body;
  1190. this.fromList.id = res.data.body;
  1191. this.formWorkId = res.data.body;
  1192. this.clickHandle(res.data.body);
  1193. });
  1194. },
  1195. //处理按钮,开始工作流接口
  1196. clickHandles() {
  1197. if (this.fromList.taskId) {
  1198. this.destroy = true;
  1199. this.handleStatus = true;
  1200. } else {
  1201. this.$message.error("请先点击保存按钮");
  1202. }
  1203. this.getMetirialType();
  1204. },
  1205. //批量审批
  1206. clickApproval(e) {
  1207. this.fromList.taskName = this.batchList[0].taskName;
  1208. let array = [];
  1209. if (this.batchList.length > 1) {
  1210. this.batchList.map((item, index) => {
  1211. array.push(item.taskName);
  1212. });
  1213. let newArray = new Set(array);
  1214. if (newArray.size > 1) {
  1215. this.$message.error("需求申请单流程节点不一致");
  1216. } else {
  1217. this.handleStatus = true;
  1218. }
  1219. }
  1220. },
  1221. async clickForm(e) {
  1222. let list = {
  1223. processInstanceId: e.processId,
  1224. // taskId:e.taskId
  1225. };
  1226. let _this = this;
  1227. let obj = {
  1228. url: this.$url.formList.getCommentsByProcessId, //流程追踪接口
  1229. data: list,
  1230. headers: {
  1231. "Content-Type": "application/json",
  1232. },
  1233. };
  1234. let res = await this.common.httpPost(obj, success);
  1235. function success(data) {
  1236. data.data.map((item) => {
  1237. item.startTime = _this.$util.datetimeFormat(item.startTime);
  1238. item.endTime = _this.$util.datetimeFormat(item.endTime);
  1239. });
  1240. _this.lables.data = data.data;
  1241. }
  1242. },
  1243. async clickHandle(e) {
  1244. let _this = this;
  1245. let obj = {
  1246. url: this.$url.formList.startWork, //开始工作流接口
  1247. data: _this.request_form,
  1248. status: "form",
  1249. headers: {
  1250. "Content-Type": "application/x-www-form-urlencoded",
  1251. },
  1252. };
  1253. let res = await this.common.httpPost(obj, success);
  1254. function success(data) {
  1255. _this.fromList.taskId = data.data;
  1256. _this.taskId = data.data;
  1257. let list = {
  1258. id: e,
  1259. // taskId:_this.formId,
  1260. processId: _this.fromList.taskId,
  1261. // resourceId: _this.nextPath.currentShape[0].resourceId,
  1262. };
  1263. _this.setUpdate(list);
  1264. }
  1265. },
  1266. //更新工作流接口
  1267. setUpdate(e) {
  1268. this.$http({
  1269. url: "/market/waf/update",
  1270. method: "post",
  1271. headers: {
  1272. "Content-Type": "application/json",
  1273. },
  1274. data: e,
  1275. }).then((res) => {
  1276. this.fromList.taskId = res.data.body.taskId;
  1277. this.fromList.taskName = res.data.body.taskName;
  1278. if (res.data.body.taskName === "起草") {
  1279. this.isSync = res.data.body.isSync;
  1280. } else {
  1281. this.isSync = "1";
  1282. }
  1283. // if (res.data.result === 0) {
  1284. // this.$message.success("工作流更新成功");
  1285. // }
  1286. });
  1287. },
  1288. //获取待阅接口
  1289. getToBeRead(e, status) {
  1290. this.$http({
  1291. url: "/market/waf/queryReadList",
  1292. method: "post",
  1293. headers: {
  1294. "Content-Type": "application/json",
  1295. page: '{"pageNo":"' + this.totalPage + '","pageSize":"10"}',
  1296. },
  1297. data: e || {},
  1298. }).then((res) => {
  1299. if (status === 1) {
  1300. this.clickDemand("需求名称", res.data.data[0]);
  1301. this.getReadList(res.data.data[0].copytaskid);
  1302. }
  1303. // let size = this.isNaNStatus(res.data);
  1304. this.tabList[3].number = res.data.totalRecord;
  1305. // this.fourTable.pageData.total = res.data.totalRecord;
  1306. this.fourTable.pageData.total = res.data.totalRecord;
  1307. this.fourTable.data = res.data.data;
  1308. // this.lable.data = this.getCurrentPageList(this.fourTable.data);
  1309. });
  1310. },
  1311. //获取已阅接口列表
  1312. getBeReadList(e) {
  1313. this.$http({
  1314. url: "/market/waf/queryReadDone",
  1315. method: "post",
  1316. headers: {
  1317. "Content-Type": "application/json",
  1318. page: '{"pageNo":"' + this.totalPage + '","pageSize":"10"}',
  1319. },
  1320. data: e || {},
  1321. }).then((res) => {
  1322. // let size = this.isNaNStatus(res.data);
  1323. this.tabList[4].number = res.data.totalRecord;
  1324. // this.fourTable.pageData.total = res.data.totalRecord;
  1325. this.fiveTable.pageData.total = res.data.totalRecord;
  1326. this.fiveTable.data = res.data.data;
  1327. // this.lable.data = this.getCurrentPageList(this.fiveTable.data);
  1328. });
  1329. },
  1330. //点击查阅接口
  1331. async getReadList(e) {
  1332. let _this = this;
  1333. let obj = {
  1334. url: this.$url.formList.getReadList, //开始工作流接口
  1335. data: { copytaskid: e },
  1336. status: "form",
  1337. headers: {
  1338. "Content-Type": "application/x-www-form-urlencoded",
  1339. },
  1340. };
  1341. let res = await this.common.httpPost(obj, success);
  1342. function success(data) {
  1343. console.log(data);
  1344. }
  1345. },
  1346. //获取我的代办列表List
  1347. getQueryList(e, status) {
  1348. this.$http({
  1349. url: "/market/waf/queryList",
  1350. method: "post",
  1351. headers: {
  1352. "Content-Type": "application/json",
  1353. page: '{"pageNo":"' + this.totalPage + '","pageSize":"10"}',
  1354. },
  1355. data: e || {},
  1356. }).then((res) => {
  1357. if (status === 0) {
  1358. this.clickDemand("需求名称", res.data.data[0]);
  1359. } else {
  1360. this.tabList[0].number = res.data.totalRecord;
  1361. // this.firstTable.data = res.data.data;
  1362. }
  1363. this.firstTable.data = res.data.data;
  1364. this.firstTable.pageData.total = res.data.totalRecord;
  1365. this.lable = this.firstTable;
  1366. });
  1367. },
  1368. getCurrentPageList(e) {
  1369. this.totalPage = Math.ceil(e.length / this.pageSize);
  1370. this.totalPage = this.totalPage == 0 ? 1 : this.totalPage;
  1371. let begin = (this.currentPage - 1) * this.pageSize;
  1372. let end = this.currentPage * this.pageSize;
  1373. this.currentPageList = e.slice(begin, end);
  1374. return this.currentPageList;
  1375. },
  1376. getNum(e) {
  1377. //多选数组
  1378. this.batchList = e;
  1379. if (e.length > 0) {
  1380. this.exportStatus = true;
  1381. } else {
  1382. this.exportStatus = false;
  1383. }
  1384. this.num = e.length;
  1385. },
  1386. //获取页码
  1387. changeNum(e) {
  1388. this.totalPage = e;
  1389. if (this.clickTagName === "first") {
  1390. if (this.timeList) {
  1391. this.getQueryList(this.timeList);
  1392. } else {
  1393. this.getQueryList();
  1394. }
  1395. } else if (this.clickTagName === "two") {
  1396. this.getMeDone();
  1397. } else if (this.clickTagName === "three") {
  1398. console.log(this.seachLists);
  1399. if (this.seachLists) {
  1400. this.getMeLaunch(this.seachLists);
  1401. } else {
  1402. this.getMeLaunch();
  1403. }
  1404. } else if (this.clickTagName === "four") {
  1405. this.getToBeRead();
  1406. // this.fourTable.data = this.getCurrentPageList(this.fourTable.data);
  1407. } else {
  1408. this.getBeReadList();
  1409. }
  1410. },
  1411. clickTabs(e) {
  1412. this.buttonStatus = true;
  1413. this.clickTagName = e;
  1414. this.$refs.TableList.page = 1;
  1415. this.totalPage = "1";
  1416. // console.log(this.$refs.table);
  1417. //重新网络请求
  1418. if (this.firstTable.name == e) {
  1419. this.lable = this.firstTable;
  1420. this.getQueryList();
  1421. } else if (this.twoTable.name == e) {
  1422. this.lable = this.twoTable;
  1423. this.getMeDone();
  1424. } else if (this.threeTable.name === e) {
  1425. this.lable = this.threeTable;
  1426. this.getMeLaunch();
  1427. } else if (this.fourTable.name === e) {
  1428. this.lable = this.fourTable;
  1429. this.getToBeRead();
  1430. } else {
  1431. this.lable = this.fiveTable;
  1432. this.getBeReadList();
  1433. }
  1434. // console.log(this.lable);
  1435. },
  1436. handleClose() {
  1437. this.dialogStatus = false;
  1438. this.forwardStatus = false;
  1439. this.exportBtnStatus = false;
  1440. this.saveStatus = false;
  1441. this.startStatus = true;
  1442. this.closeStatus = true;
  1443. // this.fromList = {};
  1444. },
  1445. handleCloses() {
  1446. this.treeList = [];
  1447. this.textarea = "";
  1448. this.handleStatus = false;
  1449. },
  1450. editCloses() {
  1451. this.editStatus = false;
  1452. },
  1453. },
  1454. };
  1455. </script>
  1456. <style lang="scss" scoped>
  1457. .copyClass {
  1458. display: flex;
  1459. }
  1460. .flex-header-text-tree {
  1461. width: 50%;
  1462. text-align: center;
  1463. }
  1464. .active {
  1465. background-color: #f3faff;
  1466. }
  1467. .flex-common {
  1468. padding: 10px 5%;
  1469. font-size: 18px;
  1470. }
  1471. .flex-buttons {
  1472. background-color: #cde4f6;
  1473. border-color: #cde4f6;
  1474. color: #606266;
  1475. }
  1476. .flex-button {
  1477. margin-top: 10px;
  1478. margin-bottom: 10px;
  1479. ::v-deep .el-button--primary {
  1480. width: 222px;
  1481. }
  1482. }
  1483. .flex-left-header-text {
  1484. height: 40px;
  1485. line-height: 40px;
  1486. color: black;
  1487. padding-left: 10px;
  1488. background-color: #cde4f6;
  1489. font-size: 18px;
  1490. font-weight: bold;
  1491. }
  1492. .flex-right-text {
  1493. margin-right: 20px;
  1494. width: 50%;
  1495. }
  1496. .flex-handle {
  1497. width: 100%;
  1498. padding: 30px;
  1499. display: flex;
  1500. .flex-right {
  1501. width: 50%;
  1502. border: 1px solid #e1e1e1;
  1503. margin-left: 20px;
  1504. }
  1505. .flex-left {
  1506. width: 50%;
  1507. display: flex;
  1508. flex-direction: column;
  1509. .flex-left-header {
  1510. display: flex;
  1511. justify-content: space-around;
  1512. }
  1513. }
  1514. }
  1515. .table-title {
  1516. height: 50px;
  1517. line-height: 50px;
  1518. background-color: #f3faff;
  1519. font-size: 18px;
  1520. font-weight: bold;
  1521. }
  1522. ::v-deep .el-dialog {
  1523. margin-top: 0 !important;
  1524. }
  1525. ::v-deep .el-table__fixed-body-wrapper {
  1526. top: 50px !important;
  1527. }
  1528. .flex-box {
  1529. display: flex;
  1530. width: calc(100% - 40px);
  1531. border-radius: 20px;
  1532. background-color: #fff;
  1533. margin: 0 auto;
  1534. margin-top: 20px;
  1535. position: relative;
  1536. flex-direction: column;
  1537. .flex-header {
  1538. display: flex;
  1539. width: 100%;
  1540. position: relative;
  1541. height: 60px;
  1542. margin: 1%;
  1543. border-bottom: 1px solid #e1e1e1;
  1544. justify-content: space-between;
  1545. .el-button {
  1546. width: 150px;
  1547. float: right;
  1548. height: 40px !important;
  1549. margin-right: 30px;
  1550. }
  1551. }
  1552. }
  1553. //设置子组件样式
  1554. ::v-deep .el-tabs__item {
  1555. padding: 0;
  1556. margin-right: 20px;
  1557. width: 166px;
  1558. text-align: center;
  1559. background-color: #d8eaf6;
  1560. color: black;
  1561. }
  1562. ::v-deep .is-active {
  1563. color: #fff;
  1564. background-color: #0583cd;
  1565. }
  1566. ::v-deep .el-tabs__active-bar {
  1567. display: none;
  1568. }
  1569. ::v-deep .el-tabs__nav-wrap::after {
  1570. display: none !important;
  1571. }
  1572. .flex-form {
  1573. margin-top: 50px;
  1574. }
  1575. .flex-footer-botton {
  1576. display: flex;
  1577. justify-content: space-evenly;
  1578. }
  1579. </style>