Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b36fa18db5 | |||
| f648285406 | |||
| fff0a29947 | |||
| 64b61c9c29 |
@@ -79,13 +79,6 @@
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
<template #kingdeeCompanyCode-form>
|
||||
<el-input
|
||||
v-model="form.kingdeeCompanyCode"
|
||||
disabled
|
||||
placeholder="关联组织中配置的平台公司金蝶代码"
|
||||
/>
|
||||
</template>
|
||||
</avue-crud>
|
||||
</basic-container>
|
||||
</template>
|
||||
@@ -192,10 +185,8 @@ export default {
|
||||
prop: 'kingdeeCompanyCode',
|
||||
minWidth: 140,
|
||||
span: 12,
|
||||
formslot: true,
|
||||
addDisplay: true,
|
||||
editDisplay: true,
|
||||
hide: true,
|
||||
maxlength: 64,
|
||||
rules: [{ required: true, message: '请输入金蝶公司代码', trigger: 'blur' }],
|
||||
},
|
||||
{
|
||||
label: '初始流水号',
|
||||
@@ -279,7 +270,6 @@ export default {
|
||||
return (list || []).map(item => ({
|
||||
label: item.deptName || item.fullName || String(item.id),
|
||||
value: String(item.id),
|
||||
kingdeeDeptCode: item.kingdeeDeptCode || '',
|
||||
}));
|
||||
},
|
||||
formatSerial(value) {
|
||||
@@ -291,7 +281,6 @@ export default {
|
||||
handlePlatformCompanyChange(value) {
|
||||
const matched = this.platformCompanyOptions.find(item => String(item.value) === String(value));
|
||||
this.form.platformCompanyName = matched ? matched.label : '';
|
||||
this.form.kingdeeCompanyCode = matched ? matched.kingdeeDeptCode || '' : '';
|
||||
},
|
||||
handleBusinessDeptChange(value) {
|
||||
const matched = this.businessDeptOptions.find(item => String(item.value) === String(value));
|
||||
@@ -336,6 +325,7 @@ export default {
|
||||
platformCompanyId: row.platformCompanyId || null,
|
||||
businessDeptId: row.businessDeptId || null,
|
||||
contractCodePrefix: String(row.contractCodePrefix || '').trim(),
|
||||
kingdeeCompanyCode: String(row.kingdeeCompanyCode || '').trim(),
|
||||
kingdeeDeptCode: String(row.kingdeeDeptCode || '').trim(),
|
||||
remark: String(row.remark || '').trim(),
|
||||
initialSerial: Number.isFinite(initialSerial) ? initialSerial : null,
|
||||
|
||||
@@ -2544,7 +2544,9 @@ export default {
|
||||
const res = await querySupplierCode(code);
|
||||
// 防止响应返回时用户已修改代码
|
||||
if (String(this.archiveForm.unifiedCreditCode || '').trim().toUpperCase() !== code) return;
|
||||
this.archiveForm.supplierCode = res?.data?.data || '';
|
||||
// 后端查不到时 data 为 {}(R 对 null 的空承载兜底),非字符串一律按空处理,避免显示 [object Object]
|
||||
const supplierCode = res?.data?.data;
|
||||
this.archiveForm.supplierCode = typeof supplierCode === 'string' ? supplierCode : '';
|
||||
} catch (error) {
|
||||
// 忽略查询异常,编码留空
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user