feat(expressinterface): 快递接口新增/编辑支持商品描述字段

在接口参数区块新增可选的商品描述输入,并补充表单默认值、编辑回填与 create/update 请求体字段。

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
liufumingren 2026-11-18 22:23:54 +08:00
parent 1a51150d2c
commit 0f99ca2477
3 changed files with 24 additions and 0 deletions

View File

@ -52,6 +52,8 @@ export type ExpressInterfaceCreateParams = {
is_system_express_code?: number
is_enabled?: number
is_hide_goods?: number
/** 商品描述(打印面单使用),可空 */
goods_description?: string
sender_name?: string
sender_tel?: string
weight?: number
@ -125,6 +127,8 @@ export type ExpressInterfaceUpdateParams = {
weight_type?: number
/** 验视员/查看者 */
viewer?: string
/** 商品描述(打印面单使用),可空 */
goods_description?: string
/** 客户 ID(支持 clientId) */
client_id?: string
/** 是否上门取件(支持 isPickup),1是 0否 */
@ -175,6 +179,7 @@ export type ExpressInterfaceUpdateResponse = {
weight?: number
weight_type?: number
viewer?: string
goods_description?: string
client_id?: string
is_enabled?: number
is_share?: number

View File

@ -24,6 +24,7 @@ export const expressInterfaceListFieldOrder = [
'weight',
'weight_type',
'viewer',
'goods_description',
'client_id',
'is_enabled',
'is_share',
@ -66,6 +67,7 @@ export const expressInterfaceFieldLabels: Record<string, string> = {
weight: '默认重量',
weight_type: '重量类型',
viewer: '验视人',
goods_description: '商品描述',
client_id: '客户端 ID',
is_share: '是否共享',
ispickup: '上门取件',
@ -813,6 +815,7 @@ export const defaultExpressInterfaceForm = {
weight_type: undefined as number | undefined,
token: '',
viewer: '',
goods_description: '',
client_id: '',
share_id: undefined as number | undefined,
ispickup: 0,
@ -896,6 +899,7 @@ export function applyExpressInterfaceRowToForm(
weight_type: toFormOptionalNumber(row.weight_type),
token: toFormString(row.token),
viewer: toFormString(row.viewer),
goods_description: toFormString(row.goods_description),
client_id: toFormString(row.client_id),
share_id: toFormOptionalNumber(row.share_id),
ispickup: row.ispickup === 1 || row.ispickup === true ? 1 : 0,
@ -1012,6 +1016,7 @@ export function buildExpressInterfaceCreatePayload(
'providerid',
'token',
'viewer',
'goods_description',
'client_id',
'shipperno',
'province_name',

View File

@ -563,6 +563,20 @@
<span class="task-panel__inline-tip">开启后,快递方接收到的商品名称统一修改为「商品」</span>
</div>
</div>
<div class="task-panel__field task-panel__field--input task-panel__field--full">
<span class="task-panel__field-label">商品描述</span>
<div class="task-panel__field-form">
<el-input
v-model="formData.goods_description"
size="default"
maxlength="200"
show-word-limit
clearable
placeholder="可选,打印面单时的商品描述"
/>
</div>
</div>
</div>
</el-form>