charge_against_revenue_detail.vue 12 KB

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