warehouse_warrant_detail.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  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.status}}</view>
  17. </view>
  18. <view class="infoData">{{auditInfo.updateDate}}</view>
  19. </view>
  20. </view>
  21. <view class="content1">
  22. <view class="title">
  23. 基本信息
  24. </view>
  25. <view class="row">
  26. <view class="left">请款日期</view>
  27. <view class="right">{{auditInfo.requestDate}}</view>
  28. </view>
  29. <view class="row">
  30. <view class="left">请款人</view>
  31. <view class="right">{{auditInfo.requestPerson}}</view>
  32. </view>
  33. <view class="row">
  34. <view class="left">所属仓库 </view>
  35. <view class="right">{{auditInfo.warehouseName}}</view>
  36. </view>
  37. <view class="row">
  38. <view class="left">合计重量(吨)</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>
  46. <view class="content1">
  47. <view class="title ">
  48. 支付明细
  49. </view>
  50. <view class="mx-content" v-for="item in auditInfo.warehousingOrderList">
  51. <view class='flex align-center justify-between'>
  52. <view class="name">
  53. {{item.customer}}
  54. </view>
  55. <view class="mx-item">
  56. {{item.goodsName}}
  57. </view>
  58. </view>
  59. <view class="mx-bottom">
  60. <view class="mx-row1">
  61. <!-- <view class="mx-item">
  62. 平均容重
  63. </view>
  64. <view class="mx-item">
  65. 平均水分
  66. </view> -->
  67. </view>
  68. <view class="mx-row2">
  69. <view class="mx-item">
  70. {{item.inWarehouseWeight}}吨
  71. </view>
  72. <view class="mx-item">
  73. <!-- 2000元/吨 -->
  74. {{item.avgCost}}元/吨
  75. </view>
  76. <view class="mx-item">
  77. {{item.requestFunds}}元
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. <view class="content1" v-if="url && url != 'ng'">
  84. <view class="title ">
  85. 附件
  86. </view>
  87. <view class="file" @click="openXls">
  88. <image src="../../../static/img/excle.png" mode="" class="img_css"></image>
  89. <text class="text_css">明细.xls</text>
  90. </view>
  91. </view>
  92. <!-- <view class="content2">
  93. <view class="title row">
  94. 流程
  95. </view>
  96. <view v-for="(item,index) in auditList" :key='index' class="audit">
  97. <view class="row">
  98. <view class="left">
  99. <view class="item1">
  100. <image :src="src" style="width: 100rpx;height: 100rpx;border-radius: 500%;"></image>
  101. </view>
  102. <view class="item2">
  103. <view class="name">{{item.operatorName ? item.operatorName:item.operatorMajorRoleName}}
  104. </view>
  105. <view class="status">{{item.approved ? "已审核":"待决策人审核"}}</view>
  106. </view>
  107. </view>
  108. <view class="right">
  109. {{item.updateDate}}
  110. </view>
  111. </view>
  112. <view class="row-line" v-if="index!= auditList.length - 1"></view>
  113. </view>
  114. </view> -->
  115. <u-toast ref="uToast" />
  116. <view style='padding:10px;' class='flex bottom-btn'>
  117. <u-button @click='fanHui' type="success" class="btn2">返回</u-button>
  118. </view>
  119. </view>
  120. </template>
  121. <script>
  122. import helper from '@/common/helper.js';
  123. import {
  124. mapState
  125. } from 'vuex';
  126. export default {
  127. data() {
  128. return {
  129. src: '../../../static/img/myimg/LiangShang@2x.png',
  130. isSHowBtn: true,
  131. height: 200,
  132. autoHeight: true,
  133. border: false,
  134. title: '',
  135. show: false,
  136. auditMind: '',
  137. id: "",
  138. currentPage: 1,
  139. pageSize: 100,
  140. List: [],
  141. status: "",
  142. updateDate: "",
  143. warehouseName: "",
  144. everyCheck: '',
  145. auditInfo: {},
  146. id: "",
  147. auditList: [],
  148. url: "11",
  149. }
  150. },
  151. onBackPress(e) {
  152. if (this.everyCheck) {
  153. uni.navigateTo({
  154. url: "/pages/task/my_task"
  155. })
  156. return true;
  157. }
  158. },
  159. onLoad(options) {
  160. this.id = options.id
  161. this.vesselId = options.vesselId
  162. this.everyCheck = uni.getStorageSync("everyTask")
  163. this.isSHowBtn = options.isShowbtn
  164. },
  165. onShow(options) {
  166. this.getList()
  167. },
  168. computed: {
  169. ...mapState(['hasLogin', 'userInfo']),
  170. },
  171. methods: {
  172. fanHui() {
  173. uni.navigateBack()
  174. },
  175. openXls() {
  176. if (this.url && this.url != "ng") {
  177. uni.downloadFile({
  178. url: this.url,
  179. success: function(res) {
  180. var filePath = res.tempFilePath;
  181. uni.openDocument({
  182. filePath: filePath,
  183. showMenu: true,
  184. success: function(res) {
  185. console.log('打开文档成功');
  186. }
  187. });
  188. }
  189. });
  190. }
  191. },
  192. getList() {
  193. uni.showLoading({
  194. title: "加载中...",
  195. mask: true
  196. })
  197. this.$api.doRequest('post', '/warehousingOrder/exportPhone', {
  198. batchId: this.id,
  199. }).then(res1 => {
  200. if (res1.data.code == 200) {
  201. this.url = res1.data.data
  202. }
  203. })
  204. this.$api.doRequest('post', '/warehousingOrder/exportPhoneData', {
  205. batchId: this.id
  206. }).then(res1 => {
  207. if (res1.data.code == 200) {
  208. this.auditInfo = res1.data.data
  209. this.auditInfo.amountIngPayableTotal1 = helper.convertCurrency(this.auditInfo
  210. .amountIngPayableTotal)
  211. uni.hideLoading()
  212. }
  213. })
  214. // this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
  215. // businessCode: 'PAYMENT-MANAGEMENT-APPROVE',
  216. // tmpCompId: uni.getStorageSync('pcUserInfo').compId
  217. // }).then(res1 => {
  218. // this.updateDate = res1.data.data[0].updateDate
  219. // this.$api.doRequest('get', '/commonUser/getHis', {
  220. // workflowId: res1.data.data[0].id,
  221. // businessKey: this.id
  222. // }).then(response => {
  223. // // uni.hideLoading()
  224. // this.auditList = response.data.data
  225. // })
  226. // })
  227. },
  228. }
  229. }
  230. </script>
  231. <style scoped lang="scss">
  232. .warp {
  233. margin: 10rpx;
  234. padding: 20rpx 20rpx 240rpx 20rpx;
  235. }
  236. .content1 {
  237. font-size: 28rpx;
  238. color: #333333;
  239. margin-top: 30rpx;
  240. padding: 20rpx;
  241. // .content-item {
  242. border-radius: 20rpx;
  243. background: white;
  244. // padding: 40rpx 20rpx;
  245. // margin-bottom: 30rpx;
  246. // }
  247. // .title {
  248. // font-size: 32rpx;
  249. // font-weight: 600;
  250. // color: #333333;
  251. // margin: 30rpx 0;
  252. // }
  253. // .goodsInfoCss {
  254. // font-size: 28rpx;
  255. // font-weight: 600;
  256. // color: #878C9C;
  257. // margin: 26rpx 10rpx;
  258. // }
  259. // .priceCss {
  260. // font-size: 40rpx;
  261. // margin: 26rpx 10rpx;
  262. // color: #22C572;
  263. // font-weight: 600;
  264. // }
  265. .row {
  266. display: flex;
  267. justify-content: space-between;
  268. border-bottom: 1px solid #EEEEEE;
  269. padding: 20rpx 0;
  270. .right,
  271. input {
  272. font-size: 28rpx;
  273. // color: #333333;
  274. }
  275. }
  276. .img_css {
  277. width: 50rpx;
  278. height: 50rpx;
  279. }
  280. .file {
  281. display: flex;
  282. align-items: center;
  283. margin: 30rpx 0 0 20rpx;
  284. .text_css {
  285. font-size: 30rpx;
  286. margin-left: 20rpx;
  287. }
  288. }
  289. }
  290. .title {
  291. font-size: 34rpx;
  292. font-weight: 700;
  293. // margin-bottom: 20rpx;
  294. height: 70rpx;
  295. border-bottom: 2rpx solid #EEEEEE;
  296. }
  297. .titlerow {
  298. font-size: 34rpx;
  299. font-weight: 700;
  300. // margin-bottom: 20rpx;
  301. // height: 70rpx;
  302. // border-bottom: 2rpx solid #EEEEEE;
  303. }
  304. .content2 {
  305. background: white;
  306. margin: 20rpx 0;
  307. border-radius: 20rpx;
  308. padding: 20rpx;
  309. .row {
  310. display: flex;
  311. justify-content: space-between;
  312. .left {
  313. display: flex;
  314. align-items: center;
  315. .item2 {
  316. margin-left: 20rpx;
  317. .name {
  318. font-size: 32rpx;
  319. font-weight: 800;
  320. }
  321. .status {
  322. color: #6CC48C;
  323. }
  324. }
  325. }
  326. .right {
  327. color: #B0B1B5;
  328. margin-top: 10px;
  329. }
  330. }
  331. .row-line {
  332. width: 1px;
  333. height: 30px;
  334. background: #F2F2F2;
  335. margin: 10rpx 50rpx;
  336. }
  337. .audit {
  338. margin-top: 20rpx;
  339. }
  340. }
  341. .bottom-btn {
  342. width: 100%;
  343. position: fixed;
  344. bottom: 0;
  345. display: flex;
  346. z-index: 2;
  347. left: 0;
  348. background-color: #f8f8f8;
  349. flex-direction: column;
  350. .btn1,
  351. .btn2 {
  352. width: 100%;
  353. margin-bottom: 26rpx;
  354. border-radius: 90rpx;
  355. }
  356. .btn1 {
  357. background: white;
  358. color: #00C265;
  359. }
  360. }
  361. .row1 {
  362. border-bottom: 0 !important;
  363. }
  364. .topInfo {
  365. height: 210rpx;
  366. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  367. padding: 30rpx;
  368. .topInfo-item {
  369. height: 150rpx;
  370. background-color: #FFFFFF;
  371. border-radius: 20rpx;
  372. padding: 40rpx;
  373. .logo {
  374. width: 40rpx;
  375. height: 40rpx;
  376. margin-top: 8rpx;
  377. }
  378. .infoText {
  379. font-size: 36rpx;
  380. font-weight: 600;
  381. margin-left: 20rpx;
  382. }
  383. .infoData {
  384. color: #878C9C;
  385. font-size: 26rpx;
  386. margin-top: 10rpx;
  387. }
  388. }
  389. }
  390. .shade {
  391. position: fixed;
  392. top: 0;
  393. left: 0;
  394. height: 100%;
  395. width: 100%;
  396. background: rgba(0, 0, 0, 0.4);
  397. z-index: 3;
  398. .wrap {
  399. position: absolute;
  400. left: 0;
  401. top: 0;
  402. right: 0;
  403. bottom: 0;
  404. margin: auto;
  405. background: #fff;
  406. width: calc(100% - 198rpx);
  407. height: 700rpx;
  408. border-radius: 20rpx;
  409. .alert-top {
  410. padding: 33rpx;
  411. display: flex;
  412. justify-content: center;
  413. align-items: center;
  414. position: relative;
  415. }
  416. .title {
  417. font-size: 32rpx;
  418. font-weight: 600;
  419. color: #333333;
  420. }
  421. .close {
  422. position: absolute;
  423. right: 33rpx;
  424. }
  425. }
  426. }
  427. .cancel,
  428. .confirm {
  429. position: absolute;
  430. display: inline-block;
  431. width: 50%;
  432. text-align: center;
  433. bottom: 0;
  434. padding: 10px;
  435. border-top: 1px solid #eee;
  436. font-size: 34rpx;
  437. }
  438. .cancel {
  439. left: 0;
  440. border-right: 1px solid #eee;
  441. color: #AFB3BF;
  442. }
  443. .confirm {
  444. right: 0;
  445. color: #22C572;
  446. }
  447. .u-textarea-style {
  448. margin: 20rpx;
  449. background: #F9F9FA;
  450. border-radius: 10px;
  451. border: 1px solid #EEEEEE;
  452. padding: 10rpx 20rpx;
  453. position: relative;
  454. .right-bottom {
  455. position: absolute;
  456. right: 20rpx;
  457. bottom: 20rpx;
  458. color: #AFB3BF;
  459. }
  460. }
  461. /deep/.u-input__textarea {
  462. height: 300rpx !important;
  463. }
  464. .mx-content {
  465. background: #F9F9FA;
  466. padding: 30rpx;
  467. box-sizing: border-box;
  468. margin-top: 20rpx;
  469. border-radius: 20rpx;
  470. .name {
  471. font-size: 32rpx;
  472. font-weight: 700;
  473. border-bottom: 1px solid #EEEEEE;
  474. padding-bottom: 8rpx;
  475. }
  476. .mx-row1,
  477. .mx-row2 {
  478. display: flex;
  479. justify-content: space-between;
  480. margin-top: 20rpx;
  481. }
  482. .mx-item {
  483. text-align: left;
  484. // width: 33%;
  485. // text-align: center;
  486. }
  487. }
  488. </style>