dmPanding.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <template>
  2. <dm-pop-view ref='popView' :title="isZj?'客户归属判定':'客户到访判定'" :isShowTitle="true" :isShowClose="true" :isShowConfirm="false" :maskTapHide='maskTapHide'>
  3. <view class="content">
  4. <view class="content_title">{{isZj?'请判定客户归属':'请判定到访归属'}}</view>
  5. <scroll-view class="explain-contain" :scroll-y="true">
  6. <view v-for="(item, index) in daofangList" :key="index" class="content_item" @click="selectDf(index)">
  7. <view class="item_title">
  8. <view v-if="item.isZrSf">
  9. <view class="content-des" v-if="isZj">案场自然获电</view>
  10. <view class="content-des" v-else>案场自然顺访</view>
  11. </view>
  12. <view v-else>
  13. <view class="content-des">{{item.reporterOrganizeName||""}}{{item.reporterName||""}}-{{item.reporterHiddenMobile}}
  14. <text v-if="item.isInterceptorInvalid">(截客失效)</text>
  15. <text v-if="item.isRecommendRelation">{{isZj?'(推荐获电)':'(推荐到访)'}}</text>
  16. </view>
  17. </view>
  18. <image v-if="item.isSelected" class="select_status" src="../../static/icons/icon_selected@2x.png" mode=""></image>
  19. <image v-else class="select_status" src="../../static/icons/icon_unselected@2x.png" mode=""></image>
  20. </view>
  21. <view class="content-time" v-if="item.isZrSf">选择此项则客户所有报备关系失效,归类为案场自然{{isZj?"获电":"顺访"}}</view>
  22. <view class="content-time" v-else>{{item.isRecommendRelation?"推荐时间":"报备时间"}} - {{item.reportTimeStr}} <text v-if="item.isImportReport">(导入)</text></view>
  23. <view class="line_gray"></view>
  24. </view>
  25. </scroll-view>
  26. <view class="content_bottom">
  27. <view class="goBtn" :style="`background-color: ${themeColor};`" @click="confirmAction">{{confirmStr}}</view>
  28. </view>
  29. </view>
  30. </dm-pop-view>
  31. </template>
  32. <script>
  33. import dmPopView from './dmPopView.vue'
  34. let app = getApp();
  35. export default {
  36. props: {
  37. maskTapHide: {
  38. type: Boolean,
  39. default: true
  40. },
  41. daofangList:Array,
  42. confirmStr: {
  43. type: String,
  44. default: '确认'
  45. },
  46. isZj:{
  47. type: Boolean,
  48. default: false
  49. }
  50. },
  51. data() {
  52. return {
  53. themeColor: null,
  54. fuzhuColor: null,
  55. themeColor50: null,
  56. themeColor25: null,
  57. fuzhuColor50: null,
  58. currentItem:null,
  59. }
  60. },
  61. mounted() {
  62. this.themeColor = app.globalData.themeColor
  63. this.themeColor50 = app.globalData.themeColor50
  64. this.themeColor25 = app.globalData.themeColor25
  65. this.fuzhuColor = app.globalData.fuzhuColor
  66. this.fuzhuColor50 = app.globalData.fuzhuColor50
  67. },
  68. methods: {
  69. show() {
  70. this.$refs.popView.show()
  71. },
  72. knowAction(){
  73. this.$refs.popView.hide()
  74. },
  75. confirmAction() {
  76. this.$refs.popView.hide();
  77. this.$emit('confirmAction',this.currentItem)
  78. },
  79. selectDf(index){
  80. this.currentItem = null
  81. this.daofangList.forEach((item,ind)=>{
  82. if(index==ind){
  83. item.isSelected = true;
  84. this.currentItem = item;
  85. }else{
  86. item.isSelected = false;
  87. }
  88. })
  89. }
  90. },
  91. components: {
  92. dmPopView
  93. }
  94. }
  95. </script>
  96. <style scoped lang="scss">
  97. .content {
  98. width: 100%;
  99. height: 760rpx;
  100. font-family: Verdana;
  101. display: flex;
  102. flex-direction: column;
  103. .explain-contain {
  104. width: 100%;
  105. height: 600rpx;
  106. font-family: Verdana;
  107. color: #454545;
  108. overflow-y: scroll;
  109. padding-left: 32rpx;
  110. padding-right: 32rpx;
  111. box-sizing: border-box;
  112. }
  113. .content_title{
  114. font-size: 32rpx;
  115. font-family: Verdana, Verdana-Bold;
  116. font-weight: 700;
  117. text-align: left;
  118. color: #454545;
  119. margin-left: 30rpx;
  120. margin-top: 40rpx;
  121. margin-bottom: 36rpx;
  122. }
  123. .content_item{
  124. display: flex;
  125. flex-direction: column;
  126. .item_title{
  127. display: flex;
  128. flex-direction: row;
  129. justify-content: space-between;
  130. align-items: center;
  131. .content-des{
  132. font-size: 28rpx;
  133. font-family: Verdana, Verdana-Regular;
  134. font-weight: 400;
  135. text-align: left;
  136. color: #333333;
  137. max-width: 600rpx;
  138. }
  139. .select_status{
  140. width: 32rpx;
  141. height: 32rpx;
  142. }
  143. }
  144. .content-time{
  145. font-size: 24rpx;
  146. font-family: Verdana, Verdana-Regular;
  147. font-weight: 400;
  148. text-align: left;
  149. color: #999999;
  150. margin-top: 4rpx;
  151. }
  152. .line_gray{
  153. height: 2rpx;
  154. margin:22rpx 0rpx;
  155. opacity: 0.05;
  156. background: #546074;
  157. }
  158. }
  159. .content_bottom{
  160. width: 100%;
  161. height: 200rpx;
  162. display: flex;
  163. flex-direction: column;
  164. align-items: center;
  165. justify-content: center;
  166. }
  167. .goBtn {
  168. width: 260rpx;
  169. height: 84rpx;
  170. border-radius: 42rpx;
  171. font-size: 32rpx;
  172. color: #FFFFFF;
  173. line-height: 84rpx;
  174. text-align: center;
  175. }
  176. .knowBtn {
  177. width: 260rpx;
  178. height: 84rpx;
  179. border-radius: 42rpx;
  180. margin-left: calc((100% - 260rpx) / 2);
  181. margin-top: 20rpx;
  182. color: #666666;
  183. font-size: 32rpx;
  184. line-height: 84rpx;
  185. text-align: center;
  186. }
  187. }
  188. </style>