@@ -298,27 +298,29 @@
placeholder -style = " color : # 9ca3af "
/ >
< / view >
< view class = "form-item" >
< view class = "form-item form-item--textarea " >
< text class = "form-item__label" > 详情 < / text >
< input
class = "form-item__input "
< textarea
class = "form-item__textarea "
v-model = "tagForm.detail"
placeholder = "请输入详情"
placeholder -style = " color : # 9ca3af "
:maxlength = "500"
auto -height
/ >
< / view >
< view class = "form-item" >
< view class = "form-item form-item--textarea " >
< text class = "form-item__label" > 备注 < / text >
< input
class = "form-item__input "
< textarea
class = "form-item__textarea "
v-model = "tagForm.remark"
placeholder = "请输入备注"
placeholder -style = " color : # 9ca3af "
:maxlength = "500"
auto -height
/ >
< / view >
< view class = "form-item" >
< view class = "form-item form-item--switch " >
< text class = "form-item__label" > 是否启用 < / text >
< switch
:checked = "tagForm.enabled"
@@ -373,6 +375,15 @@
placeholder -style = " color : # 9ca3af "
/ >
< / view >
< view class = "supplement-form-item" >
< text class = "supplement-form-item__label" > 录音名 < / text >
< input
class = "supplement-form-item__input"
v-model = "supplementForm.recordingName"
placeholder = "请输入录音名"
placeholder -style = " color : # 9ca3af "
/ >
< / view >
< view class = "supplement-form-item" >
< text class = "supplement-form-item__label" > 客户详细地址 < / text >
< textarea
@@ -482,6 +493,7 @@ import CommonBeginReception from "./common_begin_reception.vue";
supplementForm : {
customerName : "" ,
contact : "" ,
recordingName : "" ,
remarks : ""
}
}
@@ -718,6 +730,8 @@ import CommonBeginReception from "./common_begin_reception.vue";
status : record . syncStatus || '服务中' ,
customerName : record . customerName || '' ,
customerPhone : record . customerPhone || '' ,
customerId : record . customerId || '' ,
recordingName : record . recordingName || '' ,
tags ,
durationText : formattedUpdateTime ? ` 最近更新时间: ${ formattedUpdateTime } ` : '最近暂无更新时间'
} ;
@@ -841,6 +855,7 @@ import CommonBeginReception from "./common_begin_reception.vue";
this . supplementForm = {
customerName : item . customerName || "" ,
contact : item . customerPhone || "" ,
recordingName : item . recordingName || "" ,
remarks : item . remarks || ""
} ;
this . showSupplementModal = true ;
@@ -851,6 +866,7 @@ import CommonBeginReception from "./common_begin_reception.vue";
this . supplementForm = {
customerName : "" ,
contact : "" ,
recordingName : "" ,
remarks : ""
} ;
} ,
@@ -902,8 +918,10 @@ import CommonBeginReception from "./common_begin_reception.vue";
// 构建请求参数( 必须包含id)
const params = {
id : this . currentSupplementItem . id ,
customerId : this . currentSupplementItem . customerId || "" ,
customerName : this . supplementForm . customerName ? . trim ( ) || "" ,
customerPhone : trimmedContact || "" ,
recordingName : this . supplementForm . recordingName ? . trim ( ) || "" ,
remarks : this . supplementForm . remarks ? . trim ( ) || ""
} ;
@@ -1878,107 +1896,229 @@ import CommonBeginReception from "./common_begin_reception.vue";
. tag - form {
height : 100 % ;
padding : 24 rpx 32rpx ;
padding : 32 rpx ;
box - sizing : border - box ;
}
/* 标签弹窗整体高度控制在 70% 视窗,内部通过尺寸缩减而非拉伸变形 */
. tag - management {
max - height : 70 vh ;
/* 表单卡片样式 */
. form - card {
background - color : # FFFFFF ;
border - radius : 24 rpx ;
padding : 32 rpx ;
margin - bottom : 32 rpx ;
box - shadow : 0 2 rpx 16 rpx rgba ( 0 , 0 , 0 , 0.06 ) ;
}
. tag - management . tag - form {
max - height : 70 vh ;
/* 表单项样式 */
. form - item {
display : flex ;
flex - direction : column ;
margin - bottom : 32 rpx ;
}
/* 弹窗内部元素高度约 80%(缩减 padding/字号/高度),保持比例一致 */
. tag - management . form - card {
padding : 24 rpx 20 rpx ;
margin - bottom : 24 rpx ;
. form - item : last - child {
margin - bottom : 0 ;
}
. tag - management . form - item {
margin - bottom : 24 rpx ;
}
. tag - management . form - item _ _label {
font - size : 2 6rpx ;
}
. tag - management . form - item _ _input ,
. tag - management . form - item _ _text ,
. tag - management . form - item _ _picker ,
. tag - management . tag - select {
height : 70 rpx ; /* 约为原 88rpx 的 80% */
padding : 0 20 rpx ;
font - size : 26 rpx ;
}
. tag - management . form - item _ _picker - icon {
font - size : 22 rpx ;
}
. tag - management . tag - select - dropdown _ _item {
padding : 16 rpx 28 rpx ;
}
. tag - management . tag - select - dropdown _ _item text {
font - size : 26 rpx ;
}
. tag - management . form - item _ _textarea {
padding : 16 rpx ;
font - size : 26 rpx ;
/* 表单项标签样式 */
. form - item _ _label {
font - size : 28 rpx ;
color : # 333333 ;
font - weight : 500 ;
margin - bottom : 1 6rpx ;
line - height : 1.5 ;
}
/* 详情与备注区域缩到约 50% 高度 */
. tag - management . form - item _ _textarea -- detail {
min - height : 60 rpx ;
}
. tag - management . form - item _ _textarea -- remark {
min - height : 50 rpx ;
}
. tag - management . form - actions {
padding - bottom : 24 rpx ;
gap : 16 rpx ;
}
. tag - management . form - btn {
height : 72 rpx ; /* 约为原 88rpx 的 80% */
/* 输入框样式 */
. form - item _ _input {
width : 100 % ;
height : 88 rpx ;
background - color : # F9FAFB ;
border : 2 rpx solid # E5E7EB ;
border - radius : 16 rpx ;
padding : 0 24 rpx ;
font - size : 28 rpx ;
color : # 333333 ;
box - sizing : border - box ;
transition : all 0.3 s ease ;
}
. form - item _ _input : focus {
border - color : # 007 AFF ;
background - color : # FFFFFF ;
box - shadow : 0 0 0 4 rpx rgba ( 0 , 122 , 255 , 0.1 ) ;
}
/* 文本域样式 */
. form - item _ _textarea {
flex : 1 ;
min - height : 10 0 rpx ;
background - color : # f9fafb ;
border - radius : 1 2rpx ;
padding : 24 rpx ;
width : 100 % ;
min - height : 16 0 rpx ;
background - color : # F9FAFB ;
border : 2 rpx solid # E5E7EB ;
border - radius : 16 rpx ;
padding : 20 rpx 24 rpx ;
font - size : 28 rpx ;
color : # 333 ;
color : # 333333 ;
box - sizing : border - box ;
line - height : 1.6 ;
transition : all 0.3 s ease ;
}
. form - item _ _textarea -- detail {
min - height : 1 00rpx ;
. form - item _ _textarea : focus {
border - color : # 007 AFF ;
background - color : # FFFFFF ;
box - shadow : 0 0 0 4 rpx rgba ( 0 , 122 , 255 , 0.1 ) ;
}
. form - item _ _textarea -- remark {
min - height : 88 rpx ;
/* 标签选择器样式 */
. tag - select - wrapper {
position : relative ;
}
/* 确保包含 textarea 的表单项 label 在顶部对齐 */
. form - item -- textarea . form - item _ _label {
padding - top : 24 rpx ;
. tag - select {
width : 100 % ;
height : 88 rpx ;
background - color : # F9FAFB ;
border : 2 rpx solid # E5E7EB ;
border - radius : 16 rpx ;
padding : 0 24 rpx ;
display : flex ;
align - items : center ;
justify - content : space - between ;
box - sizing : border - box ;
cursor : pointer ;
transition : all 0.3 s ease ;
}
. tag - select : active {
border - color : # 007 AFF ;
background - color : # FFFFFF ;
box - shadow : 0 0 0 4 rpx rgba ( 0 , 122 , 255 , 0.1 ) ;
}
. form - item _ _picker - text {
font - size : 28 rpx ;
color : # 333333 ;
flex : 1 ;
}
. form - item _ _picker - placeholder {
font - size : 28 rpx ;
color : # 9 CA3AF ;
flex : 1 ;
}
/* 下拉菜单样式 */
. tag - select - dropdown {
position : absolute ;
top : 100 % ;
left : 0 ;
right : 0 ;
background - color : # FFFFFF ;
border : 2 rpx solid # E5E7EB ;
border - radius : 16 rpx ;
margin - top : 8 rpx ;
box - shadow : 0 4 rpx 20 rpx rgba ( 0 , 0 , 0 , 0.12 ) ;
z - index : 100 ;
overflow : hidden ;
max - height : 400 rpx ;
overflow - y : auto ;
}
. tag - select - dropdown _ _item {
padding : 24 rpx ;
border - bottom : 1 rpx solid # F3F4F6 ;
transition : background - color 0.2 s ease ;
}
. tag - select - dropdown _ _item : last - child {
border - bottom : none ;
}
. tag - select - dropdown _ _item : active {
background - color : # F9FAFB ;
}
. tag - select - dropdown _ _item text {
font - size : 28 rpx ;
color : # 333333 ;
}
. tag - select - dropdown _ _item text . active {
color : # 007 AFF ;
font - weight : 500 ;
}
/* 下拉菜单遮罩 */
. tag - select - mask {
position : fixed ;
top : 0 ;
left : 0 ;
right : 0 ;
bottom : 0 ;
background - color : transparent ;
z - index : 99 ;
}
/* 开关类型表单项 - 横向布局 */
. form - item -- switch {
flex - direction : row ;
align - items : center ;
justify - content : space - between ;
}
. form - item -- switch . form - item _ _label {
margin - bottom : 0 ;
}
/* 开关样式 */
. form - item switch {
margin - left : auto ;
transform : scale ( 0.9 ) ;
}
/* 表单操作按钮区域 */
. form - actions {
display : flex ;
gap : 24 rpx ;
padding - top : 16 rpx ;
}
. form - btn {
flex : 1 ;
height : 88 rpx ;
border - radius : 16 rpx ;
display : flex ;
align - items : center ;
justify - content : center ;
font - size : 30 rpx ;
font - weight : 500 ;
transition : all 0.3 s ease ;
}
. form - btn -- cancel {
background - color : # F3F4F6 ;
color : # 6 B7280 ;
}
. form - btn -- cancel : active {
background - color : # E5E7EB ;
opacity : 0.8 ;
}
. form - btn -- save {
background - color : # 007 AFF ;
color : # FFFFFF ;
}
. form - btn -- save : active {
background - color : # 0056 CC ;
opacity : 0.9 ;
}
. form - btn _ _text {
font - size : 30 rpx ;
font - weight : 500 ;
}
/* 补录弹窗样式 */