外购备料查询
This commit is contained in:
@@ -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: '备料管理_外购备料_处理已完成未修改数据'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -37,66 +37,47 @@
|
||||
<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-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">
|
||||
<template slot-scope="scope">{{ scope.row.备料状态 }}</template>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.备料状态 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="供应商"
|
||||
align="center"
|
||||
min-width="210px"
|
||||
width="300"
|
||||
prop="供应商名称"
|
||||
sortable="custom"
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">{{ scope.row.供应商名称 }}</template>
|
||||
<el-table-column label="供应商" align="center" min-width="210px" width="300" prop="供应商名称" sortable="custom" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.备料状态==='自家' ? '自家' : scope.row.供应商名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="物料编码"
|
||||
align="center"
|
||||
width="180px">
|
||||
<template slot-scope="scope">{{ scope.row.物料编码 ? scope.row.物料编码 : scope.row.零件图号 }}</template>
|
||||
<el-table-column label="物料编码" align="center" width="180px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料编码 ? scope.row.物料编码 : scope.row.零件图号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="物料名称"
|
||||
align="center"
|
||||
prop="零件名称"
|
||||
sortable="custom"
|
||||
width="120px">
|
||||
<template slot-scope="scope">{{ scope.row.零件名称 }}</template>
|
||||
<el-table-column label="物料名称" align="center" prop="零件名称" sortable="custom" width="120px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="材料"
|
||||
width="90"
|
||||
prop="材料"
|
||||
sortable="custom"
|
||||
align="center">
|
||||
<template slot-scope="scope">{{ scope.row.材料 }}</template>
|
||||
<el-table-column label="材料" width="90" prop="材料" sortable="custom" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.材料 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="计划件数"
|
||||
align="center"
|
||||
width="100">
|
||||
<template slot-scope="scope">{{ scope.row.批次数量 }}</template>
|
||||
<el-table-column label="计划件数" align="center" width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.批次数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备料件数" align="center" width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.采购数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="到货件数"
|
||||
align="center"
|
||||
width="100">
|
||||
<template slot-scope="scope">{{ scope.row.到货数量 }}</template>
|
||||
<el-table-column label="到货件数" align="center" width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.到货数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备料人" align="center" width="80">
|
||||
<el-table-column label="备料人" align="center" width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.采购员 }}
|
||||
</template>
|
||||
@@ -106,17 +87,15 @@
|
||||
{{ scope.row.下单日期 ? scope.row.下单日期.split(' ')[0] : '' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="到货时间"
|
||||
align="center"
|
||||
width="100">
|
||||
<template slot-scope="scope">{{ scope.row.日期 ? scope.row.日期.split(' ')[0] : '' }}</template>
|
||||
<el-table-column label="到货时间" align="center" width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.日期 ? scope.row.日期.split(' ')[0] : '' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="结算时间"
|
||||
align="center"
|
||||
width="100">
|
||||
<template slot-scope="scope">{{ scope.row.开票时间 ? scope.row.开票时间.split(' ')[0] : '' }}</template>
|
||||
<el-table-column label="结算时间" align="center" width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.开票时间 ? scope.row.开票时间.split(' ')[0] : '' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block" style="margin-top: 10px;">
|
||||
@@ -134,7 +113,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { searchSupplier, searchTable } from '@/api/WorkshopProcurement/OutsourcingMaterialsSearch'
|
||||
import { searchSupplier, searchTable, HandleNumber } from '@/api/WorkshopProcurement/OutsourcingMaterialsSearch'
|
||||
export default {
|
||||
name: 'Index',
|
||||
data() {
|
||||
@@ -202,9 +181,12 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.fetchData()
|
||||
// this.getTableData()
|
||||
this.HandleNumber()
|
||||
},
|
||||
methods: {
|
||||
HandleNumber() {
|
||||
HandleNumber()
|
||||
},
|
||||
formatJson(column, tableData) {
|
||||
return tableData.map(v => column.map(j => {
|
||||
return v[j]
|
||||
|
||||
Reference in New Issue
Block a user