|
@ -51,7 +51,7 @@ |
|
|
<li>{{tableHeader.companyName}}</li> |
|
|
<li>{{tableHeader.companyName}}</li> |
|
|
<li><span class="tableName">库存流水帐 (料品)</span></li> |
|
|
<li><span class="tableName">库存流水帐 (料品)</span></li> |
|
|
<li class="timeLi"> |
|
|
<li class="timeLi"> |
|
|
<div class="item">交易年月: {{ getYearMonth(searchForm.beginDate) }} - {{ getYearMonth(searchForm.endDate) }}</div> |
|
|
<div class="item">交易年月: {{ getYearMonth(tableHeader.beginDate) }} - {{ getYearMonth(tableHeader.endDate) }}</div> |
|
|
<div class="item">制表日期:{{ getNow() }}</div> |
|
|
<div class="item">制表日期:{{ getNow() }}</div> |
|
|
</li> |
|
|
</li> |
|
|
</ul> |
|
|
</ul> |
|
@ -143,6 +143,8 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// table账单表头 |
|
|
// table账单表头 |
|
|
tableHeader:{ |
|
|
tableHeader:{ |
|
|
|
|
|
beginDate: '', |
|
|
|
|
|
endDate: '', |
|
|
companyName:localStorage.getItem('companyName') |
|
|
companyName:localStorage.getItem('companyName') |
|
|
}, |
|
|
}, |
|
|
// table标头 |
|
|
// table标头 |
|
@ -221,7 +223,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 年月转义 |
|
|
// 年月转义 |
|
|
getYearMonth(date){ |
|
|
getYearMonth(date){ |
|
|
return date.replaceAll('-',"") |
|
|
return date.replaceAll('-',"").slice(0,8) |
|
|
}, |
|
|
}, |
|
|
// 获取当前时间 |
|
|
// 获取当前时间 |
|
|
getNow(){ |
|
|
getNow(){ |
|
@ -297,7 +299,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
return _list |
|
|
return _list |
|
|
}, |
|
|
}, |
|
|
// 格式化结束时间 |
|
|
// 格式化结束时间(格式:T23:59:59) |
|
|
initEndTime(data){ |
|
|
initEndTime(data){ |
|
|
let _time = "" |
|
|
let _time = "" |
|
|
if(data.indexOf('T') >= 0){ |
|
|
if(data.indexOf('T') >= 0){ |
|
@ -318,6 +320,8 @@ export default { |
|
|
erpLocatioCode:this.searchForm.erpLocatioCode, |
|
|
erpLocatioCode:this.searchForm.erpLocatioCode, |
|
|
}).then(res => { |
|
|
}).then(res => { |
|
|
this.tableData = null |
|
|
this.tableData = null |
|
|
|
|
|
this.tableHeader.beginDate = this.searchForm.beginDate |
|
|
|
|
|
this.tableHeader.endDate = this.searchForm.endDate |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.tableData = this.initTableData(res) |
|
|
this.tableData = this.initTableData(res) |
|
|
this.getIndexArr() |
|
|
this.getIndexArr() |
|
|