修改物流

master
fanfan 2 months ago
parent 52725048af
commit 0c8f16848f
  1. 12
      src/api/order/delivery.js
  2. 27
      src/views/order/Detail.vue
  3. 4
      src/views/order/modules/index.js

@ -7,8 +7,20 @@ const api = {
delivery: '/order.delivery/delivery',
batch: '/order.delivery/batch',
eorder: '/order.delivery/eorder',
updateDelivery: '/order/updateDelivery',
}
/**
* 确认发货 修改物流
* @param {*} data
*/
export function updateDelivery (data) {
return axios({
url: api.updateDelivery,
method: 'post',
data
})
}
// 列表记录
export function list (params) {
return axios({

@ -275,13 +275,18 @@
<a-tag color="green">已发货</a-tag>
</a-descriptions-item>
</a-descriptions>
<div class="deliver-goods-list clearfix">
<div class="goods-item" v-for="(goods, idx) in item.goods" :key="idx">
<a-tooltip>
<template slot="title">{{ goods.goods_name ? goods.goods_name : '' }}</template>
<img class="goods-img" :src="goods.goods_image ? goods.goods_image : ''" alt="商品图片" />
<div class="title">{{ goods.delivery_num }}</div>
</a-tooltip>
<div style="display: flex; justify-content: space-between">
<div class="deliver-goods-list clearfix" style="width: 66.66%">
<div class="goods-item" v-for="(goods, idx) in item.goods" :key="idx">
<a-tooltip>
<template slot="title">{{ goods.goods_name ? goods.goods_name : '' }}</template>
<img class="goods-img" :src="goods.goods_image ? goods.goods_image : ''" alt="商品图片" />
<div class="title">{{ goods.delivery_num }}</div>
</a-tooltip>
</div>
</div>
<div class="action-item" style="width: 33.33%" v-if="record.delivery_status==DeliveryStatusEnum.DELIVERED.value &&item.delivery_method==10">
<a-button type="primary" @click="onClickEditDelivery(item)">修改物流信息</a-button>
</div>
</div>
</a-tab-pane>
@ -373,6 +378,7 @@
<RemarkFormEdit ref="RemarkFormEdit" @handleSubmit="handleRefresh" />
<RemarkFormAdd ref="RemarkFormAdd" @handleSubmit="handleRefresh" />
<JingDong ref="JingDong" @handleSubmit="handleRefresh" />
<DeliveryFormEdit ref="DeliveryFormEdit" @handleSubmit="handleRefresh" />
</div>
</template>
@ -389,6 +395,7 @@ import {
RemarkFormEdit,
JingDong,
RemarkFormAdd,
DeliveryFormEdit,
} from './modules'
import { Ueditor } from '@/components'
import {
@ -449,6 +456,7 @@ export default {
JingDong,
RemarkFormAdd,
RemarkFormEdit,
DeliveryFormEdit,
},
data() {
return {
@ -561,7 +569,10 @@ export default {
}
return ColorEnum[orderStatus]
},
//
onClickEditDelivery(record) {
this.$refs.DeliveryFormEdit.show(record)
},
//
handleDelivery() {
const { record } = this

@ -6,5 +6,5 @@ import PriceForm from './PriceForm'
import RemarkFormAdd from './RemarkFormAdd'
import RemarkFormEdit from './RemarkFormEdit'
import JingDong from './JingDong'
export { DeliveryForm, ExtractForm, CancelForm, PrinterForm, PriceForm,RemarkFormEdit, RemarkFormAdd,JingDong }
import DeliveryFormEdit from './DeliveryFormEdit'
export { DeliveryForm, ExtractForm, CancelForm, PrinterForm, PriceForm,RemarkFormEdit, RemarkFormAdd,JingDong,DeliveryFormEdit }

Loading…
Cancel
Save