|
|
@@ -635,12 +635,21 @@ export default {
|
|
|
await this.initDeptData(); // 确保部门树加载
|
|
|
if (this.form.makerId) {
|
|
|
warehouseDefinition.getGroupById(this.form.makerId).then((res) => {
|
|
|
- console.log(res, 'res.groupId')
|
|
|
+ console.log(res, 'makerId')
|
|
|
this.$set(this.formData.extInfo, 'verifyDeptCode', res.groupId);
|
|
|
this.$set(this.formData.extInfo, 'verifyDeptName', res.groupName);
|
|
|
|
|
|
});
|
|
|
}
|
|
|
+ if (this.form.createUserId) {
|
|
|
+ this.formData.fromId = this.form.createUserId;
|
|
|
+ this.formData.fromUser = this.form.createUserName;
|
|
|
+ warehouseDefinition.getGroupById(this.form.createUserId).then((res) => {
|
|
|
+ console.log(res, 'createUserId')
|
|
|
+ this.$set(this.formData.extInfo, 'verifyDeptCode', res.groupId);
|
|
|
+ this.$set(this.formData.extInfo, 'verifyDeptName', res.groupName);
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
|
|
|
// 生产相关逻辑
|