Hwt il y a 2 ans
Parent
commit
268cb4763e
1 fichiers modifiés avec 27 ajouts et 2 suppressions
  1. 27 2
      operationSupport/src/views/workOrders/popups/dispatchTsk.vue

+ 27 - 2
operationSupport/src/views/workOrders/popups/dispatchTsk.vue

@@ -51,12 +51,14 @@
     ></el-cascader>
 
     <el-input
-      slot="cost"
+      :key="2"
+      :slot="this.params.data.orderType == '1' ? 'cost' : '11'"
       type="number"
       class="input"
       v-model="formData.cost"
       placeholder="请输入服务费用金额"
     ></el-input>
+
   </zz-form>
 </template>
 <script >
@@ -104,7 +106,7 @@ export default {
           {
             label: '服务费用',
             prop: 'cost',
-            slot: 'cost'
+            slot: 'cost',
           }
         ]
       ],
@@ -155,7 +157,30 @@ export default {
   created () {
     let newda = JSON.parse(JSON.stringify(this.params.data));
     this.formData.orderId = newda.id;
+
     this.findUser = this.params.arrData;
+    if (this.params.data.orderType != '1') {
+      this.formCols = [
+        [
+          {
+            label: '紧急程度',
+            prop: 'urgencyDegree',
+            slot: 'urgencyDegree'
+          },
+          {
+            label: '完成时间',
+            prop: 'type',
+            slot: 'type',
+            showRequired: true
+          },
+          {
+            label: '维修人员',
+            prop: 'userId',
+            slot: 'userId'
+          }
+        ]
+      ];
+    }
   }
 };
 </script>