Commit 12e8464b authored by dragondean@qq.com's avatar dragondean@qq.com

出货订单编辑

parent c9f6f982
...@@ -584,6 +584,16 @@ export function updateApply(data){ ...@@ -584,6 +584,16 @@ export function updateApply(data){
data data
}) })
} }
// 出货阶段的订单编辑
export function updateShipmentApply(data){
return request({
url:'/ecw/order/shipment/update/apply',
method:'put',
data
})
}
export function warehousePictureList(data){ export function warehousePictureList(data){
return request({ return request({
url:'/order/warehouse-picture/list', url:'/order/warehouse-picture/list',
......
...@@ -668,7 +668,16 @@ ...@@ -668,7 +668,16 @@
</template> </template>
<script> <script>
import { createOrder, updateApply, getOrderDetail, getOrderCourierNumber, orderImport, exportPackingList, getUpdateInfo } from "@/api/ecw/order"; import {
createOrder,
updateApply,
getOrderDetail,
getOrderCourierNumber,
orderImport,
exportPackingList,
getUpdateInfo,
updateShipmentApply
} from '@/api/ecw/order'
import ProductSelector from '@/components/ProductSelector' import ProductSelector from '@/components/ProductSelector'
import {getProductAttrList} from '@/api/ecw/productAttr' import {getProductAttrList} from '@/api/ecw/productAttr'
import {getChannelList} from '@/api/ecw/channel' import {getChannelList} from '@/api/ecw/channel'
...@@ -1661,7 +1670,8 @@ export default { ...@@ -1661,7 +1670,8 @@ export default {
hasConsignee: this.hasConsignee hasConsignee: this.hasConsignee
}) })
data.type = data.type.join(',') data.type = data.type.join(',')
updateApply(data).then(response => { const func = this.form.shipmentState > 0 ? updateShipmentApply : updateApply
func(data).then(response => {
this.$modal.msgSuccess(this.$t("修改成功")); this.$modal.msgSuccess(this.$t("修改成功"));
this.$router.back() this.$router.back()
}); });
......
...@@ -623,6 +623,7 @@ ...@@ -623,6 +623,7 @@
<el-dropdown <el-dropdown
v-hasPermi="[ v-hasPermi="[
'ecw:order:edit', 'ecw:order:edit',
'ecw:order:shipment:update',
'ecw:order:delete', 'ecw:order:delete',
'ecw:order:cancel', 'ecw:order:cancel',
'ecw:order:fee_apply', 'ecw:order:fee_apply',
...@@ -645,9 +646,19 @@ ...@@ -645,9 +646,19 @@
> >
<el-button type="text">{{ $t("操作") }}</el-button> <el-button type="text">{{ $t("操作") }}</el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<!-- 编辑 --> <!--出货订单编辑,shipmentState > 0表示出货后,inWarehouseState == 0 表示预装未审核,或者是卸柜到仓)-->
<template <template
v-if=" v-if="scope.row.shipmentState > 0 && scope.row.inWarehouseState == 0"
>
<el-dropdown-item
@click.native="handleUpdate(scope.row)"
v-hasPermi="['ecw:order:shipment:update']"
>{{ $t("编辑") }}</el-dropdown-item
>
</template>
<!-- 其他编辑 -->
<template
v-else-if="
(scope.row.status < 12 || (scope.row.status < 12 ||
(scope.row.status == 12 && (scope.row.status == 12 &&
scope.row.shipmentState == 314)) && scope.row.shipmentState == 314)) &&
......
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