更新
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user