|
@@ -1,30 +1,6 @@
|
|
<!-- 库存报表 -->
|
|
<!-- 库存报表 -->
|
|
<template>
|
|
<template>
|
|
<div class="container">
|
|
<div class="container">
|
|
- <div style="overflow: hidden;">
|
|
|
|
- <date-select v-model="params7" @change="selectTime"></date-select>
|
|
|
|
- </div>
|
|
|
|
- <!-- <div class="total-warp">
|
|
|
|
- <div class="left-total" style="padding-right: 1px">
|
|
|
|
- <div class="total-header">
|
|
|
|
- <div class="title">面料</br>领用</div>
|
|
|
|
- <div>卷数</br><span>12312312</span></div>
|
|
|
|
- <div>米数</br><span>12312312</span></div>
|
|
|
|
- <div>面积</br><span>12312312</span></div>
|
|
|
|
- <div>金额</br><span>12312312</span></div>
|
|
|
|
- </div>
|
|
|
|
- <div>
|
|
|
|
- <Table :columns="columns7" :data="data7"></Table>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="right-total">
|
|
|
|
- <div class="total-header"></div>
|
|
|
|
- <div>
|
|
|
|
- <Table :columns="columns8" :data="data8"></Table>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div> -->
|
|
|
|
-
|
|
|
|
<Tabs :value="tabName" @on-click="tabClick">
|
|
<Tabs :value="tabName" @on-click="tabClick">
|
|
<TabPane label="盘盈亏单" name="1">
|
|
<TabPane label="盘盈亏单" name="1">
|
|
<my-table
|
|
<my-table
|
|
@@ -49,16 +25,46 @@
|
|
></my-table>
|
|
></my-table>
|
|
</TabPane>
|
|
</TabPane>
|
|
<TabPane label="领料序时簿" name="3">
|
|
<TabPane label="领料序时簿" name="3">
|
|
-
|
|
|
|
- <my-table
|
|
|
|
- ref="llsxb"
|
|
|
|
- :data="data3"
|
|
|
|
- :columns="columns3"
|
|
|
|
- :table-filter="tableFilter3"
|
|
|
|
- :table-page="params3"
|
|
|
|
- @event-handle="eventHandle"
|
|
|
|
- @on-change="changePage"
|
|
|
|
- ></my-table>
|
|
|
|
|
|
+ <div style="overflow: hidden;">
|
|
|
|
+ <date-select v-model="params7" @change="selectTime"></date-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="total-warp">
|
|
|
|
+ <div class="left-total" style="padding-right: 1px">
|
|
|
|
+ <div class="total-header">
|
|
|
|
+ <div class="title">面料</br>领用</div>
|
|
|
|
+ <div>卷数</br><span>{{pickingStatisticsData.fabricStatistics.total}}</span></div>
|
|
|
|
+ <div>米数</br><span>{{pickingStatisticsData.fabricStatistics.length}}</span></div>
|
|
|
|
+ <div>面积</br><span>{{pickingStatisticsData.fabricStatistics.measureArea}}</span></div>
|
|
|
|
+ <div>金额</br><span>{{pickingStatisticsData.fabricStatistics.money}}</span></div>
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <Table height="200" size="small" :columns="columns7" :data="data7"></Table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="right-total">
|
|
|
|
+ <div class="total-header">
|
|
|
|
+ <div class="title">墨水</br>领用</div>
|
|
|
|
+ <div>件数</br><span>{{pickingStatisticsData.inkStatistics.total}}</span></div>
|
|
|
|
+ <div>公斤</br><span>{{pickingStatisticsData.inkStatistics.weight}}</span></div>
|
|
|
|
+ <div>金额</br><span>{{pickingStatisticsData.inkStatistics.money}}</span></div>
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <Table height="200" :columns="columns8" :data="data8"></Table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- <Table height="200" :columns="columns3" :data="data3"></Table> -->
|
|
|
|
+ <div style="height:calc(100vh - 516px)">
|
|
|
|
+ <my-table
|
|
|
|
+ ref="llsxb"
|
|
|
|
+ :data="data3"
|
|
|
|
+ :columns="columns3"
|
|
|
|
+ :table-page="params3"
|
|
|
|
+ @event-handle="eventHandle"
|
|
|
|
+ @on-change="changePage3"
|
|
|
|
+ :table-filter="tableFilter3"
|
|
|
|
+ ></my-table>
|
|
|
|
+ </div>
|
|
</TabPane>
|
|
</TabPane>
|
|
<TabPane label="物料收发汇总" name="4">
|
|
<TabPane label="物料收发汇总" name="4">
|
|
<my-table
|
|
<my-table
|
|
@@ -273,6 +279,7 @@ export default {
|
|
minWidth: 150,
|
|
minWidth: 150,
|
|
},
|
|
},
|
|
],
|
|
],
|
|
|
|
+ materialTypeList:['直喷','热转','打纸','墨水','其他'],
|
|
columns3: [
|
|
columns3: [
|
|
{
|
|
{
|
|
title: '序号',
|
|
title: '序号',
|
|
@@ -287,8 +294,9 @@ export default {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '物料类型',
|
|
title: '物料类型',
|
|
- key: 'materialCategoryName',
|
|
|
|
|
|
+ key: 'materialType',
|
|
minWidth: 150,
|
|
minWidth: 150,
|
|
|
|
+
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '物料编码',
|
|
title: '物料编码',
|
|
@@ -302,32 +310,32 @@ export default {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '物料规格',
|
|
title: '物料规格',
|
|
- key: 'spec',
|
|
|
|
|
|
+ key: 'materialSpec',
|
|
minWidth: 150,
|
|
minWidth: 150,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '单位',
|
|
title: '单位',
|
|
- key: 'untilName',
|
|
|
|
|
|
+ key: 'materialUnit',
|
|
minWidth: 150,
|
|
minWidth: 150,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '领料数量',
|
|
title: '领料数量',
|
|
- key: 'quantity',
|
|
|
|
|
|
+ key: 'changeNum',
|
|
minWidth: 150,
|
|
minWidth: 150,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '单价',
|
|
title: '单价',
|
|
- key: 'price',
|
|
|
|
|
|
+ key: 'materialPrice',
|
|
minWidth: 150,
|
|
minWidth: 150,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '金额',
|
|
title: '金额',
|
|
- key: 'amount',
|
|
|
|
|
|
+ key: 'money',
|
|
minWidth: 150,
|
|
minWidth: 150,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '人员',
|
|
title: '人员',
|
|
- key: 'userName',
|
|
|
|
|
|
+ key: 'realName',
|
|
minWidth: 150,
|
|
minWidth: 150,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -791,30 +799,30 @@ export default {
|
|
},
|
|
},
|
|
],
|
|
],
|
|
tableFilter3: [
|
|
tableFilter3: [
|
|
- {
|
|
|
|
- name: 'Input',
|
|
|
|
- value: 'workKey',
|
|
|
|
- placeholder: '请输入关键字',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: 'DatePicker',
|
|
|
|
- value: 'yearMonth',
|
|
|
|
- placeholder: '请选择日期',
|
|
|
|
- unClearable: true,
|
|
|
|
- type: 'month',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: 'Button',
|
|
|
|
- type: 'primary',
|
|
|
|
- text: '查询',
|
|
|
|
- e: 'search',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: 'Button',
|
|
|
|
- type: 'primary',
|
|
|
|
- text: '导出Excel',
|
|
|
|
- e: 'export',
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // name: 'Input',
|
|
|
|
+ // value: 'workKey',
|
|
|
|
+ // placeholder: '请输入关键字',
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: 'DatePicker',
|
|
|
|
+ // value: 'yearMonth',
|
|
|
|
+ // placeholder: '请选择日期',
|
|
|
|
+ // unClearable: true,
|
|
|
|
+ // type: 'month',
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: 'Button',
|
|
|
|
+ // type: 'primary',
|
|
|
|
+ // text: '查询',
|
|
|
|
+ // e: 'search',
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: 'Button',
|
|
|
|
+ // type: 'primary',
|
|
|
|
+ // text: '导出Excel',
|
|
|
|
+ // e: 'export',
|
|
|
|
+ // },
|
|
],
|
|
],
|
|
tableFilter4: [
|
|
tableFilter4: [
|
|
{
|
|
{
|
|
@@ -911,29 +919,59 @@ export default {
|
|
total: 0,
|
|
total: 0,
|
|
},
|
|
},
|
|
params6: {},
|
|
params6: {},
|
|
- params7: {
|
|
|
|
|
|
+ params7: {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
total: 0,
|
|
total: 0,
|
|
- beginTime:null,
|
|
|
|
- endTime:null,
|
|
|
|
|
|
+ beginTime:null,
|
|
|
|
+ endTime:null,
|
|
|
|
+ },
|
|
|
|
+ pickingStatisticsData:{
|
|
|
|
+ fabricStatistics:{},
|
|
|
|
+ inkStatistics:{},
|
|
},
|
|
},
|
|
}
|
|
}
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- selectTime(){},
|
|
|
|
|
|
+ selectTime(){
|
|
|
|
+ this.params7.pageNum = 1
|
|
|
|
+ this.getPickingPage()
|
|
|
|
+ },
|
|
|
|
+ changePage3(e){
|
|
|
|
+ this.params7.pageNum = e
|
|
|
|
+ axios.post('/cloudApi/stockWater/getPickingPage', {
|
|
|
|
+ ...this.params7,
|
|
|
|
+ })
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.data3 = res.data.data.records
|
|
|
|
+ this.params3.total = res.data.data.total
|
|
|
|
+ console.log(this.params3.total)
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ },
|
|
getPickingPage() {
|
|
getPickingPage() {
|
|
|
|
|
|
axios.post('/cloudApi/stockWater/getPickingStatistics', {
|
|
axios.post('/cloudApi/stockWater/getPickingStatistics', {
|
|
- ...this.params,
|
|
|
|
|
|
+ ...this.params7,
|
|
})
|
|
})
|
|
.then((res) => {
|
|
.then((res) => {
|
|
-
|
|
|
|
|
|
+ this.pickingStatisticsData = res.data.data
|
|
this.data7 = res.data.data.fabricTree
|
|
this.data7 = res.data.data.fabricTree
|
|
this.data8 = res.data.data.inkDetails
|
|
this.data8 = res.data.data.inkDetails
|
|
console.log(this.data7)
|
|
console.log(this.data7)
|
|
|
|
|
|
})
|
|
})
|
|
|
|
+ axios.post('/cloudApi/stockWater/getPickingPage', {
|
|
|
|
+ ...this.params,
|
|
|
|
+ })
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.data3 = res.data.data.records
|
|
|
|
+ this.params3.total = res.data.data.total
|
|
|
|
+ console.log(this.data3)
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+
|
|
},
|
|
},
|
|
tabClick(name) {
|
|
tabClick(name) {
|
|
this.tabName = name
|
|
this.tabName = name
|
|
@@ -942,13 +980,13 @@ export default {
|
|
} else if (this.tabName === '2') {
|
|
} else if (this.tabName === '2') {
|
|
this.$refs.rkxsb.setModel('yearMonth', new Date())
|
|
this.$refs.rkxsb.setModel('yearMonth', new Date())
|
|
} else if (this.tabName === '3') {
|
|
} else if (this.tabName === '3') {
|
|
- this.$refs.llsxb.setModel('yearMonth', new Date())
|
|
|
|
|
|
+ // this.$refs.llsxb.setModel('yearMonth', new Date())
|
|
} else if (this.tabName === '4') {
|
|
} else if (this.tabName === '4') {
|
|
this.$refs.wlsfhz.setModel('yearMonth', new Date())
|
|
this.$refs.wlsfhz.setModel('yearMonth', new Date())
|
|
} else if (this.tabName === '6') {
|
|
} else if (this.tabName === '6') {
|
|
this.$refs.table.setModel('yearMonth', new Date())
|
|
this.$refs.table.setModel('yearMonth', new Date())
|
|
} // 物料进出信息要选择物料所以默认不查找列表
|
|
} // 物料进出信息要选择物料所以默认不查找列表
|
|
- if (this.tabName !== '6') {
|
|
|
|
|
|
+ if (this.tabName !== '6' && this.tabName !== '3') {
|
|
this.getList()
|
|
this.getList()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1119,12 +1157,13 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
} else if (this.tabName === '3') {
|
|
} else if (this.tabName === '3') {
|
|
- GetStockTakeDocumentList(this.params3).then((res) => {
|
|
|
|
- if (res.code === 0) {
|
|
|
|
- this.data3 = res.result.list
|
|
|
|
- this.params3.total = res.result.totalCount
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+
|
|
|
|
+ // GetStockTakeDocumentList(this.params3).then((res) => {
|
|
|
|
+ // if (res.code === 0) {
|
|
|
|
+ // this.data3 = res.result.list
|
|
|
|
+ // this.params3.total = res.result.totalCount
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
} else if (this.tabName === '4') {
|
|
} else if (this.tabName === '4') {
|
|
GetMaterialStockInOutSum(this.params4).then((res) => {
|
|
GetMaterialStockInOutSum(this.params4).then((res) => {
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
@@ -1150,37 +1189,64 @@ export default {
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.tabClick('1')
|
|
this.tabClick('1')
|
|
- this.getPickingPage()
|
|
|
|
|
|
+ this.getPickingPage()
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style>
|
|
<style>
|
|
-.ivu-table-expanded-cell{
|
|
|
|
- padding-right:0px!important;
|
|
|
|
|
|
+.ivu-table-expanded-cell {
|
|
|
|
+ padding-right: 0px !important;
|
|
|
|
+}
|
|
|
|
+.total-warp .ivu-table td{
|
|
|
|
+ height: 32px!important;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
-.total-warp{
|
|
|
|
|
|
+.total-warp {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
- .left-total,.right-total{
|
|
|
|
|
|
+ margin-top: 10px;
|
|
|
|
+ .left-total,
|
|
|
|
+ .right-total {
|
|
width: 49%;
|
|
width: 49%;
|
|
- .total-header{
|
|
|
|
|
|
+ background: #fff;
|
|
|
|
+ .total-header {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 60px;
|
|
height: 60px;
|
|
border: 1px solid #dcdcdc;
|
|
border: 1px solid #dcdcdc;
|
|
|
|
+ border-bottom: 0px;
|
|
|
|
+ div{
|
|
|
|
+ color: #666;
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ height: 100%;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ line-height: 30px;
|
|
|
|
+ span{
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ color: #000;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .left-total{
|
|
|
|
- .total-header{
|
|
|
|
- padding-left: 40px;
|
|
|
|
- div{
|
|
|
|
|
|
+ .left-total {
|
|
|
|
+ .total-header {
|
|
|
|
+ padding-left: 50px;
|
|
|
|
+ div {
|
|
width: 20%;
|
|
width: 20%;
|
|
float: left;
|
|
float: left;
|
|
padding: 0 16px;
|
|
padding: 0 16px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .right-total {
|
|
|
|
+ .total-header {
|
|
|
|
+ div {
|
|
|
|
+ width: 25%;
|
|
|
|
+ float: left;
|
|
|
|
+ padding: 0 16px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.container {
|
|
.container {
|
|
height: 100%;
|
|
height: 100%;
|