|
@@ -235,7 +235,7 @@ export default {
|
|
form: {
|
|
form: {
|
|
certificateType: 1,
|
|
certificateType: 1,
|
|
certificateUserName: '',
|
|
certificateUserName: '',
|
|
- certificateUserName: '',//所持证书者身份证ID
|
|
|
|
|
|
+ certificateId: '',//所持证书者身份证ID
|
|
enterpriseUnifiedCode: '',//企业统一社会信用代码
|
|
enterpriseUnifiedCode: '',//企业统一社会信用代码
|
|
certificateNumber: '',
|
|
certificateNumber: '',
|
|
certificatePassword: '',
|
|
certificatePassword: '',
|
|
@@ -263,7 +263,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- //#region
|
|
|
|
|
|
+ //#region
|
|
cancel () {//取消按钮
|
|
cancel () {//取消按钮
|
|
this.$router.push('/certificate/list')
|
|
this.$router.push('/certificate/list')
|
|
},
|
|
},
|
|
@@ -275,6 +275,7 @@ export default {
|
|
certificateUserName: this.form.certificateUserName,
|
|
certificateUserName: this.form.certificateUserName,
|
|
certificateNumber: this.form.certificateNumber,
|
|
certificateNumber: this.form.certificateNumber,
|
|
certificatePassword: this.form.certificatePassword,
|
|
certificatePassword: this.form.certificatePassword,
|
|
|
|
+ certificateId: this.form.certificateId,
|
|
}
|
|
}
|
|
if (this.form.certificateFileUrl[0].name) {
|
|
if (this.form.certificateFileUrl[0].name) {
|
|
fromData.certificateFileUrl = await this.addFileInfo(this.form.certificateFileUrl[0].raw)
|
|
fromData.certificateFileUrl = await this.addFileInfo(this.form.certificateFileUrl[0].raw)
|
|
@@ -363,7 +364,6 @@ export default {
|
|
//#region //接口
|
|
//#region //接口
|
|
async getById () {//获取详细信息
|
|
async getById () {//获取详细信息
|
|
const { data: res } = await getById({ id: this.$route.query.id })
|
|
const { data: res } = await getById({ id: this.$route.query.id })
|
|
- console.log(res);
|
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.form = res.data
|
|
this.form = res.data
|
|
this.form.certificateFileUrl = [{ raw: res.data.certificateFileUrl }]
|
|
this.form.certificateFileUrl = [{ raw: res.data.certificateFileUrl }]
|
|
@@ -372,7 +372,6 @@ export default {
|
|
},
|
|
},
|
|
async save (da) {//新增
|
|
async save (da) {//新增
|
|
const { data: res } = await save(da)
|
|
const { data: res } = await save(da)
|
|
- console.log(res);
|
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.$message({
|
|
this.$message({
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -383,21 +382,18 @@ export default {
|
|
},
|
|
},
|
|
async findUserByName () { //关联用户
|
|
async findUserByName () { //关联用户
|
|
const { data: res } = await findUserByName()
|
|
const { data: res } = await findUserByName()
|
|
- console.log(res);
|
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.userData = res.data
|
|
this.userData = res.data
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async queryRole () { //获取角色方
|
|
async queryRole () { //获取角色方
|
|
const { data: res } = await queryRole()
|
|
const { data: res } = await queryRole()
|
|
- console.log(res);
|
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.ParticipationConstruction = res.data
|
|
this.ParticipationConstruction = res.data
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async queryProjectAndContract () {//获取项目和合同段
|
|
async queryProjectAndContract () {//获取项目和合同段
|
|
const { data: res } = await queryProjectAndContract()
|
|
const { data: res } = await queryProjectAndContract()
|
|
- console.log(res);
|
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.projectMeiju = res.data
|
|
this.projectMeiju = res.data
|
|
}
|
|
}
|
|
@@ -406,14 +402,12 @@ export default {
|
|
let fromData = new FormData();
|
|
let fromData = new FormData();
|
|
fromData.append('file', file);
|
|
fromData.append('file', file);
|
|
const { data: res } = await addFileInfo(fromData)
|
|
const { data: res } = await addFileInfo(fromData)
|
|
- console.log(res);
|
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
return res.data.link
|
|
return res.data.link
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async update (da) {//编辑保存接口
|
|
async update (da) {//编辑保存接口
|
|
const { data: res } = await update(da)
|
|
const { data: res } = await update(da)
|
|
- console.log(res);
|
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.$message({
|
|
this.$message({
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -436,4 +430,4 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
-</style>
|
|
|
|
|
|
+</style>
|