499 lines
12 KiB
CSS
499 lines
12 KiB
CSS
/* form-create + Vant:上下布局与左对齐兜底 */
|
||
.form-create-m {
|
||
/*
|
||
* 审批/查看等整表 disabled:Vant 默认灰字(text-color-3)难读,
|
||
* 改为正文色;仍禁止编辑,仅提升可读性。
|
||
*/
|
||
--van-field-input-disabled-text-color: var(--text-primary, #0f291e);
|
||
--van-field-disabled-text-color: var(--text-primary, #0f291e);
|
||
--van-cell-disabled-color: var(--text-primary, #0f291e);
|
||
}
|
||
|
||
.form-create-m .van-field__label--top {
|
||
width: 100%;
|
||
margin-bottom: 4px;
|
||
text-align: left;
|
||
color: var(--text-primary, #0f291e);
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.form-create-m .van-field__control {
|
||
text-align: left !important;
|
||
font-size: 13px;
|
||
min-height: 22px;
|
||
line-height: 22px;
|
||
color: var(--text-primary, #0f291e);
|
||
}
|
||
|
||
/*
|
||
* disabled input 仍可能被 -webkit-text-fill-color 压成灰字,显式覆盖。
|
||
*/
|
||
.form-create-m .van-field__control:disabled,
|
||
.form-create-m .van-field--disabled .van-field__control {
|
||
color: var(--text-primary, #0f291e) !important;
|
||
-webkit-text-fill-color: var(--text-primary, #0f291e) !important;
|
||
opacity: 1;
|
||
cursor: default;
|
||
}
|
||
|
||
.form-create-m .van-field--disabled .van-field__label,
|
||
.form-create-m .van-cell--disabled {
|
||
color: var(--text-primary, #0f291e);
|
||
}
|
||
|
||
.form-create-m .van-field__control::placeholder {
|
||
text-align: left;
|
||
color: var(--text-muted, #5f7a6d);
|
||
}
|
||
|
||
.form-create-m .fc-form-item {
|
||
margin-bottom: 2px;
|
||
}
|
||
|
||
/* 表单项整体更紧凑 */
|
||
.form-create-m .fc-form-item.van-cell {
|
||
padding-top: 8px;
|
||
padding-bottom: 8px;
|
||
}
|
||
|
||
/* 自定义控件 / 内置选择触发条:占满整行,箭头贴右 */
|
||
.form-create-m ._fc-select,
|
||
.form-create-m ._fc-date-picker,
|
||
.form-create-m ._fc-time-picker,
|
||
.form-create-m ._fc-calendar,
|
||
.form-create-m ._fc-cascader,
|
||
.form-create-m .oa-pick,
|
||
.form-create-m .oa-owner-field,
|
||
.form-create-m .oa-money,
|
||
.form-create-m .oa-number,
|
||
.form-create-m .oa-recv,
|
||
.form-create-m .oa-rel,
|
||
.form-create-m .oa-trip,
|
||
.form-create-m .oa-upload {
|
||
display: block;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
/*
|
||
* 内层触发 Field 会继承 Form 的 labelAlign=top,导致 value 占满一行、箭头折到下一行最左。
|
||
* 这里强制单行横排:value 撑满,right-icon 固定右侧。
|
||
*/
|
||
.form-create-m ._fc-select > .van-cell,
|
||
.form-create-m ._fc-date-picker > .van-cell,
|
||
.form-create-m ._fc-time-picker > .van-cell,
|
||
.form-create-m ._fc-calendar > .van-cell,
|
||
.form-create-m ._fc-cascader > .van-cell,
|
||
.form-create-m .oa-pick > .van-cell,
|
||
.form-create-m .oa-money > .van-cell,
|
||
.form-create-m .oa-number > .van-cell,
|
||
.form-create-m .oa-recv > .van-cell {
|
||
display: flex;
|
||
flex-direction: row;
|
||
flex-wrap: nowrap;
|
||
align-items: center;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
min-height: 32px;
|
||
padding-top: 5px;
|
||
padding-bottom: 5px;
|
||
padding-left: 0;
|
||
padding-right: 0;
|
||
}
|
||
|
||
.form-create-m ._fc-select > .van-cell .van-field__control,
|
||
.form-create-m ._fc-date-picker > .van-cell .van-field__control,
|
||
.form-create-m ._fc-time-picker > .van-cell .van-field__control,
|
||
.form-create-m ._fc-calendar > .van-cell .van-field__control,
|
||
.form-create-m ._fc-cascader > .van-cell .van-field__control,
|
||
.form-create-m .oa-pick > .van-cell .van-field__control,
|
||
.form-create-m .oa-money > .van-cell .van-field__control,
|
||
.form-create-m .oa-number > .van-cell .van-field__control,
|
||
.form-create-m .oa-recv > .van-cell .van-field__control {
|
||
font-size: 13px;
|
||
min-height: 22px;
|
||
line-height: 22px;
|
||
}
|
||
|
||
/*
|
||
* 人员/部门/岗位等选择触发条:可编辑态摘要过长时省略,避免撑出右侧。
|
||
* 详情只读走 .oa-pick__readonly(可换行),不经过 input。
|
||
*/
|
||
.form-create-m .oa-pick > .van-cell .van-field__control,
|
||
.form-create-m .oa-recv > .van-cell .van-field__control {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.form-create-m .oa-pick__readonly {
|
||
padding: 2px 0 0;
|
||
color: var(--text-primary, #0f291e);
|
||
font-size: 13px;
|
||
line-height: 1.55;
|
||
word-break: break-all;
|
||
overflow-wrap: anywhere;
|
||
text-align: left;
|
||
}
|
||
|
||
/* 归属人 / 归属部门锁定:箭头弱化,值色已由上方 disabled 规则统一为正文色 */
|
||
.form-create-m .oa-owner-field.is-locked .van-cell__right-icon {
|
||
color: #cbd5e1;
|
||
}
|
||
|
||
.form-create-m ._fc-select > .van-cell > .van-cell__title,
|
||
.form-create-m ._fc-date-picker > .van-cell > .van-cell__title,
|
||
.form-create-m ._fc-time-picker > .van-cell > .van-cell__title,
|
||
.form-create-m ._fc-calendar > .van-cell > .van-cell__title,
|
||
.form-create-m ._fc-cascader > .van-cell > .van-cell__title,
|
||
.form-create-m .oa-pick > .van-cell > .van-cell__title,
|
||
.form-create-m .oa-recv > .van-cell > .van-cell__title {
|
||
display: none;
|
||
}
|
||
|
||
.form-create-m ._fc-select > .van-cell > .van-cell__value,
|
||
.form-create-m ._fc-date-picker > .van-cell > .van-cell__value,
|
||
.form-create-m ._fc-time-picker > .van-cell > .van-cell__value,
|
||
.form-create-m ._fc-calendar > .van-cell > .van-cell__value,
|
||
.form-create-m ._fc-cascader > .van-cell > .van-cell__value,
|
||
.form-create-m .oa-pick > .van-cell > .van-cell__value,
|
||
.form-create-m .oa-money > .van-cell > .van-cell__value,
|
||
.form-create-m .oa-number > .van-cell > .van-cell__value,
|
||
.form-create-m .oa-recv > .van-cell > .van-cell__value {
|
||
flex: 1 1 auto;
|
||
width: auto !important;
|
||
max-width: none !important;
|
||
min-width: 0;
|
||
text-align: left;
|
||
}
|
||
|
||
.form-create-m ._fc-select > .van-cell > .van-cell__right-icon,
|
||
.form-create-m ._fc-date-picker > .van-cell > .van-cell__right-icon,
|
||
.form-create-m ._fc-time-picker > .van-cell > .van-cell__right-icon,
|
||
.form-create-m ._fc-calendar > .van-cell > .van-cell__right-icon,
|
||
.form-create-m ._fc-cascader > .van-cell > .van-cell__right-icon,
|
||
.form-create-m .oa-pick > .van-cell > .van-cell__right-icon,
|
||
.form-create-m .oa-recv > .van-cell > .van-cell__right-icon {
|
||
flex: 0 0 auto;
|
||
margin-left: 6px;
|
||
order: 3;
|
||
font-size: 14px;
|
||
}
|
||
|
||
/* 行程内带自身 label 的 Field:标题在上,箭头仍在内容行右侧 */
|
||
.form-create-m .oa-trip .van-field--label-top {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
background: transparent;
|
||
padding-top: 0;
|
||
padding-bottom: 0;
|
||
padding-left: 0;
|
||
padding-right: 0;
|
||
}
|
||
|
||
.form-create-m .oa-trip .van-field--label-top::after {
|
||
display: none;
|
||
}
|
||
|
||
.form-create-m .oa-trip .van-field--label-top > .van-cell__title {
|
||
flex: 0 0 100%;
|
||
width: 100%;
|
||
max-width: 100%;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
/*
|
||
* 内容行:value 吃剩余宽度,right-icon 固定同行右侧。
|
||
* 窄列(开始/结束时段)也勿让 value 占满导致箭头掉到下一行。
|
||
* value 与箭头强制同高并垂直居中,避免选中后文字相对箭头偏上/偏下。
|
||
*/
|
||
.form-create-m .oa-trip .van-field--label-top > .van-cell__value {
|
||
flex: 1 1 0% !important;
|
||
width: 0 !important;
|
||
max-width: none !important;
|
||
min-width: 0;
|
||
align-self: center;
|
||
display: flex;
|
||
align-items: center;
|
||
text-align: left;
|
||
}
|
||
|
||
.form-create-m .oa-trip .van-field--label-top .van-field__body {
|
||
display: flex;
|
||
align-items: center;
|
||
width: 100%;
|
||
min-height: 22px;
|
||
}
|
||
|
||
.form-create-m .oa-trip .van-field--label-top .van-field__control {
|
||
height: 22px;
|
||
min-height: 22px;
|
||
line-height: 22px;
|
||
padding: 0;
|
||
}
|
||
|
||
.form-create-m .oa-trip .van-field--label-top > .van-cell__right-icon {
|
||
flex: 0 0 auto;
|
||
align-self: center;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
margin-left: 4px;
|
||
order: 3;
|
||
height: 22px;
|
||
font-size: 14px;
|
||
line-height: 22px;
|
||
}
|
||
|
||
/* 日期+时段同行:列间距,不再额外塞左右 padding(由卡片内边距统一) */
|
||
.form-create-m .oa-trip .oa-trip__row .van-field {
|
||
padding-left: 0;
|
||
padding-right: 0;
|
||
}
|
||
|
||
.form-create-m .oa-trip .oa-trip__row .oa-trip__field--half.van-field {
|
||
padding-left: 0;
|
||
padding-right: 0;
|
||
}
|
||
|
||
/* 外层表单项:标题独占一行;内容区整行左对齐(箭头在内层控件右侧) */
|
||
.form-create-m .fc-form-item.van-field--label-top {
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.form-create-m .fc-form-item.van-field--label-top > .van-cell__title {
|
||
flex: 0 0 100%;
|
||
width: 100%;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.form-create-m .fc-form-item.van-field--label-top > .van-cell__value {
|
||
flex: 1 1 100%;
|
||
width: 100%;
|
||
max-width: 100%;
|
||
}
|
||
|
||
/* 选择弹窗通用 */
|
||
.oa-pick__sheet,
|
||
.oa-recv__sheet,
|
||
.oa-rel__sheet {
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: 100%;
|
||
background: #fff;
|
||
}
|
||
|
||
.oa-pick__hd,
|
||
.oa-recv__hd,
|
||
.oa-rel__hd {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 14px 16px;
|
||
border-bottom: 1px solid var(--border, #d8f3e5);
|
||
}
|
||
|
||
.oa-pick__hd strong,
|
||
.oa-recv__hd strong,
|
||
.oa-rel__hd strong {
|
||
font-size: 16px;
|
||
font-weight: 700;
|
||
color: var(--text-primary, #0f291e);
|
||
}
|
||
|
||
.oa-pick__hd > span:first-child,
|
||
.oa-recv__hd > span:first-child,
|
||
.oa-rel__hd > span:first-child {
|
||
min-width: 48px;
|
||
color: var(--text-muted, #5f7a6d);
|
||
font-size: 14px;
|
||
}
|
||
|
||
.oa-pick__ok,
|
||
.oa-recv__ok,
|
||
.oa-rel__ok {
|
||
min-width: 48px;
|
||
color: var(--brand-green, #22c55e);
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
text-align: right;
|
||
}
|
||
|
||
/* 方案 C · 分割线行表 */
|
||
.oa-pick__list,
|
||
.oa-recv__list,
|
||
.oa-rel__picker {
|
||
flex: 1;
|
||
padding: 0;
|
||
overflow: auto;
|
||
background: #fff;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
/*
|
||
* 弹窗列表行(对齐关联审批单 oa-rel__pick-row)
|
||
* 人员 / 部门 / 收款账户 / 关联审批 共用,避免 van-cell 被表单样式污染
|
||
*/
|
||
.oa-sheet-row {
|
||
display: flex;
|
||
gap: 10px;
|
||
align-items: flex-start;
|
||
padding: 12px 16px;
|
||
background: #fff;
|
||
border-bottom: 1px solid #f1f5f9;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.oa-sheet-row:last-child {
|
||
border-bottom: none;
|
||
}
|
||
|
||
.oa-sheet-row.is-selected {
|
||
background: var(--brand-green-soft, #ecfdf5);
|
||
}
|
||
|
||
.oa-sheet-row.is-selected .oa-sheet-row__title {
|
||
color: #15803d;
|
||
}
|
||
|
||
.oa-sheet-row--center {
|
||
align-items: center;
|
||
}
|
||
|
||
.oa-sheet-row__check {
|
||
flex-shrink: 0;
|
||
margin-top: 10px;
|
||
margin-right: 0;
|
||
}
|
||
|
||
.oa-sheet-row--center .oa-sheet-row__check {
|
||
margin-top: 0;
|
||
}
|
||
|
||
.oa-sheet-row__avatar {
|
||
display: flex;
|
||
flex-shrink: 0;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 36px;
|
||
height: 36px;
|
||
margin-top: 2px;
|
||
border-radius: 8px;
|
||
color: #fff;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
letter-spacing: 0.3px;
|
||
}
|
||
|
||
.oa-sheet-row__main {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.oa-sheet-row__title {
|
||
margin: 0 0 4px;
|
||
color: var(--text-primary, #0f291e);
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
line-height: 1.4;
|
||
word-break: break-all;
|
||
}
|
||
|
||
.oa-sheet-row__title:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.oa-sheet-row__meta {
|
||
overflow: hidden;
|
||
color: var(--text-muted, #5f7a6d);
|
||
font-size: 12px;
|
||
line-height: 1.45;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.oa-sheet-row__exp {
|
||
display: inline-flex;
|
||
flex-shrink: 0;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 22px;
|
||
height: 22px;
|
||
padding: 0;
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--text-muted, #5f7a6d);
|
||
font-size: 12px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.oa-sheet-row__exp--spacer {
|
||
visibility: hidden;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.oa-pick__check,
|
||
.oa-recv__check,
|
||
.oa-rel__check {
|
||
margin-right: 10px;
|
||
}
|
||
|
||
/* 弹窗检索:勿继承表单 labelAlign=top,保持单行垂直居中 */
|
||
.oa-pick__sheet .van-search,
|
||
.oa-recv__sheet .van-search,
|
||
.oa-rel__sheet .van-search,
|
||
.oa-flow-picker .van-search {
|
||
padding: 10px 12px;
|
||
background: #fff;
|
||
}
|
||
|
||
.oa-pick__sheet .van-search .van-search__content,
|
||
.oa-recv__sheet .van-search .van-search__content,
|
||
.oa-rel__sheet .van-search .van-search__content,
|
||
.oa-flow-picker .van-search .van-search__content {
|
||
align-items: center;
|
||
padding-right: 4px;
|
||
}
|
||
|
||
.oa-pick__sheet .van-search .van-cell,
|
||
.oa-recv__sheet .van-search .van-cell,
|
||
.oa-rel__sheet .van-search .van-cell,
|
||
.oa-flow-picker .van-search .van-cell {
|
||
align-items: center;
|
||
padding-top: 0;
|
||
padding-bottom: 0;
|
||
min-height: 36px;
|
||
}
|
||
|
||
.oa-pick__sheet .van-search .van-field__body,
|
||
.oa-recv__sheet .van-search .van-field__body,
|
||
.oa-rel__sheet .van-search .van-field__body,
|
||
.oa-flow-picker .van-search .van-field__body {
|
||
align-items: center;
|
||
}
|
||
|
||
.oa-pick__sheet .van-search .van-field__control,
|
||
.oa-recv__sheet .van-search .van-field__control,
|
||
.oa-rel__sheet .van-search .van-field__control,
|
||
.oa-flow-picker .van-search .van-field__control {
|
||
height: 36px;
|
||
line-height: 36px;
|
||
text-align: left !important;
|
||
}
|
||
|
||
/*
|
||
* Vant 默认 .van-field__clear { margin-right: calc(var(--van-padding-xs) * -1) }
|
||
* 会把清除图标贴到搜索框右缘;对齐发起审批页检索框内边距(约 12px)。
|
||
*/
|
||
.oa-pick__sheet .van-search .van-field__clear,
|
||
.oa-recv__sheet .van-search .van-field__clear,
|
||
.oa-rel__sheet .van-search .van-field__clear,
|
||
.oa-flow-picker .van-search .van-field__clear {
|
||
margin-right: 4px;
|
||
padding-right: 8px;
|
||
}
|