warehouse_warrant.vue 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046
  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.inWarehouseWeight}}
  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.inWarehouseWeight}}吨
  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].inWarehouseWeight, datalist[i]
  331. .inWarehouseWeight)
  332. arr[q].inWarehouseWeight += datalist[i].inWarehouseWeight
  333. arr[q].requestFunds += datalist[i].requestFunds
  334. }
  335. }
  336. } else {
  337. arr.push(datalist[i])
  338. }
  339. }
  340. }
  341. for (var q = 0; q < arr.length; q++) {
  342. arr[q].inWarehouseWeight = arr[q].inWarehouseWeight.toFixed(2)
  343. arr[q].requestFunds = arr[q].requestFunds.toFixed(2)
  344. }
  345. }
  346. console.log(arr, 1111111)
  347. this.auditInfo.goodNameList = arr
  348. if (this.auditInfo.inWarehouseWeightTotal) {
  349. this.auditInfo.inWarehouseWeightTotal = this.auditInfo.inWarehouseWeightTotal.toFixed(
  350. 2)
  351. }
  352. if (this.auditInfo.requestFundsTotal) {
  353. this.auditInfo.requestFundsTotal = this.auditInfo.requestFundsTotal.toFixed(2)
  354. }
  355. this.auditInfo.amountIngPayableTotal1 = helper.convertCurrency(this.auditInfo
  356. .amountIngPayableTotal)
  357. this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
  358. businessCode: 'WAREHOUSING-ORDER-APPROVE',
  359. tmpCompId: uni.getStorageSync('pcUserInfo').compId
  360. }).then(res1 => {
  361. this.$api.doRequest('get', '/commonUser/getHis', {
  362. workflowId: res1.data.data[0].id,
  363. businessKey: this.id,
  364. branch: that.auditInfo.jointVentureParties ? that.auditInfo
  365. .jointVentureParties : 'zt'
  366. }).then(response => {
  367. uni.hideLoading()
  368. for (let i = 0; i < response.data.data.length; i++) {
  369. this.$set(response.data.data[i], 'status', 'question')
  370. console.log(response.data.data[i].workflowHistoricTasks, i)
  371. if (response.data.data[i].commonStaffs) {
  372. response.data.data[i].showflow = false
  373. response.data.data[i].operatorTitle = response.data.data[i]
  374. .desc.substring(0, 2)
  375. response.data.data[i].operatorName = response.data.data[i]
  376. .desc
  377. response.data.data[i].staffscontent = '共' + response.data
  378. .data[i].commonStaffs.length + '人,当前审核' + response.data
  379. .data[i].workflowHistoricTasks.length + '人'
  380. if (response.data.data[i].workflowHistoricTasks && response
  381. .data.data[i].workflowHistoricTasks.length > 0) {
  382. if (response.data.data[i].workflowHistoricTasks
  383. .length != response.data.data[i].commonStaffs
  384. .length) {
  385. // response.data.data[i].status='question'
  386. this.$set(response.data.data[i], 'status',
  387. 'question')
  388. } else {
  389. this.$set(response.data.data[i], 'status',
  390. 'success')
  391. // response.data.data[i].status='success'
  392. }
  393. response.data.data[i].workflowlen = response.data.data[
  394. i].workflowHistoricTasks.length
  395. var workflowdata = response.data.data[i]
  396. .workflowHistoricTasks
  397. var staffsdata = response.data.data[i].commonStaffs
  398. for (let q = 0; q < staffsdata.length; q++) {
  399. staffsdata[q].status = false
  400. staffsdata[q].staffTitle = staffsdata[q].staffName
  401. for (let k = 0; k < workflowdata.length; k++) {
  402. if (staffsdata[q].staffId == workflowdata[k]
  403. .operatorId) {
  404. staffsdata[q].status = true
  405. }
  406. }
  407. }
  408. }
  409. response.data.data[i].commonStaffs1 = response.data.data[i]
  410. .commonStaffs
  411. } else {
  412. if (response.data.data[i].workflowHistoricTasks && response
  413. .data.data[i].workflowHistoricTasks.length > 0) {
  414. var len = response.data.data[i].workflowHistoricTasks
  415. .length - 1
  416. if (response.data.data[i].workflowHistoricTasks[len]
  417. .approved) {
  418. this.$set(response.data.data[i], 'status',
  419. 'success')
  420. } else {
  421. this.$set(response.data.data[i], 'status', 'error')
  422. }
  423. response.data.data[i].operatorTitle = response.data
  424. .data[i].workflowHistoricTasks[len].operatorName
  425. .substring(response.data.data[i]
  426. .workflowHistoricTasks[0].operatorName.length -
  427. 2)
  428. response.data.data[i].operatorName = response.data
  429. .data[i].workflowHistoricTasks[len].operatorName
  430. var time = new Date(response.data.data[i]
  431. .workflowHistoricTasks[len].claimTime)
  432. .getTime()
  433. response.data.data[i].updateDate = this.$u.timeFormat(
  434. time, 'mm.dd hh:MM')
  435. response.data.data[i].auditMind = response.data.data[i]
  436. .workflowHistoricTasks[len].auditMind
  437. } else {
  438. this.$set(response.data.data[i], 'status', 'question')
  439. // response.data.data[i].status='question'
  440. if (response.data.data[i].desc == '总经理助理审核') {
  441. response.data.data[i].operatorTitle = '总助'
  442. } else if (response.data.data[i].desc == '杜大光审核') {
  443. response.data.data[i].operatorTitle = '大光'
  444. } else {
  445. response.data.data[i].operatorTitle = response.data
  446. .data[i].desc.substring(0, 2)
  447. }
  448. response.data.data[i].operatorName = response.data
  449. .data[i].desc
  450. var time1 = new Date(response.data.data[i].updateDate)
  451. .getTime()
  452. response.data.data[i].updateDate = this.$u.timeFormat(
  453. time1, 'mm.dd hh:MM')
  454. response.data.data[i].auditMind = ''
  455. }
  456. }
  457. }
  458. console.log(response.data.data)
  459. this.auditList = response.data.data
  460. var time2 = new Date(this.auditInfo.createDate).getTime()
  461. var time3 = this.$u.timeFormat(time2, 'mm.dd hh:MM')
  462. this.auditList.unshift({
  463. operatorTitle: this.auditInfo.creater.substring(0, 2),
  464. operatorName: this.auditInfo.creater,
  465. updateDate: time3,
  466. auditMind: '',
  467. desc: '发起申请',
  468. showflow: false,
  469. commonStaffs1: null,
  470. commonStaffs: null,
  471. workflowHistoricTasks: [],
  472. status: 'success'
  473. })
  474. })
  475. })
  476. }
  477. })
  478. },
  479. close() {
  480. this.show = false
  481. },
  482. pass() {
  483. this.show = true
  484. this.title = '审核意见(通过)'
  485. },
  486. reject() {
  487. this.show = true
  488. this.title = '驳回原因(驳回)'
  489. },
  490. //驳回
  491. // rejectSubmit() {
  492. // if (!this.auditMind) {
  493. // this.$api.msg('驳回原因不能为空!')
  494. // } else {
  495. // var that = this
  496. // that.show = false
  497. // if (this.List.length > 0) {
  498. // uni.showModal({
  499. // content: "确定驳回付款申请?",
  500. // showCancel: true,
  501. // confirmText: '确定',
  502. // success: function(res) {
  503. // if (res.confirm) {
  504. // that.audit(that.List[0], 0, false, '', '')
  505. // }
  506. // }
  507. // })
  508. // }
  509. // }
  510. // },
  511. //审核确定
  512. passSubmit() {
  513. var that = this
  514. that.show = false
  515. if (this.title == '驳回原因(驳回)') {
  516. // this.rejectSubmit()
  517. if (!that.auditMind) {
  518. this.$api.msg('驳回原因不能为空!')
  519. } else {
  520. uni.showModal({
  521. content: "确定驳回入库单申请?",
  522. showCancel: true,
  523. confirmText: '确定',
  524. success: function(res) {
  525. if (res.confirm) {
  526. uni.showLoading({
  527. title: "审核中...",
  528. mask: true
  529. })
  530. var count = 0
  531. // for (let num = 0; num < that.List.length; num++) {
  532. that.$api.doRequest('post', '/newWorkflow/api/handle', {
  533. taskId: that.auditInfo.taskId,
  534. approved: false,
  535. auditMind: that.auditMind ? that.auditMind : "",
  536. needReapply: true
  537. }).then(res => {
  538. // count++
  539. // if (count == that.List.length) {
  540. uni.hideLoading()
  541. that.$api.msg('审核成功!')
  542. setTimeout(function() {
  543. uni.navigateBack();
  544. }, 2000);
  545. // }
  546. })
  547. // }
  548. }
  549. }
  550. })
  551. }
  552. } else {
  553. var that = this
  554. this.show = false
  555. uni.showModal({
  556. content: "确定通过入库单申请?",
  557. showCancel: true,
  558. confirmText: '确定',
  559. success: function(res) {
  560. if (res.confirm) {
  561. uni.showLoading({
  562. title: "审核中...",
  563. mask: true
  564. })
  565. // for (let num = 0; num < that.List.length; num++) {
  566. // var tmp = 0
  567. that.$api.doRequest('post', '/newWorkflow/api/handle', {
  568. taskId: that.auditInfo.taskId,
  569. approved: true,
  570. auditMind: that.auditMind ? that.auditMind : "",
  571. needReapply: false
  572. }).then(res => {
  573. // tmp++
  574. // if (tmp == that.List.length) {
  575. uni.hideLoading()
  576. that.$api.msg('审核成功!')
  577. setTimeout(function() {
  578. uni.navigateBack();
  579. }, 2000);
  580. // }
  581. })
  582. // }
  583. }
  584. }
  585. })
  586. }
  587. },
  588. // audit(list, index, status, status2, reason) {
  589. // uni.showLoading({
  590. // title: "审核中"
  591. // })
  592. // if (this.List.length > 0) {
  593. // if (status == true && list.status == "已驳回") {
  594. // this.$api.doRequest('get', '/paymentManagement/api/openAuditFlow', {
  595. // compId: "2710b21efc1e4393930c5dc800010dc4",
  596. // id: list.id
  597. // }).then(res => {
  598. // if (res.data.code == 200) {
  599. // this.audit(this.List[index + 1], index + 1, status, status2, reason)
  600. // }
  601. // })
  602. // } else {
  603. // for (var i = 0; i < this.List.length; i++) {
  604. // this.$api.doRequest('post', '/newWorkflow/api/handle', {
  605. // taskId: this.List[i].taskId,
  606. // approved: status,
  607. // auditMind: this.auditMind ? this.auditMind : "",
  608. // needReapply: status2 ? true : false
  609. // }).then(res => {
  610. // if (res.data.code == 200) {
  611. // uni.hideLoading()
  612. // // this.audit(this.List[index + 1], index + 1, status, status2, reason)
  613. // this.$api.msg('通过成功')
  614. // }else{
  615. // uni.hideLoading()
  616. // this.$api.msg('审核失败')
  617. // }
  618. // })
  619. // }
  620. // }
  621. // } else {
  622. // if (status == true) {
  623. // this.$api.msg('通过成功')
  624. // } else if (status == false) {
  625. // this.$api.msg('驳回成功')
  626. // }
  627. // let that = this
  628. // setTimeout(function() {
  629. // if (that.everyCheck) {
  630. // helper.setAudit(that.list)
  631. // } else {
  632. // uni.navigateBack()
  633. // }
  634. // uni.hideLoading()
  635. // }, 1000);
  636. // }
  637. // },
  638. }
  639. }
  640. </script>
  641. <style scoped lang="scss">
  642. .warp {
  643. margin: 10rpx;
  644. padding: 20rpx 20rpx 240rpx 20rpx;
  645. }
  646. .content1 {
  647. font-size: 28rpx;
  648. color: #333333;
  649. margin-top: 30rpx;
  650. padding: 20rpx;
  651. // .content-item {
  652. border-radius: 20rpx;
  653. background: white;
  654. // padding: 40rpx 20rpx;
  655. // margin-bottom: 30rpx;
  656. // }
  657. // .title {
  658. // font-size: 32rpx;
  659. // font-weight: 600;
  660. // color: #333333;
  661. // margin: 30rpx 0;
  662. // }
  663. // .goodsInfoCss {
  664. // font-size: 28rpx;
  665. // font-weight: 600;
  666. // color: #878C9C;
  667. // margin: 26rpx 10rpx;
  668. // }
  669. // .priceCss {
  670. // font-size: 40rpx;
  671. // margin: 26rpx 10rpx;
  672. // color: #22C572;
  673. // font-weight: 600;
  674. // }
  675. .row {
  676. display: flex;
  677. justify-content: space-between;
  678. border-bottom: 1px solid #EEEEEE;
  679. padding: 20rpx 0;
  680. .right,
  681. input {
  682. font-size: 28rpx;
  683. // color: #333333;
  684. }
  685. }
  686. .img_css {
  687. width: 50rpx;
  688. height: 50rpx;
  689. }
  690. .file {
  691. display: flex;
  692. align-items: center;
  693. margin: 30rpx 0 0 20rpx;
  694. .text_css {
  695. font-size: 30rpx;
  696. margin-left: 20rpx;
  697. }
  698. }
  699. }
  700. .title {
  701. font-size: 34rpx;
  702. font-weight: 700;
  703. // margin-bottom: 20rpx;
  704. height: 70rpx;
  705. border-bottom: 2rpx solid #EEEEEE;
  706. }
  707. .titlerow {
  708. font-size: 34rpx;
  709. font-weight: 700;
  710. // margin-bottom: 20rpx;
  711. // height: 70rpx;
  712. // border-bottom: 2rpx solid #EEEEEE;
  713. }
  714. .content2 {
  715. background: white;
  716. margin: 20rpx 0;
  717. border-radius: 20rpx;
  718. padding: 20rpx;
  719. .row {
  720. display: flex;
  721. .left {
  722. display: flex;
  723. align-items: center;
  724. .item1 {
  725. position: relative;
  726. .item-content {
  727. background: #617AE0;
  728. width: 44px;
  729. height: 44px;
  730. border-radius: 22px;
  731. line-height: 44px;
  732. text-align: center;
  733. font-size: 15px;
  734. color: #fff;
  735. }
  736. .status {
  737. position: absolute;
  738. border-radius: 50%;
  739. padding: 0px 2px;
  740. right: -3px;
  741. bottom: -3px;
  742. background: #fff;
  743. }
  744. .status.success {
  745. border: 1px solid rgb(60, 156, 255);
  746. }
  747. .status.error {
  748. border: 1px solid rgb(245, 108, 108);
  749. }
  750. .status.question {
  751. border: 1px solid #f9ae3d;
  752. }
  753. }
  754. }
  755. .right {
  756. width: 80%;
  757. // color: #B0B1B5;
  758. margin-top: 10px;
  759. .right-content {
  760. background: #F2F3F7;
  761. margin-left: 10px;
  762. margin-top: 10px;
  763. padding: 10px;
  764. border-radius: 5px;
  765. color: #B0B1B5;
  766. }
  767. .right-item {
  768. display: flex;
  769. justify-content: space-between;
  770. .time {
  771. color: #999;
  772. }
  773. .item2 {
  774. margin-left: 20rpx;
  775. margin-top: -7px;
  776. .name {
  777. font-size: 28rpx;
  778. font-weight: 800;
  779. margin-bottom: 4px;
  780. }
  781. .status.success {
  782. color: #6CC48C;
  783. }
  784. .status.error {
  785. color: rgb(245, 108, 108);
  786. }
  787. .status.question {
  788. color: #f9ae3d;
  789. }
  790. }
  791. }
  792. }
  793. }
  794. .row2 {
  795. display: flex;
  796. .item-content {
  797. background: #22C572;
  798. width: 30px;
  799. height: 30px;
  800. border-radius: 50%;
  801. line-height: 30px;
  802. text-align: center;
  803. font-size: 12px;
  804. color: #fff;
  805. padding: 0 2px;
  806. margin: 0 auto;
  807. }
  808. .status {
  809. position: absolute;
  810. top: 0;
  811. right: 0;
  812. }
  813. }
  814. .row-line {
  815. width: 1px;
  816. height: 30px;
  817. background: #F2F2F2;
  818. margin: 10rpx 50rpx;
  819. }
  820. .audit {
  821. margin-top: 20rpx;
  822. }
  823. }
  824. .bottom-btn {
  825. width: 100%;
  826. position: fixed;
  827. bottom: 0;
  828. display: flex;
  829. z-index: 2;
  830. left: 0;
  831. background-color: #f8f8f8;
  832. flex-direction: column;
  833. .btn1,
  834. .btn2 {
  835. width: 100%;
  836. margin-bottom: 26rpx;
  837. border-radius: 90rpx;
  838. }
  839. .btn1 {
  840. background: white;
  841. color: #00C265;
  842. }
  843. }
  844. .row1 {
  845. border-bottom: 0 !important;
  846. }
  847. .topInfo {
  848. height: 210rpx;
  849. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  850. padding: 30rpx;
  851. .topInfo-item {
  852. height: 150rpx;
  853. background-color: #FFFFFF;
  854. border-radius: 20rpx;
  855. padding: 40rpx;
  856. .logo {
  857. width: 40rpx;
  858. height: 40rpx;
  859. margin-top: 8rpx;
  860. }
  861. .infoText {
  862. font-size: 36rpx;
  863. font-weight: 600;
  864. margin-left: 20rpx;
  865. }
  866. .infoData {
  867. color: #878C9C;
  868. font-size: 26rpx;
  869. margin-top: 10rpx;
  870. }
  871. }
  872. }
  873. .shade {
  874. position: fixed;
  875. top: 0;
  876. left: 0;
  877. height: 100%;
  878. width: 100%;
  879. background: rgba(0, 0, 0, 0.4);
  880. z-index: 3;
  881. .wrap {
  882. position: absolute;
  883. left: 0;
  884. top: 0;
  885. right: 0;
  886. bottom: 0;
  887. margin: auto;
  888. background: #fff;
  889. width: calc(100% - 198rpx);
  890. height: 700rpx;
  891. border-radius: 20rpx;
  892. .alert-top {
  893. padding: 33rpx;
  894. display: flex;
  895. justify-content: center;
  896. align-items: center;
  897. position: relative;
  898. }
  899. .title {
  900. font-size: 32rpx;
  901. font-weight: 600;
  902. color: #333333;
  903. }
  904. .close {
  905. position: absolute;
  906. right: 33rpx;
  907. }
  908. }
  909. }
  910. .cancel,
  911. .confirm {
  912. position: absolute;
  913. display: inline-block;
  914. width: 50%;
  915. text-align: center;
  916. bottom: 0;
  917. padding: 10px;
  918. border-top: 1px solid #eee;
  919. font-size: 34rpx;
  920. }
  921. .cancel {
  922. left: 0;
  923. border-right: 1px solid #eee;
  924. color: #AFB3BF;
  925. }
  926. .confirm {
  927. right: 0;
  928. color: #22C572;
  929. }
  930. .u-textarea-style {
  931. margin: 20rpx;
  932. background: #F9F9FA;
  933. border-radius: 10px;
  934. border: 1px solid #EEEEEE;
  935. padding: 10rpx 20rpx;
  936. position: relative;
  937. .right-bottom {
  938. position: absolute;
  939. right: 20rpx;
  940. bottom: 20rpx;
  941. color: #AFB3BF;
  942. }
  943. }
  944. /deep/.u-input__textarea {
  945. height: 300rpx !important;
  946. }
  947. .mx-content {
  948. background: #F9F9FA;
  949. padding: 30rpx;
  950. box-sizing: border-box;
  951. margin-top: 20rpx;
  952. border-radius: 20rpx;
  953. .name {
  954. font-size: 32rpx;
  955. font-weight: 700;
  956. border-bottom: 1px solid #EEEEEE;
  957. padding-bottom: 8rpx;
  958. }
  959. .mx-row1,
  960. .mx-row2 {
  961. display: flex;
  962. justify-content: space-between;
  963. margin-top: 20rpx;
  964. }
  965. .mx-item {
  966. text-align: left;
  967. // width: 33%;
  968. // text-align: center;
  969. }
  970. }
  971. </style>