warehouse_warrant_detail.vue 28 KB

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