dmBaobeiScreenPicker.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <template>
  2. <dm-pop-view ref="popView" title="更多筛选" :isShowConfirm="false" :maskTapHide="true">
  3. <scroll-view class="screen_container" scroll-y="true">
  4. <dm-time-level-screen :sortType="sortType" :queryDateType="queryDateType" @queryDateTypeAction="queryDateTypeAction" @sortTypeAction="sortTypeAction"></dm-time-level-screen>
  5. <dm-date-screen style="margin-top: 40rpx;" :defaultParameter="defaultParameter" @screenDateAction="screenDateAction"></dm-date-screen>
  6. <view class="screen_item_title" v-if='isSingleProject && roleType != 12'>选择报备组织</view>
  7. <view class="reportOrganize" @click="openReportOrganizePicker">
  8. <view class="organizeName">
  9. {{holdReportOrganize.title}}
  10. </view>
  11. <image class="organizeIcon" src="../../static/icons/icon_aboutUs_DropDown.png" mode=""></image>
  12. </view>
  13. <view class="screen_item_title">报备方式</view>
  14. <view class="level_tag_view">
  15. <text class="level_tag" :style="{ color: holdReportType == item.value ? '#fff' : '#666', 'background-color': holdReportType == item.value ? themeColor : '#F1F5F9' }"
  16. v-for="(item, i) in reportTypeList" :key="i" @click="chooseType(item)">
  17. {{ item.title }}
  18. </text>
  19. </view>
  20. <view class="screen_item_title">客户最新动态</view>
  21. <view class="level_tag_view">
  22. <text class="level_tag" :style="{ color: holdReportState == item.value ? '#fff' : '#666', 'background-color': holdReportState == item.value ? themeColor : '#F1F5F9' }"
  23. v-for="(item, i) in reportStateList" :key="i" @click="chooseState(item)">
  24. {{ item.title }}
  25. </text>
  26. </view>
  27. <view class="bottom_btn" style="margin-top: 60rpx;">
  28. <text class="reset_btn" :style="{'background-color':themeColor25}" @click="resetAction">重置</text>
  29. <text class="pop_btn" :style="{'background-color':themeColor}" @click="popConfirm">确定</text>
  30. </view>
  31. <dm-picker-view ref="reportOrganizePicker" :options="reportOrganizeList" :value="holdReportOrganize.value" title="选择报备组织"
  32. @confirm="confirmReportOrganize"></dm-picker-view>
  33. </scroll-view>
  34. </dm-pop-view>
  35. </template>
  36. <script>
  37. import dmPopView from './dmPopView.vue'
  38. import dmTimeLevelScreen from './dmTimeLevelScreen.vue'
  39. import dmDateScreen from './dmDateScreen.vue'
  40. import dmPickerView from './dmPickerView.vue'
  41. export default {
  42. props: {
  43. defaultParameter: Object,
  44. isSingleProject: {
  45. type: Boolean,
  46. default: true
  47. },
  48. roleType: {
  49. type: [Number, String],
  50. default: '0'
  51. },
  52. holdReportOrganize: Object,
  53. holdReportType: String,
  54. holdReportState: String,
  55. reportTypeList: Array,
  56. reportStateList: Array,
  57. reportOrganizeList: Array,
  58. queryDateType: [Number, String],
  59. sortType: {
  60. type: [Number, String],
  61. default: 1
  62. }
  63. },
  64. data() {
  65. return {
  66. themeColor: '',
  67. fuzhuColor: '',
  68. themeColor50: '',
  69. themeColor25: '',
  70. fuzhuColor50: '',
  71. }
  72. },
  73. mounted() {
  74. let globalData = getApp().globalData
  75. this.themeColor = globalData.themeColor
  76. this.themeColor50 = globalData.themeColor50
  77. this.themeColor25 = globalData.themeColor25
  78. this.fuzhuColor = globalData.fuzhuColor
  79. this.fuzhuColor50 = globalData.fuzhuColor50
  80. },
  81. methods: {
  82. show() {
  83. this.$refs.popView.show()
  84. },
  85. queryDateTypeAction(e) {
  86. // this.queryDateType = e
  87. // this.getPageData()
  88. this.$emit('queryDateTypeAction', e)
  89. },
  90. sortTypeAction(e) {
  91. // this.sortType = e
  92. // this.getPageData()
  93. this.$emit('sortTypeAction', e)
  94. },
  95. // 筛选中时间选择
  96. screenDateAction(val, start, end) {
  97. this.$emit('screenDateAction', val, start, end)
  98. // this.defaultParameter.dateType = val
  99. // this.defaultParameter.startDate = start
  100. // this.defaultParameter.endDate = end
  101. },
  102. openReportOrganizePicker() {
  103. this.$refs.reportOrganizePicker.show()
  104. },
  105. chooseType(item) {
  106. // this.holdReportType = item.value;
  107. this.$emit('chooseType', item)
  108. },
  109. chooseState(item) {
  110. // this.holdReportState = item.value;
  111. this.$emit('chooseState', item)
  112. },
  113. confirmReportOrganize(e) {
  114. this.$emit('confirmReportOrganize', e)
  115. // this.holdReportOrganize = {
  116. // title: e.selItem.title,
  117. // value: e.selItem.value
  118. // }
  119. },
  120. resetAction() {
  121. this.$refs.popView.hide()
  122. this.$emit('resetAction')
  123. },
  124. popConfirm() {
  125. this.$refs.popView.hide()
  126. this.$emit('sureAction')
  127. }
  128. },
  129. components: {
  130. dmPopView,
  131. dmTimeLevelScreen,
  132. dmDateScreen,
  133. dmPickerView
  134. }
  135. }
  136. </script>
  137. <style scoped lang="scss">
  138. .screen_container {
  139. margin-top: 40rpx;
  140. margin-bottom: 50rpx;
  141. overflow-y: scroll;
  142. // display: flex;
  143. // flex-direction: column;
  144. width: 750rpx;
  145. height: 960rpx;
  146. min-height: 960rpx;
  147. max-height: 960rpx;
  148. // max-height: 1200rpx;
  149. .screen_item_title {
  150. margin-left: 30rpx;
  151. margin-top: 40rpx;
  152. line-height: 44rpx;
  153. font-size: 32rpx;
  154. font-family: Verdana, Verdana-Bold;
  155. font-weight: 700;
  156. text-align: left;
  157. color: #454545;
  158. }
  159. .level_tag_view {
  160. margin-left: 30rpx;
  161. margin-top: 0rpx;
  162. display: flex;
  163. flex-wrap: wrap;
  164. .level_tag {
  165. margin-right: 16rpx;
  166. // padding: 0 20rpx;
  167. // height: 56rpx;
  168. // border-radius: 8rpx;
  169. width: 220rpx;
  170. height: 72rpx;
  171. border-radius: 12rpx;
  172. font-size: 28rpx;
  173. font-family: Verdana, Verdana-Regular;
  174. font-weight: 400;
  175. text-align: center;
  176. line-height: 72rpx;
  177. margin-top: 20rpx;
  178. // margin-bottom: 10rpx;
  179. }
  180. }
  181. .reportOrganize {
  182. margin-top: 20rpx;
  183. margin-left: 30rpx;
  184. margin-right: 30rpx;
  185. padding: 0 30rpx;
  186. box-sizing: border-box;
  187. border-radius: 16rpx;
  188. background-color: #F1F5F9;
  189. height: 94rpx;
  190. min-height: 94rpx;
  191. max-height: 94rpx;
  192. display: flex;
  193. justify-content: space-between;
  194. align-items: center;
  195. line-height: 94rpx;
  196. .organizeName {
  197. font-size: 28rpx;
  198. font-family: Verdana;
  199. }
  200. .organizeIcon {
  201. width: 14rpx;
  202. height: 9rpx;
  203. }
  204. }
  205. .screen_item_sub {
  206. margin-top: 8rpx;
  207. margin-bottom: 40rpx;
  208. margin-left: 30rpx;
  209. line-height: 34rpx;
  210. font-size: 24rpx;
  211. font-family: Verdana, Verdana-Regular;
  212. font-weight: 400;
  213. text-align: left;
  214. color: #999999;
  215. }
  216. .score_view {
  217. margin-top: 30rpx;
  218. margin-bottom: 120rpx;
  219. display: flex;
  220. justify-content: center;
  221. align-items: center;
  222. height: 82rpx;
  223. .score_text {
  224. font-size: 70rpx;
  225. font-family: 'DIN Alternate', 'DIN Alternate-Bold';
  226. font-weight: 700;
  227. }
  228. .score_unit {
  229. padding-top: 25rpx;
  230. font-size: 28rpx;
  231. font-family: Verdana, Verdana-Regular;
  232. font-weight: 400;
  233. }
  234. }
  235. .bottom_btn {
  236. display: flex;
  237. justify-content: center;
  238. margin-bottom: 60rpx;
  239. .reset_btn {
  240. width: 156rpx;
  241. height: 80rpx;
  242. border-radius: 40rpx;
  243. font-size: 28rpx;
  244. font-family: Verdana, Verdana-Bold;
  245. font-weight: 700;
  246. text-align: center;
  247. line-height: 80rpx;
  248. color: #666666;
  249. }
  250. .pop_btn {
  251. margin-left: 30rpx;
  252. width: 444rpx;
  253. height: 80rpx;
  254. border-radius: 40rpx;
  255. font-size: 28rpx;
  256. font-family: Verdana, Verdana-Bold;
  257. font-weight: 700;
  258. text-align: center;
  259. line-height: 80rpx;
  260. color: #ffffff;
  261. }
  262. }
  263. }
  264. </style>