warehouse_warrant_detail.vue 28 KB

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