|
@@ -42,6 +42,7 @@
|
|
|
</vab-query-form-top-panel>
|
|
</vab-query-form-top-panel>
|
|
|
<vab-query-form-left-panel :span="12">
|
|
<vab-query-form-left-panel :span="12">
|
|
|
<el-button icon="el-icon-plus" type="primary" @click="handleEdit()">新建</el-button>
|
|
<el-button icon="el-icon-plus" type="primary" @click="handleEdit()">新建</el-button>
|
|
|
|
|
+ <el-button icon="el-icon-refresh" type="primary" @click="handleTransfer()">转移</el-button>
|
|
|
<el-button icon="el-icon-delete" type="danger" @click="handleDelete()">删除</el-button>
|
|
<el-button icon="el-icon-delete" type="danger" @click="handleDelete()">删除</el-button>
|
|
|
</vab-query-form-left-panel>
|
|
</vab-query-form-left-panel>
|
|
|
<vab-query-form-right-panel :span="12">
|
|
<vab-query-form-right-panel :span="12">
|
|
@@ -79,11 +80,10 @@
|
|
|
<span v-else>{{ row[item.prop] }}</span>
|
|
<span v-else>{{ row[item.prop] }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" fixed="right" label="操作" width="120px">
|
|
|
|
|
|
|
+ <el-table-column align="center" fixed="right" label="操作" width="90px">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="handleEdit(scope.row)">编辑</el-button>
|
|
<el-button type="text" @click="handleEdit(scope.row)">编辑</el-button>
|
|
|
<el-button type="text" @click="handleDelete(scope.row)">删除</el-button>
|
|
<el-button type="text" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
- <el-button type="text" @click="handleTransfer(scope.row)">转移</el-button>
|
|
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -123,7 +123,7 @@
|
|
|
{ id: 2, label: '已拒绝' },
|
|
{ id: 2, label: '已拒绝' },
|
|
|
{ id: 3, label: '已通过' },
|
|
{ id: 3, label: '已通过' },
|
|
|
],
|
|
],
|
|
|
- contractId: 0, //当前合同id
|
|
|
|
|
|
|
+ contractId: [], //当前合同id
|
|
|
listLoading: false,
|
|
listLoading: false,
|
|
|
layout: 'total, sizes, prev, pager, next, jumper',
|
|
layout: 'total, sizes, prev, pager, next, jumper',
|
|
|
list: [],
|
|
list: [],
|
|
@@ -294,15 +294,14 @@
|
|
|
},
|
|
},
|
|
|
// 转移合同
|
|
// 转移合同
|
|
|
handleTransfer(row) {
|
|
handleTransfer(row) {
|
|
|
- this.contractId = row.id
|
|
|
|
|
|
|
+ this.contractId = row ? [row.id] : this.selectRows
|
|
|
|
|
+ if (!this.contractId[0]) return this.$baseMessage('请先选择转移的数据', 'warning')
|
|
|
this.$refs.transfer.open()
|
|
this.$refs.transfer.open()
|
|
|
},
|
|
},
|
|
|
// 合同删除
|
|
// 合同删除
|
|
|
handleDelete(row = null) {
|
|
handleDelete(row = null) {
|
|
|
let ids = row ? [row.id] : this.selectRows
|
|
let ids = row ? [row.id] : this.selectRows
|
|
|
- if (!ids[0]) {
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (!ids[0]) return this.$baseMessage('请先选择删除的数据', 'warning')
|
|
|
this.$confirm('确认删除?', '提示', {
|
|
this.$confirm('确认删除?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|