warehouse_warrant.vue 28 KB

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