外协部分样式

This commit is contained in:
Vergil
2020-02-19 16:18:50 +08:00
parent e3f9dcaa1d
commit 529f652458
5 changed files with 38 additions and 98 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="app-container">
<el-card style="width: 65%">
<el-card>
<div style="margin-top: 7px; margin-bottom: 7px">
<span>外协厂家</span>
<el-input v-model="supplierNameValue" size="small" placeholder="外协厂家或零件图号" style="width: 180px" clearable/>
@@ -18,47 +18,29 @@
<el-button type="primary" class="el-icon-download" size="small" style="margin: 10px 0 0 10px" plain @click="exportExcel">导出</el-button>
</div>
</el-card>
<el-card style="width: 70%">
<el-table
v-loading="loading"
:data="tableData"
highlight-current-row
border
stripe
size="mini"
style="width: 100%"
height="760">
<el-table-column
label="序号"
align="center"
type="index"
width="50"/>
<el-table-column
label="外协状态"
align="center"
width="70px">
<el-card>
<el-table v-loading="loading" :data="tableData" highlight-current-row border stripe size="mini" height="700" style="width: 1210px">
<el-table-column label="序号" align="center" type="index" width="50"/>
<el-table-column label="外协状态" align="center" width="90px">
<template slot-scope="scope">
<el-tag v-if="Number(scope.row.到货状态)!==1" type="warning" size="mini">未到</el-tag>
<el-tag v-if="Number(scope.row.到货状态)===1" type="success" size="mini">已到</el-tag>
</template>
</el-table-column>
<el-table-column
label="项目名称"
align="center"
width="140px">
<template slot-scope="scope">{{ scope.row.项目名称 }}</template>
<el-table-column label="项目名称" align="center" width="140px">
<template slot-scope="scope">
{{ scope.row.项目名称 }}
</template>
</el-table-column>
<el-table-column
label="零件图号"
align="center"
width="160px">
<template slot-scope="scope">{{ scope.row.零件图号 }}</template>
<el-table-column label="零件图号" align="center" width="160px">
<template slot-scope="scope">
{{ scope.row.零件图号 }}
</template>
</el-table-column>
<el-table-column
label="零件名称"
align="center"
width="120px">
<template slot-scope="scope">{{ scope.row.零件名称 }}</template>
<el-table-column label="零件名称" align="center" width="120px">
<template slot-scope="scope">
{{ scope.row.零件名称 }}
</template>
</el-table-column>
<el-table-column label="数量" align="center" width="70">
<template slot-scope="scope">
@@ -70,23 +52,20 @@
{{ scope.row.外协工序 }}
</template>
</el-table-column>
<el-table-column
label="外协厂家"
align="center"
width="160px">
<template slot-scope="scope">{{ scope.row.外协厂家名称 }}</template>
<el-table-column label="外协厂家" align="center" width="160px">
<template slot-scope="scope">
{{ scope.row.外协厂家名称 }}
</template>
</el-table-column>
<el-table-column
label="外协单号"
align="center"
width="200">
<template slot-scope="scope">{{ scope.row.表单号 }}</template>
<el-table-column label="外协单号" align="center" width="200">
<template slot-scope="scope">
{{ scope.row.表单号 }}
</template>
</el-table-column>
<el-table-column
label="外协日期"
align="center"
width="100">
<template slot-scope="scope">{{ scope.row.任务下达日期.substr(0,10) }}</template>
<el-table-column label="外协日期" align="center" width="100">
<template slot-scope="scope">
{{ scope.row.任务下达日期.substr(0,10) }}
</template>
</el-table-column>
</el-table>
<div class="block" style="margin-top: 10px;">