|
@@ -7,8 +7,8 @@
|
|
<div class="left">
|
|
<div class="left">
|
|
<div class="left" style="margin-bottom: 15px;">
|
|
<div class="left" style="margin-bottom: 15px;">
|
|
<el-radio-group v-model="tableType" class="other-radio" @change="changeSignType">
|
|
<el-radio-group v-model="tableType" class="other-radio" @change="changeSignType">
|
|
- <el-radio-button label="com">公司</el-radio-button>
|
|
|
|
- <el-radio-button label="person">个人</el-radio-button>
|
|
|
|
|
|
+ <el-radio-button v-power="'company'" label="com">公司</el-radio-button>
|
|
|
|
+ <el-radio-button v-power="'individual'" label="person">个人</el-radio-button>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -34,7 +34,7 @@
|
|
</div>
|
|
</div>
|
|
<div style="margin-bottom: -5px;">
|
|
<div style="margin-bottom: -5px;">
|
|
<el-input
|
|
<el-input
|
|
- v-model="search.name"
|
|
|
|
|
|
+ v-model="search.keyword"
|
|
style="width: 300px"
|
|
style="width: 300px"
|
|
:placeholder="tableType == 'com' ? '请输入公司名称/统一社会信用代码' : '请输入姓名/证件号码'"
|
|
:placeholder="tableType == 'com' ? '请输入公司名称/统一社会信用代码' : '请输入姓名/证件号码'"
|
|
clearable
|
|
clearable
|
|
@@ -43,8 +43,14 @@
|
|
</div>
|
|
</div>
|
|
<div class="leftBtn" style="margin-bottom: -5px;">
|
|
<div class="leftBtn" style="margin-bottom: -5px;">
|
|
<el-button type="primary" @click="fetchData">查询</el-button>
|
|
<el-button type="primary" @click="fetchData">查询</el-button>
|
|
- <el-button v-if="tableType === 'person'" type="primary" @click="handlerOperate('addPerson', '')">新增</el-button>
|
|
|
|
- <el-button v-if="tableType === 'com'" type="primary" @click="handlerOperate('addCompany', '')">新增</el-button>
|
|
|
|
|
|
+ <template v-if="tableType === 'person'">
|
|
|
|
+ <el-button v-power="'individualAdd'" type="primary" @click="handlerOperate('addPerson', '')">新增</el-button>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
|
|
+ <template v-if="tableType === 'com'">
|
|
|
|
+ <el-button v-power="'companyAuthAddDetail'" type="primary" @click="handlerOperate('addCompany', '')">新增</el-button>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -68,9 +74,10 @@
|
|
<tr><th>身份证号:</th><td colspan="5">{{ comDetail.legal }}</td></tr>
|
|
<tr><th>身份证号:</th><td colspan="5">{{ comDetail.legal }}</td></tr>
|
|
<tr><th>手机号:</th><td colspan="5">{{ comDetail.legalMobile }}</td></tr>
|
|
<tr><th>手机号:</th><td colspan="5">{{ comDetail.legalMobile }}</td></tr>
|
|
</table>
|
|
</table>
|
|
- <template slot="footer">
|
|
|
|
|
|
+
|
|
|
|
+ <div class="submit-btn">
|
|
<el-button type="normal" @click="$refs.comDetail.show = false">关闭</el-button>
|
|
<el-button type="normal" @click="$refs.comDetail.show = false">关闭</el-button>
|
|
- </template>
|
|
|
|
|
|
+ </div>
|
|
</cy-dialog>
|
|
</cy-dialog>
|
|
|
|
|
|
<cy-dialog ref="personDetail" title="个人信息">
|
|
<cy-dialog ref="personDetail" title="个人信息">
|
|
@@ -188,7 +195,7 @@ import { mapGetters } from 'vuex'
|
|
import signComTable from './signComTable'
|
|
import signComTable from './signComTable'
|
|
import signPersonTable from './signPersonTable'
|
|
import signPersonTable from './signPersonTable'
|
|
import request from '@/utils/request'
|
|
import request from '@/utils/request'
|
|
-import { refreshAuthLink, getESignPersonalList, getESignCompanyList, getESignPersonalDetails, addESignPersonal, updateESignPersonal, addCompany } from '@/api/enterpriseManage/eSign'
|
|
|
|
|
|
+import { refreshAuthLink, getESignPersonalList, getESignCompanyList, getESignPersonalDetails, addESignPersonal, updateESignPersonal, addCompany, getAuthInfo } from '@/api/enterpriseManage/eSign'
|
|
import { getEnterpriseInspectionInfo } from '@/api/dictionary'
|
|
import { getEnterpriseInspectionInfo } from '@/api/dictionary'
|
|
export default {
|
|
export default {
|
|
name: 'EnterpriseManagement',
|
|
name: 'EnterpriseManagement',
|
|
@@ -201,7 +208,7 @@ export default {
|
|
loading: false,
|
|
loading: false,
|
|
tableType: 'com',
|
|
tableType: 'com',
|
|
search: {
|
|
search: {
|
|
- name: '',
|
|
|
|
|
|
+ keyword: '',
|
|
status: ''
|
|
status: ''
|
|
},
|
|
},
|
|
tableData: [],
|
|
tableData: [],
|
|
@@ -318,7 +325,7 @@ export default {
|
|
this.$refs.comInfoRef.show = true
|
|
this.$refs.comInfoRef.show = true
|
|
break
|
|
break
|
|
case 'comUrlDetail':
|
|
case 'comUrlDetail':
|
|
- this.getComDetail(row.socialCreditCode)
|
|
|
|
|
|
+ this.getComDetail(row.id)
|
|
break
|
|
break
|
|
case 'createComUrl':
|
|
case 'createComUrl':
|
|
this.createUrl(row.id, 'com')
|
|
this.createUrl(row.id, 'com')
|
|
@@ -326,12 +333,6 @@ export default {
|
|
case 'createPersonUrl':
|
|
case 'createPersonUrl':
|
|
this.createUrl(row.id, 'person')
|
|
this.createUrl(row.id, 'person')
|
|
break
|
|
break
|
|
- case 'comUrlDelete':
|
|
|
|
- this.deleteUrl(row.id, 'com')
|
|
|
|
- break
|
|
|
|
- case 'personUrlDelete':
|
|
|
|
- this.deleteUrl(row.id, 'person')
|
|
|
|
- break
|
|
|
|
case 'copyUrl':
|
|
case 'copyUrl':
|
|
this.copyUrl(row.shortAuthUrl)
|
|
this.copyUrl(row.shortAuthUrl)
|
|
break
|
|
break
|
|
@@ -342,7 +343,7 @@ export default {
|
|
this.refreshAuthLink(row.id)
|
|
this.refreshAuthLink(row.id)
|
|
break
|
|
break
|
|
case 'refreshComUrl':
|
|
case 'refreshComUrl':
|
|
- this.refreshSignStatus(row.fddCustomerId, 'com')
|
|
|
|
|
|
+ this.refreshSignStatus(row.id, 'com')
|
|
break
|
|
break
|
|
case 'refreshPersonUrl':
|
|
case 'refreshPersonUrl':
|
|
this.refreshSignStatus(row.id, 'person')
|
|
this.refreshSignStatus(row.id, 'person')
|
|
@@ -359,48 +360,24 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
- getComDetail(fddCustomerId) {
|
|
|
|
- request({
|
|
|
|
- url: '/purchContract/confirm/getAuthInfo',
|
|
|
|
- method: 'post',
|
|
|
|
- data: {
|
|
|
|
- fddCustomerId
|
|
|
|
- }
|
|
|
|
- }).then(({ data }) => {
|
|
|
|
- this.comDetail = { ...data }
|
|
|
|
|
|
+ getComDetail(id) {
|
|
|
|
+ getAuthInfo({ id }).then(({ data }) => {
|
|
|
|
+ this.comDetail = data
|
|
this.$refs.comDetail.show = true
|
|
this.$refs.comDetail.show = true
|
|
})
|
|
})
|
|
},
|
|
},
|
|
createUrl(id, type) {
|
|
createUrl(id, type) {
|
|
- const url = type === 'com' ? '/customer/flushUrlByCompany' : '/electronic/signature/personal/flushUrl'
|
|
|
|
|
|
+ const url = type === 'com' ? '/electronic/signature/company/flushUrl' : '/electronic/signature/personal/flushUrl'
|
|
request({
|
|
request({
|
|
url,
|
|
url,
|
|
method: 'get',
|
|
method: 'get',
|
|
- params: { id }
|
|
|
|
|
|
+ params: { Loading: true, id }
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.$message.success('刷新成功')
|
|
this.$message.success('刷新成功')
|
|
this.fetchData()
|
|
this.fetchData()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
- deleteUrl(id, type) {
|
|
|
|
- this.$confirm('确认删除吗?', '删除', {
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- type: 'warning'
|
|
|
|
- }).then(() => {
|
|
|
|
- const url = type === 'com' ? '/customer/deleteCustomer' : '/electronic/signature/personal/delete'
|
|
|
|
- request({
|
|
|
|
- url,
|
|
|
|
- method: 'post',
|
|
|
|
- params: { id }
|
|
|
|
- }).then(() => {
|
|
|
|
- this.$message.success('删除成功')
|
|
|
|
- this.fetchData()
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
getPersonDetail(id, type) {
|
|
getPersonDetail(id, type) {
|
|
if (type !== 'add') {
|
|
if (type !== 'add') {
|
|
getESignPersonalDetails({ id }).then(({ data }) => {
|
|
getESignPersonalDetails({ id }).then(({ data }) => {
|
|
@@ -411,7 +388,6 @@ export default {
|
|
enterpriseCardPhotoList: cardPhotoFile ? [cardPhotoFile] : [],
|
|
enterpriseCardPhotoList: cardPhotoFile ? [cardPhotoFile] : [],
|
|
enterpriseCardRevPhotoList: cardRevPhotoFile ? [cardRevPhotoFile] : []
|
|
enterpriseCardRevPhotoList: cardRevPhotoFile ? [cardRevPhotoFile] : []
|
|
}
|
|
}
|
|
- console.log(this.personDetailForm, 888888)
|
|
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
this.personDetailForm = JSON.parse(JSON.stringify(this.deepPersonDetailForm))
|
|
this.personDetailForm = JSON.parse(JSON.stringify(this.deepPersonDetailForm))
|
|
@@ -481,9 +457,9 @@ export default {
|
|
|
|
|
|
refreshSignStatus(id, type) {
|
|
refreshSignStatus(id, type) {
|
|
request({
|
|
request({
|
|
- url: type === 'com' ? '/purchContract/confirm/getAuthStatus' : '/electronic/signature/personal/flush',
|
|
|
|
|
|
+ url: type === 'com' ? '/electronic/signature/company/flushInfoFromSop' : '/electronic/signature/personal/flush',
|
|
method: 'get',
|
|
method: 'get',
|
|
- params: type === 'com' ? { customerId: id } : { id }
|
|
|
|
|
|
+ params: { Loading: true, id }
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.$message.success('刷新成功')
|
|
this.$message.success('刷新成功')
|
|
this.fetchData()
|
|
this.fetchData()
|
|
@@ -513,6 +489,7 @@ export default {
|
|
addCompany(params).then(() => {
|
|
addCompany(params).then(() => {
|
|
this.$refs.comInfoRef.show = false
|
|
this.$refs.comInfoRef.show = false
|
|
this.$message.success('添加成功')
|
|
this.$message.success('添加成功')
|
|
|
|
+ this.fetchData()
|
|
return
|
|
return
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|