warehouse_warrant.vue 26 KB

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