Commit 2d1ab684 authored by 邓春圆's avatar 邓春圆

添加 获得空运产品的路线价格数量

parent 3d72f0af
...@@ -26,7 +26,14 @@ export function updateProduct(data) { ...@@ -26,7 +26,14 @@ export function updateProduct(data) {
data: data data: data
}) })
} }
// 获得空运产品的路线价格数量
export function countByProductIdAndTransportType(params){
return request({
url:'/ecw/product-price/countByProductIdAndTransportType',
method:'get',
params
})
}
// 删除产品 // 删除产品
export function deleteProduct(id) { export function deleteProduct(id) {
return request({ return request({
......
...@@ -74,6 +74,7 @@ ...@@ -74,6 +74,7 @@
<script> <script>
import { import {
countByProductIdAndTransportType,
createProduct, createProduct,
deleteProduct, deleteProduct,
exportProductExcel, exportProductExcel,
...@@ -236,9 +237,14 @@ export default { ...@@ -236,9 +237,14 @@ export default {
}, },
methods: { methods: {
copyLine(row, bol){ copyLine(row, bol){
this.$emit( 'copyLine', row, bol) if(bol){
countByProductIdAndTransportType({productId:row.id}).then(r =>{
this.$emit( 'copyLine', {...row,priceLineCount:r.data}, bol)
})
}else {
this.$emit( 'copyLine', row, bol)
}
console.log(bol,'bol')
}, },
/** 获取产品属性列表 */ /** 获取产品属性列表 */
getAttrList() { getAttrList() {
......
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