零件图维护
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-card style="width: 580px">
|
||||
<el-row style="width: 580px">
|
||||
<el-card style="width: 645px">
|
||||
<el-row style="width: 645px">
|
||||
<el-input v-model="partNumber" placeholder="零件图号" style="width: 180px" size="small" clearable/>
|
||||
<el-button icon="el-icon-search" type="primary" plain size="small" @click="pageCurrent = 1;pageSize = 10;getTableData()">查询</el-button>
|
||||
<el-upload
|
||||
@@ -18,8 +18,8 @@
|
||||
</el-upload>
|
||||
</el-row>
|
||||
</el-card>
|
||||
<el-card style="width: 580px">
|
||||
<el-table v-loading="loading" :data="tableData" border size="mini" style="width: 555px;height: 700px" height="520">
|
||||
<el-card style="width: 645px">
|
||||
<el-table v-loading="loading" :data="tableData" border size="mini" style="width: 635px;height: 700px" height="520">
|
||||
<el-table-column label="序号" align="center" type="index" width="50"/>
|
||||
<el-table-column label="零件图号" align="center" width="180px">
|
||||
<template slot-scope="scope">
|
||||
@@ -31,11 +31,16 @@
|
||||
{{ scope.row.suffix }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="上传时间" align="center" width="150px">
|
||||
<el-table-column label="导入时间" align="center" width="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.上传时间.split(' ')[0] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="导入人" align="center" width="80px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.导入人 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="80px" label="零件图纸" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button circle icon="el-icon-search" size="small" @click="getNum(scope.row)"/>
|
||||
@@ -78,6 +83,7 @@
|
||||
import request from '@/utils/request'
|
||||
import { getTableData } from '@/api/TechnologyCenter/PartDrawingMaintenance'
|
||||
import { MESUploadFile, MESDownloadFile } from '@/utils/request'
|
||||
import { mapGetters } from 'vuex'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -98,6 +104,14 @@ export default {
|
||||
fileList: []
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters([
|
||||
'token',
|
||||
'sidebar',
|
||||
'name',
|
||||
'id' // 人员编号
|
||||
])
|
||||
},
|
||||
created() {
|
||||
this.getTableData()
|
||||
},
|
||||
@@ -123,7 +137,7 @@ export default {
|
||||
},
|
||||
// 上传
|
||||
batchImportOfDrawings() {
|
||||
this.action = `${MESUploadFile}?&num=1&tableName=机加工MES_零件图PDF表&type=1`
|
||||
this.action = `${MESUploadFile}?&num=1&tableName=机加工MES_零件图PDF表&type=1&UploaderName=${this.id}`
|
||||
},
|
||||
uploadSuccess(res, file, fileList) {
|
||||
this.getTableData()
|
||||
|
||||
Reference in New Issue
Block a user