provincialWorkOrder.vue 55 KB

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