Commit ea3cb17d authored by 黄卓's avatar 黄卓

Merge remote-tracking branch 'origin/dev' into dev

parents 02e29c42 6a4250c8
...@@ -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