Commit db5da6dd authored by 黄卓's avatar 黄卓

新建客户,重货标准设置默认显示的是泡货标准

http://zentao.jdshangmen.com/bug-view-10.html
parent b67a89c6
...@@ -34,6 +34,15 @@ export function getZhongPao(id) { ...@@ -34,6 +34,15 @@ export function getZhongPao(id) {
}) })
} }
// 获得客户最优惠的重泡货配置
export function getZhongPaoBest(query) {
return request({
url: '/ecw/zhong-pao/get-customer-best-zhong-pao',
method: 'get',
params: query
})
}
// 获得重泡货配置分页 // 获得重泡货配置分页
export function getZhongPaoPage(query) { export function getZhongPaoPage(query) {
return request({ return request({
......
...@@ -389,7 +389,7 @@ import {getWarehouseList} from "@/api/ecw/warehouse" ...@@ -389,7 +389,7 @@ import {getWarehouseList} from "@/api/ecw/warehouse"
import CustomerLineTable from '@/components/CustomerLineTable' import CustomerLineTable from '@/components/CustomerLineTable'
import {getCustomerSelect} from "@/api/ecw/customer" import {getCustomerSelect} from "@/api/ecw/customer"
import {listServiceUser} from "@/api/system/user" import {listServiceUser} from "@/api/system/user"
import {getZhongPaoPage} from '@/api/ecw/zhongPao' import { getZhongPaoBest, getZhongPaoPage } from '@/api/ecw/zhongPao'
import { getCustomerContactsListByCustomer } from '@/api/ecw/customerContacts' import { getCustomerContactsListByCustomer } from '@/api/ecw/customerContacts'
import { getCountryListAll } from '@/api/ecw/country' import { getCountryListAll } from '@/api/ecw/country'
import Template from "@/views/cms/template"; import Template from "@/views/cms/template";
...@@ -469,7 +469,7 @@ export default { ...@@ -469,7 +469,7 @@ export default {
productList: [], productList: [],
showZhong: false, showZhong: false,
showZhong1: false, showZhong1: false,
showPao: true, showPao: false,
showPao1: false, showPao1: false,
warehouseList: [], // 仓库列表 warehouseList: [], // 仓库列表
importCityList: [], // 进口地址 importCityList: [], // 进口地址
...@@ -623,15 +623,13 @@ export default { ...@@ -623,15 +623,13 @@ export default {
}) })
}, },
getZhongPao(){ getZhongPao(){
// todo 接口不对,应该用list getZhongPaoBest({
getZhongPaoPage().then(r => { customerId: this.customerId,
r.data.list.forEach(e => { // departureId: this.departureId,
if(e.type === 1) { // objectiveId: this.objectiveId
this.form.lightUnit = e.edge }).then(r => {
} else if (e.type === 2 || true){ // todo 缺少type this.form.weightUnit = r.data.zhongEdge
this.form.weightUnit = e.edge this.form.lightUnit = r.data.paoEdge
}
})
}) })
} }
}, },
......
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