本次提交对wms异议处理页面的所有组件样式进行了统一调整: 1. 替换了老旧的复古文档风格配色,统一使用现代中性色调的Tailwind CSS风格色值 2. 调整了字体大小、行高、间距等排版参数,优化页面整体可读性 3. 统一了卡片、边框、圆角的样式规范,移除冗余的衬线字体配置 4. 调整了页面容器背景色,从暖白纸色改为更清爽的工业风浅色主题 5. 优化了空状态、流程步骤等组件的视觉表现,保持整体风格统一
115 lines
2.4 KiB
Vue
115 lines
2.4 KiB
Vue
<template>
|
|
<div v-if="enabled" class="section-container">
|
|
<div class="section-title">
|
|
<span>处理方案 <span class="en-sub">· Handling Scheme</span></span>
|
|
<el-button v-if="editable && !editing" size="mini" type="text" icon="el-icon-edit" @click="startEdit">编辑</el-button>
|
|
<template v-if="editing">
|
|
<el-button size="mini" type="text" icon="el-icon-check" @click="handleSave">保存</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-close" @click="cancelEdit">取消</el-button>
|
|
</template>
|
|
</div>
|
|
<div v-if="editing">
|
|
<editor v-model="editContent" :min-height="200" />
|
|
</div>
|
|
<div v-else>
|
|
<div v-if="content" class="plan-content" v-html="content"></div>
|
|
<div v-else class="empty-data">暂无处理方案</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'HandlingSchemeSection',
|
|
props: {
|
|
enabled: {
|
|
type: Boolean,
|
|
default: true
|
|
},
|
|
editable: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
content: {
|
|
type: String,
|
|
default: ''
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
editing: false,
|
|
editContent: ''
|
|
};
|
|
},
|
|
watch: {
|
|
content(val) {
|
|
if (!this.editing) {
|
|
this.editContent = val || '';
|
|
}
|
|
}
|
|
},
|
|
methods: {
|
|
startEdit() {
|
|
this.editContent = this.content || '';
|
|
this.editing = true;
|
|
},
|
|
cancelEdit() {
|
|
this.editing = false;
|
|
this.editContent = '';
|
|
},
|
|
handleSave() {
|
|
if (!this.editContent) {
|
|
this.$modal.msgWarning('请输入处理方案');
|
|
return;
|
|
}
|
|
this.$emit('save', this.editContent);
|
|
this.editing = false;
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.section-title {
|
|
width: 100%;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
margin: 20px 0 10px 0;
|
|
padding: 0 0 8px 0;
|
|
border-bottom: 1px solid #cbd5e1;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
letter-spacing: 0.2px;
|
|
}
|
|
.section-title:first-child {
|
|
margin-top: 0;
|
|
}
|
|
.section-title .en-sub {
|
|
font-size: 11px;
|
|
font-weight: 400;
|
|
color: #94a3b8;
|
|
letter-spacing: 0.2px;
|
|
}
|
|
.section-title i {
|
|
font-size: 14px;
|
|
color: #475569;
|
|
}
|
|
.empty-data {
|
|
color: #94a3b8;
|
|
font-size: 12px;
|
|
padding: 6px 0;
|
|
}
|
|
.plan-content {
|
|
padding: 10px 14px;
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 0;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
color: #1e293b;
|
|
}
|
|
</style>
|