index.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <template>
  2. <view class="caseInfo_wrap">
  3. <view class="caseInfo_content_wrap">
  4. <view class="caseInfo_title">
  5. <view>
  6. <image src="/static/clueDetail/icon-caseInfo.png" mode=""></image>
  7. <text class="info_text">发单信息</text>
  8. </view>
  9. <u-icon name="edit-pen-fill" color="#2979ff" size="18" @click="handleEdit"></u-icon>
  10. </view>
  11. <view class="caseInfo_main_wrap">
  12. <view class="Info_item" v-for="item in caseInfoColumn" :key="item.prop">
  13. <text class="label">{{ item.label }}</text>
  14. <text class="value">{{
  15. item.dictType
  16. ? $selectDictLabel(item.dictType, receiptDetail[item.prop])
  17. : receiptDetail[item.prop]
  18. ? receiptDetail[item.prop]
  19. : "-"
  20. }}</text>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. const caseInfoColumn = [{
  28. prop: "receiptDate",
  29. label: "收单日期",
  30. },
  31. {
  32. prop: "item",
  33. label: "物品",
  34. },
  35. {
  36. prop: "phone",
  37. label: "电话",
  38. },
  39. {
  40. prop: "authenticateNickName",
  41. label: "鉴定",
  42. },
  43. {
  44. prop: "category",
  45. label: "类别",
  46. dictType: "crm_form_category",
  47. },
  48. {
  49. prop: "brand",
  50. label: "品牌",
  51. dictType: "crm_form_brand",
  52. },
  53. {
  54. prop: "idCard",
  55. label: "身份证号码",
  56. },
  57. {
  58. prop: "customName",
  59. label: "开户人姓名",
  60. },
  61. {
  62. prop: "bankCardNumber",
  63. label: "银行卡号",
  64. },
  65. {
  66. prop: "bankName",
  67. label: "银行名称",
  68. },
  69. {
  70. prop: "paymentMethod",
  71. label: "付款方式",
  72. },
  73. {
  74. prop: "visitTime",
  75. label: "计划上门时间",
  76. },
  77. {
  78. prop: "remarks",
  79. label: "补充说明",
  80. },
  81. {
  82. prop: "priceRange",
  83. label: "预估价格范围",
  84. },
  85. {
  86. prop: "tactic",
  87. label: "采用战术",
  88. dictType: "crm_form_tactic",
  89. },
  90. ];
  91. export default {
  92. props: {
  93. receiptDetail: {
  94. type: Object,
  95. default: () => {},
  96. },
  97. sendFormId: {
  98. type: [Number, String],
  99. required: true,
  100. },
  101. clueId: {
  102. type: [Number, String],
  103. required: true,
  104. },
  105. },
  106. data() {
  107. return {
  108. caseInfoColumn,
  109. };
  110. },
  111. methods: {
  112. handleEdit() {
  113. uni.navigateTo({
  114. url: `/pages/orderForm/index?clueId=${this.clueId}&sendFormId=${this.sendFormId}`,
  115. });
  116. },
  117. }
  118. };
  119. </script>
  120. <style lang="scss" scoped>
  121. .caseInfo_wrap {
  122. min-height: 400px;
  123. .caseInfo_title {
  124. display: flex;
  125. align-items: center;
  126. justify-content: space-between;
  127. height: 80rpx;
  128. background: #f4f4f6;
  129. padding: 0 40rpx;
  130. image {
  131. width: 24rpx;
  132. height: 24rpx;
  133. margin-right: 10rpx;
  134. }
  135. .info_text {
  136. font-size: 24rpx;
  137. color: #202020;
  138. }
  139. .edit-btn {
  140. font-size: 24rpx;
  141. color: #3498db;
  142. padding: 8rpx 16rpx;
  143. border-radius: 8rpx;
  144. background-color: #fff;
  145. border: 1rpx solid #3498db;
  146. }
  147. }
  148. .caseInfo_main_wrap {
  149. .Info_item {
  150. padding: 18rpx 40rpx;
  151. display: flex;
  152. justify-content: space-between;
  153. .label {
  154. color: #999999;
  155. font-size: 26rpx;
  156. width: 160rpx;
  157. }
  158. .value {
  159. font-size: 26rpx;
  160. color: #202020;
  161. text-align: right;
  162. width: 500rpx;
  163. }
  164. }
  165. }
  166. }
  167. </style>