warehouse_warrant_detail.vue 26 KB

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