|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
- <el-button type="text" size="mini" @click="onshow" :disabled="!tool.checkAuth($route.name,'recovery')">恢 复</el-button>
|
|
|
|
|
|
|
+ <el-button type="text" size="mini" @click="queryRule" :disabled="!tool.checkAuth($route.name,'recovery')">恢 复</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -8,7 +8,64 @@
|
|
|
export default {
|
|
export default {
|
|
|
name: "recovery",
|
|
name: "recovery",
|
|
|
props:["sys_object","ownerid"],
|
|
props:["sys_object","ownerid"],
|
|
|
|
|
+ data(){
|
|
|
|
|
+ return {
|
|
|
|
|
+ dialogTableVisible:false,
|
|
|
|
|
+ list:[],
|
|
|
|
|
+ tablecols:[],
|
|
|
|
|
+ total:0,
|
|
|
|
|
+ currentPage:0,
|
|
|
|
|
+ param:{
|
|
|
|
|
+ "id": 20221208172002,
|
|
|
|
|
+ "pageNumber": 1,
|
|
|
|
|
+ "pageSize": 999,
|
|
|
|
|
+ "content": {
|
|
|
|
|
+ "sa_customersid":"",
|
|
|
|
|
+ "enterprisename":"",
|
|
|
|
|
+ "taxno":"",
|
|
|
|
|
+ "address":""
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ fields1:[],
|
|
|
|
|
+ fields2:[],
|
|
|
|
|
+ fields3:[],
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
methods:{
|
|
methods:{
|
|
|
|
|
+ /*查询规则*/
|
|
|
|
|
+ async queryRule(){
|
|
|
|
|
+ const res = await this.$api.requested({
|
|
|
|
|
+ "id": "20230410090502",
|
|
|
|
|
+ "content": {},
|
|
|
|
|
+ })
|
|
|
|
|
+ this.fields1 = res.data.custcheckrule.fields1
|
|
|
|
|
+ this.fields2 = res.data.custcheckrule.fields2
|
|
|
|
|
+ this.fields3 = res.data.custcheckrule.fields3
|
|
|
|
|
+ this.queryData()
|
|
|
|
|
+ },
|
|
|
|
|
+ async queryData(){
|
|
|
|
|
+ this.fields1.forEach(item=>{
|
|
|
|
|
+ this.param.content[item] = this.data[item] || ""
|
|
|
|
|
+ })
|
|
|
|
|
+ this.fields2.forEach(item=>{
|
|
|
|
|
+ this.param.content[item] = this.data[item] || ""
|
|
|
|
|
+ })
|
|
|
|
|
+ this.fields3.forEach(item=>{
|
|
|
|
|
+ this.param.content[item] = this.data[item] || ""
|
|
|
|
|
+ })
|
|
|
|
|
+ this.param.content.sa_customersid = this.data.sa_customersid
|
|
|
|
|
+ const res = await this.$api.requested(this.param)
|
|
|
|
|
+ this.list = res.data
|
|
|
|
|
+ this.total = res.total
|
|
|
|
|
+ this.currentPage = res.pageNumber
|
|
|
|
|
+ console.log(res.data,'是否重复')
|
|
|
|
|
+ if (res.data.length > 0){
|
|
|
|
|
+ this.dialogTableVisible = true
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.onshow()
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
onshow() {
|
|
onshow() {
|
|
|
this.$confirm('数据恢复至原账号原位置,是否继续?', '提示', {
|
|
this.$confirm('数据恢复至原账号原位置,是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|