detail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  1. <template>
  2. <view class="pages">
  3. <view class="vtitle">检测申请方填写</view>
  4. <view class="form_group">
  5. <view class="lable">委托单编号</view>
  6. <view class="tag">
  7. <text class="span">{{ item.wt_num }}</text>
  8. <text class="icon more">&#xe631;</text>
  9. </view>
  10. </view>
  11. <view class="form_group">
  12. <view class="lable">标题</view>
  13. <view class="tag">
  14. <input v-model="item.title" placeholder="输入标题" />
  15. <text class="icon more">&#xe631;</text>
  16. </view>
  17. </view>
  18. <view class="form_group">
  19. <view class="lable">申请单位/部门</view>
  20. <view class="tag">
  21. <input v-model="item.dept" placeholder="输入申请单位/部门" />
  22. <text class="icon more">&#xe631;</text>
  23. </view>
  24. </view>
  25. <view class="form_group">
  26. <view class="lable">试验目的</view>
  27. <view class="tag">
  28. <input v-model="item.purpose" placeholder="输入试验目的" />
  29. <text class="icon more">&#xe631;</text>
  30. </view>
  31. </view>
  32. <view class="form_group">
  33. <view class="lable">申请人</view>
  34. <view class="tag">
  35. <input v-model="item.applicant" placeholder="输入申请人" />
  36. <text class="icon more">&#xe631;</text>
  37. </view>
  38. </view>
  39. <view class="form_group">
  40. <view class="lable">电话</view>
  41. <view class="tag">
  42. <input v-model="item.tel" placeholder="输入电话" />
  43. <text class="icon more">&#xe631;</text>
  44. </view>
  45. </view>
  46. <view class="form_group">
  47. <view class="lable">试验部门</view>
  48. <view class="tag">
  49. <input v-model="item.test_dept" placeholder="输入试验部门" />
  50. <text class="icon more">&#xe631;</text>
  51. </view>
  52. </view>
  53. <view class="form_group">
  54. <view class="lable">所属项目</view>
  55. <view class="tag">
  56. <input v-model="item.item" placeholder="输入所属项目" />
  57. <text class="icon more">&#xe631;</text>
  58. </view>
  59. </view>
  60. <view class="form_group">
  61. <view class="lable">试验类型</view>
  62. <view class="tag">
  63. <view class="span">
  64. <picker @change="bindChange($event, 'experiment_type')" :range="array2">
  65. <view class="picks">{{ item.experiment_type ? item.experiment_type : '选择2' }}</view>
  66. </picker>
  67. <picker @change="bindChange($event, 'product')" :range="array1">
  68. <view class="picks">{{ item.product ? item.product : '选择1' }}</view>
  69. </picker>
  70. </view>
  71. <text class="icon more">&#xe631;</text>
  72. </view>
  73. </view>
  74. <view class="form_group">
  75. <view class="lable">项目编号</view>
  76. <view class="tag">
  77. <input v-model="item.item_num" placeholder="输入项目编号" />
  78. <text class="icon more">&#xe631;</text>
  79. </view>
  80. </view>
  81. <view class="form_group">
  82. <view class="lable">结果形式</view>
  83. <view class="tag"><u-subsection :list="radio" :current="current" @change="change"></u-subsection></view>
  84. </view>
  85. <view class="form_group">
  86. <view class="lable">模板</view>
  87. <view class="tag" @click="dshow = true">
  88. <text class="span">2个模板</text>
  89. <text class="icon more">&#xe631;</text>
  90. </view>
  91. </view>
  92. <view class="form_group">
  93. <view class="lable">附件上传</view>
  94. <view class="tag" @click="dshow = true"><text class="span">最大上传5个</text></view>
  95. </view>
  96. <view class="form_group">
  97. <uni-file-picker :limit="5" @select="upload($event, item)" file-mediatype="all">
  98. <button class="up">
  99. <text class="icon">&#xe604;</text>
  100. <text>选择文件</text>
  101. </button>
  102. </uni-file-picker>
  103. <view class="ufiles">
  104. <view class="fil" v-for="(item, index) in item.unstructured" :key="index" @click="look(item)">
  105. <view class="icon" v-if="item.fileType.toLowerCase() == '.png' || item.fileType.toLowerCase() == '.jpg'">&#xe63e;</view>
  106. <view class="icon" v-else>&#xeb66;</view>
  107. <view class="name">
  108. <view class="omit">{{ item.name }}</view>
  109. <view class="desc">{{ (item.size / 1024).toFixed(2) }}kb</view>
  110. </view>
  111. <view class="del" @click.stop="del(item)">删除</view>
  112. <view class="clear"></view>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="vtitle">设置审批人员</view>
  117. <view class="form_group" @click="select('1')">
  118. <view class="lable">需求审核-产品经理或主管人员</view>
  119. <view class="tag">
  120. <text class="span">{{ item.WTXQSH }}</text>
  121. <text class="icon more">&#xe631;</text>
  122. </view>
  123. </view>
  124. <view class="form_group" @click="select('2')">
  125. <view class="lable">试验审核-试验对接人</view>
  126. <view class="tag">
  127. <text class="span">{{ item.WTSYSH }}</text>
  128. <text class="icon more">&#xe631;</text>
  129. </view>
  130. </view>
  131. <view class="form_group" @click="select('3')">
  132. <view class="lable">需求批准-本部门领导</view>
  133. <view class="tag">
  134. <text class="span">{{ item.WTXQPZ }}</text>
  135. <text class="icon more">&#xe631;</text>
  136. </view>
  137. </view>
  138. <view class="form_group" @click="select('4')">
  139. <view class="lable">试验批准</view>
  140. <view class="tag">
  141. <text class="span">{{ item.WTSYPZ }}</text>
  142. <text class="icon more">&#xe631;</text>
  143. </view>
  144. </view>
  145. <view class="form_group" @click="select('5')">
  146. <view class="lable">任务分派-任务分派人</view>
  147. <view class="tag">
  148. <text class="span">{{ item.WTRWFP }}</text>
  149. <text class="icon more">&#xe631;</text>
  150. </view>
  151. </view>
  152. <view class="vtitle">样机</view>
  153. <view class="form_group">
  154. <view class="lable">GH560</view>
  155. <view class="tag">
  156. <text class="span">XH890656565556</text>
  157. <text class="icon more">&#xe631;</text>
  158. </view>
  159. </view>
  160. <view class="form_group">
  161. <view class="lable">GH560</view>
  162. <view class="tag">
  163. <text class="span">XH890656565556</text>
  164. <text class="icon more">&#xe631;</text>
  165. </view>
  166. </view>
  167. <view class="footer" v-if="btnshow">
  168. <view class="flex">
  169. <view class="f"><button class="btn br" @click="validate()">保存</button></view>
  170. <view class="f"><button class="btn br" @click="submission()">提交</button></view>
  171. <view class="f" v-if="state == 1"><button class="btn br back" @click="back()">回退</button></view>
  172. </view>
  173. </view>
  174. <u-popup :show="dshow" mode="center" @close="dshow = false" round="5" closeable customStyle="width:92%">
  175. <view class="popup">
  176. <u-divider text="模板下载"></u-divider>
  177. <view class="citem" @click="download('https://img-operation.csdnimg.cn/csdn/silkroad/img/1670234405428.jpg')">
  178. <view class="title omit">提交流程面板提交流程面板提交流程面板</view>
  179. <view class="xz">点击下载</view>
  180. </view>
  181. <view class="citem" @click="download('https://img-operation.csdnimg.cn/csdn/silkroad/img/1670234405428.jpg')">
  182. <view class="title omit">提交流程面板提交流程面板提交流程面板</view>
  183. <view class="xz">点击下载</view>
  184. </view>
  185. <view class="citem" @click="download('https://img-operation.csdnimg.cn/csdn/silkroad/img/1670234405428.jpg')">
  186. <view class="title omit">提交流程面板提交流程面板提交流程面板</view>
  187. <view class="xz">点击下载</view>
  188. </view>
  189. </view>
  190. </u-popup>
  191. <u-popup :show="show" mode="bottom" @close="show = false" closeable round="15">
  192. <view class="popup">
  193. <u-divider text="提交流程面板"></u-divider>
  194. <scroll-view scroll-y="true" style="height: 300rpx;">
  195. <view v-for="(item, index) in nextNodes" :key="index" class="bitem" @click="bselect(item, 'nextNodes')">
  196. <view class="icon select check" v-if="item.check">&#xe600;</view>
  197. <view class="icon select" v-else>&#xe8bb;</view>
  198. <view class="title">{{ item.name }}</view>
  199. </view>
  200. </scroll-view>
  201. <view class="confrim-btn"><button class="btn" @click="submit()">确定</button></view>
  202. </view>
  203. </u-popup>
  204. <u-popup :show="bshow" mode="bottom" @close="bshow = false" closeable round="15">
  205. <view class="popup">
  206. <u-divider text="回退流程面板"></u-divider>
  207. <scroll-view scroll-y="true" style="height: 300rpx;">
  208. <view v-for="(item, index) in backNodes" :key="index" class="bitem" @click="bselect(item, 'backNodes')">
  209. <view class="icon select check" v-if="item.check">&#xe600;</view>
  210. <view class="icon select" v-else>&#xe8bb;</view>
  211. <view class="title">{{ item.name }}</view>
  212. </view>
  213. </scroll-view>
  214. <view class="confrim-btn"><button class="btn" @click="workflowsback()">确定</button></view>
  215. </view>
  216. </u-popup>
  217. </view>
  218. </template>
  219. <script>
  220. let qrcode = require('@/common/code.js');
  221. export default {
  222. data() {
  223. return {
  224. ip: this.http.urls.ip,
  225. p: {},
  226. item: {},
  227. current: 0,
  228. radio: [
  229. {
  230. name: '正式报告'
  231. },
  232. {
  233. name: '仅原始数据'
  234. },
  235. {
  236. name: '协助试验'
  237. }
  238. ],
  239. id: '',
  240. items: {
  241. document: {
  242. items: {}
  243. }
  244. },
  245. array1: ['类型1', '类型2', '类型3', '类型4'], //实验类型1
  246. array2: ['类型2', '类型12', '类型13', '类型14'], //实验类型2
  247. show: false,
  248. bshow: false,
  249. dshow: false,
  250. itemt: {},
  251. up: {},
  252. content: '标题',
  253. nextNodes: [],
  254. backNodes: [],
  255. touser: {
  256. nodeid: '1649917385058',
  257. isToPerson: true,
  258. userids: '__jFFZYvLIG6uFc7CdBMg'
  259. },
  260. btnshow: false,
  261. state: 0,
  262. btitem: {
  263. applicationId: '__gAPYBW4YxB3UePM3lqO',
  264. exparams: {},
  265. formId: '__0FLGNncOS1lz0T9jsFn',
  266. id: '__79Wtw03ya4dJUDGPyAN',
  267. isRelate: 'true',
  268. parentId: '',
  269. sign: '',
  270. subDocuments: [],
  271. templateForm: '',
  272. versions: '0'
  273. },
  274. };
  275. },
  276. onLoad(e) {
  277. this.id = e.id;
  278. //传过来的id
  279. this.state = e.ste;
  280. if (e.ste == 1) {
  281. /* this.http.request({
  282. url: this.http.urls.xxxx + e.id,
  283. success: res => {
  284. this.item = res.data.data;
  285. }
  286. }); */
  287. this.getDocuments();
  288. } else if (e.ste == 2) {
  289. this.empty();
  290. }
  291. //选中审批人员监听函数,其它类型的参考这个
  292. uni.$on('select', res => {
  293. console.log('asd2:' + JSON.stringify(res));
  294. if (res.ste == 1) {
  295. this.item.WTXQSH = res.items.__L5a8n9ZH5gJC0CL1s6X.value;
  296. } else if (res.ste == 2) {
  297. this.item.WTSYSH = res.items.__0ils0bIBD7Vf90TjVb3.value;
  298. } else if (res.ste == 3) {
  299. this.item.WTXQPZ = res.items.__uiMgMPHg9jmqTXzwdzl.value;
  300. } else if (res.ste == 4) {
  301. this.item.WTSYPZ = res.items.__WSh3KXD8wfeyU3FbipN.value;
  302. } else if (res.ste == 5) {
  303. this.item.WTRWFP = res.items.__IzBqxyYJhOYJntHpmEv.value;
  304. }
  305. });
  306. },
  307. methods: {
  308. //选择实验类型
  309. bindChange(e, type) {
  310. this.item[type] = this.array1[e.target.value];
  311. this.$forceUpdate();
  312. },
  313. //下载模板
  314. download(url) {
  315. const a = document.createElement('a');
  316. a.href = url;
  317. a.download = 'download';
  318. a.click();
  319. this.dshow = false;
  320. },
  321. //提交或回退
  322. bselect(e, tag) {
  323. this[tag].forEach(item => {
  324. item.check = false;
  325. });
  326. e.check = true;
  327. this.itemt.nextNodeIds = [];
  328. this.itemt.nextNodeIds.push(e.id);
  329. this.$forceUpdate();
  330. }, //详情
  331. getDocuments() {
  332. this.http.request({
  333. url: this.http.urls.documents + this.id,
  334. data: this.item,
  335. success: res => {
  336. this.item = res.data.data.items;
  337. this.p = res.data.data;
  338. console.log('res.data:' + JSON.stringify(res.data));
  339. //保存数据
  340. this.btitem.id = res.data.data.id;
  341. this.btitem.formId = res.data.data.formid;
  342. this.btitem.versions = res.data.data.versions;
  343. this.btitem.parentId = "";
  344. this.item.unstructured = JSON.parse(this.item.unstructured);
  345. if (this.p.lastFlowOperation == undefined || this.p.auditorList.includes(this.getUser().id)) {
  346. this.btnshow = true;
  347. }
  348. //this.current=res.data.data.items.report_type;
  349. if (this.item.report_type == '正式报告') {
  350. this.current = 0;
  351. } else if (this.item.report_type == '仅原始数据') {
  352. this.current = 1;
  353. } else if (this.item.report_type == '协助试验') {
  354. this.current = 2;
  355. }
  356. this.iteml = res.data.data;
  357. this.items.applicationId = '__gAPYBW4YxB3UePM3lqO';
  358. this.items.docId = this.iteml.id;
  359. this.items.id = this.iteml.id;
  360. this.items.formId = this.iteml.formid;
  361. this.items.parentId = '';
  362. this.items.subSelects = [];
  363. this.items.templateForm = '';
  364. this.items.viewId = '';
  365. this.items.document.items = this.item;
  366. this.items.document.applicationId = '__gAPYBW4YxB3UePM3lqO';
  367. this.items.document.exparams = {};
  368. this.items.document.formId = this.iteml.formid;
  369. this.items.document.id = this.iteml.id;
  370. this.items.document.parentId = '';
  371. this.items.document.sign = '';
  372. this.items.document.stateId = this.iteml.stateid;
  373. this.items.document.subDocuments = [];
  374. this.items.document.templateForm = '';
  375. this.items.document.versions = '0';
  376. }
  377. });
  378. },
  379. empty() {
  380. this.btnshow = true;
  381. this.http.request({
  382. url: this.http.urls.empty,
  383. data: this.item,
  384. success: res => {
  385. console.log('res2:' + JSON.stringify(res));
  386. this.item = res.data.data.items;
  387. this.p = res.data.data;
  388. //保存数据
  389. this.btitem.id = res.data.data.id;
  390. this.btitem.formId = res.data.data.formid;
  391. this.btitem.versions = res.data.data.versions;
  392. this.btitem.parentId = "";
  393. console.log('this.p1:' + JSON.stringify(this.p));
  394. //this.current=res.data.data.items.report_type;
  395. if (this.item.report_type == '正式报告') {
  396. this.current = 0;
  397. } else if (this.item.report_type == '仅原始数据') {
  398. this.current = 1;
  399. } else if (this.item.report_type == '协助试验') {
  400. this.current = 2;
  401. }
  402. this.iteml = res.data.data;
  403. this.items.applicationId = '__gAPYBW4YxB3UePM3lqO';
  404. this.items.docId = this.iteml.id;
  405. this.items.id = this.iteml.id;
  406. this.items.formId = this.iteml.formid;
  407. this.items.parentId = '';
  408. this.items.subSelects = [];
  409. this.items.templateForm = '';
  410. this.items.viewId = '';
  411. this.items.document.items = this.item;
  412. this.items.document.applicationId = '__gAPYBW4YxB3UePM3lqO';
  413. this.items.document.exparams = {};
  414. this.items.document.formId = this.iteml.formid;
  415. this.items.document.id = this.iteml.id;
  416. this.items.document.parentId = '';
  417. this.items.document.sign = '';
  418. this.items.document.stateId = this.iteml.stateid;
  419. this.items.document.subDocuments = [];
  420. this.items.document.templateForm = '';
  421. this.items.document.versions = '0';
  422. }
  423. });
  424. },
  425. //选择结果形式
  426. change(e) {
  427. this.current = e;
  428. console.log('aa:' + this.radio[this.current].name);
  429. this.item.report_type = this.radio[this.current].name;
  430. },
  431. //选择审批人员
  432. select(e) {
  433. uni.navigateTo({
  434. url: '/pages/index/select?ste=' + e
  435. });
  436. },
  437. //选择文件上传
  438. upload(e, item) {
  439. uni.showLoading({ title: '正在上传.....', mask: true });
  440. e.tempFilePaths.forEach((temp, index) => {
  441. uni.uploadFile({
  442. url: this.http.urls.upload,
  443. filePath: temp,
  444. name: 'files',
  445. formData: {
  446. applicationId: '__gAPYBW4YxB3UePM3lqO',
  447. allowedTypes: '00',
  448. fieldId: this.id + '_unstructured',
  449. fileSaveMode: '00',
  450. path: 'ITEM_PATH',
  451. actionType: ''
  452. },
  453. header: { accessToken: this.getUser().accessToken },
  454. success: res => {
  455. uni.hideLoading();
  456. let data = JSON.parse(res.data);
  457. if (data.errcode == 0) {
  458. this.item.unstructured.push({
  459. name: data.data[0].fileName,
  460. path: data.data[0].filePath,
  461. size: data.data[0].fileSize,
  462. fileType: data.data[0].fileType
  463. });
  464. this.$forceUpdate();
  465. } else {
  466. uni.showModal({ content: '上传失败', showCancel: false });
  467. }
  468. },
  469. fail: res => {
  470. uni.hideLoading();
  471. uni.showModal({ content: '上传失败', showCancel: false });
  472. }
  473. });
  474. });
  475. },
  476. //删除上传的文件
  477. del(item) {
  478. this.item.unstructured.splice(this.item.unstructured.indexOf(item), 1);
  479. },
  480. //文件预览
  481. look(item) {
  482. console.log('asd:' + JSON.stringify(item));
  483. uni.openDocument({
  484. //新开页面打开文档,支持格式:doc, xls, ppt, pdf, docx, xlsx, pptx。
  485. filePath: this.ip + item.path,
  486. showMenu: true,
  487. success: res => {
  488. console.log('打开文档成功');
  489. }
  490. });
  491. },
  492. //提交
  493. add() {
  494. this.http.request({
  495. url: this.http.urls.user_task_add,
  496. data: this.item,
  497. method: 'POST',
  498. success: res => {
  499. uni.showModal({
  500. title: '提示',
  501. content: '提交成功',
  502. showCancel: false,
  503. success: res => {
  504. if (res.confirm) {
  505. uni.navigateBack();
  506. }
  507. }
  508. });
  509. }
  510. });
  511. },
  512. //保存
  513. validate() {
  514. this.btitem.items = this.item;
  515. this.http.request({
  516. url: this.http.urls.validate +'/'+this.btitem.id+
  517. '/withoutValid?' +
  518. this.btitem.parentId,
  519. data: this.btitem,
  520. method: 'PUT',
  521. success: res => {
  522. console.log('validate1:' + JSON.stringify(res));
  523. if(res.data.errcode==0){
  524. uni.$emit('index');
  525. uni.redirectTo({
  526. url: '/pages/index/index'
  527. });
  528. }else{
  529. uni.showModal({
  530. title: '提示',
  531. content: res.data.data.errmsg,
  532. showCancel: false,
  533. success: res => {
  534. if (res.confirm) {
  535. //uni.navigateBack();
  536. }
  537. }
  538. });
  539. return;
  540. }
  541. }
  542. });
  543. },
  544. //提交流程面板
  545. submission() {
  546. this.http.request({
  547. url: this.http.urls.documents + this.id + '/panels/submission',
  548. data: this.items,
  549. method: 'POST',
  550. success: res => {
  551. //this.item=res.data.data;
  552. console.log('zx22:' + JSON.stringify(res));
  553. this.show = true;
  554. this.title = res.data.data.name;
  555. this.nextNodes = res.data.data.nextNodes;
  556. this.itemt.flowId = res.data.data.flowId;
  557. this.itemt.flowType = '80';
  558. this.itemt.currentNodeId = res.data.data.currentNodeId;
  559. this.itemt.attitude = '';
  560. this.itemt.signature = '';
  561. this.itemt.submitTo = '';
  562. this.itemt.circulatorInfo = '';
  563. this.itemt.subFlowApproverInfo = '';
  564. this.itemt.subFlowApproverInfoAll = '';
  565. this.itemt.document = this.items.document;
  566. //this.content=res.data.data.formname;
  567. }
  568. });
  569. }, //提交流程
  570. submit() {
  571. //this.itemt.document.items.purpose="试验目的5656";
  572. //this.itemt.document.items.title="标题5656";
  573. this.itemt.applicationId = '__gAPYBW4YxB3UePM3lqO';
  574. this.itemt.docId = this.iteml.id;
  575. this.itemt.id = this.iteml.id;
  576. this.itemt.formId = this.iteml.formid;
  577. this.itemt.parentId = '';
  578. this.itemt.subFlowApprover = [];
  579. this.itemt.subSelects = [];
  580. this.itemt.submitTo = [];
  581. this.itemt.templateForm = '';
  582. this.itemt.viewId = '';
  583. this.http.request({
  584. url: this.http.urls.documents + this.id + '/workflows/submit',
  585. data: this.itemt,
  586. method: 'PUT',
  587. success: res => {
  588. //this.item=res.data.data;
  589. console.log('zx22:' + JSON.stringify(res));
  590. this.show = false;
  591. this.title = res.data.data.name;
  592. this.nextNodes = res.data.data.nextNodes;
  593. uni.$emit('index');
  594. uni.redirectTo({
  595. url: '/pages/index/index'
  596. });
  597. //this.content=res.data.data.formname;
  598. }
  599. });
  600. }, //刷新数据
  601. //回退流程面板
  602. back() {
  603. this.http.request({
  604. url: this.http.urls.documents + this.id + '/panels/back',
  605. data: this.items,
  606. method: 'POST',
  607. success: res => {
  608. //this.item=res.data.data;
  609. console.log('zx22:' + JSON.stringify(res.data.data));
  610. this.bshow = true;
  611. this.title = res.data.data.name;
  612. this.backNodes = res.data.data.backNodes;
  613. this.itemt.flowId = res.data.data.flowId;
  614. this.itemt.flowType = '81';
  615. this.itemt.currentNodeId = res.data.data.currentNodeId;
  616. this.itemt.attitude = '';
  617. this.itemt.signature = '';
  618. this.itemt.submitTo = '';
  619. this.itemt.circulatorInfo = '';
  620. this.itemt.subFlowApproverInfo = '';
  621. this.itemt.subFlowApproverInfoAll = '';
  622. this.itemt.document = this.items.document;
  623. //this.content=res.data.data.formname;
  624. }
  625. });
  626. }, //提交回退流程
  627. workflowsback() {
  628. //this.itemt.document.items.purpose="试验目的111";
  629. this.itemt.applicationId = '__gAPYBW4YxB3UePM3lqO';
  630. this.itemt.docId = this.iteml.id;
  631. this.itemt.id = this.iteml.id;
  632. this.itemt.formId = this.iteml.formid;
  633. this.itemt.parentId = '';
  634. this.itemt.subFlowApprover = [];
  635. this.itemt.subSelects = [];
  636. this.itemt.submitTo = [];
  637. this.itemt.templateForm = '';
  638. this.itemt.viewId = '';
  639. this.http.request({
  640. url: this.http.urls.documents + this.id + '/workflows/back',
  641. data: this.itemt,
  642. method: 'PUT',
  643. success: res => {
  644. //this.item=res.data.data;
  645. console.log('zx22:' + JSON.stringify(res));
  646. this.bshow = false;
  647. this.title = res.data.data.name;
  648. this.nextNodes = res.data.data.nextNodes;
  649. uni.$emit('index');
  650. uni.redirectTo({
  651. url: '/pages/index/index'
  652. });
  653. //this.content=res.data.data.formname;
  654. }
  655. });
  656. }
  657. }
  658. };
  659. </script>
  660. <style lang="scss">
  661. .pages {
  662. padding-bottom: 85px;
  663. }
  664. </style>