Commit c5549bf9 authored by 我在何方's avatar 我在何方

不可出渠道异常优化

parent e2621008
...@@ -129,4 +129,13 @@ export function getOrderExceptionChannelPriceList(data) { ...@@ -129,4 +129,13 @@ export function getOrderExceptionChannelPriceList(data) {
method: 'post', method: 'post',
data: data data: data
}) })
}
// 根据工作流中传的业务ID,获取不可出渠道异常详细信息
export function getExceptionDetailByBusinessId(query) {
return request({
url: '/ecw/order-exception/getExceptionDetailByBusinessId',
method: 'get',
params: query
})
} }
\ No newline at end of file
...@@ -102,7 +102,7 @@ import {getUnitList} from "@/api/ecw/unit" ...@@ -102,7 +102,7 @@ import {getUnitList} from "@/api/ecw/unit"
import { getCurrencyList } from '@/api/ecw/currency' import { getCurrencyList } from '@/api/ecw/currency'
import {getProductAttrList} from '@/api/ecw/productAttr' import {getProductAttrList} from '@/api/ecw/productAttr'
import Decimal from 'decimal.js' import Decimal from 'decimal.js'
import {getExceptionById,getOrderExceptionChannelPriceList} from '@/api/ecw/orderException' import {getExceptionDetailByBusinessId,getOrderExceptionChannelPriceList} from '@/api/ecw/orderException'
export default { export default {
name: 'NotShipingChannel', name: 'NotShipingChannel',
...@@ -157,7 +157,7 @@ export default { ...@@ -157,7 +157,7 @@ export default {
methods:{ methods:{
Decimal, Decimal,
getData(){ getData(){
getExceptionById(this.id).then(res => { getExceptionDetailByBusinessId({businessId:this.id}).then(res => {
this.orderExceptionData = res.data this.orderExceptionData = res.data
if(res.data.orderId){ if(res.data.orderId){
getOrder(res.data.orderId).then(res => { getOrder(res.data.orderId).then(res => {
...@@ -186,7 +186,7 @@ export default { ...@@ -186,7 +186,7 @@ export default {
}, },
getExceptionPriceList(orderId){ getExceptionPriceList(orderId){
let that = this let that = this
getOrderExceptionChannelPriceList({orderId:orderId,exceptionId:parseInt(that.id)}).then(res=>{ getOrderExceptionChannelPriceList({orderId:orderId,exceptionId:this.orderExceptionData.id,exceptionResultId:parseInt(that.id)}).then(res=>{
if(res.code==0&&res.data.length>0){ if(res.code==0&&res.data.length>0){
that.order.orderItemVOList.map(v=>{ that.order.orderItemVOList.map(v=>{
var item = res.data.find(vs=>vs.orderItemId==v.orderItemId) var item = res.data.find(vs=>vs.orderItemId==v.orderItemId)
......
...@@ -758,7 +758,7 @@ ...@@ -758,7 +758,7 @@
channelList: [], // 出货取到 channelList: [], // 出货取到
tradeCityList:[], tradeCityList:[],
unitList: [], unitList: [],
selectLine:null selectLine:null,
}; };
}, },
activated(){ activated(){
...@@ -1261,7 +1261,7 @@ ...@@ -1261,7 +1261,7 @@
//获取提交的不可出渠道异常商品清关费 //获取提交的不可出渠道异常商品清关费
getExceptionPriceList(){ getExceptionPriceList(){
let that = this let that = this
getOrderExceptionChannelPriceList({orderId:that.orderId,exceptionId:parseInt(that.orderExceptionId)}).then(res=>{ getOrderExceptionChannelPriceList({orderId:that.orderId,exceptionId:parseInt(that.orderExceptionId),exceptionResultId:this.handlerParams.id}).then(res=>{
if(res.code==0&&res.data.length>0){ if(res.code==0&&res.data.length>0){
that.orderData.orderItemVOList.map(v=>{ that.orderData.orderItemVOList.map(v=>{
var item = res.data.find(vs=>vs.orderItemId==v.orderItemId) var item = res.data.find(vs=>vs.orderItemId==v.orderItemId)
......
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