provincialWorkOrder.vue 56 KB

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