bargainAduit.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. <template>
  2. <view class="list-content">
  3. <pageHead pageTitle="议价审批履历" :showBack="true" style="margin-bottom: 10px;"></pageHead>
  4. <view class="list-card">
  5. <MySteps :options="bargainAduit" active-color="#E60012" :active="active" direction="column" />
  6. </MySteps>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. import * as ApproveApi from '@/api/work/approve'
  12. import {editFlow,updateContract} from '@/api/work/contract/contract.js'
  13. import { stateFormat,stateFormatLow } from '@/utils/common.js'
  14. const { environment } = require('../../../config/environment.js')
  15. export default {
  16. data() {
  17. return {
  18. projectPageParam: {
  19. pageNum: 1,
  20. pageSize: 5
  21. },
  22. bargainAduit:[],
  23. returnMsg:"",
  24. bargainId:'',
  25. totalPrice:0,
  26. active:0
  27. }
  28. },
  29. onLoad (params) {
  30. this.bargainId = params.businessId
  31. this.getAuditHistory()
  32. },
  33. methods: {
  34. getAuditHistory(){
  35. let param = {
  36. businessId:this.bargainId,
  37. auditFlows:[1,2]
  38. }
  39. ApproveApi.getAuditHistory(param).then(res => {
  40. if (res.code == 200) {
  41. this.bargainAduit = res.rows
  42. //处理数据 要求格式desc title
  43. this.bargainAduit.some(it=>{
  44. this.$set(it,"title",it.desc)
  45. this.$set(it,"desc",it.auditTime)
  46. })
  47. this.active = this.bargainAduit.length-1
  48. }
  49. })
  50. },
  51. stateFormat,
  52. stateFormatLow,
  53. getBargainInfo() {
  54. ApproveApi.contractById(this.contractId).then(res => {
  55. if (res.code == 200) {
  56. this.contractInfo = res.data
  57. //再次查询电梯信息
  58. this.getBargainLift();
  59. }
  60. })
  61. },
  62. getBargainLift() {
  63. ApproveApi.contractLiftByNo(this.contractInfo.contractNo).then(res => {
  64. if (res.code == 200) {
  65. this.$set(this.contractInfo,'elevatorList',res.rows)
  66. }
  67. })
  68. },
  69. goBack () {
  70. //uni.navigateBack({ delta: 1});
  71. uni.navigateTo({
  72. url: '/pages/work/approve/list'
  73. })
  74. }
  75. }
  76. }
  77. </script>
  78. <style>
  79. page {
  80. background-color: #EFF2F6;
  81. }
  82. </style>
  83. <style lang="scss" scoped>
  84. ::v-deep .uni-steps__column-line-item{
  85. height: -webkit-fill-available;
  86. }
  87. .status-btn {
  88. /* #ifndef APP-NVUE */
  89. display: flex;
  90. /* #endif */
  91. flex-direction: row;
  92. align-items: center;
  93. justify-content: center;
  94. height: 92rpx;
  95. margin: 30rpx;
  96. background-color: #007AFF;
  97. }
  98. .example-body {
  99. /* #ifndef APP-NVUE */
  100. display: block;
  101. /* #endif */
  102. padding: 15px;
  103. flex-direction: row;
  104. }
  105. ::v-deep .Links {
  106. span {
  107. width: 100%;
  108. }
  109. }
  110. .list-card__price {
  111. width: 40%;
  112. }
  113. .card_bottom{
  114. display:flex;
  115. width: 100%;
  116. align-items: center;
  117. height: 75px;
  118. position:fixed;
  119. bottom: 0px;
  120. margin-left: 0px;
  121. background: #FFFFFF;
  122. .button-left {
  123. width: 48%;
  124. height: 84rpx;
  125. background: #FFF8F8;
  126. border-radius: 200rpx 0rpx 0rpx 200rpx;
  127. box-shadow: 0px 5px 6px 0px #EADEDF;
  128. .reject-text {
  129. font-size: 32rpx;
  130. color: #E60114;
  131. line-height: 44rpx;
  132. }
  133. }
  134. .button-right {
  135. width: 48%;
  136. height: 84rpx;
  137. background: linear-gradient(90deg, #DC0736 0%, #E60114 100%);
  138. box-shadow: 0px 5px 6px 0px #EADEDF;
  139. border-radius: 0rpx 200rpx 200rpx 0rpx;
  140. .pass-text {
  141. font-size: 32rpx;
  142. color: #FFFFFF;
  143. line-height: 44rpx;
  144. }
  145. }
  146. }
  147. .card-title{
  148. font-weight: 600;
  149. font-size: 16px;
  150. margin-bottom: 10px;
  151. }
  152. .txt-label {
  153. color: #3C485B;
  154. font-weight: 400;
  155. font-size: 12px;
  156. text-align: center;
  157. margin-bottom: 5px;
  158. }
  159. .txt-value {
  160. color: #000000;
  161. text-align: center;
  162. font-size: 16px;
  163. font-weight: 600;
  164. }
  165. .txt-value2 {
  166. color: #E60012;
  167. text-align: center;
  168. font-size: 16px;
  169. font-weight: 600;
  170. }
  171. .card__price{
  172. text-align: center;
  173. width: 90%;
  174. background-color: #FFF5F6;
  175. border-radius: 4px;
  176. padding:7px 5px;
  177. }
  178. .val-posi{
  179. width: 100%;
  180. text-align: right;
  181. font-size: 16px;
  182. }
  183. ::v-deep .u-badge--error {
  184. background-color: #E60114;
  185. }
  186. .flex-center {
  187. display: flex;
  188. align-items: center;
  189. justify-content: center;
  190. }
  191. .flex-center-between {
  192. display: flex;
  193. align-items: center;
  194. justify-content: space-between;
  195. margin-bottom: 10px;
  196. }
  197. .flex-center-middle {
  198. display: flex;
  199. align-items: center;
  200. justify-content: center;
  201. }
  202. .ml40 {
  203. margin-left: 40rpx
  204. }
  205. .mt32 {
  206. margin-top: 32rpx;
  207. }
  208. .list-content {
  209. // padding: 20rpx 24rpx;
  210. .button-icon {
  211. width: 28rpx;
  212. height: 28rpx;
  213. margin-right: 8rpx;
  214. }
  215. .divider {
  216. margin: 32rpx 0;
  217. border: 2rpx solid #E9EEF3;
  218. }
  219. .list-card {
  220. margin: 0px 24rpx;
  221. background: #FFFFFF;
  222. border-radius: 8rpx;
  223. padding: 32rpx;
  224. margin-bottom: 20rpx;
  225. &__title {
  226. font-weight: 600;
  227. font-size: 34rpx;
  228. color: #000000;
  229. line-height: 48rpx;
  230. width: 480rpx;
  231. white-space: nowrap;
  232. overflow: hidden;
  233. text-overflow: ellipsis;
  234. }
  235. &__area {
  236. font-size: 32rpx;
  237. color: rgba(0, 0, 0, 0.85);
  238. line-height: 32rpx;
  239. }
  240. &__text {
  241. font-size: 32rpx;
  242. color: #6B7688;
  243. line-height: 40rpx;
  244. }
  245. .developer {
  246. color: rgba(0, 0, 0, 0.85);
  247. width: 490rpx;
  248. white-space: nowrap;
  249. overflow: hidden;
  250. text-overflow: ellipsis;
  251. }
  252. .button-icon {
  253. width: 28rpx;
  254. height: 28rpx;
  255. margin-right: 8rpx;
  256. }
  257. .button-left {
  258. width: 350rpx;
  259. height: 84rpx;
  260. background: #FFF8F8;
  261. border-radius: 200rpx 0rpx 0rpx 200rpx;
  262. box-shadow: 0rpx 4rpx 16rpx 0rpx #DFDFDF;
  263. .reject-text {
  264. font-size: 32rpx;
  265. color: #E60114;
  266. line-height: 44rpx;
  267. }
  268. }
  269. .button-right {
  270. width: 350rpx;
  271. height: 84rpx;
  272. background: linear-gradient(90deg, #DC0736 0%, #E60114 100%);
  273. box-shadow: 0rpx 4rpx 16rpx 0rpx #DFDFDF;
  274. border-radius: 0rpx 200rpx 200rpx 0rpx;
  275. .pass-text {
  276. font-size: 32rpx;
  277. color: #FFFFFF;
  278. line-height: 44rpx;
  279. }
  280. }
  281. }
  282. .popup-content {
  283. padding: 20rpx 20rpx;
  284. .return_content{
  285. width: 92%;
  286. padding: 20rpx 28rpx;
  287. background: #EFF2F6;
  288. border-radius: 4px;
  289. }
  290. .return_title{
  291. font-family: PingFangSC, PingFang SC;
  292. font-weight: 600;
  293. font-size: 16px;
  294. color: rgba(0,0,0,0.85);
  295. margin-bottom: 10rpx;
  296. }
  297. .button-icon {
  298. width: 28rpx;
  299. height: 28rpx;
  300. margin-right: 8rpx;
  301. }
  302. .button-left {
  303. width: 350rpx;
  304. height: 84rpx;
  305. background: #FFF8F8;
  306. border-radius: 200rpx 0rpx 0rpx 200rpx;
  307. box-shadow: 0px 2px 8px 0px #DFDFDF;
  308. .reject-text {
  309. font-size: 32rpx;
  310. color: #E60114;
  311. line-height: 44rpx;
  312. }
  313. }
  314. .button-right {
  315. width: 350rpx;
  316. height: 84rpx;
  317. background: linear-gradient(90deg, #DC0736 0%, #E60114 100%);
  318. border-radius: 0rpx 200rpx 200rpx 0rpx;
  319. box-shadow: 0px 2px 8px 0px #DFDFDF;
  320. .pass-text {
  321. font-size: 32rpx;
  322. color: #FFFFFF;
  323. line-height: 44rpx;
  324. }
  325. }
  326. .button-left-one {
  327. width: 220rpx;
  328. height: 84rpx;
  329. background: #FFF8F8;
  330. border-radius: 200rpx;
  331. box-shadow: 0px 2px 8px 0px #DFDFDF;
  332. .reject-text {
  333. font-size: 32rpx;
  334. color: #E60114;
  335. line-height: 44rpx;
  336. }
  337. }
  338. .button-right-one {
  339. width: 220rpx;
  340. height: 84rpx;
  341. background: linear-gradient(90deg, #DC0736 0%, #E60114 100%);
  342. border-radius: 200rpx;
  343. box-shadow: 0px 2px 8px 0px #DFDFDF;
  344. .pass-text {
  345. font-size: 32rpx;
  346. color: #FFFFFF;
  347. line-height: 44rpx;
  348. }
  349. }
  350. }
  351. }
  352. </style>