getsaclientcontactinfo.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <template>
  2. <div>
  3. <van-nav-bar
  4. @click-left="onClickLeft"
  5. @click-right="onClickRight"
  6. style="background-color: #1989fa"
  7. >
  8. <template #title>
  9. <van-col style="color: #ffffff">联系记录信息</van-col>
  10. </template>
  11. <template #left>
  12. <i
  13. class="fa fa-arrow-circle-left"
  14. aria-hidden="true"
  15. style="color: #ffffff; font-size: 18px"
  16. ></i>
  17. </template>
  18. <template #right>
  19. <van-icon name="replay" size="18" color="#ffffff" />
  20. </template>
  21. </van-nav-bar>
  22. <van-row style="border-bottom: #efefef solid 3px;">
  23. <van-col span="24" class="title">
  24. <i class="fa fa-user-circle-o" aria-hidden="true"></i> {{data.ClientName}}
  25. </van-col>
  26. </van-row>
  27. <van-row style="border-bottom: #efefef solid 3px;">
  28. <van-col span="24" class="remark">
  29. {{data.Remark}}
  30. </van-col>
  31. </van-row>
  32. <van-cell
  33. title="接待业务员"
  34. :value="data.UserName"
  35. title-class="title1"
  36. value-class="value1"
  37. size="large"
  38. />
  39. <van-cell
  40. title="接待时间"
  41. :value="data.VisitDate+' '+data.VisitTime"
  42. title-class="title1"
  43. value-class="value1"
  44. size="large"
  45. />
  46. <van-cell
  47. title="访问类型"
  48. :value="data.VisitType"
  49. title-class="title1"
  50. value-class="value1"
  51. size="large"
  52. />
  53. <van-cell
  54. title="意向强度"
  55. title-class="title1"
  56. value-class="value1"
  57. size="large"
  58. >
  59. <template #default>
  60. <template v-if="data.Intention>0">
  61. <span v-for="n in data.Intention" :key="n+'x'">★</span>
  62. </template>
  63. <template v-if="data.Intention<5">
  64. <span v-for="n in 5-data.Intention" :key="n">☆</span>
  65. </template>
  66. </template>
  67. </van-cell>
  68. <van-cell
  69. title="来访计划日期"
  70. :value="data.PlanVisitDate"
  71. title-class="title1"
  72. value-class="value1"
  73. size="large"
  74. />
  75. <van-cell
  76. title="下次接待日期"
  77. :value="data.NextReceiveDate"
  78. title-class="title1"
  79. value-class="value1"
  80. size="large"
  81. />
  82. <van-cell
  83. title="录入人"
  84. :value="data.CreateMan"
  85. title-class="title1"
  86. value-class="value1"
  87. size="large"
  88. />
  89. <van-cell
  90. title="录入时间"
  91. :value="data.CreateDate"
  92. title-class="title1"
  93. value-class="value1"
  94. size="large"
  95. />
  96. </div>
  97. </template>
  98. <script>
  99. import { GetSaClientContactInfo } from "@/common/api/loginApi.js";
  100. export default {
  101. name: "login",
  102. data() {
  103. return {
  104. data: {},
  105. };
  106. },
  107. created: function () {
  108. console.info("created");
  109. //console.info(this.$util);
  110. this.$util.persistLogin(this);
  111. this.GetSaClientContactInfo();
  112. },
  113. methods: {
  114. GetSaClientContactInfo: function () {
  115. var that = this;
  116. var data = {
  117. userCode:that.$store.state.data.userCode,
  118. projectId: that.$store.state.projectId,
  119. ccId:that.$route.query.id
  120. };
  121. console.info("data", data);
  122. GetSaClientContactInfo(data).then((res) => {
  123. console.info("GetSaClientContactInfo", res);
  124. if (!res.result) {
  125. that.$toast(res.msg);
  126. return;
  127. }
  128. that.data=res.data;
  129. });
  130. },
  131. onClickLeft() {
  132. // this.$toast('返回')
  133. console.info("left");
  134. this.$router.go(-1);
  135. },
  136. onClickRight() {
  137. this.$router.go(0);
  138. },
  139. },
  140. };
  141. </script>
  142. <!-- Add "scoped" attribute to limit CSS to this component only -->
  143. <style scoped>
  144. .title{
  145. color:#0f0fa7;
  146. font-size:18px;
  147. font-weight:900;
  148. text-align: left;
  149. margin-left:15px;
  150. height:40px;
  151. margin-top:15px;
  152. }
  153. .title1 {
  154. color: #999;
  155. text-align: left;
  156. }
  157. .value1{
  158. color:#0f0fa7;
  159. font-size:15px;
  160. }
  161. .size{
  162. font-size:16px;
  163. color:orange;
  164. }
  165. .remark{
  166. text-align:left;
  167. padding-left:15px;
  168. padding-right:15px;
  169. line-height:25px;
  170. justify-content: space-between;
  171. }
  172. </style>