Parcourir la source

沟通管理-新增 -任务工单新增-锁定任务类型

damon227 il y a 1 an
Parent
commit
6e23584b03
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/views/modules/worder/add-or-update-dialog.vue

+ 4 - 0
src/views/modules/worder/add-or-update-dialog.vue

@@ -20,6 +20,7 @@
                 v-model="dataForm.taskType"
                 placeholder="请选择"
                 style="width: 100%"
+                :disabled="taskTypeDisabled"
               >
                 <el-option
                   v-for="item in taskTypeOption"
@@ -152,6 +153,7 @@ export default {
       attachList: [],
       taskTypeOption: taskTypeOption,
       rankTypeOption: rankTypeOption,
+      taskTypeDisabled: false,
       dataRule: {
         taskCode: [
           { required: true, message: '请输入工单编码', trigger: 'blur' }
@@ -199,6 +201,7 @@ export default {
         this.dataForm = item
       } else {
         this.isModify = false
+        this.taskTypeDisabled = false
         if (bizType === 'communicate' || bizType === 'order') {
           this.dataForm = {
             planCompletionTime: new Date(),
@@ -206,6 +209,7 @@ export default {
             taskType: 'routine',
             recordId: Math.round(Math.random() * 1000000)
           }
+          this.taskTypeDisabled = true
         } else {
           this.dataForm = {
             taskName: projectName,