|
@ -44,9 +44,12 @@ |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" @click="searchHandle">查询</el-button> |
|
|
<el-button type="primary" @click="searchHandle">查询</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<!-- <el-form-item> |
|
|
|
|
|
<el-button type="primary" @click="closeAll">全部收起</el-button> |
|
|
|
|
|
</el-form-item> --> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<!-- table --> |
|
|
<!-- table --> |
|
|
<div class="tableContent" v-if="tableData"> |
|
|
<div class="tableContent" v-if="tableData && !loading"> |
|
|
<ul class="tableHeader"> |
|
|
<ul class="tableHeader"> |
|
|
<li>{{tableHeader.companyName}}</li> |
|
|
<li>{{tableHeader.companyName}}</li> |
|
|
<li><span class="tableName">库存流水帐 (料品)</span></li> |
|
|
<li><span class="tableName">库存流水帐 (料品)</span></li> |
|
@ -71,10 +74,8 @@ |
|
|
:prop="item.prop" |
|
|
:prop="item.prop" |
|
|
:label="item.label" |
|
|
:label="item.label" |
|
|
:width="item.width" |
|
|
:width="item.width" |
|
|
> |
|
|
:align="(item.prop).toLowerCase().indexOf('qty') >=0 ? 'right' : 'left'" |
|
|
<!-- <template slot-scope="scope"> |
|
|
></el-table-column> |
|
|
</template> --> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
</el-table> |
|
|
</el-table> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -113,7 +114,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// table标头 |
|
|
// table标头 |
|
|
tableTh:[ |
|
|
tableTh:[ |
|
|
{label:'物料代码',prop:'itemCode',width:180}, |
|
|
{label:'物料代码',prop:'itemCode',width:170}, |
|
|
{label:'物料名称',prop:'itemName'}, |
|
|
{label:'物料名称',prop:'itemName'}, |
|
|
{label:'物料描述',prop:'itemDesc1'}, |
|
|
{label:'物料描述',prop:'itemDesc1'}, |
|
|
{label:'物料配置',prop:'configuration'}, |
|
|
{label:'物料配置',prop:'configuration'}, |
|
@ -122,8 +123,8 @@ export default { |
|
|
{label:'单号',prop:'number',width:170}, |
|
|
{label:'单号',prop:'number',width:170}, |
|
|
{label:'创建时间',prop:'createDateTime',width:160}, |
|
|
{label:'创建时间',prop:'createDateTime',width:160}, |
|
|
{label:'业务编号',prop:'docNumber',width:140}, |
|
|
{label:'业务编号',prop:'docNumber',width:140}, |
|
|
{label:'业务主类型',prop:'enumTransType',type:'filter',option:'TransTypeBase'}, |
|
|
{label:'业务主类型',prop:'enumTransType',type:'filter',option:'TransTypeBase',width:90}, |
|
|
{label:'业务子类型',prop:'enumTransSubType',type:'filter',option:'transSubType'}, |
|
|
{label:'业务子类型',prop:'enumTransSubType',type:'filter',option:'transSubType',width:90}, |
|
|
{label:'对应接口',prop:'interFaceName',width:220}, |
|
|
{label:'对应接口',prop:'interFaceName',width:220}, |
|
|
{label:'期初库存',prop:'firstQty'}, |
|
|
{label:'期初库存',prop:'firstQty'}, |
|
|
{label:'入库',prop:'sumInQty'}, |
|
|
{label:'入库',prop:'sumInQty'}, |
|
@ -131,16 +132,19 @@ export default { |
|
|
{label:'结存',prop:'nowQty'}, |
|
|
{label:'结存',prop:'nowQty'}, |
|
|
{label:'期末库存',prop:'lastQty'}, |
|
|
{label:'期末库存',prop:'lastQty'}, |
|
|
], |
|
|
], |
|
|
totalProps:['firstQty','lastQty','nowQty','sumInQty','sumOutQty'],// 小结显示的字段 |
|
|
|
|
|
indexArray_item: [], //itemCode 存储所有合并的行号 |
|
|
|
|
|
indexArray_erp: [], //erpLocatioCode 存储所有合并的行号 |
|
|
|
|
|
indexArray_erp2: [], //locationCode 存储所有合并的行号 |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted () { |
|
|
mounted () { |
|
|
this.getInterfaceCalendarList() |
|
|
this.getInterfaceCalendarList() |
|
|
}, |
|
|
}, |
|
|
methods:{ |
|
|
methods:{ |
|
|
|
|
|
// closeAll(){ |
|
|
|
|
|
// this.loading = true |
|
|
|
|
|
// this.expandRows=[] |
|
|
|
|
|
// setTimeout(()=>{ |
|
|
|
|
|
// this.loading = false |
|
|
|
|
|
// },300) |
|
|
|
|
|
// }, |
|
|
load(tree, treeNode, resolve) { |
|
|
load(tree, treeNode, resolve) { |
|
|
// 点击第一层 |
|
|
// 点击第一层 |
|
|
if(tree.reportErpLocationSerialDtos && tree.reportErpLocationSerialDtos.length > 0){ |
|
|
if(tree.reportErpLocationSerialDtos && tree.reportErpLocationSerialDtos.length > 0){ |
|
@ -165,7 +169,9 @@ export default { |
|
|
// 点击第三层 |
|
|
// 点击第三层 |
|
|
if(tree.reportTransactionSerialDtos && tree.reportTransactionSerialDtos.length > 0){ |
|
|
if(tree.reportTransactionSerialDtos && tree.reportTransactionSerialDtos.length > 0){ |
|
|
tree.reportTransactionSerialDtos.forEach((item,key)=>{ |
|
|
tree.reportTransactionSerialDtos.forEach((item,key)=>{ |
|
|
item.id='id4-'+Math.random().toString()+key |
|
|
item.id='id4-'+Math.random().toString()+key; |
|
|
|
|
|
item.createDateTime = this.formatTime(item.createDateTime) |
|
|
|
|
|
item.interFaceName = this.getInterFaceName(item) |
|
|
}) |
|
|
}) |
|
|
resolve(tree.reportTransactionSerialDtos) |
|
|
resolve(tree.reportTransactionSerialDtos) |
|
|
} |
|
|
} |
|
@ -268,7 +274,6 @@ export default { |
|
|
_list.push(_item1) |
|
|
_list.push(_item1) |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
console.log(_list) |
|
|
|
|
|
this.tableData = _list |
|
|
this.tableData = _list |
|
|
}, |
|
|
}, |
|
|
// 获取表格数据 |
|
|
// 获取表格数据 |
|
@ -279,6 +284,7 @@ export default { |
|
|
`wms/inventory/inventory-transaction/item-serial-list?startDateTime=${this.searchForm.beginDate}&endDateTime=${this.initEndTime(this.searchForm.endDate)}&erpLocationCode=${this.searchForm.erpLocatioCode}`, |
|
|
`wms/inventory/inventory-transaction/item-serial-list?startDateTime=${this.searchForm.beginDate}&endDateTime=${this.initEndTime(this.searchForm.endDate)}&erpLocationCode=${this.searchForm.erpLocatioCode}`, |
|
|
_itemCodes |
|
|
_itemCodes |
|
|
).then(res => { |
|
|
).then(res => { |
|
|
|
|
|
console.log(res) |
|
|
this.tableData = null |
|
|
this.tableData = null |
|
|
this.tableHeader.beginDate = this.searchForm.beginDate |
|
|
this.tableHeader.beginDate = this.searchForm.beginDate |
|
|
this.tableHeader.endDate = this.searchForm.endDate |
|
|
this.tableHeader.endDate = this.searchForm.endDate |
|
@ -407,7 +413,6 @@ export default { |
|
|
// background: transparent !important; |
|
|
// background: transparent !important; |
|
|
|
|
|
|
|
|
.el-table__cell{ |
|
|
.el-table__cell{ |
|
|
vertical-align: initial !important; |
|
|
|
|
|
padding: 5px 0 !important; |
|
|
padding: 5px 0 !important; |
|
|
// background: transparent !important; |
|
|
// background: transparent !important; |
|
|
} |
|
|
} |
|
@ -422,6 +427,8 @@ export default { |
|
|
color: #000 !important; |
|
|
color: #000 !important; |
|
|
border: none !important; |
|
|
border: none !important; |
|
|
border-bottom: #333 solid 1px !important; |
|
|
border-bottom: #333 solid 1px !important; |
|
|
|
|
|
vertical-align: initial !important; |
|
|
|
|
|
|
|
|
.cell{ |
|
|
.cell{ |
|
|
vertical-align: bottom !important; |
|
|
vertical-align: bottom !important; |
|
|
} |
|
|
} |
|
|