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

审核

parent 08bb019b
...@@ -236,3 +236,11 @@ export function getErrorInfo(id){ ...@@ -236,3 +236,11 @@ export function getErrorInfo(id){
method:'get', method:'get',
}) })
} }
/* 审核失败后提交 */
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"; ...@@ -671,6 +671,7 @@ import Identify from "~/components/identify";
import citySelect from "~/components/citySelect"; import citySelect from "~/components/citySelect";
import Cookies from "js-cookie" import Cookies from "js-cookie"
import {getErrorInfo} from '~/common/list.js' import {getErrorInfo} from '~/common/list.js'
import {getPutInfo} from '~/common/list.js'
export default { export default {
components: { components: {
Identify, Identify,
...@@ -800,6 +801,7 @@ export default { ...@@ -800,6 +801,7 @@ export default {
}; };
return { return {
comId:'',
Verification:true, Verification:true,
timer:60, timer:60,
centerDialogVisible: false, centerDialogVisible: false,
...@@ -1104,10 +1106,11 @@ export default { ...@@ -1104,10 +1106,11 @@ export default {
this.perfectForm.contactAddress = data.contactAddress this.perfectForm.contactAddress = data.contactAddress
this.perfectForm.socialCode = data.socialCode this.perfectForm.socialCode = data.socialCode
this.perfectForm.companyNature = data.companyNature this.perfectForm.companyNature = data.companyNature
this.perfectForm.industryType = data.industryName this.perfectForm.industryType = data.industryType
this.perfectForm.bankName = data.bankName this.perfectForm.bankName = data.bankName
this.perfectForm.registeredCapital = data.registeredCapital this.perfectForm.registeredCapital = data.registeredCapital
this.perfectForm.businessScope = data.businessScope this.perfectForm.businessScope = data.businessScope
this.comId = data.id/* 储存公司Id */
for(let item of data.fileList){ for(let item of data.fileList){
item.url=item.fileUrl item.url=item.fileUrl
item.name=item.fileName item.name=item.fileName
...@@ -1124,10 +1127,7 @@ export default { ...@@ -1124,10 +1127,7 @@ export default {
this.files.push(item) this.files.push(item)
} }
} }
/* this.cardimg = data.fileList[2].fileUrl */
/* this.perfectForm.businessScope = data.businessScope */
Cookies.remove("companyErrorId")
Cookies.remove("auditStatus")
}, },
prev(){ prev(){
this.active-- this.active--
...@@ -1231,16 +1231,28 @@ export default { ...@@ -1231,16 +1231,28 @@ export default {
Object.assign(perfectForm, form); Object.assign(perfectForm, form);
perfectForm.sysUserPO = adminform; perfectForm.sysUserPO = adminform;
perfectForm.fileList = file; perfectForm.fileList = file;
const { data, code, msg } = await register(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{
var { data, code, msg } = await register(perfectForm);
if (code === 200) { if (code === 200) {
this.$message.success(msg); this.$message.success(msg);
this.active++; this.active++;
//储存步骤二数据
Cookies.set("dataform",this.perfectForm)
}else{ }else{
this.$message.error(error) this.$message.error(error)
} }
} }
Cookies.remove("companyErrorId")
Cookies.remove("auditStatus")
}
} }
}, },
refreshCode() { refreshCode() {
......
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