Commit 4d8143ee authored by 吴冠's avatar 吴冠

审核

parent 08bb019b
......@@ -235,4 +235,12 @@ export function getErrorInfo(id){
url:`/company/detail/${id}`,
method:'get',
})
}
\ No newline at end of file
}
/* 审核失败后提交 */
export function getPutInfo(data){
return request({
url:'/company/edit',
method:'post',
data:data
})
}
\ No newline at end of file
......@@ -671,6 +671,7 @@ import Identify from "~/components/identify";
import citySelect from "~/components/citySelect";
import Cookies from "js-cookie"
import {getErrorInfo} from '~/common/list.js'
import {getPutInfo} from '~/common/list.js'
export default {
components: {
Identify,
......@@ -800,6 +801,7 @@ export default {
};
return {
comId:'',
Verification:true,
timer:60,
centerDialogVisible: false,
......@@ -1104,10 +1106,11 @@ export default {
this.perfectForm.contactAddress = data.contactAddress
this.perfectForm.socialCode = data.socialCode
this.perfectForm.companyNature = data.companyNature
this.perfectForm.industryType = data.industryName
this.perfectForm.industryType = data.industryType
this.perfectForm.bankName = data.bankName
this.perfectForm.registeredCapital = data.registeredCapital
this.perfectForm.businessScope = data.businessScope
this.comId = data.id/* 储存公司Id */
for(let item of data.fileList){
item.url=item.fileUrl
item.name=item.fileName
......@@ -1124,10 +1127,7 @@ export default {
this.files.push(item)
}
}
/* this.cardimg = data.fileList[2].fileUrl */
/* this.perfectForm.businessScope = data.businessScope */
Cookies.remove("companyErrorId")
Cookies.remove("auditStatus")
},
prev(){
this.active--
......@@ -1231,15 +1231,27 @@ export default {
Object.assign(perfectForm, form);
perfectForm.sysUserPO = adminform;
perfectForm.fileList = file;
const { data, code, msg } = await register(perfectForm);
if (code === 200) {
this.$message.success(msg);
this.active++;
//储存步骤二数据
Cookies.set("dataform",this.perfectForm)
/* 如果是审核失败后请求 则请求编辑接口 */
if(Cookies.get("auditStatus")==1){
perfectForm.id = this.comId
var { data, code, msg } = await getPutInfo(perfectForm);
if (code === 200) {
this.$message.success(msg);
this.active++;
}else{
this.$message.error(error)
}
}else{
this.$message.error(error)
var { data, code, msg } = await register(perfectForm);
if (code === 200) {
this.$message.success(msg);
this.active++;
}else{
this.$message.error(error)
}
}
Cookies.remove("companyErrorId")
Cookies.remove("auditStatus")
}
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment