refactor(订单模块): 1.统一订单状态和地址相关术语;2.增加心理论坛内容管理
将"发货"相关术语统一改为"发出",包括订单状态、按钮文字、提示信息等 将"收货"相关术语统一改为"收件",包括地址信息、表单标签、提示信息等 新增心理论坛模块,包含列表和新增/修改功能 调整订单状态显示为"待发出"和"已发出" 修改地址相关字段为"收件人"和"收件地址" 添加psychologicalForum.vue和psychologicalForum-add-or-update.vue文件
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-dialog title="发货配置" :close-on-click-modal="false" :visible.sync="visible" width='500px'
|
||||
<el-dialog title="发出配置" :close-on-click-modal="false" :visible.sync="visible" width='500px'
|
||||
:before-close="beforeCloseDialog" append-to-body>
|
||||
<!-- <el-steps :active="stepsActive" simple style="margin-bottom: 20px;;">
|
||||
<el-step title="获取电子面单" icon="el-icon-tickets"></el-step>
|
||||
<el-step title="打印电子面单" icon="el-icon-printer"></el-step>
|
||||
</el-steps> -->
|
||||
<!-- <el-alert style="margin-bottom: 15px;" v-if="selectData.length > 0"
|
||||
:title="`您正在对 ${selectData.length} 条数据进行发货操作。`" :closable="false" type="success">
|
||||
:title="`您正在对 ${selectData.length} 条数据进行发出操作。`" :closable="false" type="success">
|
||||
</el-alert> -->
|
||||
<el-form v-if="ruleForm" :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px"
|
||||
class="demo-ruleForm">
|
||||
@@ -19,7 +19,7 @@
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer" style="text-align: center;">
|
||||
<el-button type="primary" @click="setDevliverHandle">立即发货</el-button>
|
||||
<el-button type="primary" @click="setDevliverHandle">立即发出</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- <ul class="print-ul" style="display: block;">
|
||||
@@ -102,7 +102,7 @@ export default {
|
||||
|
||||
/// this.selectData = []
|
||||
},
|
||||
// 发货操作
|
||||
// 发出操作
|
||||
setDevliverHandle() {
|
||||
this.$refs['ruleForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
@@ -127,10 +127,10 @@ export default {
|
||||
if (data && data.code === 0) {
|
||||
console.log(data)
|
||||
this.beforeCloseDialog() // 关闭弹窗
|
||||
return this.$message.success('发货成功')
|
||||
return this.$message.success('发出成功')
|
||||
} else {
|
||||
this.beforeCloseDialog() // 关闭弹窗
|
||||
return this.$message.error('发货失败')
|
||||
return this.$message.error('发出失败')
|
||||
|
||||
}
|
||||
}).catch((err) => {
|
||||
|
||||
Reference in New Issue
Block a user