|
|
@@ -590,13 +590,15 @@
|
|
|
chooseAsset() {
|
|
|
this.$refs.productRefs.open(this.form.extInfo, '选择设备', '4');
|
|
|
},
|
|
|
- userListFn(e) {
|
|
|
+ userListFn(e, init) {
|
|
|
console.log(e);
|
|
|
let that = this;
|
|
|
listUserByIds([e]).then((res) => {
|
|
|
that.userList = res;
|
|
|
});
|
|
|
- that.form.extInfo.userIds = [];
|
|
|
+ if (!init) {
|
|
|
+ that.form.extInfo.userIds = [];
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
// 选择可执行工序
|
|
|
@@ -618,8 +620,8 @@
|
|
|
|
|
|
determineChoose(title, row) {
|
|
|
const equipmentLabel = row.equipmentLabelJson[0];
|
|
|
- this.form.extInfo.criticalEquipment = equipmentLabel.GJSB;
|
|
|
- this.form.extInfo.keyEquipment = equipmentLabel.GZSB;
|
|
|
+ this.form.extInfo.criticalEquipment = equipmentLabel?.GJSB;
|
|
|
+ this.form.extInfo.keyEquipment = equipmentLabel?.GZSB;
|
|
|
|
|
|
if (title == '选择设备') {
|
|
|
this.form.extInfo.assetCode = row.code;
|
|
|
@@ -904,7 +906,7 @@
|
|
|
this.form?.extInfo?.teamId &&
|
|
|
typeof this.form?.extInfo?.teamId === 'string'
|
|
|
) {
|
|
|
- this.userListFn(this.form.extInfo.teamId);
|
|
|
+ this.userListFn(this.form.extInfo.teamId, 'init');
|
|
|
}
|
|
|
if (res.taskList?.length) {
|
|
|
this.form.taskNames = res.taskList.map((i) => i.name);
|