index.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881
  1. <template>
  2. <fullscreen :fullscreen.sync="fullscreen" class="container">
  3. <div class="container-box">
  4. <toolList @iconCli='iconCli' :tooltit='tooltit'></toolList>
  5. <div style="overflow: hidden;">
  6. <el-button style="float: right;margin-top: 10px;" type="primary" @click="dialogCheck(3)">添加</el-button>
  7. <el-button style="float: right;margin-top: 10px;margin-right: 20px;" type="primary" @click="getStanding">台账</el-button>
  8. </div>
  9. <div class="tabbox">
  10. <el-table height="calc(100% - 40px)" class="com-table" ref="multipleTable" :data="tableData"
  11. tooltip-effect="dark" size="small" border style="width: 100%" v-loading="loading">
  12. <el-table-column prop="woTitle" label="业务名称">
  13. </el-table-column>
  14. <el-table-column prop="opName" label="申请姓名">
  15. </el-table-column>
  16. <el-table-column prop="createTime" label="申请时间">
  17. </el-table-column>
  18. <el-table-column prop="stsDesc" label="状态">
  19. </el-table-column>
  20. <el-table-column label="操作" width="120px" align="center">
  21. <template slot-scope="scope">
  22. <el-button size="mini" type="primary" @click="dialogCheck(1,scope.row)">查看</el-button>
  23. <el-button size="mini" type="danger" v-if="scope.row.sts != 1"
  24. @click="dialogCheck(2,scope.row)">处理</el-button>
  25. <!-- <el-button size="mini" type="danger" @click="delLine(scope.row)">删除</el-button> -->
  26. </template>
  27. </el-table-column>
  28. </el-table>
  29. <el-pagination class="pageBox" @current-change="currchange" layout="prev, pager, next" background
  30. :total="total">
  31. </el-pagination>
  32. </div>
  33. </div>
  34. <el-dialog :title="titname" :visible.sync="dialogStatus" width="50%" :destroy-on-close="true"
  35. :modal-append-to-body="false" :close-on-click-modal="false" :before-close="closedia" :fullscreen="true">
  36. <div v-loading="loadinged">
  37. <el-form :model="infolist" ref="infolist" :rules="rules" style="height: calc(100vh - 180px);overflow-y: scroll;">
  38. <div class="info-line">
  39. <el-form-item prop="woName">
  40. <span>工单名称</span>
  41. <el-input v-model="infolist.woName" placeholder="工单名称" :disabled="disableStatus">
  42. </el-input>
  43. </el-form-item>
  44. <el-form-item prop="terminal">
  45. <span>申请流程</span>
  46. <el-select clearable v-model="terminal" placeholder="申请流程" disabled>
  47. <el-option v-for="items in options" :key="items.procId" :label="items.procName"
  48. :value="items.procId">
  49. </el-option>
  50. </el-select>
  51. </el-form-item>
  52. <el-form-item>
  53. <span>合作伙伴</span>
  54. <el-input v-model="infolist.factoryName" placeholder="合作伙伴名称" :disabled="disableStatus">
  55. </el-input>
  56. </el-form-item>
  57. <el-form-item>
  58. <span>是否新接口</span>
  59. <el-select clearable v-model="infolist.woType" placeholder="是否新接口" :disabled="disableStatus">
  60. <el-option v-for="items in ifopt" :key="items.id" :label="items.name"
  61. :value="items.id">
  62. </el-option>
  63. </el-select>
  64. </el-form-item>
  65. </div>
  66. <el-form-item class="info-line online">
  67. <span>正文内容</span>
  68. <el-input v-model="infolist.textContent" placeholder="正文内容" type="textarea" :autosize="{ minRows: 3, maxRows: 10}"
  69. :disabled="disableStatus">
  70. </el-input>
  71. </el-form-item>
  72. <el-form-item class="info-line online">
  73. <span>开发功能概要</span>
  74. <el-input v-model="infolist.devFunc" placeholder="开发功能概要" type="textarea" :autosize="{ minRows: 3, maxRows: 10}"
  75. :disabled="disableStatus">
  76. </el-input>
  77. </el-form-item>
  78. <div class="info-line">
  79. <el-form-item>
  80. <span>开发工单名称</span>
  81. <el-input v-model="infolist.itWoName" placeholder="IT开发工单名称" :disabled="!infolist.woType||vision == '记录开发信息'">
  82. </el-input>
  83. </el-form-item>
  84. <el-form-item>
  85. <span>开发工单编号</span>
  86. <el-input v-model="infolist.itWoNo" placeholder="IT开发工单编号" :disabled="!infolist.woType||vision == '记录开发信息'">
  87. </el-input>
  88. </el-form-item>
  89. <el-form-item>
  90. <span>提交时间</span>
  91. <el-date-picker :disabled="!infolist.woType||vision == '记录开发信息'" v-model="infolist.itSubTime" type="date"
  92. placeholder="提交时间">
  93. </el-date-picker>
  94. </el-form-item>
  95. </div>
  96. <div class="info-line" v-if="vision == '记录开发信息'">
  97. <el-form-item>
  98. <span>需求工单名称</span>
  99. <el-input v-model="infolist.elecWoName" placeholder="线上渠道业务需求工单名称" :disabled="titname != '审批'">
  100. </el-input>
  101. </el-form-item>
  102. <el-form-item>
  103. <span>需求工单编号</span>
  104. <el-input v-model="infolist.elecWoNo" placeholder="线上渠道业务需求工单编号" :disabled="titname != '审批'">
  105. </el-input>
  106. </el-form-item>
  107. <el-form-item>
  108. <span>提交时间</span>
  109. <el-date-picker :disabled="titname != '审批'" v-model="infolist.elecSubTime" type="date"
  110. placeholder="提交时间">
  111. </el-date-picker>
  112. </el-form-item>
  113. </div>
  114. <div style="padding:0 20px 0 120px;margin-bottom: 20px;" v-if="disableStatus">
  115. <uploadDown :datalist="datalist" :dialogStatus="uploadstatus"></uploadDown>
  116. </div>
  117. <div style="padding-left: 100px" v-if="!disableStatus">
  118. <myUpload @uploadBack="uploadBack" :fileInfo="fileInfo" :fileList="fileInfo.fileList">
  119. </myUpload>
  120. </div>
  121. <el-form-item class="info-line online" v-if="vision == '审批'">
  122. <span>审批说明</span>
  123. <el-input v-model="remark" placeholder="审批说明" type="textarea" :autosize="{ minRows: 3, maxRows: 10}"
  124. :disabled="titname == '查看'">
  125. </el-input>
  126. </el-form-item>
  127. <div style="margin-bottom: 20px;padding: 0 20px;" v-if="titname != '添加'">
  128. <el-table class="com-table" ref="multipleTable" :data="rovaList" tooltip-effect="dark"
  129. size="small" border style="width: 100%">
  130. <el-table-column prop="taskId" label="编号">
  131. </el-table-column>
  132. <el-table-column prop="taskName" label="环节">
  133. </el-table-column>
  134. <el-table-column prop="assigneeName" label="处理人">
  135. </el-table-column>
  136. <el-table-column prop="assigneeNo" label="处理人工号">
  137. </el-table-column>
  138. <el-table-column prop="opTime" label="处理时间">
  139. </el-table-column>
  140. <!-- <el-table-column prop="remark" label="备注">
  141. </el-table-column> -->
  142. </el-table>
  143. </div>
  144. </el-form>
  145. <div slot="footer" class="dialog-footer myfooter">
  146. <el-button v-if="titname != '查看' && vision == '记录开发信息'" type="primary" @click="dialogCli(2)">确 定
  147. </el-button>
  148. <el-button v-if="titname == '添加'" type="primary" @click="temp">保 存</el-button>
  149. <el-button v-if="titname == '添加'" type="primary" @click="checkexa = true">确 定</el-button>
  150. <el-button v-if="vision == '结束'||titname == '查看'" @click="dialogCli(3)">确 定</el-button>
  151. <el-button @click="dialogCli(3)">取 消</el-button>
  152. </div>
  153. </div>
  154. </el-dialog>
  155. <el-dialog title="选择审批人" :visible.sync="checkexa" width="50%" :destroy-on-close="true"
  156. :modal-append-to-body="false" :close-on-click-modal="false">
  157. <div>
  158. <el-form :model="infolist" ref="infolist" :rules="rules">
  159. <el-form-item prop="visiblec" class="info-line online">
  160. <span>审批人员</span>
  161. <deptTreeOnly class="tree" @treeCheck="treeCheckonly" :defaultList="defaultList"
  162. :type="depttype" :closeList="closeList"></deptTreeOnly>
  163. <div class="tree treeUser">
  164. <p>{{treeListonly.leaderAuditName}}
  165. <i v-if="treeListonly.leaderAuditName" @click="deletes()"
  166. class="el-icon-error"></i>
  167. </p>
  168. </div>
  169. </el-form-item>
  170. </el-form>
  171. <div slot="footer" style="text-align: right;padding-bottom: 20px;">
  172. <el-button type="primary" @click="dialogCliadd" v-if="!visionchonly">确 定</el-button>
  173. <el-button type="primary" @click="dialogCli(2)" v-if="visionchonly">确 定</el-button>
  174. <el-button @click="checkexa = false">取 消</el-button>
  175. </div>
  176. </div>
  177. </el-dialog>
  178. <myMessage :messTit='messTit' @closeMessage="closeMessage" :centerDialogVisible="centerDialogVisible"
  179. v-if="centerDialogVisible"></myMessage>
  180. </fullscreen>
  181. </template>
  182. <script>
  183. import mySearch from "../../../components/search.vue";
  184. import myMessage from "../../../components/myMessage.vue"
  185. import toolList from '../../../components/toolList'
  186. import myUpload from '../../../components/upload'
  187. import uploadDown from '../../../components/uploadDown.vue'
  188. import deptTreeOnly from "../../../components/deptTreeOnly.vue"
  189. export default {
  190. components: {
  191. mySearch,
  192. myMessage,
  193. toolList,
  194. myUpload,
  195. uploadDown,
  196. deptTreeOnly
  197. },
  198. data() {
  199. const woName = (rule, value, callback) => {
  200. if (!this.infolist.woName) {
  201. callback(new Error('不能为空'))
  202. } else {
  203. callback()
  204. }
  205. }
  206. const terminal = (rule, value, callback) => {
  207. if (!this.terminal) {
  208. callback(new Error('不能为空'))
  209. } else {
  210. callback()
  211. }
  212. }
  213. return {
  214. rules: {
  215. woName: [{
  216. required: true,
  217. trigger: 'blur',
  218. validator: woName
  219. }],
  220. terminal: [{
  221. required: true,
  222. trigger: 'change',
  223. validator: terminal
  224. }],
  225. },
  226. tooltit: '线上合作渠道合作开发',
  227. fullscreen: false,
  228. total: 0,
  229. pageSize: 1,
  230. tableData: [{}],
  231. dialogStatus: false,
  232. disableStatus: false,
  233. titname: '',
  234. infolist: {
  235. itSubTime:'',
  236. elecSubTime:''
  237. },
  238. userInfo: {},
  239. params: {},
  240. centerDialogVisible: false,
  241. messTit: '',
  242. delid: '',
  243. loading: false,
  244. loadinged: false,
  245. fileInfo: {
  246. limit: 5,
  247. url: '/bpm/api/upload',
  248. fileList: []
  249. },
  250. rovaList: [],
  251. vision: '',
  252. datalist: {
  253. url: '/bpm/api/download',
  254. type: 1
  255. },
  256. uploadstatus: false,
  257. rovaList: [],
  258. mydisable: 1,
  259. opname: '',
  260. opno: '',
  261. attList: [],
  262. options: [],
  263. // terminal:'720193003341541376',
  264. terminal:'720549298208940032',
  265. remark:'',
  266. visionsts:'1',
  267. ifopt:[
  268. {
  269. id:1,
  270. name:'是'
  271. },{
  272. id:0,
  273. name:'否'
  274. }
  275. ],
  276. checkexa: false,
  277. treeListonly: {},
  278. defaultList: [],
  279. closeList: false,
  280. visionchonly: false,
  281. depttype: 0,
  282. tempSave: false,
  283. }
  284. },
  285. watch:{
  286. tempSave (value) {
  287. if (value) {
  288. // 监听编辑状态,每20秒请求一次,注意函数不加()
  289. this.timer = window.setInterval(this.temp, 20000)
  290. } else {
  291. // 停止监听
  292. clearInterval(this.timer)
  293. }
  294. }
  295. },
  296. methods: {
  297. temp() {
  298. if (JSON.stringify(this.infolist)=='{}') {
  299. return;
  300. }
  301. let params = {};
  302. params.infolist = this.infolist
  303. params.fileList = [];
  304. params.attList = [];
  305. this.attList.forEach(item => {
  306. let file = {
  307. id: item.fileCode,
  308. fileCode: item.fileCode,
  309. fileName: item.fileName,
  310. name: item.fileName
  311. };
  312. params.fileList.push(file);
  313. params.attList.push(file);
  314. });
  315. this.$http({
  316. url: "/market/bpmTemp/temp",
  317. method: "post",
  318. headers: {
  319. "Content-Type": "application/json",
  320. },
  321. data: {
  322. bpmType: "4",
  323. content: JSON.stringify(params),
  324. },
  325. }).then((res) => {
  326. //console.log(res)
  327. });
  328. },
  329. deletes() {
  330. this.treeListonly = {};
  331. this.closeList = !this.closeList;
  332. },
  333. treeCheckonly(v) {
  334. this.treeListonly = v;
  335. },
  336. closedia() {
  337. this.infolist = {};
  338. this.attList = [];
  339. this.fileInfo.fileList = [];
  340. this.dialogStatus = false;
  341. this.checkexa = false;
  342. },
  343. //获取列表
  344. getList(v, n) {
  345. this.pageSize = n;
  346. let _this = this;
  347. this.loading = true;
  348. v.procName = "合作开发流程";
  349. this.$http({
  350. url: "/bpm/api/queryToDoAndFinishTaskList",
  351. method: "post",
  352. headers: {
  353. "Content-Type": "application/json",
  354. "page": '{"pageNo":"' + n + '","pageSize":"10"}'
  355. },
  356. data: v,
  357. }).then((res) => {
  358. this.tableData = res.data.data;
  359. this.total = res.data.totalRecord;
  360. this.loading = false;
  361. });
  362. },
  363. // 分页
  364. currchange(v) {
  365. this.pageSize = v;
  366. this.getList(this.params, this.pageSize);
  367. },
  368. //申请
  369. dialogCheck(v, n) {
  370. this.infolist.itSubTime = '';
  371. this.infolist.elecSubTime = '';
  372. this.dialogStatus = true;
  373. let infolist = Object.assign({}, n);
  374. this.vision = '';
  375. this.visionsts = '';
  376. if (v === 1) {
  377. this.titname = '查看';
  378. this.disableStatus = true;
  379. } else if (v === 2) {
  380. this.titname = '审批';
  381. this.disableStatus = true;
  382. } else if (v === 3) {
  383. this.$http({
  384. url: '/market/bpmTemp/query',
  385. method: "post",
  386. headers: {"Content-Type": "application/json",},
  387. data: {bpmType: "4"},
  388. }).then((res) => {
  389. if (res.data) {
  390. let content = JSON.parse(res.data.content);
  391. this.infolist = content.infolist;
  392. this.attList = content.attList;
  393. this.fileInfo.fileList = content.fileList;
  394. }
  395. this.tempSave = true;
  396. this.titname = '添加';
  397. this.disableStatus = false;
  398. });
  399. return
  400. }
  401. this.$http({
  402. url: '/bpm/api/taskInit',
  403. method: "post",
  404. headers: {
  405. "Content-Type": "application/json",
  406. },
  407. data: {
  408. woNo: n.woNo
  409. },
  410. }).then((res) => {
  411. // this.infolist = Object.assign({}, res.data);
  412. this.terminal = infolist.procId;
  413. this.opname = res.data.opName;
  414. this.opno = res.data.opNo;
  415. this.infolist = JSON.parse(res.data.params.terminalRes);
  416. this.infolist.procId=infolist.procId;
  417. this.infolist.procVersion=infolist.procVersion;
  418. this.remark=infolist.remark;
  419. this.infolist.stepId=infolist.stepId;
  420. this.infolist.taskId=infolist.taskId;
  421. this.infolist.taskName=infolist.taskName;
  422. this.infolist.opName=infolist.opName;
  423. this.infolist.opNo=infolist.opNo;
  424. this.infolist.opTime=infolist.opTime;
  425. this.infolist.woNo=infolist.woNo;
  426. this.visionchonly = false;
  427. if (res.data.taskList[res.data.taskList.length - 1].taskName == '流程发起') {
  428. this.disableStatus = false;
  429. this.vision = '流程发起';
  430. this.visionchonly = true;
  431. }else if (res.data.taskList[res.data.taskList.length - 1].taskName == '记录开发信息') {
  432. this.vision = '记录开发信息';
  433. }
  434. this.datalist.attList = JSON.parse(res.data.params.attList);
  435. this.attList = [];
  436. this.fileInfo.fileList = [];
  437. this.datalist.attList.forEach(item => {
  438. item.id = item.attchFileId;
  439. this.fileInfo.fileList.push({
  440. name: item.fileName,
  441. url: '',
  442. id: item.id,
  443. attchFileId: item.attchFileId,
  444. fileName: item.fileName
  445. });
  446. this.attList.push({
  447. name: item.fileName,
  448. url: '',
  449. id: item.id,
  450. attchFileId: item.attchFileId,
  451. fileName: item.fileName
  452. });
  453. })
  454. this.rovaList = res.data.taskList;
  455. this.uploadstatus = true;
  456. });
  457. },
  458. //审批
  459. dialogCli(v) {
  460. this.dialogStatus = false;
  461. if (v === 3) {
  462. this.infolist = {};
  463. this.attList = [];
  464. this.fileInfo.fileList = [];
  465. this.checkexa = false;
  466. return
  467. }
  468. let _this = this;
  469. this.infolist.opTime = _this.$formatDate(new Date(), "YYYY-MM-DD")
  470. this.infolist.itSubTime?this.infolist.itSubTime = _this.$formatDate(this.infolist.itSubTime, "YYYY-MM-DD"):'';
  471. this.infolist.elecSubTime?this.infolist.elecSubTime = _this.$formatDate(this.infolist.elecSubTime, "YYYY-MM-DD"):'';
  472. if (v === 1) {
  473. // let params = {
  474. // dealType: '1',
  475. // dealTypeDesc: '打回',
  476. // procId: this.infolist.procId,
  477. // procVersion: this.infolist.procVersion,
  478. // remark: this.remark,
  479. // stepId: this.infolist.stepId,
  480. // taskId: this.infolist.taskId,
  481. // taskName: this.infolist.taskName,
  482. // opName: this.infolist.opName,
  483. // opNo: this.opno,
  484. // opTime: this.infolist.opTime,
  485. // params: {
  486. // procExeCondiVal: '不同意',
  487. // terminalRes: JSON.stringify(this.infolist),
  488. // assigneeNo: this.opno,
  489. // assigneeName: this.opname,
  490. // },
  491. // woNo: this.infolist.woNo,
  492. // }
  493. // this.submitInfo("/bpm/api/submitTask", params);
  494. } else if (v === 2) {
  495. let param = {
  496. dealType: '0',
  497. dealTypeDesc: '提交',
  498. procId: this.infolist.procId,
  499. procVersion: this.infolist.procVersion,
  500. remark: this.remark,
  501. stepId: this.infolist.stepId,
  502. taskId: this.infolist.taskId,
  503. taskName: this.infolist.taskName,
  504. opName: this.infolist.opName,
  505. opNo: this.infolist.opNo,
  506. opTime: this.infolist.opTime,
  507. params: {
  508. woType: this.infolist.woType,
  509. terminalRes: JSON.stringify(this.infolist)
  510. },
  511. woNo: this.infolist.woNo,
  512. }
  513. if(this.vision != '记录开发信息'){
  514. param.params.assigneeNo = this.treeListonly.leaderAuditNo;
  515. param.params.assigneeName = this.treeListonly.leaderAuditName;
  516. }
  517. if(this.vision == '流程发起'){
  518. let attList = [];
  519. for (let i = 0; i < this.attList.length; i++) {
  520. attList.push({
  521. id: this.attList[i].id,
  522. fileCode: this.attList[i].fileCode,
  523. fileName: this.attList[i].fileName,
  524. opName: this.attList[i].opName,
  525. opNo: this.attList[i].opNo,
  526. opTime: this.attList[i].opTime,
  527. woNo: this.infolist.woNo,
  528. attchFileId: this.attList[i].attchFileId,
  529. });
  530. }
  531. param.params.attList = JSON.stringify(attList)
  532. this.$http({
  533. url: "/market/bpmTemp/del",
  534. method: "post",
  535. headers: {
  536. "Content-Type": "application/json",
  537. },
  538. data: {
  539. bpmType: "4",
  540. },
  541. }).then((res) => {
  542. //console.log(res)
  543. });
  544. }
  545. this.submitInfo("/bpm/api/submitTask", param);
  546. }
  547. },
  548. //添加
  549. dialogCliadd(v) {
  550. let _this = this;
  551. let info = {};
  552. info.opTime = _this.$formatDate(new Date(), "YYYY-MM-DD");
  553. info.opNo = this.userInfo.loginNo;
  554. info.opName = this.userInfo.loginName;
  555. info.woTitle = this.infolist.woName;
  556. info.params = {};
  557. info.params.terminalRes = this.infolist;
  558. info.params.assigneeNo = this.treeListonly.leaderAuditNo;
  559. info.params.assigneeName = this.treeListonly.leaderAuditName;
  560. info.procId = this.terminal;
  561. for (let i = 0; i < this.options.length; i++) {
  562. if (this.terminal == this.options[i].procId) {
  563. info.procName = this.options[i].procName;
  564. info.procVersion = this.options[i].procVersion;
  565. }
  566. }
  567. let attList = [];
  568. for (let i = 0; i < this.attList.length; i++) {
  569. attList.push({
  570. id: this.attList[i].id,
  571. fileCode: this.attList[i].fileCode,
  572. fileName: this.attList[i].fileName,
  573. opName: this.attList[i].opName,
  574. opNo: this.attList[i].opNo,
  575. opTime: this.attList[i].opTime,
  576. woNo: this.infolist.woNo,
  577. attchFileId: this.attList[i].attchFileId,
  578. });
  579. }
  580. info.params.attList = JSON.stringify(attList)
  581. info.params.terminalRes = JSON.stringify(info.params.terminalRes);
  582. this.submitInfo("/bpm/api/startProc", info);
  583. },
  584. submitInfo(u, v) {
  585. let _this = this;
  586. this.$refs.infolist.validate(valid => {
  587. if (valid) {
  588. this.$http({
  589. url: u,
  590. method: "post",
  591. headers: {
  592. "Content-Type": "application/json",
  593. },
  594. data: v,
  595. }).then((res) => {
  596. if (res.data.result === 1) {
  597. _this.$message({
  598. message: res.data.desc,
  599. type: 'error'
  600. });
  601. } else {
  602. _this.$message({
  603. message: '成功',
  604. type: 'success'
  605. });
  606. _this.closedia();
  607. _this.infolist = {};
  608. _this.attList = [];
  609. _this.fileInfo.fileList = [];
  610. _this.checkexa = false;
  611. _this.getList(this.params, this.pageSize);
  612. }
  613. });
  614. }
  615. })
  616. },
  617. getStanding(){
  618. this.$router.push({
  619. path: '/dStanding',
  620. });
  621. this.setabList('开发流程台账', '/dStanding');
  622. },
  623. setabList(n, p) {
  624. let params = {
  625. children: "",
  626. name: n,
  627. rountPath: p,
  628. target: "_self",
  629. };
  630. for (let i = 0; i < this.$store.state.tabList.length; i++) {
  631. if (this.$store.state.tabList[i].name === params.name) {
  632. this.$store.state.tabList[i] = params;
  633. }
  634. }
  635. let set = new Set([...this.$store.state.tabList, params]);
  636. set.add(params);
  637. this.$store.commit("setDefaultActive", params.rountPath);
  638. this.$store.commit("setTabList", Array.from(set));
  639. },
  640. //流程
  641. getTermianl() {
  642. this.$http({
  643. url: "/bpm/api/queryBpmProcList",
  644. method: "post",
  645. headers: {
  646. "Content-Type": "application/json",
  647. "page": '{"pageNo":"' + 1 + '","pageSize":"100"}'
  648. },
  649. data: {},
  650. }).then((res) => {
  651. this.options = res.data.data;
  652. });
  653. },
  654. closeMessage(v) {
  655. this.centerDialogVisible = false;
  656. let _this = this;
  657. if (v === 1) {
  658. _this.$http({
  659. url: "/bpm/api/deleteBpmPrePlugin",
  660. method: "post",
  661. headers: {
  662. "Content-Type": "application/json",
  663. },
  664. data: {
  665. id: this.delid
  666. },
  667. }).then((res) => {
  668. if (res.data.result === 1) {
  669. _this.$message({
  670. message: res.data.desc,
  671. type: 'error'
  672. });
  673. } else {
  674. _this.$message({
  675. message: '删除成功',
  676. type: 'success'
  677. });
  678. _this.getList(this.params, this.pageSize);
  679. }
  680. });
  681. }
  682. },
  683. //删除
  684. delLine(v) {
  685. this.centerDialogVisible = true;
  686. this.messTit = '即将删除此条数据, 是否删除?';
  687. this.delid = v.id;
  688. },
  689. //文件返回值
  690. uploadBack(v) {
  691. this.attList = v;
  692. },
  693. //功能栏
  694. iconCli(v) {
  695. if (v === 1) {
  696. this.getList(this.params, this.pageSize);
  697. }
  698. if (v === 2) {
  699. this.fullscreen = !this.fullscreen
  700. }
  701. },
  702. getUser() {
  703. this.userInfo = JSON.parse(window.sessionStorage.userInfo);
  704. }
  705. },
  706. mounted() {
  707. this.getList({}, 1);
  708. this.getUser();
  709. this.getTermianl();
  710. },
  711. created() {
  712. }
  713. }
  714. </script>
  715. <style scoped lang="scss">
  716. .onetab {
  717. margin-bottom: 20px;
  718. padding: 0 20px;
  719. }
  720. .titbox {
  721. div {
  722. float: right;
  723. i {
  724. font-size: 22px;
  725. margin-left: 20px;
  726. cursor: pointer;
  727. }
  728. }
  729. }
  730. .tabbox {
  731. margin-top: 15px;
  732. }
  733. .pageBox {
  734. text-align: right;
  735. margin-top: 10px;
  736. }
  737. .info-line {
  738. width: 100%;
  739. display: block;
  740. padding-left: 20px;
  741. div {
  742. width: 50%;
  743. display: inline-block;
  744. }
  745. span {
  746. width: 100px;
  747. display: inline-block;
  748. text-align: left;
  749. i {
  750. color: red;
  751. display: inline-block;
  752. padding-right: 5px;
  753. }
  754. }
  755. .el-select,
  756. .el-input {
  757. width: calc(100% - 120px);
  758. }
  759. }
  760. .online {
  761. width: 100%;
  762. .el-select {
  763. width: calc(100% - 100px);
  764. }
  765. span {
  766. vertical-align: top;
  767. }
  768. .el-textarea {
  769. width: calc(100% - 120px);
  770. }
  771. .tree {
  772. width: calc(50% - 60px);
  773. display: inline-block;
  774. margin-right: 20px;
  775. height: 300px;
  776. overflow-y: scroll;
  777. .el-icon-error {
  778. float: right;
  779. font-size: 20px;
  780. margin-top: 9px;
  781. cursor: pointer;
  782. }
  783. }
  784. .treeUser {
  785. margin: 0;
  786. border: 1px solid #ddd;
  787. p {
  788. background: #f4f4f4;
  789. padding: 0 20px;
  790. margin-bottom: 5px;
  791. }
  792. }
  793. .treeUserb {
  794. width: calc(100% - 100px);
  795. border: 1px solid #ddd;
  796. background: #f4f4f4;
  797. border-radius: 3px;
  798. height: auto;
  799. overflow: hidden;
  800. p {
  801. display: inline-block;
  802. padding: 0 20px;
  803. margin-bottom: 5px;
  804. }
  805. }
  806. }
  807. .adv-type {
  808. margin-top: 20px;
  809. display: flex;
  810. justify-content: space-between;
  811. flex-wrap: wrap;
  812. // border: 1px solid #ddd;
  813. border-radius: 5px;
  814. padding: 20px;
  815. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
  816. div {
  817. width: 33%;
  818. text-align: center;
  819. height: 80px;
  820. overflow: hidden;
  821. min-width: 100px;
  822. cursor: pointer;
  823. padding-top: 10px;
  824. margin: 10px 0;
  825. }
  826. div:hover {
  827. background: #CFE8FC;
  828. border-radius: 5px;
  829. }
  830. span {
  831. width: 100%;
  832. display: inline-block;
  833. height: 40px;
  834. // line-height: 40px;
  835. i {
  836. color: #0074D9;
  837. font-size: 36px;
  838. }
  839. }
  840. }
  841. </style>