dmDfJyScreenPicker.vue 5.6 KB

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