style(ui): 统一弹窗及独立表单页按钮文案和样式调整
- 将所有弹窗及独立表单页中的“返回”按钮文案统一改为“取消” - 独立表单页footer的Avue提交与清空按钮去除内置图标,仅保留文字显示 - 更新相关页面和组件按钮文案,包括业务表单、支付表单、客户档案等 - 规范底部操作栏按钮顺序及样式,确保主次操作区分明显 - 修复部分组件页脚按钮文案,保持全站一致性
This commit is contained in:
@@ -2076,7 +2076,7 @@
|
||||
v-if="isStandaloneFormPage && !showTransportPlanCreateActions"
|
||||
@click="closeCrudDialog"
|
||||
>
|
||||
关闭
|
||||
取消
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="config.enableDraftSave && !dialogReadonly"
|
||||
@@ -2092,7 +2092,7 @@
|
||||
<template #menu-form>
|
||||
<div v-if="showTransportPlanCreateActions" class="business-crud-page__create-actions">
|
||||
<el-button :disabled="Boolean(transportPlanCreateActionLoading)" @click="closeCrudDialog">
|
||||
关闭
|
||||
取消
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
@@ -3208,7 +3208,7 @@
|
||||
@click="submitTransportPlanImport"
|
||||
>提交</el-button
|
||||
>
|
||||
<el-button @click="transportPlanImportBox = false">返回</el-button>
|
||||
<el-button @click="transportPlanImportBox = false">取消</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
@@ -15343,6 +15343,12 @@ export default {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
/* 独立表单页 footer 的 Avue 提交/清空按钮自带图标(el-icon-check / el-icon-delete),
|
||||
Avue 源码用 `|| 'el-icon-xxx'` 兜底,无法通过 option 配置去除,统一用 CSS 隐藏只保留文字 */
|
||||
:global(.business-crud-form-page-dialog .avue-form__menu .el-icon) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
:global(.contract-manage-form-dialog) {
|
||||
width: 100% !important;
|
||||
margin: 0 !important;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div v-loading="loading" class="master-detail">
|
||||
<section v-if="master" class="detail-overview">
|
||||
<div class="detail-heading"><div><h2>多联总单详情 <span>|</span> {{ master.masterNo }}</h2><el-tag :type="statusType(master.businessStatus)" class="status-text">{{ statusName(master.businessStatus) }}</el-tag><el-tag v-if="transportFlowLabel" type="info" class="transport-flow-tag">{{ transportFlowLabel }}</el-tag></div><el-button @click="$emit('back')">返回</el-button></div>
|
||||
<div class="detail-heading"><div><h2>多联总单详情 <span>|</span> {{ master.masterNo }}</h2><el-tag :type="statusType(master.businessStatus)" class="status-text">{{ statusName(master.businessStatus) }}</el-tag><el-tag v-if="transportFlowLabel" type="info" class="transport-flow-tag">{{ transportFlowLabel }}</el-tag></div><el-button @click="$emit('back')">取消</el-button></div>
|
||||
<dl class="detail-meta"><div><dt>客户</dt><dd>{{ master.customerName || '-' }}</dd></div><div><dt>合同编号</dt><dd>{{ master.contractNo || '-' }}</dd></div><div><dt>项目</dt><dd>{{ master.projectName || '-' }}</dd></div><div class="detail-meta__attachments"><dt>附件</dt><dd><template v-if="attachments.length"><el-link v-for="file in attachments" :key="file.url || file.link || file.name || file.originalName" type="primary" @click="previewAttachment(file)">{{ attachmentName(file) }}</el-link></template><span v-else>-</span></dd></div></dl>
|
||||
<div class="route-map"><template v-for="(route, index) in segments" :key="route.segmentNo"><div class="route-map__node"><span :class="['route-badge', index ? 'middle' : 'start']">{{ index ? '经' : '起' }}</span><strong>{{ route.departureName || '-' }}</strong><small>{{ route.departureAddress || '-' }}</small><small class="route-map__progress">{{ index ? `已到达 ${quantity(segments[index - 1].arrivedQuantity)}/${quantity(master.totalQuantity)}` : `已调度 ${quantity(route.dispatchedQuantity)}/${quantity(master.totalQuantity)}` }}</small><small v-if="index" class="route-map__progress">已调度 {{ quantity(route.dispatchedQuantity) }}/{{ quantity(master.totalQuantity) }}</small></div><div class="route-map__line"></div><div v-if="index === segments.length - 1" class="route-map__node"><span class="route-badge end">终</span><strong>{{ route.arrivalName || '-' }}</strong><small>{{ route.arrivalAddress || '-' }}</small><small class="route-map__progress">已到达 {{ quantity(route.arrivedQuantity) }}/{{ quantity(master.totalQuantity) }}</small></div></template></div>
|
||||
</section>
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
<strong>待提交 <em>{{ pending.length }}</em> 条 <span class="pending-summary-text">({{ pendingSegmentSummary }})</span></strong>
|
||||
<el-link type="primary" @click="pendingExpanded = !pendingExpanded">{{ pendingExpanded ? '收起待调度列表' : '展开待调度列表' }}</el-link>
|
||||
</div>
|
||||
<div class="pending-actions"><el-button @click="$emit('back')">返回</el-button><el-button type="primary" :loading="submitting" @click="submit">确认调度</el-button></div>
|
||||
<div class="pending-actions"><el-button @click="$emit('back')">取消</el-button><el-button type="primary" :loading="submitting" @click="submit">确认调度</el-button></div>
|
||||
</div>
|
||||
<div v-show="pendingExpanded" class="pending-list">
|
||||
<template v-for="(items, segmentNo) in pendingGroups" :key="segmentNo">
|
||||
|
||||
@@ -532,7 +532,7 @@
|
||||
</template>
|
||||
</el-dialog>
|
||||
<footer>
|
||||
<el-button @click="$emit('back')">返回</el-button>
|
||||
<el-button @click="$emit('back')">取消</el-button>
|
||||
<el-button type="primary" plain @click="saveDraft">暂存</el-button>
|
||||
<el-button type="primary" plain @click="confirmCreate">确认创建</el-button>
|
||||
<el-button type="primary" @click="createAndDispatch">创建并调度</el-button>
|
||||
|
||||
@@ -620,7 +620,7 @@
|
||||
>
|
||||
<template v-if="isChangeDialog">
|
||||
<el-button v-if="!isProjectFormPage" @click="handleCancelProject">取消</el-button>
|
||||
<el-button v-if="isProjectFormPage" @click="closeProjectForm">返回</el-button>
|
||||
<el-button v-if="isProjectFormPage" @click="closeProjectForm">取消</el-button>
|
||||
<el-button type="primary" plain :loading="submitLoading" @click="saveChangeProject">
|
||||
保存
|
||||
</el-button>
|
||||
@@ -630,7 +630,7 @@
|
||||
</template>
|
||||
<template v-else>
|
||||
<el-button v-if="!isProjectFormPage" @click="handleCancelProject">取消</el-button>
|
||||
<el-button v-if="isProjectFormPage" @click="closeProjectForm">返回</el-button>
|
||||
<el-button v-if="isProjectFormPage" @click="closeProjectForm">取消</el-button>
|
||||
<el-button
|
||||
v-if="!dialogReadonly"
|
||||
type="primary"
|
||||
|
||||
@@ -417,7 +417,7 @@
|
||||
</section-card>
|
||||
|
||||
<div class="invoice-form-page__actions">
|
||||
<el-button @click="goBack">返回</el-button>
|
||||
<el-button @click="goBack">取消</el-button>
|
||||
<el-button v-if="!readonly" type="primary" plain @click="syncReferenceData">同步</el-button>
|
||||
<el-button
|
||||
v-if="!readonly && canSave"
|
||||
|
||||
@@ -240,7 +240,7 @@
|
||||
</section-card>
|
||||
|
||||
<div class="receipt-form-page__actions">
|
||||
<el-button @click="goBack">返回</el-button>
|
||||
<el-button @click="goBack">取消</el-button>
|
||||
<el-button v-if="!readonly" type="primary" plain @click="syncReferenceData">同步</el-button>
|
||||
<el-button
|
||||
v-if="!readonly && canSave"
|
||||
|
||||
@@ -328,7 +328,7 @@
|
||||
</div>
|
||||
</section-card>
|
||||
<div class="payment-form-page__actions">
|
||||
<el-button @click="goBack">返回</el-button>
|
||||
<el-button @click="goBack">取消</el-button>
|
||||
<el-button v-if="!readonly && canSave" type="primary" plain @click="saveDraft(false)">保存</el-button>
|
||||
<el-button
|
||||
v-if="!readonly && canSave && hasPermission('payment_application_submit')"
|
||||
|
||||
@@ -221,7 +221,7 @@
|
||||
<el-table ref="customerTable" :data="customerList" border @selection-change="handleCustomerSelection"><el-table-column type="selection" width="55" /><el-table-column prop="customerCode" label="客商编码" /><el-table-column prop="fullName" label="客商名称" /></el-table>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
<template #footer><span class="dialog-footer"><el-button type="primary" @click="submitUserForm">保存</el-button><el-button @click="userDialog = false">返回</el-button><el-button v-if="userDialogMode === 'edit'" @click="resetDialogPassword">重置密码</el-button><el-button @click="handleAddRole">添加角色</el-button></span></template>
|
||||
<template #footer><span class="dialog-footer"><el-button type="primary" @click="submitUserForm">保存</el-button><el-button @click="userDialog = false">取消</el-button><el-button v-if="userDialogMode === 'edit'" @click="resetDialogPassword">重置密码</el-button><el-button @click="handleAddRole">添加角色</el-button></span></template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 用户角色配置 -->
|
||||
|
||||
@@ -802,7 +802,7 @@
|
||||
<div class="archive-form__footer">
|
||||
<!-- 次要:独立页返回 / 只读关闭 / 弹窗取消 -->
|
||||
<el-button @click="closeArchive">{{
|
||||
readonly ? '关闭' : isArchivePage ? '返回' : '取消'
|
||||
readonly ? '关闭' : '取消'
|
||||
}}</el-button>
|
||||
<el-button type="primary" plain v-if="!readonly" @click="saveArchive">保存</el-button>
|
||||
<el-button type="primary" v-if="!readonly" @click="saveAndSubmitArchive">提交</el-button>
|
||||
@@ -866,7 +866,7 @@
|
||||
</section-card>
|
||||
<template #footer>
|
||||
<div class="contact-dialog__footer-actions">
|
||||
<el-button @click="contactBox = false">返回</el-button>
|
||||
<el-button @click="contactBox = false">取消</el-button>
|
||||
<el-button type="primary" plain @click="saveContact">保存</el-button>
|
||||
</div>
|
||||
</template>
|
||||
@@ -964,7 +964,7 @@
|
||||
</section-card>
|
||||
<template #footer>
|
||||
<div class="receipt-dialog__footer-actions">
|
||||
<el-button @click="receiptBox = false">返回</el-button>
|
||||
<el-button @click="receiptBox = false">取消</el-button>
|
||||
<el-button type="primary" plain @click="saveReceipt">保存</el-button>
|
||||
</div>
|
||||
</template>
|
||||
@@ -1084,7 +1084,7 @@
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="invoice-dialog__footer-actions">
|
||||
<el-button @click="invoiceBox = false">返回</el-button>
|
||||
<el-button @click="invoiceBox = false">取消</el-button>
|
||||
<el-button type="primary" plain @click="saveInvoice">保存</el-button>
|
||||
</div>
|
||||
</template>
|
||||
@@ -1347,7 +1347,7 @@
|
||||
<span>自评:{{ formatScoreValue(currentScore.selfScore) }}分</span>
|
||||
<span>复评:{{ formatScoreValue(currentScore.reviewScore) }}分</span>
|
||||
</div>
|
||||
<el-button @click="scoreBox = false">返回</el-button>
|
||||
<el-button @click="scoreBox = false">取消</el-button>
|
||||
<el-button type="primary" plain v-if="!readonly" @click="saveScoreDetail">保存</el-button>
|
||||
<el-button
|
||||
v-if="!readonly && hasPermission('customer_type_re_cert')"
|
||||
|
||||
Reference in New Issue
Block a user