warehouse_warrant.vue 26 KB

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