utensils.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <!-- @format -->
  2. <template>
  3. <view class="container">
  4. <view style="margin: 15rpx 0">
  5. <view v-for="item in ledgerList" :key="item.id" class="contentItems">
  6. <view>
  7. <view class="" style="display: flex; justify-content: space-between">
  8. <view style="display: flex" class="">
  9. <span style="font-weight: 700; font-size: 36rpx">{{
  10. item.name
  11. }}</span>
  12. </view>
  13. </view>
  14. <view
  15. style="margin: 10rpx 30rpx; color: #606266; line-height: 50rpx"
  16. class=""
  17. >
  18. <view
  19. >唯一标识:<span>
  20. {{ item.instrNo }}
  21. </span>
  22. </view>
  23. <span style="line-height: 50rpx">
  24. 制造单位:{{ item.manufactoryName }}
  25. </span>
  26. <br />
  27. <view style="display: flex; justify-content: space-between">
  28. <view>器具用途:{{ item.purposeName }}</view>
  29. <view> 规格型号:{{ item.modelSpecific }}</view>
  30. </view>
  31. <span
  32. style="
  33. display: flex;
  34. justify-content: space-between;
  35. align-items: center;
  36. line-height: 50rpx;
  37. "
  38. class=""
  39. >
  40. <span> 出厂编号: {{ item.serialNumber }}</span>
  41. <span> 内部编号: {{ item.internalNumber }}</span>
  42. </span>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. import { listByIds } from "@/api/verification";
  51. import { useDict } from "@/utils/index";
  52. export default {
  53. data() {
  54. return {
  55. record: [], //备案字典
  56. queryParams: {
  57. orderByColumn: "createTime",
  58. isAsc: "Desc",
  59. excludeIds: [],
  60. },
  61. ledgerList: [],
  62. total: 0,
  63. loading: false,
  64. finished: false,
  65. };
  66. },
  67. onLoad(options) {
  68. useDict("ejian_instrFillingStatus").then((res) => {
  69. this.record = res;
  70. });
  71. this.queryParams.excludeIds = options.ids;
  72. this.getList();
  73. },
  74. methods: {
  75. getList() {
  76. listByIds(this.queryParams.excludeIds.split(",")).then(({ data }) => {
  77. this.ledgerList = data;
  78. });
  79. },
  80. },
  81. };
  82. </script>
  83. <style lang="scss" scoped>
  84. .createFixed {
  85. background: #2979ff;
  86. display: flex;
  87. justify-content: center;
  88. align-items: center;
  89. width: 90rpx;
  90. height: 90rpx;
  91. border-radius: 50%;
  92. position: fixed;
  93. right: 30rpx;
  94. bottom: 200rpx;
  95. }
  96. .createNew {
  97. font-size: 30rpx;
  98. margin: 20rpx 0 20rpx 20rpx;
  99. color: #3c9ff3;
  100. }
  101. .container {
  102. height: 100vh;
  103. background: rgb(243, 244, 249);
  104. .contentItems {
  105. width: 93%;
  106. border-radius: 6px;
  107. background: #fff;
  108. margin: 0rpx auto 20rpx;
  109. padding: 20rpx 30rpx 20rpx;
  110. .content {
  111. border-bottom: 1px solid rgb(242, 242, 242);
  112. padding: 24rpx 0;
  113. display: flex;
  114. justify-content: space-between;
  115. }
  116. .content:last-child {
  117. border-bottom: none;
  118. }
  119. .title {
  120. font-size: 26rpx;
  121. color: black;
  122. letter-spacing: 3rpx;
  123. }
  124. .message {
  125. font-size: 26rpx;
  126. color: rgb(146, 146, 146);
  127. }
  128. }
  129. }
  130. </style>