✨ 项目管理客户信息增加是否广西百强列
在企业性质右侧展示客商档案的广西百强标识。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -525,6 +525,11 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="companyNature" label="企业性质" min-width="140" align="center" />
|
<el-table-column prop="companyNature" label="企业性质" min-width="140" align="center" />
|
||||||
|
<el-table-column label="是否广西百强" min-width="140" align="center">
|
||||||
|
<template #default="{ row }">
|
||||||
|
{{ formatGuangxiTop100(row.guangxiTop100) }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="legalPerson" label="法定代表人" min-width="140" align="center" />
|
<el-table-column prop="legalPerson" label="法定代表人" min-width="140" align="center" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="address"
|
prop="address"
|
||||||
@@ -759,9 +764,6 @@
|
|||||||
<template v-if="isChangeDialog">
|
<template v-if="isChangeDialog">
|
||||||
<el-button v-if="!isProjectFormPage" @click="handleCancelProject">取消</el-button>
|
<el-button v-if="!isProjectFormPage" @click="handleCancelProject">取消</el-button>
|
||||||
<el-button v-if="isProjectFormPage" @click="closeProjectForm">取消</el-button>
|
<el-button v-if="isProjectFormPage" @click="closeProjectForm">取消</el-button>
|
||||||
<el-button type="primary" plain :loading="submitLoading" @click="saveChangeProject">
|
|
||||||
保存
|
|
||||||
</el-button>
|
|
||||||
<el-button type="primary" :loading="submitLoading" @click="submitChangeProject">
|
<el-button type="primary" :loading="submitLoading" @click="submitChangeProject">
|
||||||
提交
|
提交
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -1903,13 +1905,7 @@ export default {
|
|||||||
this.closeProjectForm();
|
this.closeProjectForm();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
saveChangeProject() {
|
|
||||||
this.submitChangeForm(false);
|
|
||||||
},
|
|
||||||
submitChangeProject() {
|
submitChangeProject() {
|
||||||
this.submitChangeForm(true);
|
|
||||||
},
|
|
||||||
submitChangeForm(needSubmit) {
|
|
||||||
this.$refs.projectForm.validate(valid => {
|
this.$refs.projectForm.validate(valid => {
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
this.handleValidateFail();
|
this.handleValidateFail();
|
||||||
@@ -1917,19 +1913,12 @@ export default {
|
|||||||
}
|
}
|
||||||
if (!this.validateAttachmentFileTypes()) return;
|
if (!this.validateAttachmentFileTypes()) return;
|
||||||
this.submitLoading = true;
|
this.submitLoading = true;
|
||||||
const request = needSubmit ? this.api.submitChange : this.api.saveChange;
|
// 变更记录仅在提交时生成,保存草稿不落记录
|
||||||
request(this.normalizeSubmitForm({ includeChangeType: true }))
|
this.api
|
||||||
|
.submitChange(this.normalizeSubmitForm({ includeChangeType: true }))
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.data?.success === false || res.data?.data === false) {
|
if (res.data?.success === false || res.data?.data === false) {
|
||||||
this.$message.error(
|
this.$message.error(res.data?.msg || '提交失败,请联系管理员');
|
||||||
res.data?.msg || `${needSubmit ? '提交' : '保存'}失败,请联系管理员`
|
|
||||||
);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!needSubmit) {
|
|
||||||
this.$message.success('保存成功!');
|
|
||||||
this.closeProjectForm();
|
|
||||||
this.onLoad(this.page, this.query);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const id = this.form.id;
|
const id = this.form.id;
|
||||||
@@ -2122,6 +2111,11 @@ export default {
|
|||||||
normalizeReadonlyAmount(value) {
|
normalizeReadonlyAmount(value) {
|
||||||
return this.normalizeOptionalSentinel(value);
|
return this.normalizeOptionalSentinel(value);
|
||||||
},
|
},
|
||||||
|
formatGuangxiTop100(value) {
|
||||||
|
if (value === 1 || value === '1') return '是';
|
||||||
|
if (value === 0 || value === '0') return '否';
|
||||||
|
return value || '';
|
||||||
|
},
|
||||||
normalizeOptionalSentinel(value, emptyValue = '') {
|
normalizeOptionalSentinel(value, emptyValue = '') {
|
||||||
return value === null || value === undefined || value === '' || Number(value) === -1
|
return value === null || value === undefined || value === '' || Number(value) === -1
|
||||||
? emptyValue
|
? emptyValue
|
||||||
@@ -2528,6 +2522,8 @@ export default {
|
|||||||
id: item.id,
|
id: item.id,
|
||||||
credit: item.maxCreditLimit || item.applyCreditLimit || '',
|
credit: item.maxCreditLimit || item.applyCreditLimit || '',
|
||||||
companyNature: item.customerNature || '',
|
companyNature: item.customerNature || '',
|
||||||
|
guangxiTop100:
|
||||||
|
item.guangxiTop100 === 0 || item.guangxiTop100 === 1 ? item.guangxiTop100 : null,
|
||||||
legalPerson: item.legalPerson || '',
|
legalPerson: item.legalPerson || '',
|
||||||
address: item.registeredAddress || '',
|
address: item.registeredAddress || '',
|
||||||
contact: defaultContact.contactName || item.principal || '',
|
contact: defaultContact.contactName || item.principal || '',
|
||||||
|
|||||||
Reference in New Issue
Block a user