This commit is contained in:
liushuai
2018-12-22 16:26:10 +08:00
parent 64d549cd89
commit 6f6d4d6b57
11 changed files with 88 additions and 119 deletions

View File

@@ -16,50 +16,7 @@
style="margin-left:10px"
@click="total1=0;pageCurrent1=1;pageSize1=10;searchTable1()">查询</el-button>
</el-card>
<el-card>
<div style="margin-bottom: 20px;margin-left: 10px;font-size: 20px;">采购部采购</div>
<el-table v-loading="" :data="tableData1" show-summary border style="width: 100%;max-height: 500px;" height="300px" size="mini">
<el-table-column label="项目名称" align="center" min-width="100">
<template slot-scope="scope">
{{ scope.row.项目名称 }}
</template>
</el-table-column>
<el-table-column label="物料名称" align="center" min-width="100">
<template slot-scope="scope">
{{ scope.row.物料名称 }}
</template>
</el-table-column>
<el-table-column label="物料规格" align="center" min-width="100">
<template slot-scope="scope">
{{ scope.row.物料规格 }}
</template>
</el-table-column>
<el-table-column label="物料型号" align="center" min-width="100">
<template slot-scope="scope">
{{ scope.row.物料型号 }}
</template>
</el-table-column>
<el-table-column label="数量" align="center" min-width="100">
<template slot-scope="scope">
{{ scope.row.数量 }}
</template>
</el-table-column>
<el-table-column label="单价" align="center" min-width="100">
<template slot-scope="scope">
{{ scope.row.单价 }}
</template>
</el-table-column>
<el-table-column label="小计(元)" align="center" min-width="100" prop="金额">
<template slot-scope="scope">
{{ scope.row.金额 }}
</template>
</el-table-column>
</el-table>
</el-card>
<el-card>
<div style="margin-bottom: 20px;margin-left: 10px;font-size: 20px;">车间采购</div>
<el-table v-loading="" :data="tableData2" show-summary border style="width: 100%;max-height: 500px;" height="300px" size="mini">
<el-table-column label="项目名称" align="center" min-width="100">
<template slot-scope="scope">
@@ -97,6 +54,8 @@
</template>
</el-table-column>
</el-table>
</el-card>
<el-card>
<el-table v-loading="" :data="tableData" show-summary border style="width: 100%;max-height: 500px;" height="300px" size="mini">
<el-table-column label="项目名称" align="center" min-width="100">
<template slot-scope="scope">
@@ -139,7 +98,7 @@
</template>
<script>
import { initProject, searchProjectTotal, searchProjectTotal1, searchProjectTotal2 } from '@/api/WorkshopProcurement/ProjectTotalSearch'
import { initProject, searchProjectTotal1, searchProjectTotal2 } from '@/api/WorkshopProcurement/ProjectTotalSearch'
import { mapGetters } from 'vuex'
export default {
@@ -149,7 +108,6 @@ export default {
projectValue: '',
project: [],
tableData: [],
tableData1: [],
tableData2: []
}
},
@@ -177,9 +135,6 @@ export default {
},
searchTable1() {
if (this.projectValue) {
searchProjectTotal(this.projectValue).then(response => {
this.tableData1 = response.data
})
searchProjectTotal1(this.projectValue).then(response => {
this.tableData = response.data
})