|
@@ -113,6 +113,9 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column align="center" fixed="right" label="操作" width="90px">
|
|
<el-table-column align="center" fixed="right" label="操作" width="90px">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
|
|
+ <el-button v-if="scope.row.approStatus == '10'" type="text" @click="handleApply(scope.row.id)">
|
|
|
|
|
+ 提交审核
|
|
|
|
|
+ </el-button>
|
|
|
<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>
|
|
|
</template>
|
|
</template>
|
|
@@ -130,6 +133,7 @@
|
|
|
<Edit ref="edit" @contractSave="contractSave" />
|
|
<Edit ref="edit" @contractSave="contractSave" />
|
|
|
<!-- 转移合同 -->
|
|
<!-- 转移合同 -->
|
|
|
<Transfer ref="transfer" :contract-id="contractId" @transferSave="contractSave" />
|
|
<Transfer ref="transfer" :contract-id="contractId" @transferSave="contractSave" />
|
|
|
|
|
+ <ApplyContract ref="applyContract" @refresh="queryData" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -139,20 +143,24 @@
|
|
|
import Edit from './components/Edit'
|
|
import Edit from './components/Edit'
|
|
|
import TableTool from '@/components/table/TableTool'
|
|
import TableTool from '@/components/table/TableTool'
|
|
|
import Transfer from './components/Transfer'
|
|
import Transfer from './components/Transfer'
|
|
|
|
|
+ import ApplyContract from './components/ApplyContract'
|
|
|
export default {
|
|
export default {
|
|
|
name: 'OpenSea',
|
|
name: 'OpenSea',
|
|
|
components: {
|
|
components: {
|
|
|
Edit,
|
|
Edit,
|
|
|
TableTool,
|
|
TableTool,
|
|
|
Transfer,
|
|
Transfer,
|
|
|
|
|
+ ApplyContract,
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
height: this.$baseTableHeight(2),
|
|
height: this.$baseTableHeight(2),
|
|
|
approStatusOption: [
|
|
approStatusOption: [
|
|
|
- { id: 1, label: '审批中' },
|
|
|
|
|
- { id: 2, label: '已拒绝' },
|
|
|
|
|
- { id: 3, label: '已通过' },
|
|
|
|
|
|
|
+ { id: '10', label: '待提交审核' },
|
|
|
|
|
+ { id: '20', label: '待审核' },
|
|
|
|
|
+ { id: '30', label: '审核已同意' },
|
|
|
|
|
+ { id: '40', label: '审核已拒绝' },
|
|
|
|
|
+ { id: '50', label: '审核已撤销' },
|
|
|
],
|
|
],
|
|
|
contractId: [], //当前合同id
|
|
contractId: [], //当前合同id
|
|
|
listLoading: false,
|
|
listLoading: false,
|
|
@@ -298,6 +306,10 @@
|
|
|
this.total = res.data.total
|
|
this.total = res.data.total
|
|
|
this.listLoading = false
|
|
this.listLoading = false
|
|
|
},
|
|
},
|
|
|
|
|
+ handleApply(id) {
|
|
|
|
|
+ this.$refs.applyContract.form.id = id
|
|
|
|
|
+ this.$refs.applyContract.visible = true
|
|
|
|
|
+ },
|
|
|
reset() {
|
|
reset() {
|
|
|
this.queryForm = {
|
|
this.queryForm = {
|
|
|
pageNum: 1,
|
|
pageNum: 1,
|