修改写真订单列表的操作逻辑
This commit is contained in:
parent
94180edc34
commit
0d16961cd6
|
@ -4,8 +4,8 @@ import router from '../router'
|
||||||
|
|
||||||
const myAxios = axios.create({
|
const myAxios = axios.create({
|
||||||
withCredentials:true,
|
withCredentials:true,
|
||||||
// baseURL: 'http://localhost:9092/api'
|
baseURL: 'http://localhost:9092/api'
|
||||||
baseURL: 'http://123.249.108.160:8888/api' //测试服务器
|
// baseURL: 'http://123.249.108.160:8888/api' //测试服务器
|
||||||
// baseURL: 'http://154.8.193.216:9092/api', //隋雨霏服务器
|
// baseURL: 'http://154.8.193.216:9092/api', //隋雨霏服务器
|
||||||
// baseURL: 'http://154.8.193.216:9093/api' //隋雨霏服务器测试环境
|
// baseURL: 'http://154.8.193.216:9093/api' //隋雨霏服务器测试环境
|
||||||
});
|
});
|
||||||
|
|
|
@ -259,6 +259,7 @@ const saveEdit = async () => { //编辑商品
|
||||||
message: '更新成功'
|
message: '更新成功'
|
||||||
})
|
})
|
||||||
DialogVisible.value = false
|
DialogVisible.value = false
|
||||||
|
getProductList()
|
||||||
} else {
|
} else {
|
||||||
ElMessage.error('更新失败,请检查字段')
|
ElMessage.error('更新失败,请检查字段')
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,12 @@
|
||||||
<el-button size="small" @click="showDetail(scope.row)">
|
<el-button size="small" @click="showDetail(scope.row)">
|
||||||
详情
|
详情
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-popconfirm confirm-button-text='是' cancel-button-text='否' icon="InfoFilled" icon-color="red"
|
||||||
|
title="是否取消订单?" @confirm="deleteOrder(scope.row)" width=180 v-if="['待支付'].includes(scope.row.orderStatus)">
|
||||||
|
<template #reference>
|
||||||
|
<el-button size="small" type="primary" plain>取消订单</el-button>
|
||||||
|
</template>
|
||||||
|
</el-popconfirm>
|
||||||
<el-popconfirm confirm-button-text='是' cancel-button-text='否' icon="InfoFilled" icon-color="red"
|
<el-popconfirm confirm-button-text='是' cancel-button-text='否' icon="InfoFilled" icon-color="red"
|
||||||
title="拍摄是否完成?" @confirm="changeOrderStatus(scope.row)" width=180 v-if="['待发货'].includes(scope.row.orderStatus)">
|
title="拍摄是否完成?" @confirm="changeOrderStatus(scope.row)" width=180 v-if="['待发货'].includes(scope.row.orderStatus)">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
|
@ -37,7 +43,7 @@
|
||||||
<el-popconfirm confirm-button-text='确定' cancel-button-text='取消' icon="InfoFilled" icon-color="red"
|
<el-popconfirm confirm-button-text='确定' cancel-button-text='取消' icon="InfoFilled" icon-color="red"
|
||||||
title="确定要退款吗?" @confirm="deleteOrder(scope.row)" width=180>
|
title="确定要退款吗?" @confirm="deleteOrder(scope.row)" width=180>
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button :disabled="!['待发货'].includes(scope.row.orderStatus)" size="small" type="danger" plain>退款</el-button>
|
<el-button v-if="['待发货','待收货'].includes(scope.row.orderStatus)" size="small" type="danger" plain>退款</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -91,9 +91,8 @@ const cancel = () => {
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
resetForm()
|
resetForm()
|
||||||
}
|
}
|
||||||
//新增类别 很繁杂 不知道怎么改 只能不断判空
|
//新增类别
|
||||||
const addOrUpdateType = async () => {
|
const addOrUpdateType = async () => {
|
||||||
//判空(*后期引入对象判空)
|
|
||||||
if (typeForm.value.name?.indexOf(' ') !== -1 ||
|
if (typeForm.value.name?.indexOf(' ') !== -1 ||
|
||||||
typeForm.value.name == '' ) {
|
typeForm.value.name == '' ) {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user