|
@@ -1017,7 +1017,6 @@
|
|
|
this.formData.extInfo.verifyDeptName = data?.name;
|
|
this.formData.extInfo.verifyDeptName = data?.name;
|
|
|
this.$set(this.formData.extInfo, 'verifyDeptCode', data?.id);
|
|
this.$set(this.formData.extInfo, 'verifyDeptCode', data?.id);
|
|
|
this.$set(this.formData.extInfo, 'verifyDeptName', data?.name);
|
|
this.$set(this.formData.extInfo, 'verifyDeptName', data?.name);
|
|
|
-
|
|
|
|
|
this.formData.verifyId = '';
|
|
this.formData.verifyId = '';
|
|
|
this.formData.verifyName = '';
|
|
this.formData.verifyName = '';
|
|
|
this.$refs.formName.validateField('verifyDeptName');
|
|
this.$refs.formName.validateField('verifyDeptName');
|
|
@@ -1025,7 +1024,6 @@
|
|
|
this.getStaffList(data);
|
|
this.getStaffList(data);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
async getStaffList(data) {
|
|
async getStaffList(data) {
|
|
|
let res = await warehouseDefinition.getUserPage({
|
|
let res = await warehouseDefinition.getUserPage({
|
|
|
groupId: data.id,
|
|
groupId: data.id,
|
|
@@ -1033,6 +1031,15 @@
|
|
|
page: 1
|
|
page: 1
|
|
|
});
|
|
});
|
|
|
this.llrLsit = res.list;
|
|
this.llrLsit = res.list;
|
|
|
|
|
+
|
|
|
|
|
+ const user = this.llrLsit.find(
|
|
|
|
|
+ (item) => item.id == this.formData.fromId
|
|
|
|
|
+ );
|
|
|
|
|
+ if (!user) {
|
|
|
|
|
+ this.$set(this.formData, 'fromId', '');
|
|
|
|
|
+ this.$set(this.formData, 'fromUser', '');
|
|
|
|
|
+ this.$set(this.formData, 'fromUserPhone', '');
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
// 初始化用户信息
|
|
// 初始化用户信息
|
|
|
async initUserInfo() {
|
|
async initUserInfo() {
|
|
@@ -1056,21 +1063,14 @@
|
|
|
this.formData.createUserId = info.userId;
|
|
this.formData.createUserId = info.userId;
|
|
|
|
|
|
|
|
// 默认领料人部门
|
|
// 默认领料人部门
|
|
|
- console.log(info);
|
|
|
|
|
-
|
|
|
|
|
- // this.formData.extInfo.verifyDeptCode = info?.groupId;
|
|
|
|
|
- // this.formData.extInfo.verifyDeptName = info?.groupName;
|
|
|
|
|
- // this.$set(this.formData.extInfo, 'verifyDeptCode', info?.groupId);
|
|
|
|
|
- // this.$set(this.formData.extInfo, 'verifyDeptName', info?.groupName);
|
|
|
|
|
|
|
+ this.$set(this.formData.extInfo, 'verifyDeptCode', info?.groupId);
|
|
|
|
|
+ this.$set(this.formData.extInfo, 'verifyDeptName', info?.groupName);
|
|
|
|
|
|
|
|
- // // // 领料人
|
|
|
|
|
- // this.getStaffList({ id: info?.groupId });
|
|
|
|
|
- // this.formData.fromId = info.userId;
|
|
|
|
|
- // this.formData.fromUser = info.name;
|
|
|
|
|
- // this.formData.fromUserPhone = info.phone;
|
|
|
|
|
- // this.$set(this.formData, 'fromId', info.userId);
|
|
|
|
|
- // this.$set(this.formData, 'fromUser', info.name);
|
|
|
|
|
- // this.$set(this.formData, 'fromUserPhone', info.phone);
|
|
|
|
|
|
|
+ // 领料人
|
|
|
|
|
+ await this.getStaffList({ id: info?.groupId });
|
|
|
|
|
+ this.$set(this.formData, 'fromId', info.userId);
|
|
|
|
|
+ this.$set(this.formData, 'fromUser', info.name);
|
|
|
|
|
+ this.$set(this.formData, 'fromUserPhone', info.phone);
|
|
|
},
|
|
},
|
|
|
// 初始化部门数据
|
|
// 初始化部门数据
|
|
|
async initDeptData() {
|
|
async initDeptData() {
|