@ebiz/designer-components 0.1.122 → 0.1.124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -263,7 +263,7 @@ onMounted(() => {
263
263
  .rooms-grid {
264
264
  width: calc(100% - 30px);
265
265
  display: grid;
266
- grid-template-columns: repeat(auto-fill, 40px);
266
+ grid-template-columns: repeat(auto-fill, 50px);
267
267
  gap: 28px;
268
268
  }
269
269
  .room-item {
@@ -273,7 +273,7 @@ onMounted(() => {
273
273
  }
274
274
  .room-card {
275
275
  position: relative;
276
- height: 40px;
276
+ height: 80px;
277
277
  border-radius: 8px;
278
278
  background: #f0f0f0;
279
279
  overflow: hidden;
@@ -301,14 +301,14 @@ onMounted(() => {
301
301
  line-height: 1;
302
302
  font-weight: 600;
303
303
  color: #333;
304
- text-align: left;
304
+ text-align: center;
305
305
  }
306
306
  .room-type {
307
307
  margin-top: 2px;
308
308
  font-size: 10px;
309
309
  line-height: 1;
310
310
  color: #666;
311
- text-align: left;
311
+ text-align: center;
312
312
  white-space: nowrap;
313
313
  }
314
314
  </style>
@@ -18,6 +18,7 @@
18
18
  <div class="slot-name">{{ assignedMap[n].name || assignedMap[n].employee_info?.name }}</div>
19
19
  <div class="slot-plate">{{ assignedMap[n].plate_number }}</div>
20
20
  <div class="slot-desc">{{ assignedMap[n].fee_type_desc }} · {{ assignedMap[n].location_id_name }}</div>
21
+ <div class="slot-desc">{{ assignedMap[n].company_name || '-' }}</div>
21
22
  </div>
22
23
  <div v-else class="slot-empty">未分配</div>
23
24
  </div>
@@ -74,7 +75,12 @@ const assignedMap = computed(() => {
74
75
  if (!n) return
75
76
  if (n < 1 || n > totalSlots.value[curType.value]) return
76
77
  const prev = map[n]
77
- if (!prev || Number(item.create_at || 0) >= Number(prev.create_at || 0)) map[n] = item
78
+ if (!prev || Number(item.create_at || 0) >= Number(prev.create_at || 0)) {
79
+ map[n] = {
80
+ ...item,
81
+ company_name: item?.employee_type === 'inside' ? item?.employee_info?.dept_info?.name : item?.company_name
82
+ }
83
+ }
78
84
  })
79
85
  return map
80
86
  })
@@ -90,7 +96,8 @@ const tooltipContent = (n) => {
90
96
  const loc = info.location_id_name || ''
91
97
  const name = info.name || ''
92
98
  const plate = info.plate_number || ''
93
- return `车位 ${formatSlotNo(n)}:${name} ${plate} · ${fee} · ${loc}`
99
+ const company = info.company_name || ''
100
+ return `车位 ${formatSlotNo(n)}:${name} ${plate} · ${fee} · ${loc} · ${company}`
94
101
  }
95
102
 
96
103
  // 点击卡片:向外抛出停车位点击事件,携带序号与可能存在的车位信息
@@ -131,7 +138,7 @@ onMounted(fetchData)
131
138
  .ebiz-parking-dashboard { display: flex; flex-direction: column; gap: 12px; }
132
139
  .cards-grid { display: grid; gap: 12px;grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
133
140
  .slot-item { cursor: pointer; }
134
- .slot-card { height: 140px; display: flex; flex-direction: column; justify-content: space-between; }
141
+ .slot-card { height: 160px; display: flex; flex-direction: column; justify-content: space-between; }
135
142
  .slot-header { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
136
143
  .slot-number { font-size: 16px; }
137
144
  .slot-body { display: flex; align-items: center; justify-content: center; height: 100%; }
@@ -134,7 +134,7 @@
134
134
  >
135
135
  <template #default>
136
136
  <ebiz-approval
137
- workFlowKey=""
137
+ workFlowKey="interview_record"
138
138
  :id="0"
139
139
  :required="true"
140
140
  type="all"
@@ -147,6 +147,7 @@
147
147
  class="component-base-style"
148
148
  v-model:approverList="state.interviewFormData.approverList"
149
149
  v-model:ccList="state.interviewFormData.ccList"
150
+ v-model:data="state.interviewFormData"
150
151
  :limitedMap="[]"
151
152
  ></ebiz-approval>
152
153
  </template>