This commit is contained in:
liushuai
2020-04-09 18:35:58 +08:00
parent dc0b9cc5d9
commit 476a105bda
18 changed files with 408 additions and 443 deletions

View File

@@ -37,12 +37,15 @@
<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">
<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>
<template slot-scope="scope">{{ scope.row.备料状态 }}</template>
</el-table-column>
<el-table-column
label="供应商"
@@ -58,7 +61,7 @@
label="物料编码"
align="center"
width="180px">
<template slot-scope="scope">{{ scope.row.物料编码 }}</template>
<template slot-scope="scope">{{ scope.row.物料编码 ? scope.row.物料编码 : scope.row.零件图号 }}</template>
</el-table-column>
<el-table-column
label="物料名称"
@@ -76,6 +79,12 @@
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>
<el-table-column label="备料件数" align="center" width="100">
<template slot-scope="scope">
{{ scope.row.采购数量 }}
@@ -162,13 +171,22 @@ export default {
MaterialsValue: '',
Materials: [{
value: 0,
label: '未到'
label: '已结'
}, {
value: 1,
label: '已到'
}, {
value: 2,
label: '已结'
label: '未到'
}, {
value: 3,
label: '未采'
}, {
value: 4,
label: '自家'
}, {
value: 5,
label: '未分配'
}],
loading: false,
total: 0,