This commit is contained in:
xiaozhiyong
2023-02-24 17:12:47 +08:00
parent b66f88ac17
commit 51aa12621d
15 changed files with 848 additions and 107 deletions

View File

@@ -469,9 +469,9 @@ export default {
serve.get(row.id).then((res) => {
Promise.all([
//基础信息
serve.getInfo(res.data.companyId),
commonServe.getInfo(res.data.companyId),
// 账户信息
commonServe.getByCompanyId(res.data.companyId),
commonServe.getByCompanyIdAccount(res.data.companyId),
// 认证信息
commonServe.getByCompanyIdAuth(res.data.companyId),
// 财务信息
@@ -484,7 +484,7 @@ export default {
fourthRes.data,
];
if (firstRes.parentMark === 1) {
serve.getInfo(firstRes.parentId).then((res) => {
commonServe.getInfo(firstRes.parentId).then((res) => {
this.oilCompanyMatch[0] = res.data;
this.controlWindows.detail = true;
});

View File

@@ -265,13 +265,17 @@ export default {
});
}
}
let configUpdata = id
? { echoId: id, echoName: this.form.refineryName, isDisabled: true }
: {
echoId: "",
echoName: "",
isDisabled: false,
};
let configUpdata = {
echoId: id || "",
echoName: this.form.refineryName || "",
isDisabled: !!id,
};
// ? { echoId: id || '', echoName: this.form.refineryName || '', isDisabled: !!id }
// : {
// echoId: "",
// echoName: "",
// isDisabled: false,
// };
Object.assign(this.configAutocomplete, configUpdata);
},
// 公司change

View File

@@ -187,13 +187,17 @@ export default {
this.form.transactionAmount = Math.abs(this.form.transactionAmount);
this.companyChange(this.form.companyId);
}
let configUpdata = id
? { echoId: id, echoName: this.form.refineryName, isDisabled: true }
: {
echoId: "",
echoName: "",
isDisabled: false,
};
let configUpdata = {
echoId: id || "",
echoName: this.form.refineryName || "",
isDisabled: !!id,
};
// ? { echoId: id || '', echoName: this.form.refineryName || '', isDisabled: !!id }
// : {
// echoId: "",
// echoName: "",
// isDisabled: false,
// };
Object.assign(this.configAutocomplete, configUpdata);
},
// 公司财务信息
@@ -207,7 +211,7 @@ export default {
},
//
getByCompanyId(id) {
commonServe.getByCompanyId(id).then((res) => {
commonServe.getByCompanyIdAccount(id).then((res) => {
this.companyInfo = res.data;
});
},

View File

@@ -520,7 +520,7 @@ export default {
examine(row) {
Promise.all([
serve.get(row.id),
commonServe.getByCompanyId(row.companyId),
commonServe.getByCompanyIdAccount(row.companyId),
]).then(([firstRes, secondRes]) => {
this.oilCompanyMatch = [firstRes.data, secondRes.data];
this.controlWindows.addInfo = {
@@ -567,7 +567,7 @@ export default {
detail(row) {
Promise.all([
serve.get(row.id),
commonServe.getByCompanyId(row.companyId),
commonServe.getByCompanyIdAccount(row.companyId),
]).then(([firstRes, secondRes]) => {
this.oilCompanyMatch = [firstRes.data, secondRes.data];
this.controlWindows.addInfo.examineMark = false;

View File

@@ -396,7 +396,7 @@ export default {
detail(row) {
Promise.all([
serve.get(row.id),
commonServe.getByCompanyId(row.companyId),
commonServe.getByCompanyIdAccount(row.companyId),
]).then(([firstRes, secondRes]) => {
this.oilCompanyMatch = [firstRes.data, secondRes.data];