Browse Source

fix: 创建工单工单名称从动态表单中读取

liuyaqi 2 years ago
parent
commit
c6984930d2
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/views/work/order/components/Edit.vue

+ 5 - 2
src/views/work/order/components/Edit.vue

@@ -2,11 +2,11 @@
   <el-dialog append-to-body :title="title" :visible.sync="dialogFormVisible" @close="close">
     <el-form ref="form" label-position="top" label-width="100px" :model="form" :rules="rules">
       <el-row :gutter="20">
-        <el-col :span="12">
+        <!-- <el-col :span="12">
           <el-form-item label="工单名称" prop="name">
             <el-input v-model="form.name" />
           </el-form-item>
-        </el-col>
+        </el-col> -->
         <el-col :span="12">
           <el-form-item label="工单类型" prop="orderTypeId">
             <el-select
@@ -206,6 +206,9 @@
               if (item.props.label === '客户名称') {
                 this.form.custName = item.props.value
               }
+              if (item.props.label === '工单名称') {
+                this.form.name = item.props.value
+              }
               items.push({
                 componentName: item.componentName,
                 id: item.props.id,