recordHistory.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <!-- @format -->
  2. <template>
  3. <view class="container">
  4. <view class="">
  5. <view style="">
  6. <!-- <u-search
  7. :showAction="false"
  8. bgColor="#fff"
  9. placeholder="请输入检定单编号"
  10. style="width: 95%; margin: 30rpx auto"
  11. ></u-search> -->
  12. <view
  13. class="contentItems"
  14. @click="handleVerDetails"
  15. v-for="item of recordList"
  16. >
  17. <view class="title">
  18. <span class="name">{{ item.name }}</span>
  19. <span
  20. class="createTime"
  21. :style="{
  22. color: recordColor[recordStatus(item.auditStatus)],
  23. }"
  24. >备案状态:{{ recordStatus(item.auditStatus) }}</span
  25. >
  26. </view>
  27. <view class="contentItem">
  28. <view class="item">
  29. <span
  30. style="color: #fa3534; font-size: 28rpx; margin-right: 40rpx"
  31. >备案编号:{{ item.filingApplyNo }}</span
  32. >
  33. <span>出厂编号:{{ item.serialNumber }}</span>
  34. </view>
  35. <view class="item">
  36. <view>审核机构:{{ item.auditOrgName }}</view>
  37. </view>
  38. <view class="item">
  39. <view>审核人员:{{ item.auditUserName }}</view>
  40. </view>
  41. <view class="item">
  42. <span>申请时间:{{ item.createTime }}</span>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. import { getauditRecordList } from "@/api/Ledger";
  52. import { useDict, paraseDict } from "@/utils/index";
  53. export default {
  54. data() {
  55. return {
  56. recordId: null,
  57. recordList: [],
  58. recordColor: {
  59. 已撤回: "#fa3534",
  60. 已接收: "#19be6b",
  61. 待提交: "#2979ff",
  62. 备案中: "#2979ff",
  63. 已拒绝: "#fa3534",
  64. 勿备案: "#fa3534",
  65. 未备案: "#909399",
  66. 免备案: "#909399",
  67. 已退回: "#fa3534",
  68. },
  69. record: [], //备案字典
  70. };
  71. },
  72. computed: {
  73. //备案状态
  74. recordStatus() {
  75. return (row) => {
  76. return paraseDict(this.record, row);
  77. };
  78. },
  79. },
  80. async onLoad(options) {
  81. useDict("ejian_instrFillingStatus").then((res) => {
  82. this.record = res;
  83. });
  84. this.recordId = options.id;
  85. try {
  86. let { data } = await getauditRecordList({
  87. instrumentId: this.recordId,
  88. });
  89. this.recordList = data;
  90. } catch (error) {}
  91. },
  92. };
  93. </script>
  94. <style lang="scss">
  95. .item {
  96. color: #909399;
  97. font-size: 24rpx;
  98. margin: 15rpx 0;
  99. }
  100. .title {
  101. padding-bottom: 10rpx;
  102. border-bottom: 1px solid rgb(242, 242, 242);
  103. display: flex;
  104. align-items: center;
  105. justify-content: space-between;
  106. .name {
  107. font-size: 28rpx;
  108. color: black;
  109. font-weight: bold;
  110. }
  111. .createTime {
  112. color: #909399;
  113. font-size: 28rpx;
  114. font-weight: bold;
  115. }
  116. }
  117. .container {
  118. height: 100vh;
  119. background: rgb(248, 249, 250);
  120. padding: 30rpx;
  121. }
  122. .contentItems {
  123. width: 97%;
  124. border-radius: 6px;
  125. background: #fff;
  126. margin: 0rpx auto 30rpx;
  127. padding: 20rpx 30rpx 20rpx;
  128. .content {
  129. border-bottom: 1px solid rgb(242, 242, 242);
  130. padding: 24rpx 0;
  131. display: flex;
  132. justify-content: space-between;
  133. }
  134. .content:last-child {
  135. border-bottom: none;
  136. }
  137. .title {
  138. font-size: 26rpx;
  139. color: black;
  140. letter-spacing: 3rpx;
  141. }
  142. .message {
  143. font-size: 26rpx;
  144. color: rgb(146, 146, 146);
  145. }
  146. }
  147. </style>