Browse Source

report-test新版暂存

faster_develop
安虹睿 2 years ago
parent
commit
a11872e284
  1. 5
      fe/PC/src/router/index.js
  2. 16
      fe/PC/src/views/activeReportManage/reportForm/InventoryBookDetail_innerPage.vue
  3. 20
      fe/PC/src/views/activeReportManage/reportForm/InventoryBookDetail_innerPage_old.vue

5
fe/PC/src/router/index.js

@ -121,6 +121,11 @@ export const constantRoutes = [
}, },
{ {
path: '/InventoryBookDetail_innerPage', path: '/InventoryBookDetail_innerPage',
component: () => import('@/views/activeReportManage/reportForm/InventoryBookDetail_innerPage_old'),
hidden: true
},
{
path: '/report-test',
component: () => import('@/views/activeReportManage/reportForm/InventoryBookDetail_innerPage'), component: () => import('@/views/activeReportManage/reportForm/InventoryBookDetail_innerPage'),
hidden: true hidden: true
}, },

16
fe/PC/src/views/activeReportManage/reportForm/InventoryBookDetail_innerPage.vue

@ -70,7 +70,10 @@
v-for="(item,key) in tableTh" v-for="(item,key) in tableTh"
:prop="item.prop" :prop="item.prop"
:label="item.label" :label="item.label"
:width="item.width"> :width="item.width"
>
<!-- <template slot-scope="scope">
</template> -->
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
@ -91,7 +94,7 @@ export default {
// //
searchForm:{ searchForm:{
interfaceCalendar:null, interfaceCalendar:null,
erpLocatioCode:null, erpLocatioCode:'',
itemCode:null,//VW316C1A028A,UTT06PP5483 itemCode:null,//VW316C1A028A,UTT06PP5483
beginDate: '',//2021-10-01 beginDate: '',//2021-10-01
endDate: '',//2023-11-28T23:59:59 endDate: '',//2023-11-28T23:59:59
@ -110,7 +113,10 @@ export default {
}, },
// table // table
tableTh:[ tableTh:[
{label:'物料信息',prop:'itemCode',width:180}, {label:'物料代码',prop:'itemCode',width:180},
{label:'物料名称',prop:'itemName'},
{label:'物料描述',prop:'itemDesc1'},
{label:'物料配置',prop:'configuration'},
{label:'ERP储位',prop:'erpLocatioCode',width:80}, {label:'ERP储位',prop:'erpLocatioCode',width:80},
{label:'库位代码',prop:'locationCode',width:90}, {label:'库位代码',prop:'locationCode',width:90},
{label:'单号',prop:'number',width:170}, {label:'单号',prop:'number',width:170},
@ -258,7 +264,11 @@ export default {
} }
}) })
} }
else{
_list.push(_item1)
}
}); });
console.log(_list)
this.tableData = _list this.tableData = _list
}, },
// //

20
fe/PC/src/views/activeReportManage/reportForm/InventoryBookDetail_innerPage copy.vue → fe/PC/src/views/activeReportManage/reportForm/InventoryBookDetail_innerPage_old.vue

@ -1,5 +1,5 @@
<template> <template>
<div class="InventoryBookDetail_innerPage" v-loading="loading"> <div class="InventoryBookDetail_innerPage_old" v-loading="loading">
<!-- 修改前 --> <!-- 修改前 -->
<!-- 搜索 --> <!-- 搜索 -->
<el-form ref="searchForm" :inline="true" :rules="formRule" :model="searchForm" size="small" class="searchHeader"> <el-form ref="searchForm" :inline="true" :rules="formRule" :model="searchForm" size="small" class="searchHeader">
@ -121,7 +121,7 @@ import { getInventoryTransactionSerials,getInterfaceCalendar } from '@/api/wms-a
import { formatTimeStampToNorm,formatTimeStrToStr } from '@/utils/formatTime' import { formatTimeStampToNorm,formatTimeStrToStr } from '@/utils/formatTime'
export default { export default {
name:"InventoryBookDetail_innerPage", name:"InventoryBookDetail_innerPage_old",
data(){ data(){
return{ return{
loading:false,// loading:false,//
@ -314,12 +314,16 @@ export default {
getTableData(){ getTableData(){
this.loading = true this.loading = true
let _itemCodes = this.searchForm.itemCode ? this.searchForm.itemCode.split(',') : [] let _itemCodes = this.searchForm.itemCode ? this.searchForm.itemCode.split(',') : []
// getInventoryTransactionSerials(
// _itemCodes,{
// startDateTime:this.searchForm.beginDate,
// endDateTime:this.initEndTime(this.searchForm.endDate),
// erpLocatioCode:this.searchForm.erpLocatioCode,
// }).then(res => {
getInventoryTransactionSerials( getInventoryTransactionSerials(
_itemCodes,{ `wms/inventory/inventory-transaction/item-serial-list?startDateTime=${this.searchForm.beginDate}&endDateTime=${this.initEndTime(this.searchForm.endDate)}&erpLocationCode=${this.searchForm.erpLocatioCode}`,
startDateTime:this.searchForm.beginDate, _itemCodes
endDateTime:this.initEndTime(this.searchForm.endDate), ).then(res => {
erpLocatioCode:this.searchForm.erpLocatioCode,
}).then(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
@ -487,7 +491,7 @@ export default {
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.InventoryBookDetail_innerPage{ .InventoryBookDetail_innerPage_old{
background: #fff; background: #fff;
height: 100%; height: 100%;
Loading…
Cancel
Save