|
@@ -34,29 +34,39 @@
|
|
highlight-current-row @select="handleSelectionChange" @select-all="handleAll">
|
|
highlight-current-row @select="handleSelectionChange" @select-all="handleAll">
|
|
<el-table-column align="center" label="" width="55" type="selection">
|
|
<el-table-column align="center" label="" width="55" type="selection">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" label="合同名称" width="200" prop="name">
|
|
|
|
|
|
+ <el-table-column align="center" label="合同名称" width="210" prop="name">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column label="供应商名称" align="center" width="340" prop="supplierName">
|
|
|
|
|
|
+ <el-table-column label="供应商名称" align="center" width="120" prop="supplierName">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="日期" width="200" align="center">
|
|
|
|
|
|
+ <el-table-column label="日期" width="120" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<i class="el-icon-time" />
|
|
<i class="el-icon-time" />
|
|
<span>{{ scope.row.createdAt }}</span>
|
|
<span>{{ scope.row.createdAt }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<!-- 合同附件 -->
|
|
<!-- 合同附件 -->
|
|
- <el-table-column align="center" label="合同附件" width="800" prop="attachments">
|
|
|
|
|
|
+ <el-table-column align="center" label="合同附件" width="300" prop="picUrls">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <img width="100" height="100" v-for="item in scope.row.attachments" :key="item.id" :src="item" />
|
|
|
|
|
|
+ <img width="100" height="100" v-for="item in scope.row.picUrls" :key="item.id" :src="item" />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<!-- 发票附件 -->
|
|
<!-- 发票附件 -->
|
|
- <!-- 贸易附件 -->
|
|
|
|
|
|
+ <el-table-column align="center" label="发票附件" width="300" prop="invoicePics">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <img width="100" height="100" v-for="item in scope.row.invoicePics" :key="item.id" :src="item" />
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <!-- 贸易合同 -->
|
|
|
|
+ <el-table-column align="center" label="贸易合同" width="400" prop="tradePics">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <img width="100" height="100" v-for="item in scope.row.tradePics" :key="item.id" :src="item" />
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
|
|
<el-table-column align="center" prop="created_at" label="操作" width="250">
|
|
<el-table-column align="center" prop="created_at" label="操作" width="250">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-tag type="primary" style="cursor: pointer; margin-right: 15px" @click="todetail(scope.row.id)">查看详情</el-tag>
|
|
|
|
|
|
+ <el-tag type="primary" style="cursor: pointer; margin-right: 15px" @click="todetail(scope.row.id)">汇票附件</el-tag>
|
|
<el-tag type="primary" style="cursor: pointer; margin-right: 15px" @click="download(scope.row.id)">
|
|
<el-tag type="primary" style="cursor: pointer; margin-right: 15px" @click="download(scope.row.id)">
|
|
下载</el-tag>
|
|
下载</el-tag>
|
|
</template>
|
|
</template>
|
|
@@ -245,16 +255,7 @@
|
|
this.multipleSelection = data;
|
|
this.multipleSelection = data;
|
|
console.log(this.multipleSelection);
|
|
console.log(this.multipleSelection);
|
|
},
|
|
},
|
|
- todetail() {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: "/detail",
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- toindex() {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: "/sucuirtyaudit/index",
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
handleSelectionChange(data) {
|
|
handleSelectionChange(data) {
|
|
this.multipleSelection = data;
|
|
this.multipleSelection = data;
|
|
console.log(this.multipleSelection);
|
|
console.log(this.multipleSelection);
|
|
@@ -263,9 +264,11 @@
|
|
this.multipleSelection = data
|
|
this.multipleSelection = data
|
|
console.log(this.multipleSelection)
|
|
console.log(this.multipleSelection)
|
|
},
|
|
},
|
|
|
|
+ /* 跳转到详情页 */
|
|
|
|
+
|
|
todetail(id) {
|
|
todetail(id) {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- path: '/detail',
|
|
|
|
|
|
+ path: '/attachmentdetail',
|
|
query: {
|
|
query: {
|
|
id: id
|
|
id: id
|
|
}
|
|
}
|
|
@@ -276,25 +279,7 @@
|
|
path: '/sucuirtyaudit/index'
|
|
path: '/sucuirtyaudit/index'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- handleCurrentChange(val) {
|
|
|
|
- this.currentPage = val;
|
|
|
|
- this.getPageData();
|
|
|
|
- },
|
|
|
|
- jumpFirstPage() {
|
|
|
|
- this.$refs.pagination.handleCurrentChange(1);
|
|
|
|
- this.$emit('handleCurrentChange', 1);
|
|
|
|
- },
|
|
|
|
- jumpLastPage() {
|
|
|
|
- let font = this.$refs.pagination
|
|
|
|
- let cpage = Math.ceil(font.total / font.pageSize);
|
|
|
|
- font.handleCurrentChange(cpage);
|
|
|
|
- },
|
|
|
|
- getPageData() {
|
|
|
|
- let start = (this.currentPage - 1) * this.pagesize;
|
|
|
|
- let end = start + this.pagesize;
|
|
|
|
- this.srcList = this.list.slice(start, end);
|
|
|
|
- this.temporaryList = this.srcList;
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
// 下载合同附件zip
|
|
// 下载合同附件zip
|
|
download(id) {
|
|
download(id) {
|
|
let that=this
|
|
let that=this
|