Commit a52a6666 authored by mengwenhao's avatar mengwenhao

fix:上传图片回显修改完成,时间信息修改完成

parent 24176928
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
<el-table-column <el-table-column
align="center" align="center"
label="提交时间" label="提交时间"
prop="audit_time" prop="submit_time"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
...@@ -402,9 +402,6 @@ export default { ...@@ -402,9 +402,6 @@ export default {
this.messageForm = res.result; this.messageForm = res.result;
this.messageList.push(res.result.record); this.messageList.push(res.result.record);
this.lifeList.push(res.result.life); this.lifeList.push(res.result.life);
console.log("messageForm=1-2=310=-203", this.messageForm);
console.log("lifeLIST======", this.lifeList);
console.log("messageList", this.messageList);
console.log(res); console.log(res);
} catch (error) { } catch (error) {
this.$message.error("发生未知错误,请稍后再试一下吧~~~"); this.$message.error("发生未知错误,请稍后再试一下吧~~~");
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
v-model="enterpriseForm.audit_status" v-model="enterpriseForm.audit_status"
> >
<el-option <el-option
v-for="item in enterpriseForm.statusOptions" v-for="item in statusOptions"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
placeholder="请选择提交类型" placeholder="请选择提交类型"
> >
<el-option <el-option
v-for="item in enterpriseForm.typeOptions" v-for="item in typeOptions"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="提交日期" label="提交日期"
prop="audit_time" prop="submit_time"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
...@@ -173,8 +173,12 @@ ...@@ -173,8 +173,12 @@
" "
size="mini" size="mini"
type="success" type="success"
@click="goAuditPage(scope.row.audit_status=== 5 ? 'COMPILE' : 'EDIT', @click="
scope.row.enterprise_auth_record_id)" goAuditPage(
scope.row.audit_status === 5 ? 'COMPILE' : 'EDIT',
scope.row.enterprise_auth_record_id
)
"
>{{ >{{
scope.row.audit_status === 5 ? "编辑" : "修改" scope.row.audit_status === 5 ? "编辑" : "修改"
}}提交</el-button> }}提交</el-button>
...@@ -244,6 +248,7 @@ export default { ...@@ -244,6 +248,7 @@ export default {
audit_status: 10, audit_status: 10,
data_from: null, data_from: null,
proxy_user_name: null, proxy_user_name: null,
},
statusOptions: [ statusOptions: [
{ value: "", label: "全部" }, { value: "", label: "全部" },
{ value: 5, label: "编辑中" }, { value: 5, label: "编辑中" },
...@@ -255,8 +260,7 @@ export default { ...@@ -255,8 +260,7 @@ export default {
{ value: 1, label: "生活圈c端" }, { value: 1, label: "生活圈c端" },
{ value: 2, label: "销售端b端" }, { value: 2, label: "销售端b端" },
{ value: 3, label: "内部代提交" } { value: 3, label: "内部代提交" }
] ],
},
// 企业认证管理列表 // 企业认证管理列表
enterpriseList: [], enterpriseList: [],
...@@ -273,6 +277,8 @@ export default { ...@@ -273,6 +277,8 @@ export default {
}, },
created () { created () {
const queryForm = window.localStorage.getItem("queryForm");
this.enterpriseForm = queryForm ? JSON.parse(queryForm) : this.enterpriseForm;
this.getEnterpriseList(); this.getEnterpriseList();
console.log(this.$store); console.log(this.$store);
}, },
...@@ -325,6 +331,13 @@ export default { ...@@ -325,6 +331,13 @@ export default {
resetForm (formName) { resetForm (formName) {
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
this.enterpriseForm.audit_status = ""; this.enterpriseForm.audit_status = "";
this.enterpriseForm.name = "";
this.enterpriseForm.code = "";
this.enterpriseForm.legal_person = "";
this.enterpriseForm.audit_status = "";
this.enterpriseForm.data_from = null;
this.enterpriseForm.proxy_user_name = null;
window.localStorage.removeItem("queryForm");
this.getEnterpriseList(); this.getEnterpriseList();
}, },
...@@ -340,8 +353,7 @@ export default { ...@@ -340,8 +353,7 @@ export default {
return (this.detailDialogVisible = true); return (this.detailDialogVisible = true);
} else if (pageStatus === "COMPILE") { } else if (pageStatus === "COMPILE") {
this.$router.push({ name: "Audit", params: { pageStatus, auditId } }); this.$router.push({ name: "Audit", params: { pageStatus, auditId } });
} } else {
else {
this.$router.push({ name: "Audit", params: { pageStatus, auditId } }); this.$router.push({ name: "Audit", params: { pageStatus, auditId } });
} }
}, },
...@@ -384,6 +396,8 @@ export default { ...@@ -384,6 +396,8 @@ export default {
// 查询列表 // 查询列表
queryMessage () { queryMessage () {
const queryString = JSON.stringify(this.enterpriseForm);
window.localStorage.setItem("queryForm", queryString);
this.getEnterpriseList(); // 加载数据 this.getEnterpriseList(); // 加载数据
} }
} }
......
...@@ -326,7 +326,7 @@ export default { ...@@ -326,7 +326,7 @@ export default {
this.establishForm.userName = val.record.legal_person; this.establishForm.userName = val.record.legal_person;
this.establishForm.legal_mobile = val.record.legal_mobile; this.establishForm.legal_mobile = val.record.legal_mobile;
this.establishForm.mobile = val.life.mobile; this.establishForm.mobile = val.life.mobile;
this.establishForm.legal_mobile = val.record.legal_mobile; this.establishForm.legal_mobile = val.record.mobile;
this.establishForm.user_id = val.record.user_id; this.establishForm.user_id = val.record.user_id;
this.establishForm.sensitiveWord = val.record.sensitiveWord; this.establishForm.sensitiveWord = val.record.sensitiveWord;
this.establishForm.entterpriseImage = val.record.entterprise_image; this.establishForm.entterpriseImage = val.record.entterprise_image;
...@@ -368,18 +368,18 @@ export default { ...@@ -368,18 +368,18 @@ export default {
return this.$message.error("您无敏感词权限修改信息!!!"); return this.$message.error("您无敏感词权限修改信息!!!");
// 企业信息提交参数 // 企业信息提交参数
const { let {
code, code,
name, name,
entterprise_image, entterprise_image,
data_type, data_type,
mobile,
user_id,
front_img, front_img,
bak_img, bak_img,
idcard_number, idcard_number,
userName, name: userName,
legal_mobile, legal_mobile,
mobile,
user_id
} = this.establishForm; } = this.establishForm;
/** /**
* 第一步 企业信息提交(修改) * 第一步 企业信息提交(修改)
...@@ -403,13 +403,14 @@ export default { ...@@ -403,13 +403,14 @@ export default {
} }
// 修改 // 修改
else { else {
const { let {
code, code,
name, name,
entterprise_image, entterprise_image,
data_type, data_type,
mobile mobile
} = this.establishForm; } = this.establishForm;
entterprise_image = this.transformObjectId(entterprise_image);
const editQuery = { const editQuery = {
record_id: this.enterpriseId, record_id: this.enterpriseId,
code, code,
...@@ -419,6 +420,7 @@ export default { ...@@ -419,6 +420,7 @@ export default {
data_from: 3, data_from: 3,
mobile mobile
}; };
console.log("参数修改", editQuery);
const res = await opBusinessUpdate(editQuery); const res = await opBusinessUpdate(editQuery);
console.log(res); console.log(res);
if (res.code !== 0) return this.$message.error(res.reason); if (res.code !== 0) return this.$message.error(res.reason);
...@@ -426,29 +428,38 @@ export default { ...@@ -426,29 +428,38 @@ export default {
/** /**
* 第二步 法人(经营者信息提交) * 第二步 法人(经营者信息提交)
*/ */
// 法人信息提交参数 front_img = this.transformObjectId(front_img);
const legalQuery = { bak_img = this.transformObjectId(bak_img);
// 提交法人信息
let legalQuery = {
record_id: this.enterpriseId record_id: this.enterpriseId
? this.enterpriseId ? this.enterpriseId
: this.establishForm.enterprise_id, : this.establishForm.enterprise_id,
front_img,
bak_img,
front_completeness: 0, front_completeness: 0,
bak_completeness: 0, bak_completeness: 0,
user_id: user_id ? parseInt(user_id) : "",
front_img,
bak_img,
idcard_number, idcard_number,
name: userName, name: userName,
legal_mobile, legal_mobile,
data_type, data_type
user_id: user_id ? parseInt(user_id) : ""
}; };
const result = await opCommit(legalQuery); const result = await opCommit(legalQuery);
if (result.code !== 0) return this.$message.error(result.reason); if (result.code !== 0) return this.$message.error(result.reason);
if (!this.enterpriseId) { this.$message.success(`企业信息${this.enterpriseId ? "修改" : "代提交"}成功!`);
this.$message.success("企业信息代提交成功!");
this.$router.replace({ name: "Certification" });
} else {
this.$message.success("企业信息修改成功!");
this.$router.replace({ name: "Certification" }); this.$router.replace({ name: "Certification" });
},
// 转换图片地址为ObjectId
transformObjectId (urls) {
try {
const url = new URL(urls);
let pathName = url.pathname;
let objectId = pathName.slice(1);
return objectId;
} catch (error) {
return urls;
} }
} }
} }
......
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