|
|
@@ -126,10 +126,10 @@
|
|
|
<div class="sa-flex">
|
|
|
<el-button v-if="scope.row.status === 5" class="is-link" type="primary"
|
|
|
@click="onSend(scope.row)">{{ t('modules.order.shipOrder') }}</el-button>
|
|
|
- <el-button class="is-link" type="primary" @click="detailRow(scope.row.id)">{{
|
|
|
+ <el-button class="is-link" type="primary" @click="detailRow(scope.row.orderId)">{{
|
|
|
t('modules.order.viewDetail') }}</el-button>
|
|
|
<el-button v-if="scope.row.status === 1" class="is-link sa-m-l-12" type="danger"
|
|
|
- @click="cancelOrder(scope.row.id)">
|
|
|
+ @click="cancelOrder(scope.row.orderId)">
|
|
|
{{ t('modules.order.cancelOrder') }}
|
|
|
</el-button>
|
|
|
</div>
|
|
|
@@ -490,13 +490,13 @@ function batchHandle() {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
-function detailRow(id) {
|
|
|
+function detailRow(orderNo) {
|
|
|
useModal(
|
|
|
OrderDetail,
|
|
|
{
|
|
|
title: t('modules.order.orderDetail'),
|
|
|
type: 'detail',
|
|
|
- id,
|
|
|
+ orderNo,
|
|
|
},
|
|
|
{
|
|
|
confirm: () => {
|
|
|
@@ -509,7 +509,7 @@ function detailRow(id) {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
-async function cancelOrder(id) {
|
|
|
+async function cancelOrder(orderNo) {
|
|
|
try {
|
|
|
await ElMessageBox.confirm(t('modules.order.confirmCancelOrder'), t('common.tip'), {
|
|
|
confirmButtonText: t('common.confirm'),
|
|
|
@@ -517,7 +517,7 @@ async function cancelOrder(id) {
|
|
|
type: 'warning',
|
|
|
});
|
|
|
|
|
|
- const { code, message } = await api.order.cancel(id);
|
|
|
+ const { code, message } = await api.order.cancel(orderNo);
|
|
|
if (code == 200) {
|
|
|
ElMessage.success(t('modules.order.cancelOrderSuccess'));
|
|
|
getData(); // 刷新列表
|