Commit 90604b81 authored by dragondean@qq.com's avatar dragondean@qq.com

复制订单

parent bf7e83a5
......@@ -265,3 +265,11 @@ export function getOfferCheck(params) {
params
})
}
// 复制订单/my/order/copy/{copyOrderId}
export function copyOrder(copyOrderId) {
return request({
url: '/app-api/my/order/copy/' + copyOrderId,
method: 'post'
})
}
......@@ -580,7 +580,7 @@
>
<!-- eslint-disable-next-line vue/no-unused-vars -->
<template slot="header" slot-scope="scope">
<span class="red">*</span>{{ $t("delivery.worth") }}
<span class="red">*</span>{{ $t("delivery.worth") }}(RMB)
</template>
<template slot-scope="scope">
<el-form-item
......@@ -722,10 +722,11 @@
</el-descriptions-item>
<!--报价费币种 lanbm 2024-05-14 修改BUG-->
<el-descriptions-item :label="$t('delivery.insuranceFee')">
{{ fee.insuranceFee || 0 }}<div v-if="fee.insuranceCurrencyId == 1">
{{ fee.insuranceFee || 0 }}
<template v-if="fee.insuranceCurrencyId == 1">
{{ $t("delivery.dollar") }}
</div>
<div v-else>(RMB)</div>
</template>
<template v-else>(RMB)</template>
</el-descriptions-item>
</el-descriptions>
</el-card>
......
......@@ -150,6 +150,7 @@
@click.native="printTagOrderId=scope.row.orderId"
>{{ $t('打印标签') }}
</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleCopy(scope.row)">{{ $t('复制') }}</el-button>
</template>
</el-table-column>
</el-table>
......@@ -207,7 +208,7 @@
</template>
<script>
import { getIssued, cancelOrder, deleteOrder, refundWarehouseApply } from '@/api/order'
import { getIssued, cancelOrder, deleteOrder, refundWarehouseApply, copyOrder } from '@/api/order'
import { parseTime } from '@/utils'
import RightToolbar from '@/components/RightToolbar'
import Pagination from '@/components/Pagination'
......@@ -317,6 +318,11 @@ export default {
})
}).catch(() => {})
},
handleCopy(row){
copyOrder(row.orderId).then((res) => {
this.handleUpdate({ orderId: res.data})
})
},
oprateOrder(orderId) {
this.$confirm(this.$t('postorder.confirm'))
.then(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment