|
@@ -1801,6 +1801,8 @@
|
|
|
await this.getEnterprisePage();
|
|
await this.getEnterprisePage();
|
|
|
}
|
|
}
|
|
|
if (type == 'add') {
|
|
if (type == 'add') {
|
|
|
|
|
+ console.log('enterprisePage~~~~~', this.enterprisePage);
|
|
|
|
|
+ console.log()
|
|
|
this.isUpdate = false;
|
|
this.isUpdate = false;
|
|
|
if (this.enterprisePage.length > 0) {
|
|
if (this.enterprisePage.length > 0) {
|
|
|
this.form.partaName = this.enterprisePage[0]?.name;
|
|
this.form.partaName = this.enterprisePage[0]?.name;
|
|
@@ -1810,8 +1812,13 @@
|
|
|
this.form.partaAddress = this.enterprisePage[0]?.address;
|
|
this.form.partaAddress = this.enterprisePage[0]?.address;
|
|
|
this.form.purchaseDeptId = this.enterprisePage[0]?.groupId || '';
|
|
this.form.purchaseDeptId = this.enterprisePage[0]?.groupId || '';
|
|
|
this.form.purchaseDeptName = this.enterprisePage[0]?.name || '';
|
|
this.form.purchaseDeptName = this.enterprisePage[0]?.name || '';
|
|
|
- this.form.purchaseUserId = this.$store.state.user.info?.id || '';
|
|
|
|
|
- this.form.purchaseUserName = this.$store.state.user.info?.name || '';
|
|
|
|
|
|
|
+ // this.form.purchaseUserId = this.$store.state.user.info?.id || '';
|
|
|
|
|
+ // this.form.purchaseUserName = this.$store.state.user.info?.name || '';
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ if(this.form.purchaseDeptId) {
|
|
|
|
|
+ this.getPurchaseUser(this.form.purchaseDeptId);
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
this.isUpdate = true;
|
|
this.isUpdate = true;
|