inforeview.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  1. <template>
  2. <view style="background-color: #fff;" v-if="content != null">
  3. <view
  4. style="height: 100rpx;display: flex;align-items: center;justify-content: space-around;border-bottom: 1px solid #ceccca;"
  5. v-if="type==0">
  6. <!-- <u-tabs :list="list1" :current="current" @click="click"></u-tabs> -->
  7. <view class="tab" :class="current==0?'active':''" @click="current = 0">
  8. 待办内容
  9. </view>
  10. <view style="border-left: 1px solid #ceccca;height: 80%;">
  11. </view>
  12. <view class="tab" :class="current==0?'':'active'" @click="current = 1">
  13. 流转记录
  14. </view>
  15. </view>
  16. <swiper style="background-color:#fff ;" :style="{height:type==0?'calc(100vh - 100rpx)':'100vh'}"
  17. :current="current" disable-touch>
  18. <swiper-item>
  19. <view style="height: 100%;overflow: auto;">
  20. <u--form labelPosition="left" labelAlign="center" :model="content" ref="uForm"
  21. :labelStyle="{fontSize:'32rpx'}" labelWidth="120">
  22. <u-form-item label="信息标题:" borderBottom ref="item1">
  23. <!-- <u--input v-model="content.title" border="none" readonly></u--input> -->
  24. <view class="content">
  25. {{content.title}}
  26. </view>
  27. </u-form-item>
  28. <!-- <u-form-item label="来文单位:" borderBottom ref="item1">
  29. <view class="content">
  30. {{content.sender}}
  31. </view>
  32. </u-form-item> -->
  33. <u-form-item label="来文日期:" borderBottom ref="item1">
  34. <view class="content">
  35. {{content.createTime}}
  36. </view>
  37. </u-form-item>
  38. <u-form-item label="信息发布栏目:" borderBottom ref="item1">
  39. <view class="content">
  40. {{content.columnName}}
  41. </view>
  42. </u-form-item>
  43. <u-form-item label="正文查看:" borderBottom ref="item1">
  44. <view class="content">
  45. <u-button type="primary" text="查看" @click="msgshow = true"></u-button>
  46. </view>
  47. </u-form-item>
  48. <view v-if="type==0">
  49. <u-form-item label="下一节点:" borderBottom ref="item1" v-if="overType==false">
  50. <uni-data-select v-model="content.jdindex" placeholder="请选择下一节点" :clear="false"
  51. :localdata="list" @change="change"></uni-data-select>
  52. </u-form-item>
  53. <u-form-item label="处理人员:" borderBottom v-if="DeliveryWay==4" ref="item1"
  54. @click="choosePeo">
  55. <view :style="{color:content.users==null?'rgb(192, 196, 204)':''}">
  56. {{content.users==null?'请选择人员': content.userList}}
  57. </view>
  58. </u-form-item>
  59. <u-form-item label="审批意见:" borderBottom ref="item1" v-if="gdType == false">
  60. <u--textarea v-model="content.reviewMsg" placeholder="请输入审批意见" autoHeight
  61. border="none"></u--textarea>
  62. </u-form-item>
  63. <view v-if="gdType == true">
  64. <!-- <u-form-item label="密级:" borderBottom ref="item1">
  65. <uni-data-select v-model="content.levels" placeholder="请选择密级" :clear="false"
  66. :localdata="gd"></uni-data-select>
  67. </u-form-item> -->
  68. <u-form-item label="档案编号:" borderBottom ref="item1">
  69. <u--input v-model="content.archiveNo" placeholder="请输入档案编号"
  70. border="none"></u--input>
  71. </u-form-item>
  72. <u-form-item label="档案分类:" borderBottom ref="item1" @click="chooseGd">
  73. <view :style="{color:content.typeId==null?'rgb(192, 196, 204)':''}">
  74. {{content.typeId==null?'请选择档案分类': content.gdtype}}
  75. </view>
  76. </u-form-item>
  77. <u-form-item label="打印份数:" borderBottom ref="item1">
  78. <u--input v-model="content.printNum" placeholder="请输入打印份数" border="none"></u--input>
  79. </u-form-item>
  80. </view>
  81. <!-- <view v-if="backType == true">
  82. <u-form-item label="退回节点:" borderBottom ref="item1">
  83. <uni-data-select v-model="content.returnToNodeID" placeholder="请选择节点" :clear="false"
  84. :localdata="backlist"></uni-data-select>
  85. </u-form-item>
  86. <u-form-item label="退回意见:" borderBottom ref="item1">
  87. <u--textarea v-model="content.backMsg" placeholder="请输入退回意见" autoHeight
  88. border="none"></u--textarea>
  89. </u-form-item>
  90. </view> -->
  91. <view style="margin-top: 40rpx;padding: 0 20rpx;box-sizing: border-box;"
  92. v-if="gdType == false">
  93. <u-button type="primary" text="提交" @click="submit"></u-button>
  94. </view>
  95. <view style="margin-top: 40rpx;padding: 0 20rpx;box-sizing: border-box;"
  96. v-if="gdType == true">
  97. <u-button type="primary" text="归档" @click="save"></u-button>
  98. </view>
  99. <view style="margin-top: 40rpx;padding: 0 20rpx;box-sizing: border-box;"
  100. v-if="backType == true">
  101. <u-button type="error" text="退回" @click="show = true"></u-button>
  102. </view>
  103. </view>
  104. <view style="padding: 20rpx;box-sizing: border-box;width: 100%;box-sizing: border-box;" v-else>
  105. <u-steps :current="100" direction="column" v-if="record != null">
  106. <view v-for="(v,i) in record" :key="i">
  107. <view v-if="v.ActionType22 != undefined">
  108. <u-steps-item :error="v.ActionType==2?true:false"
  109. v-for="(item,index) in v.ActionType22" :key="index"
  110. :title='item.NDFromT+"("+v.ActionTypeText+")"'>
  111. <view slot="desc" style="color:#606266;">
  112. <view style="font-size: 28rpx;">
  113. 收文部门:{{item.NodeData.split("DeptName=")[1]}}
  114. </view>
  115. <view style="font-size: 28rpx;">
  116. 处理人:{{item.Exer.split(',')[1]}}
  117. </view>
  118. <view style="font-size: 28rpx;">
  119. 处理时间:{{item.RDT}}
  120. </view>
  121. <view style="font-size: 28rpx;">
  122. 审核意见:{{item.Msg}}
  123. </view>
  124. </view>
  125. </u-steps-item>
  126. </view>
  127. <u-steps-item :error="v.ActionType==2?true:false"
  128. :title='v.NDFromT+"("+v.ActionTypeText+")"' v-else>
  129. <view slot="desc" style="color: #606266">
  130. <view style="font-size: 28rpx;">
  131. 收文部门:{{v.NodeData.split("DeptName=")[1]}}
  132. </view>
  133. <view style="font-size: 28rpx;">
  134. 处理人:{{v.Exer.split(',')[1]}}
  135. </view>
  136. <view style="font-size: 28rpx;">
  137. 处理时间:{{v.RDT}}
  138. </view>
  139. </view>
  140. </u-steps-item>
  141. </view>
  142. </u-steps>
  143. </view>
  144. </u--form>
  145. </view>
  146. </swiper-item>
  147. <swiper-item>
  148. <view style="padding: 20rpx;box-sizing: border-box;width: 100%;height: 100%;overflow: auto;">
  149. <u-steps :current="lzNum-1" direction="column" dot v-if="record != null">
  150. <view v-for="(v,i) in record" :key="i">
  151. <u-steps-item :error="v.ActionType==2?true:false"
  152. :title='v.NDFromT+"("+v.ActionTypeText+")"' v-if="v.ActionType==='28'">
  153. <view slot="desc" style="color: #606266">
  154. <view style="font-size: 28rpx;">
  155. 处理人:{{v.EmpFromT}}
  156. </view>
  157. <view style="font-size: 28rpx;">
  158. 到达时间:{{v.SDT}}
  159. </view>
  160. </view>
  161. </u-steps-item>
  162. <view v-else-if="v.ActionType22 != undefined">
  163. <u-steps-item :error="v.ActionType==2?true:false" v-for="(item,index) in v.ActionType22"
  164. :key="index" :title='item.NDFromT+"("+v.ActionTypeText+")"'>
  165. <view slot="desc" style="color:#606266;">
  166. <view style="font-size: 28rpx;">
  167. 处理部门:{{item.NodeData.split("DeptName=")[1]}}
  168. </view>
  169. <view style="font-size: 28rpx;">
  170. 处理人:{{item.Exer.split(',')[1]}}
  171. </view>
  172. <view style="font-size: 28rpx;">
  173. 处理时间:{{item.RDT}}
  174. </view>
  175. <view style="font-size: 28rpx;">
  176. 审核意见:{{item.Msg}}
  177. </view>
  178. </view>
  179. </u-steps-item>
  180. </view>
  181. <u-steps-item :error="v.ActionType==2?true:false"
  182. :title='v.NDFromT+"("+v.ActionTypeText+")"' v-else>
  183. <view slot="desc" style="color: #606266">
  184. <view style="font-size: 28rpx;">
  185. 处理部门:{{v.NodeData.split("DeptName=")[1]}}
  186. </view>
  187. <view style="font-size: 28rpx;">
  188. 处理人:{{v.Exer.split(',')[1]}}
  189. </view>
  190. <view style="font-size: 28rpx;">
  191. 处理时间:{{v.RDT}}
  192. </view>
  193. <view style="font-size: 28rpx;">
  194. 审核意见:{{v.Msg}}
  195. </view>
  196. </view>
  197. </u-steps-item>
  198. </view>
  199. </u-steps>
  200. </view>
  201. </swiper-item>
  202. </swiper>
  203. <u-modal :show="msgshow" title="内容" @confirm="msgshow = false">
  204. <view class="slot-content">
  205. <rich-text :nodes="content.content"></rich-text>
  206. </view>
  207. </u-modal>
  208. <u-modal :show="show" title="退回" :closeOnClickOverlay="true" showCancelButton @cancel="close" @close="close"
  209. @confirm="back">
  210. <view class="slot-content" style="width: 100%;">
  211. <u--form labelPosition="left" labelAlign="center" :model="content" ref="uForm1"
  212. :labelStyle="{fontSize:'32rpx'}" labelWidth="100">
  213. <u-form-item label="退回节点:" borderBottom ref="item1">
  214. <uni-data-select v-model="content.returnToNodeID" placeholder="请选择节点" :clear="false"
  215. :localdata="backlist"></uni-data-select>
  216. </u-form-item>
  217. <u-form-item label="退回意见:" borderBottom ref="item1">
  218. <u--textarea v-model="content.backMsg" placeholder="请输入退回意见" autoHeight
  219. border="none"></u--textarea>
  220. </u-form-item>
  221. </u--form>
  222. </view>
  223. </u-modal>
  224. </view>
  225. </template>
  226. <script>
  227. export default {
  228. data() {
  229. return {
  230. current: 0,
  231. content: null,
  232. statusList: [],
  233. //流转记录
  234. record: null,
  235. //待办已办
  236. type: 0,
  237. //节点列表
  238. list: [],
  239. //是否选择下发人员
  240. selectType: 3,
  241. workid: null,
  242. flowNo: null,
  243. id: null,
  244. //tabs
  245. list1: [{
  246. name: '待办内容'
  247. },
  248. {
  249. name: '流转记录'
  250. }
  251. ],
  252. DeliveryWay: null,
  253. gd: null, //密级列表
  254. gdType: false, //判断是否是归档
  255. overType: false, //判断是否结束
  256. //上个页面传过来的参数
  257. parameter: null,
  258. msgshow: false,
  259. //退回状态
  260. backType: false,
  261. //退回节点列表
  262. backlist: [],
  263. show: false
  264. }
  265. },
  266. onLoad(options) {
  267. let that = this
  268. this.getDicts()
  269. this.getContent(options.workid)
  270. this.getRecord(options.workid)
  271. that.parameter = options
  272. // this.getLmList()
  273. if (options.nodeName.indexOf('归档') != -1) {
  274. that.gdType = true
  275. that.getgd()
  276. }
  277. // this.getgd()
  278. this.type = options.type
  279. this.workid = options.workid
  280. this.flowNo = options.flowNo
  281. uni.setNavigationBarTitle({
  282. title: options.title
  283. })
  284. // if (options.type == 0) {
  285. // setTimeout(() => {
  286. // this.isOver(options)
  287. // }, 500)
  288. // }
  289. },
  290. onShow() {
  291. uni.$once('query', (query) => {
  292. if (query.a == 1) {
  293. this.content.users = getApp().globalData.peoIdList
  294. this.content.userList = getApp().globalData.peoList
  295. this.$forceUpdate()
  296. } else if (query.a == 2) {
  297. this.content.typeId = getApp().globalData.gdId.split(",")[0]
  298. this.content.gdtype = getApp().globalData.gdId.split(",")[1]
  299. this.$forceUpdate()
  300. }
  301. })
  302. },
  303. methods: {
  304. click(e) {
  305. this.current = e.index
  306. },
  307. //查询收文详情
  308. getContent(id) {
  309. uni.$u.http.get('/oa/article/sel/' + id).then(res => {
  310. // console.log(res)
  311. this.content = res.data
  312. this.content.workid = this.workid
  313. this.content.reviewMsg = null
  314. this.getLmList(res.data.columnId)
  315. if (this.gdType == true) {
  316. this.content.typeId = null //归档分类
  317. this.content.levels = null //密级
  318. this.content.archiveNo = null //档案编号
  319. this.content.archiveFormNo = null
  320. this.content.printNum = null //打印份数
  321. this.content.name = res.data.title //档案名称
  322. this.content.gdtype = null //分类名称
  323. }
  324. if (this.type == 0) {
  325. this.isOver(this.parameter)
  326. this.getBackNo(this.parameter.nodeId)
  327. }
  328. this.statusList.forEach(item => {
  329. if (item.dictValue == res.data.emergencyDegree) {
  330. this.content.status = item.dictLabel
  331. }
  332. })
  333. })
  334. },
  335. // 查询字典数据详细
  336. getDicts() {
  337. uni.$u.http.get('/system/dict/data/type/urgent_type').then(res => {
  338. this.statusList = res.data
  339. })
  340. },
  341. //查询归档字典
  342. getgd() {
  343. uni.$u.http.get('/system/dict/data/type/archive_levels').then(res => {
  344. this.gd = res.data.map((item, index) => {
  345. let obj = {
  346. value: item.dictCode,
  347. id: item.dictCode,
  348. text: item.dictLabel,
  349. }
  350. return obj
  351. })
  352. })
  353. },
  354. //获取栏目列表
  355. getLmList(id) {
  356. let that = this
  357. uni.$u.http.get('/oa/column/list', {
  358. params: {
  359. pageSize: 100,
  360. }
  361. }).then(res => {
  362. // console.log(res)
  363. for (let i in res.rows) {
  364. if (id == res.rows[i].id) {
  365. // console.log(res.rows[i].columnName)
  366. this.content.columnName = res.rows[i].columnName
  367. // return res.rows[i].columnName
  368. }
  369. }
  370. })
  371. },
  372. //查询流转记录
  373. getRecord(id) {
  374. uni.$u.http.get('/jflow/restful/getWfGenerWorkList', {
  375. params: {
  376. workID: id,
  377. token: uni.getStorageSync('jtoken')
  378. }
  379. }).then(res => {
  380. this.record = res.trackList
  381. console.log('record', this.record[0].ActionType22)
  382. if (this.type == 0) {
  383. // this.content.jdindex = null
  384. // this.content.nodeId = null
  385. // this.content.optionName = null
  386. // this.content.toNodeId = null
  387. // this.id = this.list[0].id
  388. // this.content.jdindex = 0 //下一节点索引
  389. // this.DeliveryWay = this.list[0].DeliveryWay //下一节点状态
  390. // this.content.toNodeId = this.list[0].id //下一节点ID
  391. // this.content.nodeId = this.list[0].id //下一节点ID
  392. // this.content.optionName = this.list[0].text //节点名称
  393. //////////////////
  394. // this.content.userList = null
  395. // this.content.users = null
  396. // this.content.reviewMsg = null
  397. }
  398. })
  399. },
  400. //查询下一步所有节点
  401. jdList(id, flow) {
  402. uni.$u.http.get('/jflow/restful/GenerNextStepAllNode', {
  403. params: {
  404. workid: id,
  405. token: uni.getStorageSync('jtoken'),
  406. flowNo: flow
  407. }
  408. }).then(res => {
  409. this.id = res[0].NodeID
  410. this.content.jdindex = 0 //下一节点索引
  411. this.DeliveryWay = res[0].DeliveryWay //下一节点状态
  412. this.content.toNodeId = res[0].NodeID //下一节点ID
  413. this.content.nodeId = res[0].NodeID //下一节点ID
  414. this.content.optionName = res[0].Name //节点名称
  415. this.list = res.map((item, index) => {
  416. let obj = {
  417. value: index,
  418. id: item.NodeID,
  419. text: item.Name,
  420. DeliveryWay: item.DeliveryWay
  421. }
  422. return obj
  423. })
  424. })
  425. },
  426. //节点选择
  427. change(e) {
  428. if (e >= 0) {
  429. this.id = this.list[e].id
  430. this.DeliveryWay = this.list[e].DeliveryWay
  431. this.content.toNodeId = this.list[e].id
  432. this.content.nodeId = this.list[e].id
  433. this.content.optionName = this.list[e].text
  434. }
  435. },
  436. //选择人员相关
  437. choosePeo() {
  438. if (this.id == null) {
  439. uni.showToast({
  440. title: "请先选择下一节点",
  441. icon: "none"
  442. })
  443. } else {
  444. uni.navigateTo({
  445. url: `/pages/peoChoose/peoChoose?workid=${this.workid}&flowNo=${this.flowNo}&id=${this.id}`,
  446. })
  447. }
  448. },
  449. //选择归档分类
  450. chooseGd() {
  451. uni.navigateTo({
  452. url: "/pages/file/file"
  453. })
  454. },
  455. //判断是否为最后一步
  456. isOver(v) {
  457. uni.$u.http.get("/jflow/restful/judgeNode", {
  458. params: {
  459. nodeId: v.nodeId
  460. }
  461. }).then(res => {
  462. // console.log(res)
  463. if (res.msg == "Y") {
  464. this.overType = true
  465. } else {
  466. this.overType = false
  467. this.jdList(v.workid, v.flowNo)
  468. }
  469. })
  470. },
  471. //提交待办
  472. submit() {
  473. if (this.id == null) {
  474. uni.showToast({
  475. title: "请先选择下一节点",
  476. icon: "none"
  477. })
  478. } else if (this.content.users == null && this.DeliveryWay == 4) {
  479. uni.showToast({
  480. title: "请选择人员",
  481. icon: "none"
  482. })
  483. } else if (this.content.reviewMsg == null) {
  484. uni.showToast({
  485. title: "请填写审核内容",
  486. icon: "none"
  487. })
  488. } else {
  489. uni.showLoading({
  490. title: "提交中...",
  491. mask: true
  492. })
  493. uni.$u.http.post("/offcial/receive/sendFlowToUsers", this.content, {
  494. header: {
  495. // 'content-Type': 'multipart/form-data'
  496. 'content-Type': 'application/x-www-form-urlencoded'
  497. }
  498. }).then(res => {
  499. // uni.hideLoading()
  500. if (res.data.VarAcceptersName != "" && res.data.VarAcceptersName != "结束") {
  501. uni.showToast({
  502. title: "已发送到" + res.data.VarToNodeName + "节点,接收人:" + res
  503. .data.VarAcceptersName,
  504. icon: "none",
  505. mask: true,
  506. duration: 3000
  507. })
  508. } else if (res.data.VarAcceptersName == "结束") {
  509. uni.showToast({
  510. title: res.data.Message,
  511. icon: "none",
  512. mask: true,
  513. duration: 3000
  514. })
  515. } else {
  516. uni.showToast({
  517. title: res.data.Message.replace(/[@]/g, ""),
  518. icon: "none",
  519. mask: true,
  520. duration: 3000
  521. })
  522. }
  523. uni.$emit('query', {
  524. a: 'back'
  525. })
  526. setTimeout(() => {
  527. uni.navigateBack()
  528. }, 2000)
  529. }).catch(res => {
  530. uni.hideLoading()
  531. })
  532. }
  533. },
  534. //保存归档
  535. save() {
  536. // if (this.content.levels == null) {
  537. // uni.showToast({
  538. // title: "请选择密级",
  539. // icon: "none"
  540. // })
  541. // } else
  542. if (this.content.archiveNo == null) {
  543. uni.showToast({
  544. title: "请填写档案编号",
  545. icon: "none"
  546. })
  547. } else if (this.content.typeId == null) {
  548. uni.showToast({
  549. title: "请选择归档分类",
  550. icon: "none"
  551. })
  552. } else if (this.content.printNum == null) {
  553. uni.showToast({
  554. title: "请填写打印份数",
  555. icon: "none"
  556. })
  557. } else {
  558. this.content.reviewMsg = "同意"
  559. uni.showLoading({
  560. title: "提交中...",
  561. mask: true
  562. })
  563. uni.$u.http.post("/offcial/archive/save", this.content).then(res => {
  564. uni.$u.http.get('/jflow/restful/GenerNextStepAllNode', {
  565. params: {
  566. workid: this.parameter.workid,
  567. token: uni.getStorageSync('jtoken'),
  568. flowNo: this.parameter.flowNo,
  569. }
  570. }).then(qwe => {
  571. // uni.hideLoading()
  572. uni.showToast({
  573. title: "归档成功",
  574. icon: "none",
  575. mask: true,
  576. duration: 2000
  577. })
  578. uni.$emit('query', {
  579. a: 'back'
  580. })
  581. setTimeout(() => {
  582. uni.navigateBack()
  583. }, 2000)
  584. })
  585. }).catch(res => {
  586. uni.hideLoading()
  587. uni.showToast({
  588. title: "请稍后重试",
  589. icon: "none"
  590. })
  591. })
  592. }
  593. },
  594. //查询是否能退回
  595. getBackNo(id) {
  596. uni.$u.http.get("/jflow/restful/CurrNodeInfo?currNodeID=" + id).then(res => {
  597. if (res[0].ReturnRole != 0) {
  598. this.getBackList()
  599. this.backType = true
  600. this.content.returnToNodeID = null
  601. this.content.backMsg = null
  602. }
  603. })
  604. },
  605. //获取退回节点列表
  606. getBackList() {
  607. uni.$u.http.get("/jflow/restful/getReturnWorkNode", {
  608. params: {
  609. workid: this.parameter.workid,
  610. token: uni.getStorageSync('jtoken')
  611. }
  612. }).then(res => {
  613. this.backlist = res.map((item, index) => {
  614. let obj = {
  615. value: item.No,
  616. id: item.No,
  617. text: item.Name,
  618. }
  619. return obj
  620. })
  621. })
  622. },
  623. //退回上一节点
  624. back() {
  625. if (this.content.returnToNodeID == null) {
  626. uni.showToast({
  627. title: "请选择退回节点",
  628. icon: "none"
  629. })
  630. } else if (this.content.backMsg == null) {
  631. uni.showToast({
  632. title: "请填写退回意见",
  633. icon: "none"
  634. })
  635. } else {
  636. uni.showLoading({
  637. title: "退回中...",
  638. })
  639. uni.$u.http.get("/offcial/receive/NodeReturnWork", {
  640. params: {
  641. workid: this.parameter.workid,
  642. returnToNodeID: this.content.returnToNodeID,
  643. returnMsg: this.content.backMsg
  644. }
  645. }).then(res => {
  646. uni.hideLoading()
  647. this.close()
  648. uni.showToast({
  649. title: res,
  650. icon: "none",
  651. duration: 2000
  652. })
  653. uni.$emit('query', {
  654. a: 'back'
  655. })
  656. setTimeout(() => {
  657. uni.navigateBack()
  658. }, 2000)
  659. }).catch(error => {
  660. uni.hideLoading()
  661. uni.showToast({
  662. title: "请稍后重试",
  663. icon: "none"
  664. })
  665. })
  666. }
  667. },
  668. //关闭模态框
  669. close() {
  670. this.content.returnToNodeID = null
  671. this.content.backMsg = null
  672. this.show = false
  673. }
  674. }
  675. }
  676. </script>
  677. <style lang="scss" scoped>
  678. .content {
  679. font-size: 32rpx;
  680. }
  681. .tab {
  682. width: 48%;
  683. height: 100%;
  684. box-sizing: border-box;
  685. display: flex;
  686. align-items: center;
  687. justify-content: center;
  688. }
  689. .active {
  690. color: #2979ff
  691. }
  692. </style>