Browse Source

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

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