info.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <template>
  2. <view class="mainBox">
  3. <u-cell-group>
  4. <u-cell title="客户编码" arrow-direction="down">
  5. <text slot="value">
  6. {{form.code||''}}
  7. </text>
  8. </u-cell>
  9. <u-cell title="客户名称" arrow-direction="down">
  10. <text slot="value">
  11. {{form.name||''}}
  12. </text>
  13. </u-cell>
  14. <u-cell title="客户分类" arrow-direction="down">
  15. <text slot="value">
  16. {{form.categoryName||''}}
  17. </text>
  18. </u-cell>
  19. <u-cell title="客户代号" arrow-direction="down">
  20. <text slot="value">
  21. {{form.serialNo||''}}
  22. </text>
  23. </u-cell>
  24. <u-cell title="客户简称" arrow-direction="down">
  25. <text slot="value">
  26. {{form.simpleName||''}}
  27. </text>
  28. </u-cell>
  29. <u-cell title="法定代表人" arrow-direction="down">
  30. <text slot="value">
  31. {{form.legalPerson||''}}
  32. </text>
  33. </u-cell>
  34. <u-cell title="注册资金" arrow-direction="down">
  35. <text slot="value">
  36. {{form.registeredCapital||''}}
  37. </text>
  38. </u-cell>
  39. <u-cell title="授信额度" arrow-direction="down">
  40. <text slot="value">
  41. {{form.authorizationLimit||''}}
  42. </text>
  43. </u-cell>
  44. <u-cell title="单位电话" arrow-direction="down">
  45. <text slot="value">
  46. {{form.phone||''}}
  47. </text>
  48. </u-cell>
  49. <u-cell title="详细地址" arrow-direction="down">
  50. <text slot="value">
  51. {{(form.addressName||'')+form.address||''}}
  52. </text>
  53. </u-cell>
  54. <u-cell title="统一社会信用代码" arrow-direction="down">
  55. <text slot="value">
  56. {{form.unifiedSocialCreditCode||''}}
  57. </text>
  58. </u-cell>
  59. <u-cell title="所属行业" arrow-direction="down">
  60. <text slot="value">
  61. {{form.industryFullName||''}}
  62. </text>
  63. </u-cell>
  64. <u-cell title="营业类型" arrow-direction="down">
  65. <text slot="value">
  66. {{form.companyCategoryName||''}}
  67. </text>
  68. </u-cell>
  69. <u-cell title="企业类型" arrow-direction="down">
  70. <text slot="value">
  71. {{form.enterpriseTypeName||''}}
  72. </text>
  73. </u-cell>
  74. <u-cell title="登记日期" arrow-direction="down">
  75. <text slot="value">
  76. {{form.registerDate||''}}
  77. </text>
  78. </u-cell>
  79. <u-cell title="主营产品" arrow-direction="down">
  80. <text slot="value">
  81. {{form.mainProduct||''}}
  82. </text>
  83. </u-cell>
  84. <u-cell title="级别" arrow-direction="down">
  85. <text slot="value">
  86. {{form.contact_level||''}}
  87. </text>
  88. </u-cell>
  89. <u-cell title="结算方式" arrow-direction="down">
  90. <text slot="value">
  91. {{otherForm.settlementModeName||''}}
  92. </text>
  93. </u-cell>
  94. <u-cell title="税率" arrow-direction="down">
  95. <text slot="value">
  96. {{otherForm.taxRate||''}}
  97. </text>
  98. </u-cell>
  99. <u-cell title="折扣率" arrow-direction="down">
  100. <text slot="value">
  101. {{otherForm.discount||''}}
  102. </text>
  103. </u-cell>
  104. <u-cell title="收件人" arrow-direction="down">
  105. <text slot="value">
  106. {{otherForm.sender||''}}
  107. </text>
  108. </u-cell>
  109. <u-cell title="收件人电话" arrow-direction="down">
  110. <text slot="value">
  111. {{otherForm.senderPhone||''}}
  112. </text>
  113. </u-cell>
  114. <u-cell title="收件人详细地址" arrow-direction="down">
  115. <text slot="value">
  116. {{(otherForm.addressName||'')+otherForm.address||''}}
  117. </text>
  118. </u-cell>
  119. <u-cell title="经营范围" arrow-direction="down">
  120. <text slot="value">
  121. {{otherForm.businessScope||''}}
  122. </text>
  123. </u-cell>
  124. <u-cell title="备注" arrow-direction="down">
  125. <text slot="value">
  126. {{otherForm.remark||''}}
  127. </text>
  128. </u-cell>
  129. </u-cell-group>
  130. </view>
  131. </template>
  132. <script>
  133. import {
  134. getInfoByIds
  135. } from "@/api/saleManage/contact/index.js"
  136. export default {
  137. data() {
  138. return {
  139. form: {},
  140. otherForm: {}
  141. }
  142. },
  143. created() {
  144. },
  145. methods: {
  146. init(data) {
  147. if (data) {
  148. this.form = data.form
  149. this.otherForm = data.otherForm
  150. getInfoByIds(this.form.categoryId).then((res) => {
  151. let categoryName = res.map((item) => item.name)?.join(',');
  152. this.$set(this.form, 'categoryName', categoryName);
  153. });
  154. }
  155. },
  156. }
  157. }
  158. </script>
  159. <style lang="scss" scoped>
  160. /deep/.u-swipe-action-item__right__button__wrapper {
  161. background-color: #f56c6c !important;
  162. }
  163. /deep/.u-cell__body,/deep/.u-cell__title-text{
  164. font-size: 26rpx;
  165. }
  166. </style>