|
@ -154,6 +154,7 @@ export default { |
|
|
SkipCount: 0, |
|
|
SkipCount: 0, |
|
|
MaxResultCount: 20 |
|
|
MaxResultCount: 20 |
|
|
} |
|
|
} |
|
|
|
|
|
this.Loading.appMainLoading = true |
|
|
let priceInfo = await getPageList(price_params,"basedata/sale-price-sheet"); |
|
|
let priceInfo = await getPageList(price_params,"basedata/sale-price-sheet"); |
|
|
// 获取客户相关信息 |
|
|
// 获取客户相关信息 |
|
|
let customer_params = { |
|
|
let customer_params = { |
|
@ -185,17 +186,22 @@ export default { |
|
|
if(priceInfo && priceInfo.items && priceInfo.items.length > 0){ |
|
|
if(priceInfo && priceInfo.items && priceInfo.items.length > 0){ |
|
|
let _priceObj = {} |
|
|
let _priceObj = {} |
|
|
priceInfo.items.forEach(priceitem=>{ _priceObj[priceitem.itemCode] = priceitem }) |
|
|
priceInfo.items.forEach(priceitem=>{ _priceObj[priceitem.itemCode] = priceitem }) |
|
|
item.price = _priceObj[item.itemCode].salePrice |
|
|
if(_priceObj[item.itemCode]){item.price = _priceObj[item.itemCode].salePrice} |
|
|
item.rowTotal = (item.qty * item.price).toFixed(6) |
|
|
if(item.qty && item.price)item.rowTotal = Number((Number(item.qty) * Number(item.price)).toFixed(6)) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
let _alltotal = 0 |
|
|
let _alltotal = 0 |
|
|
this.tableDataDetails.details.forEach(item=>{ _alltotal += Number(item.rowTotal) }) |
|
|
this.tableDataDetails.details.forEach(item=>{ |
|
|
this.tableDataDetails.details.forEach(item=>{ item.alltotal = _alltotal}) |
|
|
if(item.rowTotal)_alltotal += Number(item.rowTotal) |
|
|
|
|
|
}) |
|
|
|
|
|
this.tableDataDetails.details.forEach(item=>{ |
|
|
|
|
|
if(_alltotal!=0){item.alltotal = _alltotal} |
|
|
|
|
|
else{item.alltotal = ""} |
|
|
|
|
|
item.nevAddress = localStorage.getItem('companyAddress') |
|
|
|
|
|
}) |
|
|
// let data = await initPrintAllData(this.tableDataDetails,'chdmxb.rdlx',false,_option); |
|
|
// let data = await initPrintAllData(this.tableDataDetails,'chdmxb.rdlx',false,_option); |
|
|
// todo:打印单据更改 |
|
|
// todo:打印单据更改 |
|
|
let data = await initPrintAllData(this.tableDataDetails,'fhd.rdlx',false,_option); |
|
|
let data = await initPrintAllData(this.tableDataDetails,'fhd.rdlx',false,_option); |
|
|
this.Loading.appMainLoading = true |
|
|
|
|
|
this.Print(data) |
|
|
this.Print(data) |
|
|
sumPrint(this.propsData.number, this.URL).then(res => { |
|
|
sumPrint(this.propsData.number, this.URL).then(res => { |
|
|
this.paging() |
|
|
this.paging() |
|
|