yrik 4 anos atrás
pai
commit
fd53e25307

+ 14 - 0
ruoyi-ui/src/api/system/config.js

@@ -8,6 +8,13 @@ export function listConfig(query) {
     params: query
     params: query
   })
   })
 }
 }
+export function listConfigfieu(query) {
+  return request({
+    url: '/system/dept/deptList',
+    method: 'get',
+    params: query
+  })
+}
 
 
 // 查询在谈线索信息
 // 查询在谈线索信息
 export function listConfigtwo(query) {
 export function listConfigtwo(query) {
@@ -151,6 +158,13 @@ export function addConfigfiv(data) {
     data: data
     data: data
   })
   })
 }
 }
+export function addConfigsix(data) {
+  return request({
+    url: '/constructionPayInfo/payInfo',
+    method: 'post',
+    data: data
+  })
+}
 
 
 // 修改参数配置
 // 修改参数配置
 export function updateConfig(data) {
 export function updateConfig(data) {

+ 117 - 115
ruoyi-ui/src/views/management/nstruction/index.vue

@@ -6,16 +6,23 @@
         type="primary"
         type="primary"
         @click="submitCtion"
         @click="submitCtion"
         v-hasPermi="['system:config:add']"
         v-hasPermi="['system:config:add']"
-      >提交</el-button>
+      >暂存</el-button>
     </el-col>
     </el-col>
     <el-col :span="1.5">
     <el-col :span="1.5">
       <el-button
       <el-button
         type="primary"
         type="primary"
         @click="handleUpdate"
         @click="handleUpdate"
         v-hasPermi="['system:config:edit']"
         v-hasPermi="['system:config:edit']"
-      >暂存</el-button>
+      >取消</el-button>
     </el-col>
     </el-col>
-    <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    <el-col :span="1.5" :offset="18">
+    <el-button
+        type="danger"
+        @click="handleUpdate"
+        v-hasPermi="['system:config:edit']"
+        v-if="tab == 0"
+      >确认审核</el-button>
+        </el-col>
   </el-row>
   </el-row>
 
 
   <div class="nauer">
   <div class="nauer">
@@ -53,7 +60,7 @@
                  <el-upload
                  <el-upload
                    action="http://192.168.101.11:8080/common/upload"
                    action="http://192.168.101.11:8080/common/upload"
                    :auto-upload="false"
                    :auto-upload="false"
-                   ref="upload"
+                   ref="uploadone"
                    :before-upload="beforeAvatarUpload"
                    :before-upload="beforeAvatarUpload"
                    list-type="picture-card"
                    list-type="picture-card"
                    :on-preview="handlePictureCardPreview"
                    :on-preview="handlePictureCardPreview"
@@ -70,13 +77,13 @@
                    </div>
                    </div>
                    <!-- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div> -->
                    <!-- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div> -->
                  </el-upload>
                  </el-upload>
-                 <div class="ijeut"><el-button style="margin-left: 10px; height: 32px;" size="small" type="primary" @click="submitUpload">开始上传</el-button></div>
+                 <div class="ijeut"><el-button style="margin-left: 10px; height: 32px;" size="small" type="primary" @click="submitUploaduccpermit">开始上传</el-button></div>
 
 
                </div>
                </div>
               </div>
               </div>
             </el-form-item>
             </el-form-item>
             <el-form-item label="是否开工建设:" prop="isConstruction">
             <el-form-item label="是否开工建设:" prop="isConstruction">
-              <el-select v-model="queryParams.isConstruction" placeholder="系统内置" clearable size="small" style="width: 458px">
+              <el-select v-model="queryParamstwr.isConstruction" placeholder="系统内置" clearable size="small" style="width: 458px">
                 <el-option
                 <el-option
                   v-for="dict in typeOptions"
                   v-for="dict in typeOptions"
                   :key="dict.dictValue"
                   :key="dict.dictValue"
@@ -86,10 +93,10 @@
               </el-select>
               </el-select>
             </el-form-item>
             </el-form-item>
              <el-form-item label=" 开工日期:">
              <el-form-item label=" 开工日期:">
-                  <el-date-picker type="date" placeholder="选择日期" v-model="queryParams.constructionStartdate" style="width: 335px"></el-date-picker>
+                  <el-date-picker type="date" placeholder="选择日期" v-model="queryParamstwr.constructionStartdate" style="width: 335px"></el-date-picker>
               </el-form-item>
               </el-form-item>
               <el-form-item label="预计完工日期:">
               <el-form-item label="预计完工日期:">
-                   <el-date-picker type="date" placeholder="选择日期" v-model="queryParams.constructionEnddate" style="width: 335px"></el-date-picker>
+                   <el-date-picker type="date" placeholder="选择日期" v-model="queryParamstwr.constructionEnddate" style="width: 335px"></el-date-picker>
                </el-form-item>
                </el-form-item>
                <el-form-item label="施工合同:" prop="configType" class="maget_ty">
                <el-form-item label="施工合同:" prop="configType" class="maget_ty">
                    <div class="forieu" style="width: 618px;">
                    <div class="forieu" style="width: 618px;">
@@ -97,7 +104,7 @@
                       <el-upload
                       <el-upload
                         action="http://192.168.101.11:8080/common/upload"
                         action="http://192.168.101.11:8080/common/upload"
                         :auto-upload="false"
                         :auto-upload="false"
-                        ref="upload"
+                        ref="uploadtwo"
                         :before-upload="beforeAvatarUpload"
                         :before-upload="beforeAvatarUpload"
                         list-type="picture-card"
                         list-type="picture-card"
                         :on-preview="handlePictureCardPreview"
                         :on-preview="handlePictureCardPreview"
@@ -114,7 +121,7 @@
                         </div>
                         </div>
                         <!-- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div> -->
                         <!-- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div> -->
                       </el-upload>
                       </el-upload>
-                      <div class="ijeut"><el-button style="margin-left: 10px; height: 32px;" size="small" type="primary" @click="submitUpload">开始上传</el-button></div>
+                      <div class="ijeut"><el-button style="margin-left: 10px; height: 32px;" size="small" type="primary" @click="submitUploaduccontract">开始上传</el-button></div>
 
 
                     </div>
                     </div>
                    </div>
                    </div>
@@ -159,8 +166,8 @@
                 <div class="demo-image__preview">
                 <div class="demo-image__preview">
                   <el-image
                   <el-image
                     style="width: 100px; height: 100px"
                     style="width: 100px; height: 100px"
-                    :src="scope.row.photo"
-                    :preview-src-list="srcList">
+                    :src="scope.row.phototwo"
+                    :preview-src-list="scope.row.photo">
                   </el-image>
                   </el-image>
                 </div>
                 </div>
               </template>
               </template>
@@ -196,19 +203,13 @@
             <el-table-column label="照片" align="center" >
             <el-table-column label="照片" align="center" >
               <!-- class-name="small-padding fixed-width" -->
               <!-- class-name="small-padding fixed-width" -->
              <template slot-scope="scope"   >
              <template slot-scope="scope"   >
-               <el-upload
-                 class="upload-demo"
-                 action="http://192.168.101.11:8080/common/upload"
-                 :on-preview="handlePreviewtwo"
-                 :on-remove="handleRemovetwo"
-                 :before-remove="beforeRemovetwo"
-                 multiple
-                 :limit="3"
-                 :on-exceed="handleExceedtwo"
-                 :file-list="scope.row.photo">
-                 <el-button size="small" type="primary">点击上传</el-button>
-                 <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>
-               </el-upload>
+              <div class="demo-image__preview">
+                <el-image
+                  style="width: 100px; height: 100px"
+                  :src="scope.row.phototwo"
+                  :preview-src-list="scope.row.photo">
+                </el-image>
+              </div>
              </template>
              </template>
             </el-table-column>
             </el-table-column>
             <el-table-column label="操作" align="center" >
             <el-table-column label="操作" align="center" >
@@ -243,19 +244,13 @@
           <el-table-column label="到资证明" align="center" prop="photo">
           <el-table-column label="到资证明" align="center" prop="photo">
             <!-- class-name="small-padding fixed-width" -->
             <!-- class-name="small-padding fixed-width" -->
            <template slot-scope="scope"   >
            <template slot-scope="scope"   >
-             <el-upload
-               class="upload-demo"
-               action="http://192.168.101.11:8080/common/upload"
-               :on-preview="handlePreviewtwo"
-               :on-remove="handleRemovetwo"
-               :before-remove="beforeRemovetwo"
-               multiple
-               :limit="3"
-               :on-exceed="handleExceedtwo"
-               :file-list="scope.row.photo">
-               <el-button size="small" type="primary">点击上传</el-button>
-               <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>
-             </el-upload>
+             <div class="demo-image__preview">
+               <el-image
+                 style="width: 100px; height: 100px"
+                 :src="scope.row.phototwo"
+                 :preview-src-list="scope.row.photo">
+               </el-image>
+             </div>
            </template>
            </template>
           </el-table-column>
           </el-table-column>
           <el-table-column label="操作" align="center" >
           <el-table-column label="操作" align="center" >
@@ -285,7 +280,7 @@
            <el-form-item label=" 入统时间:">
            <el-form-item label=" 入统时间:">
                 <el-date-picker type="date" placeholder="选择日期" v-model="queryParamstheyr.statisticsDate" style="width: 335px"></el-date-picker>
                 <el-date-picker type="date" placeholder="选择日期" v-model="queryParamstheyr.statisticsDate" style="width: 335px"></el-date-picker>
             </el-form-item>
             </el-form-item>
-             <el-form-item label="施工许可证:" prop="configType" class="maget_ty maget_tyty">
+             <el-form-item label="入统截图:" prop="configType" class="maget_ty maget_tyty">
                  <div class="forieu" style="width: 618px;">
                  <div class="forieu" style="width: 618px;">
                   <div class="bure burert">
                   <div class="bure burert">
                    <el-upload
                    <el-upload
@@ -296,7 +291,7 @@
                      list-type="picture-card"
                      list-type="picture-card"
                      :on-preview="handlePictureCardPreview"
                      :on-preview="handlePictureCardPreview"
                      :on-remove="handleRemove"
                      :on-remove="handleRemove"
-                     :on-success="handleSucc"
+                     :on-success="handleSuccntry"
                      :multiple="true"
                      :multiple="true"
                      :file-list="fileListthertwo">
                      :file-list="fileListthertwo">
                         <!-- <i slot="default" class="el-icon-plus"></i> -->
                         <!-- <i slot="default" class="el-icon-plus"></i> -->
@@ -425,7 +420,7 @@
 </template>
 </template>
 
 
 <script>
 <script>
-import { listConfig, listConfigfive, listConfigsix, listConfigserve, listConfigfunding, listConfigarrival, listConfigintegration, getConfig, delConfig, delConfigther, delConfigfour, delConfigfive, addConfig, addConfigther, addConfigfour, addConfigfiv, addConfigtherction,  updateConfig, exportConfig, clearCache } from "@/api/system/config";
+import { listConfig, listConfigfive, listConfigsix, listConfigserve, listConfigfunding, listConfigarrival, listConfigintegration, getConfig, delConfig, delConfigther, delConfigfour, delConfigfive, addConfig, addConfigther, addConfigfour, addConfigfiv, addConfigtherction, addConfigsix, updateConfig, exportConfig, clearCache } from "@/api/system/config";
 export default {
 export default {
   name: "Config",
   name: "Config",
   data() {
   data() {
@@ -505,7 +500,8 @@ export default {
       //开工照片
       //开工照片
       onstruction:[],
       onstruction:[],
       permit:[],
       permit:[],
-      ontract:[]
+      ontract:[],
+      ntry:[]
     };
     };
   },
   },
   created() {
   created() {
@@ -514,10 +510,10 @@ export default {
     console.log(this.bmjdeu)
     console.log(this.bmjdeu)
     this.getList();
     this.getList();
     this.getListtoi()
     this.getListtoi()
-    this.getListther()
-    this.getListfour()
-    this.getListfive()
-    this.getListsix()
+    // this.getListther()
+    // this.getListfour()
+    // this.getListfive()
+    // this.getListsix()
     this.getDicts("sys_yes_no").then(response => {
     this.getDicts("sys_yes_no").then(response => {
     this.typeOptions = response.data;
     this.typeOptions = response.data;
     });
     });
@@ -532,28 +528,48 @@ export default {
     });
     });
   },
   },
   methods: {
   methods: {
+    beforeAvatarUpload(file){
+     console.log(file)
+    },
     submitUpload() {
     submitUpload() {
       this.$refs.upload.submit();
       this.$refs.upload.submit();
     },
     },
+    //施工许可证
+    submitUploaduccpermit(){
+      console.log(34)
+     this.$refs.uploadone.submit();
+    },
+    //施工合同
+    submitUploaduccontract(){
+     this.$refs.uploadtwo.submit();
+    },
     handleRemove(file) {
     handleRemove(file) {
            console.log(file);
            console.log(file);
          },
          },
+    //开工合同
     handleSucc(response, file, fileList){
     handleSucc(response, file, fileList){
       console.log(file.response.url)
       console.log(file.response.url)
       this.onstruction.push(file.response.url)
       this.onstruction.push(file.response.url)
-      this.queryParams.constructionPhoto = this.onstruction.join(',')
+      this.queryParamstwr.constructionPhoto = this.onstruction.join(',')
 
 
     },
     },
     //施工许可证照片
     //施工许可证照片
     handleSuccpermit(response, file, fileList){
     handleSuccpermit(response, file, fileList){
      console.log(file.response.url)
      console.log(file.response.url)
      this.permit.push(file.response.url)
      this.permit.push(file.response.url)
-     this.queryParams.constructionCode = this.permit.join(',')
+     this.queryParamstwr.constructionCode = this.permit.join(',')
     },
     },
     //施工合同
     //施工合同
     handleSuccontract(response, file, fileList){
     handleSuccontract(response, file, fileList){
+      // this.ontract = []
      this.ontract.push(file.response.url)
      this.ontract.push(file.response.url)
-     this.queryParams.constructionDoc = this.ontract.join(',')
+     this.queryParamstwr.constructionDoc = this.ontract.join(',')
+    },
+    // 入统截图
+    handleSuccntry(response, file, fileList){
+     // this.ontract = []
+     this.ntry.push(file.response.url)
+     this.queryParamstheyr.statisticsPhoto = this.ntry.join(',')
     },
     },
     handlePictureCardPreview(file) {
     handlePictureCardPreview(file) {
            this.dialogImageUrl = file.url;
            this.dialogImageUrl = file.url;
@@ -609,10 +625,17 @@ export default {
     getList() {
     getList() {
       this.loading = true;
       this.loading = true;
       listConfigfive(this.bmProjectId).then(response => {
       listConfigfive(this.bmProjectId).then(response => {
+          this.queryParams = {}
+          this.fileListther = []
+          this.fileListfour = []
+          this.fileListfive = []
           this.queryParams = response.data;
           this.queryParams = response.data;
-          this.fileListther.push({name:this.queryParams.constructionCode,url:this.queryParams.constructionCode})
-          this.fileListfour.push({name:this.queryParams.constructionDoc,url:this.queryParams.constructionDoc})
-          this.fileListfive.push({name:this.queryParams.constructionPhoto,url:this.queryParams.constructionPhoto})
+          if(response.data !== undefined){
+            this.fileListther.push({name:this.queryParams.constructionCode,url:this.queryParams.constructionCode})
+            this.fileListfour.push({name:this.queryParams.constructionDoc,url:this.queryParams.constructionDoc})
+            this.fileListfive.push({name:this.queryParams.constructionPhoto,url:this.queryParams.constructionPhoto})
+          }
+
           this.total = response.total;
           this.total = response.total;
           this.loading = false;
           this.loading = false;
         }
         }
@@ -627,12 +650,14 @@ export default {
               if(route.photo !== null){
               if(route.photo !== null){
                 let poku = []
                 let poku = []
                  poku = route.photo.split(",")
                  poku = route.photo.split(",")
-                console.log(poku,98)
+                 route.photo = route.photo.split(",")
+                 route.phototwo = route.photo[0]
+                console.log(route.phototwo)
                 console.log( route.photo)
                 console.log( route.photo)
-                route.photo = []
-                for(var i = 0; i < poku.length; i++){
-                  route.photo.push({name:poku[i],ulr:poku[i]})
-                }
+                // route.photo = []
+                // for(var i = 0; i < poku.length; i++){
+                //   route.photo.push({name:poku[i],ulr:poku[i]})
+                // }
               }
               }
 
 
                })
                })
@@ -649,13 +674,11 @@ export default {
           this.configListher.filter(route => {
           this.configListher.filter(route => {
               if(route.photo !== null){
               if(route.photo !== null){
                 let poku = []
                 let poku = []
-                 poku = route.photo.split(",")
-                console.log(poku,98)
+                poku = route.photo.split(",")
+                 route.photo = route.photo.split(",")
+                 route.phototwo = route.photo[0]
+                console.log(route.phototwo)
                 console.log( route.photo)
                 console.log( route.photo)
-                route.photo = []
-                for(var i = 0; i < poku.length; i++){
-                  route.photo.push({name:poku[i],ulr:poku[i]})
-                }
               }
               }
 
 
                })
                })
@@ -672,13 +695,11 @@ export default {
           this.configLisfour.filter(route => {
           this.configLisfour.filter(route => {
               if(route.photo !== null){
               if(route.photo !== null){
                 let poku = []
                 let poku = []
-                 poku = route.photo.split(",")
-                console.log(poku,98)
-                console.log( route.photo)
-                route.photo = []
-                for(var i = 0; i < poku.length; i++){
-                  route.photo.push({name:poku[i],ulr:poku[i]})
-                }
+              poku = route.photo.split(",")
+               route.photo = route.photo.split(",")
+               route.phototwo = route.photo[0]
+              console.log(route.phototwo)
+              console.log( route.photo)
               }
               }
 
 
                })
                })
@@ -691,7 +712,10 @@ export default {
     getListfive() {
     getListfive() {
       this.loading = true;
       this.loading = true;
       listConfigarrival(this.bmjdeu).then(response => {
       listConfigarrival(this.bmjdeu).then(response => {
-         this.queryParamstheyr = response.data
+        if(response.data !== undefined){
+            this.queryParamstheyr = response.data
+        }
+
           this.loading = false;
           this.loading = false;
         }
         }
       );
       );
@@ -700,8 +724,12 @@ export default {
     getListsix() {
     getListsix() {
       this.loading = true;
       this.loading = true;
       listConfigintegration(this.bmProjectId).then(response => {
       listConfigintegration(this.bmProjectId).then(response => {
-         this.queryParamstwo = response.data
-         this.fileListthertwo.push({name:this.queryParamstwo.statisticsPhoto,url:this.queryParamstwo.statisticsPhoto})
+        this.fileListthertwo = []
+         if(response.data !== undefined){
+           this.queryParamstwo = response.data
+           this.fileListthertwo.push({name:this.queryParamstwo.statisticsPhoto,url:this.queryParamstwo.statisticsPhoto})
+         }
+
           this.loading = false;
           this.loading = false;
         }
         }
       );
       );
@@ -788,37 +816,21 @@ export default {
       if(this.numhu == 0){
       if(this.numhu == 0){
         this.$refs["form"].validate(valid => {
         this.$refs["form"].validate(valid => {
           if (valid) {
           if (valid) {
-            // if (this.form.bmProjectId != undefined) {
-            //   updateConfig(this.form).then(response => {
-            //     this.msgSuccess("修改成功");
-            //     this.open = false;
-            //     this.getList();
-            //   });
-            // } else {
               addConfigther(this.form).then(response => {
               addConfigther(this.form).then(response => {
                 this.msgSuccess("新增成功");
                 this.msgSuccess("新增成功");
                 this.open = false;
                 this.open = false;
                 this.getListtoi();
                 this.getListtoi();
               });
               });
-            // }
           }
           }
         });
         });
       }else if(this.numhu == 1){
       }else if(this.numhu == 1){
         this.$refs["formtwo"].validate(valid => {
         this.$refs["formtwo"].validate(valid => {
           if (valid) {
           if (valid) {
-            // if (this.formtwo.bmProjectId != undefined) {
-            //   updateConfig(this.form).then(response => {
-            //     this.msgSuccess("修改成功");
-            //     this.open = false;
-            //     this.getList();
-            //   });
-            // } else {
               addConfigfour(this.formtwo).then(response => {
               addConfigfour(this.formtwo).then(response => {
                 this.msgSuccess("新增成功");
                 this.msgSuccess("新增成功");
                 this.opentwo = false;
                 this.opentwo = false;
                 this.getListther();
                 this.getListther();
               });
               });
-            // }
           }
           }
         });
         });
       }else if(this.numhu == 2){
       }else if(this.numhu == 2){
@@ -826,20 +838,12 @@ export default {
           this.$refs["formther"].validate(valid => {
           this.$refs["formther"].validate(valid => {
             if (valid) {
             if (valid) {
               console.log('步骤5')
               console.log('步骤5')
-              // if (this.formther.bmProjectId != undefined) {
-              //   updateConfig(this.form).then(response => {
-              //     this.msgSuccess("修改成功");
-              //     this.open = false;
-              //     this.getList();
-              //   });
-              // } else {
                 console.log('步骤4')
                 console.log('步骤4')
                 addConfigfiv(this.formther).then(response => {
                 addConfigfiv(this.formther).then(response => {
                   this.msgSuccess("新增成功");
                   this.msgSuccess("新增成功");
                   this.openther = false;
                   this.openther = false;
                   this.getListfour();
                   this.getListfour();
                 });
                 });
-              // }
             }
             }
           });
           });
       }
       }
@@ -848,10 +852,10 @@ export default {
     //项目施工提交按钮
     //项目施工提交按钮
     submitCtion(){
     submitCtion(){
        this.queryParamstwr.bmProjectId = this.bmProjectId
        this.queryParamstwr.bmProjectId = this.bmProjectId
-       // this.formtwo.bmProjectId = this.bmProjectId
+       this.queryParamstheyr.bmProjectId = this.bmProjectId
        // this.formther.bmProjectId = this.bmProjectId
        // this.formther.bmProjectId = this.bmProjectId
        console.log(this.numhu)
        console.log(this.numhu)
-       if(this.numhu == 0){
+       if(this.tab == 0){
          this.$refs["queryForm"].validate(valid => {
          this.$refs["queryForm"].validate(valid => {
            if (valid) {
            if (valid) {
                addConfigtherction(this.queryParamstwr).then(response => {
                addConfigtherction(this.queryParamstwr).then(response => {
@@ -861,29 +865,16 @@ export default {
                });
                });
            }
            }
          });
          });
-       }else if(this.numhu == 1){
-         this.$refs["formtwo"].validate(valid => {
+       }else if(this.tab == 3){
+         this.$refs["queryForm"].validate(valid => {
            if (valid) {
            if (valid) {
-               addConfigfour(this.formtwo).then(response => {
+               addConfigsix(this.queryParamstheyr).then(response => {
                  this.msgSuccess("新增成功");
                  this.msgSuccess("新增成功");
                  this.opentwo = false;
                  this.opentwo = false;
                  this.getListther();
                  this.getListther();
                });
                });
            }
            }
          });
          });
-       }else if(this.numhu == 2){
-         console.log("步骤3")
-           this.$refs["formther"].validate(valid => {
-             if (valid) {
-               console.log('步骤5')
-                 console.log('步骤4')
-                 addConfigfiv(this.formther).then(response => {
-                   this.msgSuccess("新增成功");
-                   this.openther = false;
-                   this.getListfour();
-                 });
-             }
-           });
        }
        }
     },
     },
     /** 开工照片删除按钮操作 */
     /** 开工照片删除按钮操作 */
@@ -950,6 +941,17 @@ export default {
     //tab
     //tab
     tabClid(index){
     tabClid(index){
     this.tab = index
     this.tab = index
+    if(this.tab == 1){
+      this.getListther()
+    }else if(this.tab == 0){
+      this.getList();
+      this.getListtoi()
+    }else if(this.tab == 2){
+      this.getListfour()
+      this.getListfive()
+    }else if(this.tab == 3){
+     this.getListsix()
+    }
     // this.$router.push('/tab');
     // this.$router.push('/tab');
     },
     },
     quipment(index){
     quipment(index){

+ 186 - 61
ruoyi-ui/src/views/under/index.vue

@@ -1,11 +1,11 @@
 <template>
 <template>
 
 
   <div class="app-cont">
   <div class="app-cont">
-    <!-- <el-row :gutter="10" class="mb8">
+    <el-row :gutter="10" class="mb8 roiyy">
        <el-col :span="1.5">
        <el-col :span="1.5">
          <el-button
          <el-button
            type="primary"
            type="primary"
-           @click="handleAdd"
+           @click="submitCtion"
            v-hasPermi="['system:config:add']"
            v-hasPermi="['system:config:add']"
          >提交</el-button>
          >提交</el-button>
        </el-col>
        </el-col>
@@ -16,9 +16,15 @@
            v-hasPermi="['system:config:edit']"
            v-hasPermi="['system:config:edit']"
          >暂存</el-button>
          >暂存</el-button>
        </el-col>
        </el-col>
-       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
-     </el-row> -->
-  <!-- <div class="naue"> -->
+       <el-col :span="1.5" :offset="18">
+       <el-button
+           type="danger"
+           @click="handleUpdate"
+           v-hasPermi="['system:config:edit']"
+           v-if="tab == 0"
+         >确认审核</el-button>
+           </el-col>
+     </el-row>
     <!-- 内容的显示隐藏 -->
     <!-- 内容的显示隐藏 -->
 <div class="mation" >
 <div class="mation" >
        <div class="nvestor">
        <div class="nvestor">
@@ -80,7 +86,7 @@
      </template>
      </template>
    </el-table-column>
    </el-table-column>
  </el-table>
  </el-table>
-       <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="115px" label-position="center" class="manager_form">
+       <el-form :model="queryParams" :rules="queryForm" ref="queryForm" :inline="true" v-show="showSearch" label-width="115px" label-position="center" class="manager_form">
          <el-form-item label="投资方联系人" prop="contactor">
          <el-form-item label="投资方联系人" prop="contactor">
            <el-input
            <el-input
              v-model="queryParams.contactor"
              v-model="queryParams.contactor"
@@ -104,14 +110,14 @@
          <div class="nvestor">
          <div class="nvestor">
            <p>引荐方 <i>*</i></p>
            <p>引荐方 <i>*</i></p>
          </div>
          </div>
-         <div v-for="(item,index) in queryParams.referralList " :key="index">
+         <div v-for="(item,index) in queryParams.referralList " :key="index" v-if="queryParams.referralList !== null">
            <el-form-item label="引荐单位:" prop="item.sysdeptId">
            <el-form-item label="引荐单位:" prop="item.sysdeptId">
              <el-select v-model="item.sysdeptId" placeholder="系统内置" clearable size="small" style="width: 188px">
              <el-select v-model="item.sysdeptId" placeholder="系统内置" clearable size="small" style="width: 188px">
                <el-option
                <el-option
-                 v-for="dict in typeOptions"
-                 :key="dict.dictValue"
-                 :label="dict.dictLabel"
-                 :value="dict.dictValue"
+                 v-for="dict in typeOptionstwo"
+                 :key="dict.deptId"
+                 :label="dict.deptName"
+                 :value="dict.deptId"
                />
                />
              </el-select>
              </el-select>
            </el-form-item>
            </el-form-item>
@@ -148,48 +154,92 @@
              />
              />
            </el-form-item>
            </el-form-item>
          </div>
          </div>
-         <el-form-item label="引荐单位:" prop="configType">
-           <el-select v-model="queryParams.configType" placeholder="系统内置" clearable size="small" style="width: 188px">
-             <el-option
-               v-for="dict in typeOptions"
-               :key="dict.dictValue"
-               :label="dict.dictLabel"
-               :value="dict.dictValue"
+         <div v-if="queryParams.referralList == null">
+           <el-form-item label="引荐单位:" prop="sysdeptId">
+             <el-select v-model="queryParams.referralList[0].sysdeptId" placeholder="系统内置" clearable size="small" style="width: 188px">
+               <el-option
+                 v-for="dict in typeOptionstwo"
+                 :key="dict.deptId"
+                 :label="dict.deptName"
+                 :value="dict.deptId"
+               />
+             </el-select>
+           </el-form-item>
+           <el-form-item label="投资分配额:" prop="investmentAllcocation">
+             <el-input
+               v-model="queryParams.referralList[0].investmentAllcocation"
+               placeholder="输入数字"
+               clearable
+               size="small"
+               style="width: 98px"
+               @keyup.enter.native="handleQuery"
              />
              />
-           </el-select>
-         </el-form-item>
-         <el-form-item label="投资分配额:" prop="investmentAllcocation">
-           <el-input
-             v-model="queryParams.investmentAllcocation"
-             placeholder="输入数字"
-             clearable
-             size="small"
-             style="width: 98px"
-             @keyup.enter.native="handleQuery"
-           />
-           <span class="souu">%</span>
-         </el-form-item>
-         <el-form-item label="引荐方联系人:" prop="configName">
-           <el-input
-             v-model="queryParams.configName"
-             placeholder="请输入"
-             clearable
-             size="small"
-             style="width: 98px"
-             @keyup.enter.native="handleQuery"
-           />
-         </el-form-item>
+             <span class="souu">%</span>
+           </el-form-item>
+           <el-form-item label="引荐方联系人:" prop="referral">
+             <el-input
+               v-model="queryParams.referralList[0].referral"
+               placeholder="请输入"
+               clearable
+               size="small"
+               style="width: 98px"
+               @keyup.enter.native="handleQuery"
+             />
+           </el-form-item>
 
 
-         <el-form-item label="引荐方联系方式:" prop="configName">
-           <el-input
-             v-model="queryParams.configName"
-             placeholder="请输入联系方式"
-             clearable
-             size="small"
-             style="width: 153px"
-             @keyup.enter.native="handleQuery"
-           />
-         </el-form-item>
+           <el-form-item label="引荐方联系方式:" prop="referralPhone">
+             <el-input
+               v-model="queryParams.referralList[0].referralPhone"
+               placeholder="请输入联系方式"
+               clearable
+               size="small"
+               style="width: 153px"
+               @keyup.enter.native="handleQuery"
+             />
+           </el-form-item>
+           <el-form-item label="引荐单位:" prop="sysdeptId">
+             <el-select v-model="queryParams.referralList[1].sysdeptId" placeholder="系统内置" clearable size="small" style="width: 188px">
+               <el-option
+                 v-for="dict in typeOptionstwo"
+                 :key="dict.deptId"
+                 :label="dict.deptName"
+                 :value="dict.deptId"
+               />
+             </el-select>
+           </el-form-item>
+           <el-form-item label="投资分配额:" prop="investmentAllcocation">
+             <el-input
+               v-model="queryParams.referralList[0].investmentAllcocation"
+               placeholder="输入数字"
+               clearable
+               size="small"
+               style="width: 98px"
+               @keyup.enter.native="handleQuery"
+             />
+             <span class="souu">%</span>
+           </el-form-item>
+           <el-form-item label="引荐方联系人:" prop="referral">
+             <el-input
+               v-model="queryParams.referralList[0].referral"
+               placeholder="请输入"
+               clearable
+               size="small"
+               style="width: 98px"
+               @keyup.enter.native="handleQuery"
+             />
+           </el-form-item>
+
+           <el-form-item label="引荐方联系方式:" prop="referralPhone">
+             <el-input
+               v-model="queryParams.referralList[1].referralPhone"
+               placeholder="请输入联系方式"
+               clearable
+               size="small"
+               style="width: 153px"
+               @keyup.enter.native="handleQuery"
+             />
+           </el-form-item>
+        </div>
          <div class="nvestor">
          <div class="nvestor">
            <p>项目基本信息 <i>*</i></p>
            <p>项目基本信息 <i>*</i></p>
          </div>
          </div>
@@ -387,6 +437,7 @@
                    list-type="picture-card"
                    list-type="picture-card"
                    :on-preview="handlePictureCardPreview"
                    :on-preview="handlePictureCardPreview"
                    :on-remove="handleRemove"
                    :on-remove="handleRemove"
+                   :on-success="handleSuccntry"
                    :multiple="true"
                    :multiple="true"
                    :file-list="fileList">
                    :file-list="fileList">
                       <!-- <i slot="default" class="el-icon-plus"></i> -->
                       <!-- <i slot="default" class="el-icon-plus"></i> -->
@@ -493,11 +544,11 @@
 </template>
 </template>
 
 
 <script>
 <script>
-import { listConfig, listConfigtwo, listConfigthert, listConfigfour, getConfig, getConfigKeytwo, delConfig, delConfigtwo, addConfig, addConfigtwo,  updateConfig, updateConfigtwo, exportConfig, clearCache } from "@/api/system/config";
+import { listConfig, listConfigtwo, listConfigthert, listConfigfour, listConfigfieu, getConfig, getConfigKeytwo, delConfig, delConfigtwo, addConfig, addConfigtwo,  updateConfig, updateConfigtwo, exportConfig, clearCache } from "@/api/system/config";
 export default {
 export default {
   name: "Config",
   name: "Config",
   props:{
   props:{
-    queryParams: Object,
+    // queryParams: Object,
     tabIndex: Number
     tabIndex: Number
   },
   },
   data() {
   data() {
@@ -529,16 +580,21 @@ export default {
       opentwo:false,
       opentwo:false,
       // 类型数据字典
       // 类型数据字典
       typeOptions: [],
       typeOptions: [],
+      typeOptionstwo:[],
       // 日期范围
       // 日期范围
       dateRange: [],
       dateRange: [],
       // 查询参数
       // 查询参数
-      // queryParams: {
-      //   pageNum: 14,
-      //   pageSize: 10,
-      //   configName: undefined,
-      //   configKey: undefined,
-      //   configType: undefined
-      // },
+      queryParams: {
+        referralList:[
+          {
+          "bmProjectId":'',
+          "sysdeptId":'',
+          "investmentAllcocation":'',
+          "referral":"",
+          "referralPhone":""
+        },
+        ]
+      },
       dialogImageUrl: '',
       dialogImageUrl: '',
       dialogVisible: false,
       dialogVisible: false,
       disabled: false,
       disabled: false,
@@ -558,7 +614,19 @@ export default {
         configValue: [
         configValue: [
           { required: true, message: "参数键值不能为空", trigger: "blur" }
           { required: true, message: "参数键值不能为空", trigger: "blur" }
         ]
         ]
-      }
+      },
+      queryForm:{
+        needAmt: [
+          { required: true, message: "参数名称不能为空", trigger: "blur" }
+        ],
+        configKey: [
+          { required: true, message: "参数键名不能为空", trigger: "blur" }
+        ],
+        configValue: [
+          { required: true, message: "参数键值不能为空", trigger: "blur" }
+        ]
+      },
+      ntry:[]
     };
     };
   },
   },
   created() {
   created() {
@@ -571,6 +639,7 @@ export default {
     this.getDicts("sys_yes_no").then(response => {
     this.getDicts("sys_yes_no").then(response => {
       this.typeOptions = response.data;
       this.typeOptions = response.data;
     });
     });
+    this.getListthuy()
    console.log( this.queryParams)
    console.log( this.queryParams)
   },
   },
   methods: {
   methods: {
@@ -586,6 +655,11 @@ export default {
     },
     },
     handleDownload(file) {
     handleDownload(file) {
            console.log(file);
            console.log(file);
+    },
+    handleSuccntry(response, file, fileList){
+     // this.ontract = []
+     this.ntry.push(file.response.url)
+     this.queryParams.attachment = this.ntry.join(',')
     },
     },
      beforeAvatarUpload(file) {
      beforeAvatarUpload(file) {
        console.log(file.type)
        console.log(file.type)
@@ -609,7 +683,33 @@ export default {
       this.loading = true;
       this.loading = true;
       listConfigtwo(this.bmProjectId).then(response => {
       listConfigtwo(this.bmProjectId).then(response => {
         console.log(response)
         console.log(response)
+        if(response.data == undefined){
+          console.log(876)
+          this.queryParams = {
+            referralList:[
+              {
+              "bmProjectId":'',
+              "sysdeptId":'',
+              "investmentAllcocation":'',
+              "referral":"",
+              "referralPhone":""
+            },
+            {
+              "bmProjectId":'',
+              "sysdeptId":'',
+              "investmentAllcocation":'',
+              "referral":"",
+              "referralPhone":""
+            },
+            ]
+          }
+        }else{
+
           this.queryParams = response.data;
           this.queryParams = response.data;
+           this.fileList.push({name:this.queryParams.attachment,url:this.queryParams.attachment})
+        }
+
+
           // this.fileList =  this.queryParams.attachment
           // this.fileList =  this.queryParams.attachment
           // this.total = response.total;
           // this.total = response.total;
           this.loading = false;
           this.loading = false;
@@ -640,6 +740,18 @@ export default {
         }
         }
       );
       );
     },
     },
+    //部门列表
+    getListthuy() {
+      this.loading = true;
+      listConfigfieu().then(response => {
+        console.log(response)
+          this.typeOptionstwo = response.data;
+          // this.fileList =  this.queryParams.attachment
+          // this.total = response.total;
+          this.loading = false;
+        }
+      );
+    },
     // 参数系统内置字典翻译
     // 参数系统内置字典翻译
     typeFormat(row, column) {
     typeFormat(row, column) {
       return this.selectDictLabel(this.typeOptions, row.configType);
       return this.selectDictLabel(this.typeOptions, row.configType);
@@ -776,6 +888,9 @@ export default {
         }
         }
       });
       });
     },
     },
+    submitCtion(){
+     console.log(this.queryParams)
+    },
     /** 删除按钮操作 */
     /** 删除按钮操作 */
     handleDelete(row) {
     handleDelete(row) {
       const configIds = row.id ;
       const configIds = row.id ;
@@ -831,6 +946,16 @@ export default {
 };
 };
 </script>
 </script>
 <style rel="stylesheet/scss" lang="scss">
 <style rel="stylesheet/scss" lang="scss">
+  .roiyy{
+    position: fixed;
+    top:180px;
+    left:0;
+    width: 100%;
+    padding-left: 230px;
+    padding-right: 30px;
+    box-sizing: border-box;
+    z-index: 44;
+  }
   .manager_form{
   .manager_form{
     .manager_lab{
     .manager_lab{
       .el-form-item__label{
       .el-form-item__label{