index.vue 3.3 KB

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