md
This commit is contained in:
parent
cc5be85410
commit
37226e7b49
Binary file not shown.
@ -18,13 +18,14 @@ export function getEmisTmsSiteBatch(id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 根据供应商编码和运输号获取批次信息
|
// 根据供应商编码和运输号获取批次信息
|
||||||
export function listBySupplerAndCarNo(supplierCode,carNo) {
|
export function listBySupplerAndCarNo(supplierCode,carNo,etd) {
|
||||||
return request({
|
return request({
|
||||||
url: '/emis/emisTmsSiteBatch/listBySupplerAndCarNo',
|
url: '/emis/emisTmsSiteBatch/listBySupplerAndCarNo',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
supplierCode:supplierCode,
|
supplierCode:supplierCode,
|
||||||
carNo:carNo
|
carNo:carNo,
|
||||||
|
etd:etd
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -339,7 +339,7 @@ export default {
|
|||||||
if (element.hasOwnProperty(key)) {
|
if (element.hasOwnProperty(key)) {
|
||||||
this.$set(orderData,key,element[key]) ;
|
this.$set(orderData,key,element[key]) ;
|
||||||
// 解析费用数据
|
// 解析费用数据
|
||||||
if(key!='运输单号'&&key!='供应商名称'&&key!='账期'&&key!='备注'){
|
if(key!='运输单号'&&key!='供应商名称'&&key!='账期'&&key!='备注'&&key!='成本时间'){
|
||||||
// 获取费用编码
|
// 获取费用编码
|
||||||
// 单价和币种特殊处理
|
// 单价和币种特殊处理
|
||||||
let indexPos=key.indexOf("单价");
|
let indexPos=key.indexOf("单价");
|
||||||
@ -442,7 +442,8 @@ export default {
|
|||||||
if(orderData.uploadStatus!=-1){
|
if(orderData.uploadStatus!=-1){
|
||||||
// 判断批次是否存在 获取批次信息
|
// 判断批次是否存在 获取批次信息
|
||||||
let carNo=orderData['运输单号'];
|
let carNo=orderData['运输单号'];
|
||||||
let resBatch=await listBySupplerAndCarNo(supplierCode,carNo);
|
let etd=orderData['成本时间'];
|
||||||
|
let resBatch=await listBySupplerAndCarNo(supplierCode,carNo,etd);
|
||||||
if(resBatch&&resBatch.code==200){
|
if(resBatch&&resBatch.code==200){
|
||||||
if(resBatch.rows&&resBatch.rows.length==0){
|
if(resBatch.rows&&resBatch.rows.length==0){
|
||||||
orderData.uploadStatus=-1;
|
orderData.uploadStatus=-1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user