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

未报价异常修复

parent 4a0280f1
...@@ -96,4 +96,14 @@ export function getPriceSnapshotList(priceId){ ...@@ -96,4 +96,14 @@ export function getPriceSnapshotList(priceId){
method: 'get', method: 'get',
params: {priceId} params: {priceId}
}) })
}
// 获得路线产品
export function getProductPriceGetPrice(query) {
return request({
url: '/ecw/product-price/getPrice',
method: 'get',
params: query
})
} }
\ No newline at end of file
...@@ -123,6 +123,7 @@ import { getCurrencyList } from '@/api/ecw/currency' ...@@ -123,6 +123,7 @@ import { getCurrencyList } from '@/api/ecw/currency'
import {getOrder} from '@/api/ecw/order' import {getOrder} from '@/api/ecw/order'
import FilePreview from '@/components/FilePreview' import FilePreview from '@/components/FilePreview'
import {getProduct} from '@/api/ecw/product' import {getProduct} from '@/api/ecw/product'
import {getProductPriceGetPrice} from '@/api/ecw/productPrice'
export default { export default {
name: "Pending", name: "Pending",
...@@ -193,6 +194,7 @@ export default { ...@@ -193,6 +194,7 @@ export default {
handEdit(row){ handEdit(row){
// 未报价异常 // 未报价异常
if(row.orderExceptionType=='order_no_quote_exception'){ if(row.orderExceptionType=='order_no_quote_exception'){
if(row.orderItemId){ if(row.orderItemId){
var productData = this.orderData.orderItemVOList.find(item=>item.orderItemId==row.orderItemId) var productData = this.orderData.orderItemVOList.find(item=>item.orderItemId==row.orderItemId)
if(productData){ if(productData){
...@@ -208,12 +210,25 @@ export default { ...@@ -208,12 +210,25 @@ export default {
lineId: this.orderData.logisticsInfoDto.lineId, lineId: this.orderData.logisticsInfoDto.lineId,
channelId: this.orderData.logisticsInfoDto.channelId channelId: this.orderData.logisticsInfoDto.channelId
} }
let queryParams = {
productId: productData.prodId,
lineId: this.orderData.logisticsInfoDto.lineId,
channelId: this.orderData.logisticsInfoDto.channelId
}
let url = '../../lineProject/product-price/edit?' + (new URLSearchParams(params)).toString() let url = '../../lineProject/product-price/edit?' + (new URLSearchParams(params)).toString()
getProductPriceGetPrice(queryParams).then(res=>{
console.log(res)
if(res.data){
url = '../../lineProject/product-price/edit?action=update&id='+res.data.id
}
return this.$router.push(url)
})
/* +productData.prodId /* +productData.prodId
+'&product_type='+res.data.typeId +'&product_type='+res.data.typeId
+'&transportId='+this.orderData.transportId +'&transportId='+this.orderData.transportId
+'&exportCity='+this.orderData.logisticsInfoDto.startCityId+'&importCity='+this.orderData.logisticsInfoDto.destCityId */ +'&exportCity='+this.orderData.logisticsInfoDto.startCityId+'&importCity='+this.orderData.logisticsInfoDto.destCityId */
return this.$router.push(url)
}) })
} }
}else{ }else{
......
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