外购备料查询

This commit is contained in:
Vergil
2020-04-17 17:06:27 +08:00
parent 3f52dd3212
commit bc443952be
2 changed files with 53 additions and 59 deletions

View File

@@ -46,3 +46,15 @@ export function searchTablesheet(check, supplierNameValue, check1, partNumber, c
} }
}) })
} }
export function HandleNumber() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '备料管理_外购备料_处理已完成未修改数据'
}
})
}

View File

@@ -37,66 +37,47 @@
<el-card style="width: 100%"> <el-card style="width: 100%">
<el-table v-loading="loading" :data="tableData" highlight-current-row border stripe size="mini" style="width: 100%" height="750" @sort-change="sortChange"> <el-table v-loading="loading" :data="tableData" highlight-current-row border stripe size="mini" style="width: 100%" height="750" @sort-change="sortChange">
<el-table-column label="序号" align="center" type="index" width="50"/> <el-table-column label="序号" align="center" type="index" width="50"/>
<!--<el-table-column label="进程" align="center" prop="进程" sortable="custom" width="80px">-->
<!--<template slot-scope="scope">-->
<!--<span v-if="Number(scope.row.是否到货)===0" type="warning" size="mini">未到</span>-->
<!--<span v-if="Number(scope.row.是否到货)===1" type="primary" size="mini">已到</span>-->
<!--<span v-if="Number(scope.row.是否到货)===2" type="success" size="mini">已结</span>-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column label="进程" align="center" prop="进程" sortable="custom" width="80px"> <el-table-column label="进程" align="center" prop="进程" sortable="custom" width="80px">
<template slot-scope="scope">{{ scope.row.备料状态 }}</template> <template slot-scope="scope">
{{ scope.row.备料状态 }}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="供应商" align="center" min-width="210px" width="300" prop="供应商名称" sortable="custom" show-overflow-tooltip>
label="供应商" <template slot-scope="scope">
align="center" {{ scope.row.备料状态==='自家' ? '自家' : scope.row.供应商名称 }}
min-width="210px" </template>
width="300"
prop="供应商名称"
sortable="custom"
show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.供应商名称 }}</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="物料编码" align="center" width="180px">
label="物料编码" <template slot-scope="scope">
align="center" {{ scope.row.物料编码 ? scope.row.物料编码 : scope.row.零件图号 }}
width="180px"> </template>
<template slot-scope="scope">{{ scope.row.物料编码 ? scope.row.物料编码 : scope.row.零件图号 }}</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="物料名称" align="center" prop="零件名称" sortable="custom" width="120px">
label="物料名称" <template slot-scope="scope">
align="center" {{ scope.row.零件名称 }}
prop="零件名称" </template>
sortable="custom"
width="120px">
<template slot-scope="scope">{{ scope.row.零件名称 }}</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="材料" width="90" prop="材料" sortable="custom" align="center">
label="材料" <template slot-scope="scope">
width="90" {{ scope.row.材料 }}
prop="材料" </template>
sortable="custom"
align="center">
<template slot-scope="scope">{{ scope.row.材料 }}</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="计划件数" align="center" width="100">
label="计划件数" <template slot-scope="scope">
align="center" {{ scope.row.批次数量 }}
width="100"> </template>
<template slot-scope="scope">{{ scope.row.批次数量 }}</template>
</el-table-column> </el-table-column>
<el-table-column label="备料件数" align="center" width="100"> <el-table-column label="备料件数" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.采购数量 }} {{ scope.row.采购数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="到货件数" align="center" width="100">
label="到货件数" <template slot-scope="scope">
align="center" {{ scope.row.到货数量 }}
width="100"> </template>
<template slot-scope="scope">{{ scope.row.到货数量 }}</template>
</el-table-column> </el-table-column>
<el-table-column label="备料人" align="center" width="80"> <el-table-column label="备料人" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.采购员 }} {{ scope.row.采购员 }}
</template> </template>
@@ -106,17 +87,15 @@
{{ scope.row.下单日期 ? scope.row.下单日期.split(' ')[0] : '' }} {{ scope.row.下单日期 ? scope.row.下单日期.split(' ')[0] : '' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="到货时间" align="center" width="100">
label="到货时间" <template slot-scope="scope">
align="center" {{ scope.row.日期 ? scope.row.日期.split(' ')[0] : '' }}
width="100"> </template>
<template slot-scope="scope">{{ scope.row.日期 ? scope.row.日期.split(' ')[0] : '' }}</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="结算时间" align="center" width="100">
label="结算时间" <template slot-scope="scope">
align="center" {{ scope.row.开票时间 ? scope.row.开票时间.split(' ')[0] : '' }}
width="100"> </template>
<template slot-scope="scope">{{ scope.row.开票时间 ? scope.row.开票时间.split(' ')[0] : '' }}</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="block" style="margin-top: 10px;"> <div class="block" style="margin-top: 10px;">
@@ -134,7 +113,7 @@
</template> </template>
<script> <script>
import { searchSupplier, searchTable } from '@/api/WorkshopProcurement/OutsourcingMaterialsSearch' import { searchSupplier, searchTable, HandleNumber } from '@/api/WorkshopProcurement/OutsourcingMaterialsSearch'
export default { export default {
name: 'Index', name: 'Index',
data() { data() {
@@ -202,9 +181,12 @@ export default {
}, },
created() { created() {
this.fetchData() this.fetchData()
// this.getTableData() this.HandleNumber()
}, },
methods: { methods: {
HandleNumber() {
HandleNumber()
},
formatJson(column, tableData) { formatJson(column, tableData) {
return tableData.map(v => column.map(j => { return tableData.map(v => column.map(j => {
return v[j] return v[j]