|
|
@ -148,8 +148,12 @@ export default { |
|
|
|
if (!form.companyName) return Util.warningMsg('请输入供应商名称') |
|
|
|
if (!form.companyName) return Util.warningMsg('请输入供应商名称') |
|
|
|
if (!form.creditCode) return Util.warningMsg('请输入统一社会信用代码') |
|
|
|
if (!form.creditCode) return Util.warningMsg('请输入统一社会信用代码') |
|
|
|
if (!form.legalPerson) return Util.warningMsg('请输入法人') |
|
|
|
if (!form.legalPerson) return Util.warningMsg('请输入法人') |
|
|
|
|
|
|
|
|
|
|
|
if (this.submiting) return false |
|
|
|
if (this.submiting) return false |
|
|
|
this.submiting = true |
|
|
|
this.submiting = true |
|
|
|
|
|
|
|
// 幼儿园和供应商有两个状态 authenticationStatus是认证状态,auditStatus是流程审批状态,authenticationStatus改成已认证后,auditStatus也要改成通过;authenticationStatus改成未认证后,如果未提交的,auditStatus要改成未提交,如果是已提交的,则改成不通过 |
|
|
|
|
|
|
|
// form.auditStatus = form.authenticationStatus === 2 ? 2 : form.auditStatus |
|
|
|
|
|
|
|
form.auditStatus = form.authenticationStatus |
|
|
|
try { |
|
|
|
try { |
|
|
|
await this.$post(this.api.updateCertification, form).then(res => { |
|
|
|
await this.$post(this.api.updateCertification, form).then(res => { |
|
|
|
Util.successMsg('保存成功!'); |
|
|
|
Util.successMsg('保存成功!'); |
|
|
|