b39501291c
- 取消 el-tooltip 包裹,改用纯 el-button 实现带图标的展开收起按钮 - 按 avue-crud 规范控制按钮显示,新增 searchIndex (默认 4)和 searchItemCount 控制逻辑 - 搜索项数量未超出 searchIndex 时隐藏展开收起按钮 - 相关组件支付模块多处应用此统一方案(bill-ledger-search、bill-payment-search、invoice-application、invoice-receipt、receipt-claim-record、receipt-flow) - 维护展开状态对应的箭头图标和文案为“收起”与“展开” refactor(business): 优化路线变更内容渲染与样式 - 替换旧的 formatRouteChangeContent 为更详细的 parseRouteChangeContent,支持多分组与字段显示 - 路线变更内容支持多层次分组、字段标签、改变前后值对比及未变更标识展示 - 取消全局列溢出提示以避免多行内容被截断,针对路线变更内容列显式禁用溢出提示并设置白色换行样式 - 在 business-crud-page、waybill-manage-page、loading-manage 相关页面和组件中统一应用该解析与渲染方案 refactor(option): 调整 measurement-unit 配置以提升表格列展示 - 移除 menuWidth 配置,采用 menuFixed 固定右侧模式 - 为创建人和更新人列添加 minWidth 110,时间列添加 width 180,避免内容被截断 - 表格列数组顺序调整,确保搜索与展示保持一致 refactor(payment & receipt-flow): 统一支付及回执模块工具栏和表格行为 - 按照统一规范和用户反馈,调整多处页面的搜索栏操作区和表格列配置 - 引入 TableHeaderTools 组件和相关状态传递,实现搜索显隐与表格尺寸切换统一 - 优化 avue-crud 表格组件的交互一致性和视觉表现 refactor(utils): 重构路线变更内容解析函数 - 新增 parseRouteChangeContent 以支持复杂路线变更文本的解析与分组 - 识别运单号、字段标签、变更前后值,支持多种箭头符号及调整描述 - 用法推广至相关业务页面,支持更加直观的路线变更展示界面
155 lines
3.6 KiB
JavaScript
155 lines
3.6 KiB
JavaScript
const dimensionOptions = [
|
|
{ label: '重量', value: '重量' },
|
|
{ label: '体积', value: '体积' },
|
|
{ label: '数量', value: '数量' },
|
|
{ label: '整车', value: '整车' },
|
|
{ label: '里程', value: '里程' },
|
|
{ label: '吨·公里', value: '吨·公里' },
|
|
];
|
|
|
|
const statusOptions = [
|
|
{ label: '启用', value: 1 },
|
|
{ label: '停用', value: 2 },
|
|
];
|
|
|
|
export const createOption = () => ({
|
|
height: 'auto',
|
|
calcHeight: 32,
|
|
dialogWidth: 680,
|
|
labelPosition: 'right',
|
|
labelWidth: 'auto',
|
|
tip: false,
|
|
searchBtnText: '查询',
|
|
emptyBtnText: '重置',
|
|
saveBtnText: '提交',
|
|
updateBtnText: '提交',
|
|
searchShow: true,
|
|
searchMenuSpan: 24,
|
|
searchIcon: true,
|
|
searchIndex: 4,
|
|
searchMenuPosition: 'right',
|
|
border: true,
|
|
index: true,
|
|
indexLabel: '序号',
|
|
indexWidth: 70,
|
|
addBtn: false,
|
|
viewBtn: false,
|
|
editBtn: false,
|
|
delBtn: false,
|
|
selection: true,
|
|
dialogClickModal: false,
|
|
menuFixed: 'right',
|
|
column: [
|
|
{
|
|
label: '计量单位编码',
|
|
prop: 'unitCode',
|
|
minWidth: 150,
|
|
span: 24,
|
|
search: true,
|
|
searchOrder: 4,
|
|
searchSpan: 6,
|
|
maxlength: 50,
|
|
showWordLimit: true,
|
|
rules: [
|
|
{ required: true, message: '请输入计量单位编码', trigger: 'blur' },
|
|
{ max: 50, message: '计量单位编码不能超过50个字', trigger: 'blur' },
|
|
],
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
prop: 'unitName',
|
|
minWidth: 150,
|
|
search: true,
|
|
searchOrder: 3,
|
|
searchSpan: 6,
|
|
maxlength: 50,
|
|
showWordLimit: true,
|
|
rules: [
|
|
{ required: true, message: '请输入计量单位', trigger: 'blur' },
|
|
{ max: 50, message: '计量单位不能超过50个字', trigger: 'blur' },
|
|
],
|
|
},
|
|
{
|
|
label: '计量维度',
|
|
prop: 'dimension',
|
|
type: 'select',
|
|
minWidth: 130,
|
|
search: true,
|
|
searchOrder: 2,
|
|
searchSpan: 6,
|
|
dicData: dimensionOptions,
|
|
rules: [{ required: true, message: '请选择计量维度', trigger: 'change' }],
|
|
},
|
|
{
|
|
label: '备注',
|
|
prop: 'remark',
|
|
type: 'textarea',
|
|
minRows: 2,
|
|
span: 24,
|
|
minWidth: 200,
|
|
maxlength: 200,
|
|
showWordLimit: true,
|
|
overHidden: true,
|
|
rules: [{ max: 200, message: '备注不能超过200个字', trigger: 'blur' }],
|
|
},
|
|
{
|
|
label: '状态',
|
|
prop: 'status',
|
|
type: 'select',
|
|
search: true,
|
|
searchOrder: 1,
|
|
searchSpan: 6,
|
|
slot: true,
|
|
dataType: 'number',
|
|
dicData: statusOptions,
|
|
clearable: true,
|
|
value: 1,
|
|
addDisplay: false,
|
|
editDisplay: false,
|
|
minWidth: 100,
|
|
},
|
|
{
|
|
label: '创建人',
|
|
prop: 'createUserName',
|
|
minWidth: 110,
|
|
addDisplay: false,
|
|
editDisplay: false,
|
|
viewDisplay: false,
|
|
display: false,
|
|
},
|
|
{
|
|
label: '更新人',
|
|
prop: 'updateUserName',
|
|
minWidth: 110,
|
|
addDisplay: false,
|
|
editDisplay: false,
|
|
viewDisplay: false,
|
|
display: false,
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
prop: 'createTime',
|
|
type: 'datetime',
|
|
format: 'YYYY-MM-DD HH:mm:ss',
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
width: 180,
|
|
sortable: true,
|
|
addDisplay: false,
|
|
editDisplay: false,
|
|
display: false,
|
|
},
|
|
{
|
|
label: '更新时间',
|
|
prop: 'updateTime',
|
|
type: 'datetime',
|
|
format: 'YYYY-MM-DD HH:mm:ss',
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
width: 180,
|
|
sortable: true,
|
|
addDisplay: false,
|
|
editDisplay: false,
|
|
display: false,
|
|
},
|
|
],
|
|
});
|