Selaa lähdekoodia

fix: 修复禅道5695【工序报工】质检工序报工,执行人默认当前报工人,支持修改

xieyong 3 viikkoa sitten
vanhempi
commit
20131eec95
1 muutettua tiedostoa jossa 10 lisäystä ja 1 poistoa
  1. 10 1
      src/views/produce/components/workPlan/edit.vue

+ 10 - 1
src/views/produce/components/workPlan/edit.vue

@@ -1297,7 +1297,16 @@
           console.log(this.form, 'this.form');
           this.form.executeUserIdList = this.form.executeUserId
             ? this.form.executeUserId.split(',')
-            : [];
+            : [this.form.jobList[0].leaderUserId || ''];
+          if (
+            (!this.form.executeUserName ||
+              this.form.executeUserName.split(',').length !==
+                this.form.executeUserIdList.length) &&
+            this.$store.state.user.info.userId ==
+              this.form.executeUserIdList[0]
+          ) {
+            this.form.executeUserName = this.form.jobList[0].leaderUserName || '';
+          }
 
           this.form.qualityIdList = this.form.qualityId
             ? this.form.qualityId.split(',')