warehouse_warrant_detail.vue 28 KB

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