|
@@ -149,8 +149,8 @@
|
|
|
dialogType: '',
|
|
dialogType: '',
|
|
|
form: {
|
|
form: {
|
|
|
accountingSubjectCode: '',
|
|
accountingSubjectCode: '',
|
|
|
- accountingSubjectId: '',
|
|
|
|
|
- accountingSubjectName: '',
|
|
|
|
|
|
|
+ accountingSubjectId: '1779719367139791006',
|
|
|
|
|
+ accountingSubjectName: '应收账款',
|
|
|
contactId: '',
|
|
contactId: '',
|
|
|
contactName: '',
|
|
contactName: '',
|
|
|
files: [],
|
|
files: [],
|
|
@@ -197,14 +197,15 @@
|
|
|
await this.getClassifyList(24, 'accountingSubjectList');
|
|
await this.getClassifyList(24, 'accountingSubjectList');
|
|
|
let data = await getFinReceivableInfoAPI(id);
|
|
let data = await getFinReceivableInfoAPI(id);
|
|
|
this.form = data;
|
|
this.form = data;
|
|
|
|
|
+ console.log('获取详情', data);
|
|
|
let invoiceData = {};
|
|
let invoiceData = {};
|
|
|
if (data.invoiceId) {
|
|
if (data.invoiceId) {
|
|
|
invoiceData = await invoiceApplyInfoAPI(data.invoiceId);
|
|
invoiceData = await invoiceApplyInfoAPI(data.invoiceId);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.form.accountingSubjectCode = invoiceData.accountingSubjectCode;
|
|
this.form.accountingSubjectCode = invoiceData.accountingSubjectCode;
|
|
|
- this.form.accountingSubjectId = invoiceData.accountingSubjectId;
|
|
|
|
|
- this.form.accountingSubjectName = invoiceData.accountingSubjectName;
|
|
|
|
|
|
|
+ this.form.accountingSubjectId = invoiceData.accountingSubjectId || '1779719367139791006';
|
|
|
|
|
+ this.form.accountingSubjectName = invoiceData.accountingSubjectName || '应收账款';
|
|
|
},
|
|
},
|
|
|
downloadFile(file) {
|
|
downloadFile(file) {
|
|
|
getFile({ objectName: file.storePath }, file.name);
|
|
getFile({ objectName: file.storePath }, file.name);
|
|
@@ -217,6 +218,7 @@
|
|
|
},
|
|
},
|
|
|
//获取会计科目选中数据
|
|
//获取会计科目选中数据
|
|
|
changeSubjectInfo(val) {
|
|
changeSubjectInfo(val) {
|
|
|
|
|
+ console.log(val);
|
|
|
if (!val) return (this.form.accountingSubjectName = '');
|
|
if (!val) return (this.form.accountingSubjectName = '');
|
|
|
let data = this.$refs.treeSelect?.$refs?.tree?.getCurrentNode() || {};
|
|
let data = this.$refs.treeSelect?.$refs?.tree?.getCurrentNode() || {};
|
|
|
this.form.accountingSubjectName = data.name;
|
|
this.form.accountingSubjectName = data.name;
|