Browse Source

4649,4647

zhouna 5 years ago
parent
commit
e19c04f0a0
1 changed files with 7 additions and 8 deletions
  1. 7 8
      src/components/qualityControl/AddQualityControlTemp.vue

+ 7 - 8
src/components/qualityControl/AddQualityControlTemp.vue

@@ -15,14 +15,14 @@
                             <el-option v-for="item in moduleList" :key="item.id" :label="item.name" :value="item.val"></el-option>
                             <el-option v-for="item in moduleList" :key="item.id" :label="item.name" :value="item.val"></el-option>
                         </el-select>
                         </el-select>
                     </el-form-item>
                     </el-form-item>
+                    <el-form-item label="模板名称:" prop="tempName" class="formItem widthLarge">
+                        <el-input v-model="form.tempName"  placeholder="请输入模板名称"></el-input>
+                    </el-form-item>
                     <el-form-item label="模块类型:" prop="moduleTypes" class="formItem widthLarge">
                     <el-form-item label="模块类型:" prop="moduleTypes" class="formItem widthLarge">
                     </el-form-item>
                     </el-form-item>
                     <QCTypePour :hospital="form.hospital"
                     <QCTypePour :hospital="form.hospital"
                                 :moduleName="form.moduleName"
                                 :moduleName="form.moduleName"
                                 @changeActionData="moduleTypeChange" :selectedTag="form.recordAnalyzeList"></QCTypePour>
                                 @changeActionData="moduleTypeChange" :selectedTag="form.recordAnalyzeList"></QCTypePour>
-                    <el-form-item label="模板名称:" prop="tempName" class="formItem widthLarge">
-                        <el-input v-model="form.tempName"  placeholder="请输入模板名称"></el-input>
-                    </el-form-item>
                     <el-form-item label="模块内容:" prop="moduleInfo" class="formItem addCon">
                     <el-form-item label="模块内容:" prop="moduleInfo" class="formItem addCon">
                         <div class="moduleInfoItem" v-for="(item,index) in moduleInfoList">
                         <div class="moduleInfoItem" v-for="(item,index) in moduleInfoList">
                             <div class="orderBox">
                             <div class="orderBox">
@@ -124,7 +124,6 @@ export default {
                 this.title ="模板维护-复制"
                 this.title ="模板维护-复制"
                 this.form.tempName = ""
                 this.form.tempName = ""
                 this.form.moduleTypes=[];
                 this.form.moduleTypes=[];
-                this.form.recordAnalyzeList = data.recordAnalyzeList;
                  //this.form.example=""
                  //this.form.example=""
             }
             }
             const moduleDetail = data.moduleDetail
             const moduleDetail = data.moduleDetail
@@ -315,14 +314,14 @@ export default {
                         this.warning("请选择所属模块");
                         this.warning("请选择所属模块");
                         return
                         return
                     }
                     }
+                    if(!tempName){
+                      this.warning("请输入模块名称");
+                      return
+                    }
                     if(!moduleTypes.length){
                     if(!moduleTypes.length){
                         this.warning("请选择模块类型");
                         this.warning("请选择模块类型");
                         return
                         return
                     }
                     }
-                    if(!tempName){
-                        this.warning("请输入模块名称");
-                        return
-                    }
                    
                    
                     
                     
                     if(moduleDetail.length === 0){
                     if(moduleDetail.length === 0){