Showing
4 changed files
with
544 additions
and
13 deletions
api/draft_order.js
0 → 100644
| 1 | +import request from '@/utils/request' | ||
| 2 | +import { ContentTypeEnum } from '@/utils/httpEnum'; | ||
| 3 | + | ||
| 4 | +const baseUrl = '/draftRequestCarTicket'; | ||
| 5 | + | ||
| 6 | +// 新增保存 | ||
| 7 | +export function createApi(params) { | ||
| 8 | + return request({ | ||
| 9 | + url: `${baseUrl}`, | ||
| 10 | + method: 'post', | ||
| 11 | + data: params, | ||
| 12 | + contentType: ContentTypeEnum.JSON | ||
| 13 | + }) | ||
| 14 | +} |
api/order_list.js
0 → 100644
| 1 | +import request from '@/utils/request' | ||
| 2 | +import { ContentTypeEnum } from '@/utils/httpEnum'; | ||
| 3 | + | ||
| 4 | +const baseUrl = '/purchaseOrderInfo'; | ||
| 5 | + | ||
| 6 | +// 查询列表 | ||
| 7 | +export function queryApi(params) { | ||
| 8 | + return request({ | ||
| 9 | + url: `${baseUrl}/query`, | ||
| 10 | + method: 'get', | ||
| 11 | + params | ||
| 12 | + }) | ||
| 13 | +} | ||
| 14 | + | ||
| 15 | +// 根据ID查询详情数据 | ||
| 16 | +export function getDetailApi(id) { | ||
| 17 | + return request({ | ||
| 18 | + url: `${baseUrl}/get`, | ||
| 19 | + method: 'get', | ||
| 20 | + params: { id } | ||
| 21 | + }) | ||
| 22 | +} | ||
| 23 | + | ||
| 24 | +// 新增保存 | ||
| 25 | +export function createApi(params) { | ||
| 26 | + return request({ | ||
| 27 | + url: `${baseUrl}`, | ||
| 28 | + method: 'post', | ||
| 29 | + data: params, | ||
| 30 | + contentType: ContentTypeEnum.JSON | ||
| 31 | + }) | ||
| 32 | +} | ||
| 33 | + | ||
| 34 | +// 修改保存 | ||
| 35 | +export function updateApi(params) { | ||
| 36 | + return request({ | ||
| 37 | + url: `${baseUrl}/update`, | ||
| 38 | + method: 'put', | ||
| 39 | + data: params, | ||
| 40 | + contentType: ContentTypeEnum.JSON | ||
| 41 | + }) | ||
| 42 | +} | ||
| 43 | + | ||
| 44 | +// 取消 | ||
| 45 | +export function cancelApi(id) { | ||
| 46 | + return request({ | ||
| 47 | + url: `${baseUrl}/cancel`, | ||
| 48 | + method: 'get', | ||
| 49 | + params: { | ||
| 50 | + id, | ||
| 51 | + status: 'CANCEL', | ||
| 52 | + }, | ||
| 53 | + contentType: ContentTypeEnum.FORM_URLENCODED | ||
| 54 | + }) | ||
| 55 | +} | ||
| 56 | + | ||
| 57 | +// 确认变更 | ||
| 58 | +export function confirmApi(id) { | ||
| 59 | + return request({ | ||
| 60 | + url: `${baseUrl}/confirm`, | ||
| 61 | + method: 'get', | ||
| 62 | + params: { | ||
| 63 | + id, | ||
| 64 | + }, | ||
| 65 | + contentType: ContentTypeEnum.FORM_URLENCODED | ||
| 66 | + }) | ||
| 67 | +} |
| @@ -149,19 +149,27 @@ | @@ -149,19 +149,27 @@ | ||
| 149 | "navigationBarTextStyle": "black" | 149 | "navigationBarTextStyle": "black" |
| 150 | } | 150 | } |
| 151 | }, | 151 | }, |
| 152 | - { | ||
| 153 | - "path": "pages/flow/audit", | ||
| 154 | - "style": { | ||
| 155 | - "navigationBarTitleText": "审核", | ||
| 156 | - "navigationBarBackgroundColor": "#ffffff", | ||
| 157 | - "navigationBarTextStyle": "black" | ||
| 158 | - } | ||
| 159 | - }, | ||
| 160 | - { | ||
| 161 | - "path": "pages/contract_framework/index", | ||
| 162 | - "style": { | ||
| 163 | - "navigationBarTitleText": "框架合同", | ||
| 164 | - "navigationBarBackgroundColor": "#ffffff", | 152 | + { |
| 153 | + "path": "pages/flow/audit", | ||
| 154 | + "style": { | ||
| 155 | + "navigationBarTitleText": "审核", | ||
| 156 | + "navigationBarBackgroundColor": "#ffffff", | ||
| 157 | + "navigationBarTextStyle": "black" | ||
| 158 | + } | ||
| 159 | + }, | ||
| 160 | + { | ||
| 161 | + "path": "pages/order_list/index", | ||
| 162 | + "style": { | ||
| 163 | + "navigationBarTitleText": "订货单列表", | ||
| 164 | + "navigationBarBackgroundColor": "#ffffff", | ||
| 165 | + "navigationBarTextStyle": "black" | ||
| 166 | + } | ||
| 167 | + }, | ||
| 168 | + { | ||
| 169 | + "path": "pages/contract_framework/index", | ||
| 170 | + "style": { | ||
| 171 | + "navigationBarTitleText": "框架合同", | ||
| 172 | + "navigationBarBackgroundColor": "#ffffff", | ||
| 165 | "navigationBarTextStyle": "black" | 173 | "navigationBarTextStyle": "black" |
| 166 | } | 174 | } |
| 167 | }, { | 175 | }, { |
pages/order_list/index.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <view class="page"> | ||
| 3 | + <view class="fixed"> | ||
| 4 | + <view class="search-row"> | ||
| 5 | + <uni-search-bar v-model="searchKeyword" radius="6" placeholder="请输入订货单位或订单编号" clearButton="auto" | ||
| 6 | + cancelButton="none" bgColor="#F3F3F3" textColor="rgba(0,0,0,0.4)" @confirm="onSearchConfirm" | ||
| 7 | + @input="onSearchInput" /> | ||
| 8 | + <image class="tool-icon" src="/static/images/dev_manage/filter_icon.png" @click="openFilter" /> | ||
| 9 | + </view> | ||
| 10 | + | ||
| 11 | + <view class="tabs"> | ||
| 12 | + <view v-for="(t, i) in tabs" :key="i" :class="['tab', { active: tabValue === t.value }]" @click="switchTab(t)"> | ||
| 13 | + {{ t.label }} | ||
| 14 | + </view> | ||
| 15 | + </view> | ||
| 16 | + </view> | ||
| 17 | + | ||
| 18 | + <view class="list-box"> | ||
| 19 | + <CardList ref="cardRef" :fetchFn="fetchList" :query="query" :extra="extraParams" :enable-refresh="true" | ||
| 20 | + :enable-load-more="true" row-key="id" @loaded="onLoaded" @error="onError"> | ||
| 21 | + <template v-slot="{ item }"> | ||
| 22 | + <view class="card"> | ||
| 23 | + <view class="card-header"> | ||
| 24 | + <text class="title omit2">{{ item.orderingUnitName }}</text> | ||
| 25 | + <text v-if="item.status" :class="['status', `status_${item.status}`]">{{ filterStatus(item.status) | ||
| 26 | + }}</text> | ||
| 27 | + </view> | ||
| 28 | + <view class="info-row"><text>订单编号</text><text>{{ item.orderNo }}</text></view> | ||
| 29 | + <view class="info-row"><text>生产厂</text><text>{{ item.workshopName }}</text></view> | ||
| 30 | + <view class="info-row"><text>办事处</text><text>{{ item.deptName }}</text></view> | ||
| 31 | + <view class="info-row"><text>订货日期</text><text>{{ item.orderDate }}</text></view> | ||
| 32 | + </view> | ||
| 33 | + </template> | ||
| 34 | + </CardList> | ||
| 35 | + </view> | ||
| 36 | + | ||
| 37 | + <filter-modal :visible.sync="filterVisible" :value.sync="filterForm" title="筛选" @reset="onFilterReset" | ||
| 38 | + @confirm="onFilterConfirm"> | ||
| 39 | + <template v-slot="{ model }"> | ||
| 40 | + <view class="filter-form"> | ||
| 41 | + <view class="form-item"> | ||
| 42 | + <view class="label">办事处</view> | ||
| 43 | + <uni-easyinput v-model="model.deptName" placeholder="请输入办事处" :inputBorder="false" /> | ||
| 44 | + </view> | ||
| 45 | + | ||
| 46 | + <view class="form-item"> | ||
| 47 | + <view class="label">生产厂</view> | ||
| 48 | + <uni-data-checkbox mode="tag" :multiple="false" :value-field="'value'" :text-field="'text'" | ||
| 49 | + v-model="model.workshopId" @change="onWorkshopChange" :localdata="workshopOptions" /> | ||
| 50 | + </view> | ||
| 51 | + | ||
| 52 | + <view class="form-item"> | ||
| 53 | + <view class="label">状态</view> | ||
| 54 | + <uni-data-checkbox mode="tag" :multiple="false" :value-field="'value'" :text-field="'text'" | ||
| 55 | + v-model="model.status" @change="onStatusChange" :localdata="statusOptions" /> | ||
| 56 | + </view> | ||
| 57 | + | ||
| 58 | + <view class="form-item"> | ||
| 59 | + <view class="label">订货日期</view> | ||
| 60 | + <uni-datetime-picker type="daterange" v-model="model.dateRange" start="2023-01-01" /> | ||
| 61 | + </view> | ||
| 62 | + </view> | ||
| 63 | + </template> | ||
| 64 | + </filter-modal> | ||
| 65 | + | ||
| 66 | + </view> | ||
| 67 | +</template> | ||
| 68 | + | ||
| 69 | +<script> | ||
| 70 | +import CardList from '@/components/card/index.vue' | ||
| 71 | +import FilterModal from '@/components/filter/index.vue' | ||
| 72 | +import { queryApi as orderQueryApi } from '@/api/order_list.js' | ||
| 73 | +import { workshopQueryApi } from '@/api/devManage.js' | ||
| 74 | +import { getDicByCodeApi } from '@/api/base.js' | ||
| 75 | + | ||
| 76 | +export default { | ||
| 77 | + name: 'OrderList', | ||
| 78 | + components: { CardList, FilterModal }, | ||
| 79 | + data() { | ||
| 80 | + return { | ||
| 81 | + searchKeyword: '', | ||
| 82 | + searchKeywordDebounced: '', | ||
| 83 | + searchDebounceTimer: null, | ||
| 84 | + tabs: [], | ||
| 85 | + tabValue: 'PRODUCTION', | ||
| 86 | + filterVisible: false, | ||
| 87 | + filterForm: { | ||
| 88 | + deptName: '', | ||
| 89 | + workshopId: '', | ||
| 90 | + workshopIdName: '', | ||
| 91 | + status: '', | ||
| 92 | + dateRange: [] | ||
| 93 | + }, | ||
| 94 | + workshopOptions: [], | ||
| 95 | + statusOptions: [], | ||
| 96 | + query: {}, | ||
| 97 | + extraParams: {}, | ||
| 98 | + currentItems: [] | ||
| 99 | + } | ||
| 100 | + }, | ||
| 101 | + created() { | ||
| 102 | + this.tabs = [ | ||
| 103 | + { label: '生产订货单', value: 'PRODUCTION' }, | ||
| 104 | + { label: '无需生产订货单', value: 'NO_PRODUCTION' } | ||
| 105 | + ] | ||
| 106 | + this.extraParams = { type: this.tabValue } | ||
| 107 | + this.loadStatusOptions() | ||
| 108 | + this.loadWorkshopOptions() | ||
| 109 | + }, | ||
| 110 | + onReachBottom() { | ||
| 111 | + if (this.$refs && this.$refs.cardRef && this.$refs.cardRef.onLoadMore) { | ||
| 112 | + this.$refs.cardRef.onLoadMore() | ||
| 113 | + } | ||
| 114 | + }, | ||
| 115 | + methods: { | ||
| 116 | + async loadStatusOptions() { | ||
| 117 | + try { | ||
| 118 | + const res = await getDicByCodeApi('ORDER_STATUS') | ||
| 119 | + const list = res.data || [] | ||
| 120 | + this.statusOptions = list.map(it => ({ text: it.name || '', value: it.code || '' })); | ||
| 121 | + console.log('this.statusOptions', this.statusOptions) | ||
| 122 | + } catch (e) { | ||
| 123 | + this.statusOptions = [] | ||
| 124 | + } | ||
| 125 | + }, | ||
| 126 | + async loadWorkshopOptions() { | ||
| 127 | + try { | ||
| 128 | + const res = await workshopQueryApi({ pageIndex: 1, pageSize: 9999 }) | ||
| 129 | + const list = (res && res.data && res.data.datas) || [] | ||
| 130 | + this.workshopOptions = list.map(it => ({ text: it.name || it.workshopName || '', value: it.id || it.workshopId || '' })) | ||
| 131 | + } catch (e) { | ||
| 132 | + this.workshopOptions = [] | ||
| 133 | + } | ||
| 134 | + }, | ||
| 135 | + onSearchInput(val) { | ||
| 136 | + if (this.searchDebounceTimer) clearTimeout(this.searchDebounceTimer) | ||
| 137 | + this.searchDebounceTimer = setTimeout(() => { | ||
| 138 | + this.searchKeywordDebounced = this.searchKeyword | ||
| 139 | + this.searchDebounceTimer = null | ||
| 140 | + this.extraParams = { | ||
| 141 | + orderingUnitNameOrOrderNo: this.searchKeywordDebounced || '', | ||
| 142 | + type: this.tabValue || '' | ||
| 143 | + } | ||
| 144 | + }, 800) | ||
| 145 | + }, | ||
| 146 | + onSearchConfirm(e) { | ||
| 147 | + const val = e && e.value != null ? e.value : this.searchKeyword | ||
| 148 | + this.searchKeyword = val | ||
| 149 | + this.searchKeywordDebounced = val | ||
| 150 | + this.extraParams = { | ||
| 151 | + orderingUnitNameOrOrderNo: this.searchKeywordDebounced || '', | ||
| 152 | + type: this.tabValue || '' | ||
| 153 | + } | ||
| 154 | + }, | ||
| 155 | + openFilter() { this.filterVisible = true }, | ||
| 156 | + onFilterReset(payload) { this.filterForm = payload }, | ||
| 157 | + onFilterConfirm(payload) { | ||
| 158 | + // 兜底不同端 v-model 差异 | ||
| 159 | + if ((payload.status === '' || payload.status == null) && this.filterForm.status !== '') { | ||
| 160 | + payload.status = this.filterForm.status | ||
| 161 | + } | ||
| 162 | + if ((payload.workshopId === '' || payload.workshopId == null) && this.filterForm.workshopId !== '') { | ||
| 163 | + payload.workshopId = this.filterForm.workshopId | ||
| 164 | + payload.workshopIdName = this.filterForm.workshopIdName | ||
| 165 | + } | ||
| 166 | + this.filterForm = payload | ||
| 167 | + // 将条件同步给 CardList | ||
| 168 | + const query = { ...payload } | ||
| 169 | + // 处理日期范围 -> 拆分到 orderDateStart/orderDateEnd | ||
| 170 | + if (Array.isArray(query.dateRange) && query.dateRange.length === 2) { | ||
| 171 | + query.orderDateStart = query.dateRange[0] + ' 00:00:00' | ||
| 172 | + query.orderDateEnd = query.dateRange[1] + ' 23:59:59' | ||
| 173 | + delete query.dateRange | ||
| 174 | + } | ||
| 175 | + this.query = query | ||
| 176 | + this.filterVisible = false | ||
| 177 | + }, | ||
| 178 | + onStatusChange(e) { | ||
| 179 | + const raw = e && e.detail && e.detail.value !== undefined ? e.detail.value : (e && e.value !== undefined ? e.value : '') | ||
| 180 | + this.filterForm.status = raw | ||
| 181 | + }, | ||
| 182 | + onWorkshopChange(e) { | ||
| 183 | + const raw = e && e.detail && e.detail.value !== undefined ? e.detail.value : (e && e.value !== undefined ? e.value : '') | ||
| 184 | + this.filterForm.workshopId = raw | ||
| 185 | + const match = (this.workshopOptions || []).find(o => String(o.value) === String(raw)) | ||
| 186 | + this.filterForm.workshopIdName = match ? (match.text || '') : '' | ||
| 187 | + }, | ||
| 188 | + switchTab(item) { | ||
| 189 | + this.tabValue = item.value | ||
| 190 | + this.extraParams = { | ||
| 191 | + orderingUnitNameOrOrderNo: this.searchKeywordDebounced || '', | ||
| 192 | + type: this.tabValue || '' | ||
| 193 | + } | ||
| 194 | + }, | ||
| 195 | + onLoaded({ items }) { this.currentItems = items || [] }, | ||
| 196 | + onError() { uni.showToast({ title: '列表加载失败', icon: 'none' }) }, | ||
| 197 | + fetchList({ pageIndex, pageSize, query, extra }) { | ||
| 198 | + const params = { pageIndex, pageSize, ...query, ...extra } | ||
| 199 | + return orderQueryApi(params).then(res => { | ||
| 200 | + const _data = res && res.data ? res.data : {} | ||
| 201 | + let records = _data.datas || _data.list || _data.records || [] | ||
| 202 | + const totalCount = _data.totalCount || _data.count || 0 | ||
| 203 | + const hasNext = _data.hasNext || false | ||
| 204 | + const statusTextMap = (this.statusOptions || []).reduce((acc, it) => { | ||
| 205 | + acc[String(it.value)] = it.text | ||
| 206 | + return acc | ||
| 207 | + }, {}) | ||
| 208 | + records = records.map(it => ({ | ||
| 209 | + ...it, | ||
| 210 | + statusName: statusTextMap[String(it.status)] || '' | ||
| 211 | + })) | ||
| 212 | + return { records, totalCount, hasNext } | ||
| 213 | + }).catch(() => { | ||
| 214 | + this.onError() | ||
| 215 | + return { records: [], totalCount: 0, hasNext: false } | ||
| 216 | + }) | ||
| 217 | + }, | ||
| 218 | + filterStatus(status) { | ||
| 219 | + return this.statusOptions.filter(item => item.value === status)[0].text || ''; | ||
| 220 | + }, | ||
| 221 | + } | ||
| 222 | +} | ||
| 223 | +</script> | ||
| 224 | + | ||
| 225 | +<style lang="scss" scoped> | ||
| 226 | +.page { | ||
| 227 | + display: flex; | ||
| 228 | + flex-direction: column; | ||
| 229 | + height: 100vh; | ||
| 230 | +} | ||
| 231 | + | ||
| 232 | +.fixed { | ||
| 233 | + position: fixed; | ||
| 234 | + top: 96rpx; | ||
| 235 | + left: 0; | ||
| 236 | + right: 0; | ||
| 237 | + z-index: 2; | ||
| 238 | + background: #fff; | ||
| 239 | +} | ||
| 240 | + | ||
| 241 | +.search-row { | ||
| 242 | + display: flex; | ||
| 243 | + align-items: center; | ||
| 244 | + padding: 16rpx 32rpx; | ||
| 245 | +} | ||
| 246 | + | ||
| 247 | +.search-row .tool-icon { | ||
| 248 | + width: 48rpx; | ||
| 249 | + height: 48rpx; | ||
| 250 | + margin-left: 16rpx; | ||
| 251 | +} | ||
| 252 | + | ||
| 253 | +.search-row .uni-searchbar { | ||
| 254 | + padding: 0; | ||
| 255 | + flex: 1; | ||
| 256 | +} | ||
| 257 | + | ||
| 258 | +::v-deep .uni-searchbar__box { | ||
| 259 | + height: 80rpx !important; | ||
| 260 | + justify-content: start; | ||
| 261 | +} | ||
| 262 | + | ||
| 263 | +::v-deep .uni-searchbar__box .uni-searchbar__box-search-input { | ||
| 264 | + font-size: 32rpx !important; | ||
| 265 | +} | ||
| 266 | + | ||
| 267 | +.tabs { | ||
| 268 | + display: flex; | ||
| 269 | + align-items: center; | ||
| 270 | + justify-content: space-between; | ||
| 271 | + padding: 26rpx 34rpx; | ||
| 272 | +} | ||
| 273 | + | ||
| 274 | +.tabs .tab { | ||
| 275 | + width: 300rpx; | ||
| 276 | + text-align: center; | ||
| 277 | + color: rgba(0, 0, 0, 0.9); | ||
| 278 | + line-height: 44rpx; | ||
| 279 | + position: relative; | ||
| 280 | +} | ||
| 281 | + | ||
| 282 | +.tabs .tab.active { | ||
| 283 | + color: $theme-primary; | ||
| 284 | + font-weight: 600; | ||
| 285 | +} | ||
| 286 | + | ||
| 287 | +.tabs .tab.active::after { | ||
| 288 | + content: ''; | ||
| 289 | + position: absolute; | ||
| 290 | + left: 50%; | ||
| 291 | + transform: translateX(-50%); | ||
| 292 | + bottom: -13px; | ||
| 293 | + width: 32rpx; | ||
| 294 | + height: 6rpx; | ||
| 295 | + border-radius: 4rpx; | ||
| 296 | + background: $theme-primary; | ||
| 297 | +} | ||
| 298 | + | ||
| 299 | +.list-box { | ||
| 300 | + flex: 1; | ||
| 301 | + padding: 232rpx 0 0; | ||
| 302 | +} | ||
| 303 | + | ||
| 304 | +.card { | ||
| 305 | + position: relative; | ||
| 306 | + | ||
| 307 | + .card-header { | ||
| 308 | + margin-bottom: 28rpx; | ||
| 309 | + position: relative; | ||
| 310 | + | ||
| 311 | + .title { | ||
| 312 | + font-size: 36rpx; | ||
| 313 | + font-weight: 600; | ||
| 314 | + line-height: 50rpx; | ||
| 315 | + color: rgba(0, 0, 0, 0.9); | ||
| 316 | + width: 578rpx; | ||
| 317 | + } | ||
| 318 | + | ||
| 319 | + .status { | ||
| 320 | + font-weight: 600; | ||
| 321 | + position: absolute; | ||
| 322 | + top: -32rpx; | ||
| 323 | + right: -32rpx; | ||
| 324 | + height: 48rpx; | ||
| 325 | + line-height: 48rpx; | ||
| 326 | + color: #fff; | ||
| 327 | + font-size: 24rpx; | ||
| 328 | + padding: 0 14rpx; | ||
| 329 | + border-radius: 6rpx; | ||
| 330 | + | ||
| 331 | + // 已下发 | ||
| 332 | + &.status_ISSUED { | ||
| 333 | + background: $theme-primary; | ||
| 334 | + } | ||
| 335 | + | ||
| 336 | + // 待发货 | ||
| 337 | + &.status_WAIT { | ||
| 338 | + background: #e37318; | ||
| 339 | + } | ||
| 340 | + | ||
| 341 | + // 部分发货 | ||
| 342 | + &.status_TRANSIT { | ||
| 343 | + background: #d54941; | ||
| 344 | + } | ||
| 345 | + | ||
| 346 | + // 发货完成 | ||
| 347 | + &.status_SHIPPED { | ||
| 348 | + background: #e7e7e7; | ||
| 349 | + color: rgba(0, 0, 0, 0.9); | ||
| 350 | + } | ||
| 351 | + | ||
| 352 | + // 已签收 | ||
| 353 | + &.status_DELIVERED { | ||
| 354 | + background: #2BA471; | ||
| 355 | + } | ||
| 356 | + } | ||
| 357 | + } | ||
| 358 | + | ||
| 359 | + .info-row { | ||
| 360 | + display: flex; | ||
| 361 | + align-items: center; | ||
| 362 | + color: rgba(0, 0, 0, 0.6); | ||
| 363 | + font-size: 28rpx; | ||
| 364 | + margin-bottom: 24rpx; | ||
| 365 | + | ||
| 366 | + &:last-child { | ||
| 367 | + margin-bottom: 0; | ||
| 368 | + } | ||
| 369 | + | ||
| 370 | + text { | ||
| 371 | + width: 60%; | ||
| 372 | + line-height: 32rpx; | ||
| 373 | + | ||
| 374 | + &:last-child { | ||
| 375 | + color: rgba(0, 0, 0, 0.9); | ||
| 376 | + width: 40%; | ||
| 377 | + } | ||
| 378 | + } | ||
| 379 | + } | ||
| 380 | + | ||
| 381 | +} | ||
| 382 | + | ||
| 383 | +.filter-form { | ||
| 384 | + .form-item { | ||
| 385 | + margin-bottom: 24rpx; | ||
| 386 | + } | ||
| 387 | + | ||
| 388 | + .label { | ||
| 389 | + margin-bottom: 20rpx; | ||
| 390 | + color: rgba(0, 0, 0, 0.9); | ||
| 391 | + height: 44rpx; | ||
| 392 | + line-height: 44rpx; | ||
| 393 | + font-size: 30rpx; | ||
| 394 | + } | ||
| 395 | + | ||
| 396 | + .uni-easyinput { | ||
| 397 | + border: 1rpx solid #f3f3f3; | ||
| 398 | + } | ||
| 399 | + | ||
| 400 | +} | ||
| 401 | + | ||
| 402 | +/* 深度覆盖 uni-data-checkbox(mode=tag)内部的 tag 展示与间距 */ | ||
| 403 | +::v-deep .filter-form .uni-data-checklist .checklist-group { | ||
| 404 | + .checklist-box { | ||
| 405 | + &.is--tag { | ||
| 406 | + width: 212rpx; | ||
| 407 | + margin-top: 0; | ||
| 408 | + margin-bottom: 24rpx; | ||
| 409 | + margin-right: 24rpx; | ||
| 410 | + height: 80rpx; | ||
| 411 | + padding: 0; | ||
| 412 | + border-radius: 12rpx; | ||
| 413 | + background-color: #f3f3f3; | ||
| 414 | + border-color: #f3f3f3; | ||
| 415 | + | ||
| 416 | + &:nth-child(3n) { | ||
| 417 | + margin-right: 0; | ||
| 418 | + } | ||
| 419 | + | ||
| 420 | + .checklist-content { | ||
| 421 | + display: flex; | ||
| 422 | + justify-content: center; | ||
| 423 | + } | ||
| 424 | + | ||
| 425 | + .checklist-text { | ||
| 426 | + color: rgba(0, 0, 0, 0.9); | ||
| 427 | + font-size: 28rpx; | ||
| 428 | + } | ||
| 429 | + } | ||
| 430 | + | ||
| 431 | + &.is-checked { | ||
| 432 | + background-color: $theme-primary-plain-bg !important; | ||
| 433 | + border-color: $theme-primary-plain-bg !important; | ||
| 434 | + | ||
| 435 | + .checklist-text { | ||
| 436 | + color: $theme-primary !important; | ||
| 437 | + } | ||
| 438 | + } | ||
| 439 | + } | ||
| 440 | + | ||
| 441 | +} | ||
| 442 | +</style> |