warehouse_warrant.vue 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060
  1. <template>
  2. <view class="warp">
  3. <view class="topInfo">
  4. <view class="topInfo-item">
  5. <view class="flex info">
  6. <view class="logo">
  7. <image src="../../../static/img/reject.png" mode="" v-if="status == '已驳回'"
  8. style="height: 40rpx;"></image><!-- 驳回 -->
  9. <image src="../../../static/img/tongguo.png" mode="" v-if="status == '已通过'"
  10. style="height: 40rpx;"></image><!-- 通过 -->
  11. <!-- v-if="status == '审核中' || status == '待决策人审核'" -->
  12. <image src="../../../static/img/daishenhe.png" mode="" style="height: 40rpx;"></image>
  13. <!-- 待审核 -->
  14. </view>
  15. <!-- {{auditList.length > 0 ?auditList[auditList.length - 1].operatorMajorRoleName:""}} -->
  16. <view class="infoText">{{auditInfo.approveStatus?auditInfo.approveStatus:'待付款'}}</view>
  17. </view>
  18. <view class="infoData">{{auditInfo.updateDate}}</view>
  19. </view>
  20. </view>
  21. <view class="content1">
  22. <view class="title ">
  23. 基本信息
  24. </view>
  25. <view class="row">
  26. <view class="left">请款日期</view>
  27. <view class="right">{{auditInfo.requestDate}}</view>
  28. </view>
  29. <view class="row">
  30. <view class="left">请款人</view>
  31. <view class="right">{{auditInfo.requestPerson}}</view>
  32. </view>
  33. <view class="row">
  34. <view class="left" style='width:33.3333%;text-align:center;border-right:1px solid #ccc;'>货名 </view>
  35. <view class="right" style='width:33.3333%;text-align:center;border-right:1px solid #ccc;'>重量(吨)</view>
  36. <view class="right" style='width:33.3333%;text-align:center;'>金额(元)</view>
  37. </view>
  38. <view class="row" v-for='item in auditInfo.goodNameList'>
  39. <view class="left" style='width:33.3333%;text-align:center;border-right:1px solid #ccc;'>
  40. {{item.goodsName}}
  41. </view>
  42. <view class="right" style='width:33.3333%;text-align:center;border-right:1px solid #ccc;'>
  43. {{item.inWarehouseWeight}}
  44. </view>
  45. <view class="right" style='width:33.3333%;text-align:center;'>{{item.requestFunds}}</view>
  46. </view>
  47. <view class="row">
  48. <view class="left">所属仓库 </view>
  49. <view class="right">{{auditInfo.warehouseName}}</view>
  50. </view>
  51. <view @click="detailed('',1)" class="row">
  52. <view class="left">合计重量(吨)</view>
  53. <view class="right">{{auditInfo.inWarehouseWeightTotal}}</view>
  54. </view>
  55. <view @click="detailed('',1)" class="row">
  56. <view class="left">合计金额(元)</view>
  57. <view class="right">{{auditInfo.requestFundsTotal}}</view>
  58. </view>
  59. <!-- <view class="row">
  60. <view class="left">仓库名称</view>
  61. <view class="right">{{auditInfo.warehouseName}}</view>
  62. </view>
  63. <view class="row">
  64. <view class="left">入库日期</view>
  65. <view class="right">{{auditInfo.issuingTime}}</view>
  66. </view>
  67. <view class="row" style="border-bottom:0">
  68. <view class="left">车数</view>
  69. <view class="right">{{auditInfo.count}}</view>
  70. </view> -->
  71. </view>
  72. <view class="content1" v-if="auditInfo.warehousingOrderList&&auditInfo.warehousingOrderList[0].remark">
  73. <view class="title ">
  74. 备注信息
  75. </view>
  76. <view style="margin-top: 20rpx;">
  77. <textarea v-model="auditInfo.warehousingOrderList[0].remark" :autoHeight="true" disabled
  78. style="font-size: 28rpx;"></textarea>
  79. </view>
  80. </view>
  81. <view class="content1">
  82. <view class="title ">
  83. 支付明细
  84. </view>
  85. <view class="mx-content" v-for="item in auditInfo.warehousingOrderList" @click="detailed(item,2)">
  86. <view class='flex align-center justify-between'>
  87. <view class="name">
  88. {{item.customer}}
  89. </view>
  90. <view class="mx-item">
  91. {{item.goodsName}}
  92. </view>
  93. </view>
  94. <view class="mx-bottom">
  95. <view class="mx-row1">
  96. <!-- <view class="mx-item">
  97. 平均容重
  98. </view>
  99. <view class="mx-item">
  100. 平均水分
  101. </view> -->
  102. </view>
  103. <view class="mx-row2">
  104. <view class="mx-item">
  105. {{item.inWarehouseWeight}}吨
  106. </view>
  107. <view class="mx-item">
  108. <!-- 2000元/吨 -->
  109. {{item.avgCost}}元/吨
  110. </view>
  111. <view class="mx-item">
  112. {{item.requestFunds}}元
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. <view class="content1" v-if="url && url != 'ng'">
  119. <view class="title ">
  120. 附件
  121. </view>
  122. <view class="file" @click="openXls">
  123. <image src="../../../static/img/excle.png" mode="" class="img_css"></image>
  124. <text class="text_css">付款明细.xls</text>
  125. </view>
  126. <view class="file" @click="openXls2">
  127. <image src="../../../static/img/excle.png" mode="" class="img_css"></image>
  128. <text class="text_css">粮食指标.xls</text>
  129. </view>
  130. </view>
  131. <flow key="warehouse_warrant" :auditList="auditList" @status='getStatus'></flow>
  132. <view v-if='show' class="shade">
  133. <view class="wrap">
  134. <view class="alert-top">
  135. <view class="title">
  136. {{title}}
  137. </view>
  138. <u-icon name="close" class="close" color="#8890B1" @click="close()"></u-icon>
  139. </view>
  140. <view class="u-textarea-style">
  141. <view class="right-bottom">
  142. {{auditMind.length}}/1000个字
  143. </view>
  144. <u-input class="" v-model='auditMind' placeholder="请在此输入审核意见" type="textarea" height="414"
  145. maxlength="1000" />
  146. </view>
  147. <view @click='close()' class="cancel">取消</view>
  148. <view @click='passSubmit()' class="confirm">确定</view>
  149. </view>
  150. </view>
  151. <u-toast ref="uToast" />
  152. <view v-if='auditInfo.taskId' style='padding:10px;' class='flex bottom-btn'>
  153. <u-button @click='reject' type="error" class="btn1" hover-class='none'>驳回</u-button>
  154. <u-button @click='pass' type="success" class="btn2">通过</u-button>
  155. </view>
  156. </view>
  157. </template>
  158. <script>
  159. import helper from '@/common/helper.js';
  160. import flow from '@/components/flow.vue';
  161. import {
  162. mapState
  163. } from 'vuex';
  164. export default {
  165. components: {
  166. flow
  167. },
  168. data() {
  169. return {
  170. src: '../../../static/img/myimg/LiangShang@2x.png',
  171. isSHowBtn: true,
  172. height: 200,
  173. autoHeight: true,
  174. border: false,
  175. title: '',
  176. show: false,
  177. auditMind: '',
  178. id: "",
  179. currentPage: 1,
  180. pageSize: 100,
  181. List: [],
  182. status: "",
  183. updateDate: "",
  184. warehouseName: "",
  185. everyCheck: '',
  186. auditInfo: {},
  187. id: "",
  188. auditList: [],
  189. url: "11",
  190. url2: ""
  191. }
  192. },
  193. onBackPress(e) {
  194. if (this.everyCheck) {
  195. uni.navigateTo({
  196. url: "/pages/task/my_task"
  197. })
  198. return true;
  199. }
  200. },
  201. onLoad(options) {
  202. this.id = options.id
  203. this.vesselId = options.vesselId
  204. this.everyCheck = uni.getStorageSync("everyTask")
  205. this.isSHowBtn = options.isShowbtn
  206. },
  207. onShow(options) {
  208. this.getList()
  209. },
  210. computed: {
  211. ...mapState(['hasLogin', 'userInfo']),
  212. },
  213. methods: {
  214. getStatus(val) {
  215. if (val == 200) this.getList()
  216. },
  217. detailed(data, status) {
  218. let obj
  219. if (status == 1) {
  220. obj = JSON.stringify(this.auditInfo.warehousingOrderList)
  221. } else {
  222. obj = JSON.stringify([data])
  223. }
  224. uni.navigateTo({
  225. url: '/pages/task/audit/viewDetail?data=' + obj
  226. });
  227. },
  228. showcontent(item) {
  229. item.showflow = !item.showflow
  230. },
  231. openXls() {
  232. if (this.url && this.url != "ng") {
  233. uni.downloadFile({
  234. url: this.url,
  235. success: function(res) {
  236. var filePath = res.tempFilePath;
  237. uni.openDocument({
  238. filePath: filePath,
  239. showMenu: true,
  240. success: function(res) {
  241. console.log('打开文档成功');
  242. }
  243. });
  244. }
  245. });
  246. }
  247. },
  248. openXls2() {
  249. if (this.url2 && this.url2 != "ng") {
  250. uni.downloadFile({
  251. url: this.url2,
  252. success: function(res) {
  253. var filePath = res.tempFilePath;
  254. uni.openDocument({
  255. filePath: filePath,
  256. showMenu: true,
  257. success: function(res) {
  258. console.log('打开文档成功');
  259. }
  260. });
  261. }
  262. });
  263. }
  264. },
  265. getList() {
  266. uni.showLoading({
  267. title: "加载中...",
  268. mask: true
  269. })
  270. var that = this
  271. // this.$api.doRequest('get', '/warehousingOrder/selectInfo', {
  272. // currentPage: 1,
  273. // pageSize: 100,
  274. // searchType: '2', //searchType:1待审核
  275. // // warehouseName: this.vesselId,
  276. // managementType: 1
  277. // }).then(res1 => {
  278. // uni.hideLoading()
  279. // if (res1.data.code == 200) {
  280. // this.List = res1.data.data.records
  281. // }
  282. // })
  283. // this.$api.doRequest('get', '/paymentManagement/getInfo', {
  284. // id: this.id
  285. // }).then(res => {
  286. // if (res.data.code == 200) {
  287. // uni.showLoading({
  288. // title: "加载中...",
  289. // mask: true
  290. // })
  291. // }
  292. // })
  293. this.$api.doRequest('post', '/warehousingOrder/exportPhone', {
  294. batchId: this.id,
  295. searchType: 1,
  296. }).then(res1 => {
  297. if (res1.data.code == 200) {
  298. this.url = res1.data.data
  299. }
  300. })
  301. this.$api.doRequest('post', '/paymentManagement/exportPhoneOrder', {
  302. orderId: this.id,
  303. // searchType: 1,
  304. }).then(res1 => {
  305. if (res1.data.code == 200) {
  306. this.url2 = res1.data.data
  307. }
  308. })
  309. this.$api.doRequest('post', '/warehousingOrder/exportPhoneData', {
  310. searchType: 1,
  311. batchId: this.id,
  312. compId: uni.getStorageSync('pcUserInfo').compId,
  313. }).then(res1 => {
  314. if (res1.data.code == 200) {
  315. this.auditInfo = res1.data.data
  316. var arr = []
  317. if (res1.data.data.warehousingOrderList) {
  318. var datalist = JSON.parse(JSON.stringify(res1.data.data.warehousingOrderList))
  319. for (var i = 0; i < datalist.length; i++) {
  320. if (arr.length == 0) {
  321. arr.push(datalist[i])
  322. } else {
  323. var arr1 = arr.filter((item) => {
  324. return item.goodsName == datalist[i].goodsName
  325. })
  326. if (arr1.length > 0) {
  327. for (var q = 0; q < arr.length; q++) {
  328. if (arr[q].goodsName == datalist[i].goodsName) {
  329. console.log(22222)
  330. console.log(arr[q].inWarehouseWeight, datalist[i]
  331. .inWarehouseWeight)
  332. arr[q].inWarehouseWeight += datalist[i].inWarehouseWeight
  333. arr[q].requestFunds += datalist[i].requestFunds
  334. }
  335. }
  336. } else {
  337. arr.push(datalist[i])
  338. }
  339. }
  340. }
  341. for (var q = 0; q < arr.length; q++) {
  342. arr[q].inWarehouseWeight = arr[q].inWarehouseWeight.toFixed(2)
  343. arr[q].requestFunds = arr[q].requestFunds.toFixed(2)
  344. }
  345. }
  346. console.log(arr, 1111111)
  347. this.auditInfo.goodNameList = arr
  348. if (this.auditInfo.inWarehouseWeightTotal) {
  349. this.auditInfo.inWarehouseWeightTotal = this.auditInfo.inWarehouseWeightTotal.toFixed(
  350. 2)
  351. }
  352. if (this.auditInfo.requestFundsTotal) {
  353. this.auditInfo.requestFundsTotal = this.auditInfo.requestFundsTotal.toFixed(2)
  354. }
  355. this.auditInfo.amountIngPayableTotal1 = helper.convertCurrency(this.auditInfo
  356. .amountIngPayableTotal)
  357. this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
  358. businessCode: 'WAREHOUSING-ORDER-APPROVE',
  359. tmpCompId: uni.getStorageSync('pcUserInfo').compId
  360. }).then(res1 => {
  361. this.$api.doRequest('get', '/commonUser/getHis', {
  362. workflowId: res1.data.data[0].id,
  363. businessKey: this.id,
  364. branch: that.auditInfo.jointVentureParties ? that.auditInfo
  365. .jointVentureParties : 'zt'
  366. }).then(response => {
  367. uni.hideLoading()
  368. for (let i = 0; i < response.data.data.length; i++) {
  369. this.$set(response.data.data[i], 'status', 'question')
  370. console.log(response.data.data[i].workflowHistoricTasks, i)
  371. if (response.data.data[i].commonStaffs) {
  372. response.data.data[i].showflow = false
  373. response.data.data[i].operatorTitle = response.data.data[i]
  374. .desc.substring(0, 2)
  375. response.data.data[i].operatorName = response.data.data[i]
  376. .desc
  377. response.data.data[i].staffscontent = '共' + response.data
  378. .data[i].commonStaffs.length + '人,当前审核' + response.data
  379. .data[i].workflowHistoricTasks.length + '人'
  380. if (response.data.data[i].workflowHistoricTasks && response
  381. .data.data[i].workflowHistoricTasks.length > 0) {
  382. if (response.data.data[i].workflowHistoricTasks
  383. .length != response.data.data[i].commonStaffs
  384. .length) {
  385. // response.data.data[i].status='question'
  386. this.$set(response.data.data[i], 'status',
  387. 'question')
  388. } else {
  389. this.$set(response.data.data[i], 'status',
  390. 'success')
  391. // response.data.data[i].status='success'
  392. }
  393. response.data.data[i].workflowlen = response.data.data[
  394. i].workflowHistoricTasks.length
  395. var workflowdata = response.data.data[i]
  396. .workflowHistoricTasks
  397. var staffsdata = response.data.data[i].commonStaffs
  398. for (let q = 0; q < staffsdata.length; q++) {
  399. staffsdata[q].status = false
  400. staffsdata[q].staffTitle = staffsdata[q].staffName
  401. for (let k = 0; k < workflowdata.length; k++) {
  402. if (staffsdata[q].staffId == workflowdata[k]
  403. .operatorId) {
  404. staffsdata[q].status = true
  405. }
  406. }
  407. }
  408. }
  409. response.data.data[i].commonStaffs1 = response.data.data[i]
  410. .commonStaffs
  411. } else {
  412. if (response.data.data[i].workflowHistoricTasks && response
  413. .data.data[i].workflowHistoricTasks.length > 0) {
  414. var len = response.data.data[i].workflowHistoricTasks
  415. .length - 1
  416. if (response.data.data[i].workflowHistoricTasks[len]
  417. .approved) {
  418. this.$set(response.data.data[i], 'status',
  419. 'success')
  420. } else {
  421. this.$set(response.data.data[i], 'status', 'error')
  422. }
  423. response.data.data[i].operatorTitle = response.data
  424. .data[i].workflowHistoricTasks[len].operatorName
  425. .substring(response.data.data[i]
  426. .workflowHistoricTasks[0].operatorName.length -
  427. 2)
  428. response.data.data[i].operatorName = response.data
  429. .data[i].workflowHistoricTasks[len].operatorName
  430. var time = new Date(response.data.data[i]
  431. .workflowHistoricTasks[len].claimTime)
  432. .getTime()
  433. response.data.data[i].updateDate = this.$u.timeFormat(
  434. time, 'mm.dd hh:MM')
  435. response.data.data[i].auditMind = response.data.data[i]
  436. .workflowHistoricTasks[len].auditMind
  437. } else {
  438. this.$set(response.data.data[i], 'status', 'question')
  439. // response.data.data[i].status='question'
  440. if (response.data.data[i].desc == '总经理助理审核') {
  441. response.data.data[i].operatorTitle = '总助'
  442. } else if (response.data.data[i].desc == '杜大光审核') {
  443. response.data.data[i].operatorTitle = '大光'
  444. } else {
  445. response.data.data[i].operatorTitle = response.data
  446. .data[i].desc.substring(0, 2)
  447. }
  448. response.data.data[i].operatorName = response.data
  449. .data[i].desc
  450. var time1 = new Date(response.data.data[i].updateDate)
  451. .getTime()
  452. response.data.data[i].updateDate = this.$u.timeFormat(
  453. time1, 'mm.dd hh:MM')
  454. response.data.data[i].auditMind = ''
  455. }
  456. }
  457. }
  458. console.log(response.data.data)
  459. this.auditList = response.data.data
  460. var time2 = new Date(this.auditInfo.createDate).getTime()
  461. var time3 = this.$u.timeFormat(time2, 'mm.dd hh:MM')
  462. this.auditList.unshift({
  463. operatorTitle: this.auditInfo.creater.substring(0, 2),
  464. operatorName: this.auditInfo.creater,
  465. updateDate: time3,
  466. auditMind: '',
  467. desc: '发起申请',
  468. showflow: false,
  469. commonStaffs1: null,
  470. commonStaffs: null,
  471. workflowHistoricTasks: [],
  472. status: 'success'
  473. })
  474. })
  475. })
  476. }
  477. })
  478. this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
  479. businessCode: 'WAREHOUSING-ORDER-APPROVE',
  480. tmpCompId: uni.getStorageSync('pcUserInfo').compId
  481. }).then(res1 => {
  482. this.updateDate = res1.data.data[0].updateDate
  483. this.$api.doRequest('get', '/commonUser/getHis', {
  484. workflowId: res1.data.data[0].id,
  485. businessKey: this.id
  486. }).then(response => {
  487. // uni.hideLoading()
  488. this.auditList = response.data.data
  489. })
  490. })
  491. },
  492. close() {
  493. this.show = false
  494. },
  495. pass() {
  496. this.show = true
  497. this.title = '审核意见(通过)'
  498. },
  499. reject() {
  500. this.show = true
  501. this.title = '驳回原因(驳回)'
  502. },
  503. //驳回
  504. // rejectSubmit() {
  505. // if (!this.auditMind) {
  506. // this.$api.msg('驳回原因不能为空!')
  507. // } else {
  508. // var that = this
  509. // that.show = false
  510. // if (this.List.length > 0) {
  511. // uni.showModal({
  512. // content: "确定驳回付款申请?",
  513. // showCancel: true,
  514. // confirmText: '确定',
  515. // success: function(res) {
  516. // if (res.confirm) {
  517. // that.audit(that.List[0], 0, false, '', '')
  518. // }
  519. // }
  520. // })
  521. // }
  522. // }
  523. // },
  524. //审核确定
  525. passSubmit() {
  526. var that = this
  527. that.show = false
  528. if (this.title == '驳回原因(驳回)') {
  529. // this.rejectSubmit()
  530. if (!that.auditMind) {
  531. this.$api.msg('驳回原因不能为空!')
  532. } else {
  533. uni.showModal({
  534. content: "确定驳回入库单申请?",
  535. showCancel: true,
  536. confirmText: '确定',
  537. success: function(res) {
  538. if (res.confirm) {
  539. uni.showLoading({
  540. title: "审核中...",
  541. mask: true
  542. })
  543. var count = 0
  544. // for (let num = 0; num < that.List.length; num++) {
  545. that.$api.doRequest('post', '/newWorkflow/api/handle', {
  546. taskId: that.auditInfo.taskId,
  547. approved: false,
  548. auditMind: that.auditMind ? that.auditMind : "",
  549. needReapply: true
  550. }).then(res => {
  551. // count++
  552. // if (count == that.List.length) {
  553. uni.hideLoading()
  554. that.$api.msg('审核成功!')
  555. setTimeout(function() {
  556. uni.navigateBack();
  557. }, 2000);
  558. // }
  559. })
  560. // }
  561. }
  562. }
  563. })
  564. }
  565. } else {
  566. var that = this
  567. this.show = false
  568. uni.showModal({
  569. content: "确定通过入库单申请?",
  570. showCancel: true,
  571. confirmText: '确定',
  572. success: function(res) {
  573. if (res.confirm) {
  574. uni.showLoading({
  575. title: "审核中...",
  576. mask: true
  577. })
  578. // for (let num = 0; num < that.List.length; num++) {
  579. // var tmp = 0
  580. that.$api.doRequest('post', '/newWorkflow/api/handle', {
  581. taskId: that.auditInfo.taskId,
  582. approved: true,
  583. auditMind: that.auditMind ? that.auditMind : "",
  584. needReapply: false
  585. }).then(res => {
  586. // tmp++
  587. // if (tmp == that.List.length) {
  588. uni.hideLoading()
  589. that.$api.msg('审核成功!')
  590. setTimeout(function() {
  591. uni.navigateBack();
  592. }, 2000);
  593. // }
  594. })
  595. // }
  596. }
  597. }
  598. })
  599. }
  600. },
  601. // audit(list, index, status, status2, reason) {
  602. // uni.showLoading({
  603. // title: "审核中"
  604. // })
  605. // if (this.List.length > 0) {
  606. // if (status == true && list.status == "已驳回") {
  607. // this.$api.doRequest('get', '/paymentManagement/api/openAuditFlow', {
  608. // compId: "2710b21efc1e4393930c5dc800010dc4",
  609. // id: list.id
  610. // }).then(res => {
  611. // if (res.data.code == 200) {
  612. // this.audit(this.List[index + 1], index + 1, status, status2, reason)
  613. // }
  614. // })
  615. // } else {
  616. // for (var i = 0; i < this.List.length; i++) {
  617. // this.$api.doRequest('post', '/newWorkflow/api/handle', {
  618. // taskId: this.List[i].taskId,
  619. // approved: status,
  620. // auditMind: this.auditMind ? this.auditMind : "",
  621. // needReapply: status2 ? true : false
  622. // }).then(res => {
  623. // if (res.data.code == 200) {
  624. // uni.hideLoading()
  625. // // this.audit(this.List[index + 1], index + 1, status, status2, reason)
  626. // this.$api.msg('通过成功')
  627. // }else{
  628. // uni.hideLoading()
  629. // this.$api.msg('审核失败')
  630. // }
  631. // })
  632. // }
  633. // }
  634. // } else {
  635. // if (status == true) {
  636. // this.$api.msg('通过成功')
  637. // } else if (status == false) {
  638. // this.$api.msg('驳回成功')
  639. // }
  640. // let that = this
  641. // setTimeout(function() {
  642. // if (that.everyCheck) {
  643. // helper.setAudit(that.list)
  644. // } else {
  645. // uni.navigateBack()
  646. // }
  647. // uni.hideLoading()
  648. // }, 1000);
  649. // }
  650. // },
  651. }
  652. }
  653. </script>
  654. <style scoped lang="scss">
  655. .warp {
  656. margin: 10rpx;
  657. padding: 20rpx 20rpx 240rpx 20rpx;
  658. }
  659. .content1 {
  660. font-size: 28rpx;
  661. color: #333333;
  662. margin-top: 30rpx;
  663. padding: 20rpx;
  664. // .content-item {
  665. border-radius: 20rpx;
  666. background: white;
  667. // padding: 40rpx 20rpx;
  668. // margin-bottom: 30rpx;
  669. // }
  670. // .title {
  671. // font-size: 32rpx;
  672. // font-weight: 600;
  673. // color: #333333;
  674. // margin: 30rpx 0;
  675. // }
  676. // .goodsInfoCss {
  677. // font-size: 28rpx;
  678. // font-weight: 600;
  679. // color: #878C9C;
  680. // margin: 26rpx 10rpx;
  681. // }
  682. // .priceCss {
  683. // font-size: 40rpx;
  684. // margin: 26rpx 10rpx;
  685. // color: #22C572;
  686. // font-weight: 600;
  687. // }
  688. .row {
  689. display: flex;
  690. justify-content: space-between;
  691. border-bottom: 1px solid #EEEEEE;
  692. padding: 20rpx 0;
  693. .right,
  694. input {
  695. font-size: 28rpx;
  696. // color: #333333;
  697. }
  698. }
  699. .img_css {
  700. width: 50rpx;
  701. height: 50rpx;
  702. }
  703. .file {
  704. display: flex;
  705. align-items: center;
  706. margin: 30rpx 0 0 20rpx;
  707. .text_css {
  708. font-size: 30rpx;
  709. margin-left: 20rpx;
  710. }
  711. }
  712. }
  713. .title {
  714. font-size: 34rpx;
  715. font-weight: 700;
  716. // margin-bottom: 20rpx;
  717. height: 70rpx;
  718. border-bottom: 2rpx solid #EEEEEE;
  719. }
  720. .titlerow {
  721. font-size: 34rpx;
  722. font-weight: 700;
  723. // margin-bottom: 20rpx;
  724. // height: 70rpx;
  725. // border-bottom: 2rpx solid #EEEEEE;
  726. }
  727. .content2 {
  728. background: white;
  729. margin: 20rpx 0;
  730. border-radius: 20rpx;
  731. padding: 20rpx;
  732. .row {
  733. display: flex;
  734. .left {
  735. display: flex;
  736. align-items: center;
  737. .item1 {
  738. position: relative;
  739. .item-content {
  740. background: #617AE0;
  741. width: 44px;
  742. height: 44px;
  743. border-radius: 22px;
  744. line-height: 44px;
  745. text-align: center;
  746. font-size: 15px;
  747. color: #fff;
  748. }
  749. .status {
  750. position: absolute;
  751. border-radius: 50%;
  752. padding: 0px 2px;
  753. right: -3px;
  754. bottom: -3px;
  755. background: #fff;
  756. }
  757. .status.success {
  758. border: 1px solid rgb(60, 156, 255);
  759. }
  760. .status.error {
  761. border: 1px solid rgb(245, 108, 108);
  762. }
  763. .status.question {
  764. border: 1px solid #f9ae3d;
  765. }
  766. }
  767. }
  768. .right {
  769. width: 80%;
  770. // color: #B0B1B5;
  771. margin-top: 10px;
  772. .right-content {
  773. background: #F2F3F7;
  774. margin-left: 10px;
  775. margin-top: 10px;
  776. padding: 10px;
  777. border-radius: 5px;
  778. color: #B0B1B5;
  779. }
  780. .right-item {
  781. display: flex;
  782. justify-content: space-between;
  783. .time {
  784. color: #999;
  785. }
  786. .item2 {
  787. margin-left: 20rpx;
  788. margin-top: -7px;
  789. .name {
  790. font-size: 28rpx;
  791. font-weight: 800;
  792. margin-bottom: 4px;
  793. }
  794. .status.success {
  795. color: #6CC48C;
  796. }
  797. .status.error {
  798. color: rgb(245, 108, 108);
  799. }
  800. .status.question {
  801. color: #f9ae3d;
  802. }
  803. }
  804. }
  805. }
  806. }
  807. .row2 {
  808. display: flex;
  809. .item-content {
  810. background: #22C572;
  811. width: 30px;
  812. height: 30px;
  813. border-radius: 50%;
  814. line-height: 30px;
  815. text-align: center;
  816. font-size: 12px;
  817. color: #fff;
  818. padding: 0 2px;
  819. margin: 0 auto;
  820. }
  821. .status {
  822. position: absolute;
  823. top: 0;
  824. right: 0;
  825. }
  826. }
  827. .row-line {
  828. width: 1px;
  829. height: 30px;
  830. background: #F2F2F2;
  831. margin: 10rpx 50rpx;
  832. }
  833. .audit {
  834. margin-top: 20rpx;
  835. }
  836. }
  837. .bottom-btn {
  838. width: 100%;
  839. position: fixed;
  840. bottom: 0;
  841. display: flex;
  842. z-index: 2;
  843. left: 0;
  844. background-color: #f8f8f8;
  845. flex-direction: column;
  846. .btn1,
  847. .btn2 {
  848. width: 100%;
  849. margin-bottom: 26rpx;
  850. border-radius: 90rpx;
  851. }
  852. .btn1 {
  853. background: white;
  854. color: #00C265;
  855. }
  856. }
  857. .row1 {
  858. border-bottom: 0 !important;
  859. }
  860. .topInfo {
  861. height: 210rpx;
  862. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  863. padding: 30rpx;
  864. .topInfo-item {
  865. height: 150rpx;
  866. background-color: #FFFFFF;
  867. border-radius: 20rpx;
  868. padding: 40rpx;
  869. .logo {
  870. width: 40rpx;
  871. height: 40rpx;
  872. margin-top: 8rpx;
  873. }
  874. .infoText {
  875. font-size: 36rpx;
  876. font-weight: 600;
  877. margin-left: 20rpx;
  878. }
  879. .infoData {
  880. color: #878C9C;
  881. font-size: 26rpx;
  882. margin-top: 10rpx;
  883. }
  884. }
  885. }
  886. .shade {
  887. position: fixed;
  888. top: 0;
  889. left: 0;
  890. height: 100%;
  891. width: 100%;
  892. background: rgba(0, 0, 0, 0.4);
  893. z-index: 3;
  894. .wrap {
  895. position: absolute;
  896. left: 0;
  897. top: 0;
  898. right: 0;
  899. bottom: 0;
  900. margin: auto;
  901. background: #fff;
  902. width: calc(100% - 198rpx);
  903. height: 700rpx;
  904. border-radius: 20rpx;
  905. .alert-top {
  906. padding: 33rpx;
  907. display: flex;
  908. justify-content: center;
  909. align-items: center;
  910. position: relative;
  911. }
  912. .title {
  913. font-size: 32rpx;
  914. font-weight: 600;
  915. color: #333333;
  916. }
  917. .close {
  918. position: absolute;
  919. right: 33rpx;
  920. }
  921. }
  922. }
  923. .cancel,
  924. .confirm {
  925. position: absolute;
  926. display: inline-block;
  927. width: 50%;
  928. text-align: center;
  929. bottom: 0;
  930. padding: 10px;
  931. border-top: 1px solid #eee;
  932. font-size: 34rpx;
  933. }
  934. .cancel {
  935. left: 0;
  936. border-right: 1px solid #eee;
  937. color: #AFB3BF;
  938. }
  939. .confirm {
  940. right: 0;
  941. color: #22C572;
  942. }
  943. .u-textarea-style {
  944. margin: 20rpx;
  945. background: #F9F9FA;
  946. border-radius: 10px;
  947. border: 1px solid #EEEEEE;
  948. padding: 10rpx 20rpx;
  949. position: relative;
  950. .right-bottom {
  951. position: absolute;
  952. right: 20rpx;
  953. bottom: 20rpx;
  954. color: #AFB3BF;
  955. }
  956. }
  957. /deep/.u-input__textarea {
  958. height: 300rpx !important;
  959. }
  960. .mx-content {
  961. background: #F9F9FA;
  962. padding: 30rpx;
  963. box-sizing: border-box;
  964. margin-top: 20rpx;
  965. border-radius: 20rpx;
  966. .name {
  967. font-size: 32rpx;
  968. font-weight: 700;
  969. border-bottom: 1px solid #EEEEEE;
  970. padding-bottom: 8rpx;
  971. }
  972. .mx-row1,
  973. .mx-row2 {
  974. display: flex;
  975. justify-content: space-between;
  976. margin-top: 20rpx;
  977. }
  978. .mx-item {
  979. text-align: left;
  980. // width: 33%;
  981. // text-align: center;
  982. }
  983. }
  984. </style>