Эх сурвалжийг харах

完成在谈线索 在建信息

yrik 4 жил өмнө
parent
commit
f2939203dd

+ 25 - 4
ruoyi-ui/src/api/system/config.js

@@ -56,15 +56,15 @@ export function listConfigfive(query) {
 export function listConfigsix(query) {
   return request({
     url: '/constructionRate/rate/list',
-    method: 'get'
-    // params:
+    method: 'get',
+    params:query
   })
 }
 export function listConfigserve(query) {
   return request({
     url: '/constructionEq/constructionEq/list',
-    method: 'get'
-    // params:
+    method: 'get',
+    params:query
   })
 }
 
@@ -130,6 +130,13 @@ export function addConfigalking (data) {
     data: data
   })
 }
+export function addConfigbout (data) {
+  return request({
+    url: '/bmProject/project/pass',
+    method: 'post',
+    data: data
+  })
+}
 export function addConfigtwo(data) {
   return request({
     url: '/projectPersion/persion',
@@ -188,6 +195,20 @@ export function updateConfigalking(data) {
     data: data
   })
 }
+export function updateConfigatruction(data) {
+  return request({
+    url: '/projectConstruction/construction',
+    method: 'put',
+    data: data
+  })
+}
+export function updateConfigntegration(data) {
+  return request({
+    url: '/constructionPayInfo/payInfo',
+    method: 'put',
+    data: data
+  })
+}
 export function updateConfigtwo(data) {
   return request({
     url: '/projectPersion/persion',

+ 1 - 1
ruoyi-ui/src/views/management/info/index.vue

@@ -490,7 +490,7 @@
       chei(row){
         console.log(row)
         this.$router.push({
-          path:'/management/row',
+          path:'/management/row/index',
           query:{
             setid:row.id,
             setrd:row.projectStatus

+ 161 - 36
ruoyi-ui/src/views/management/nstruction/index.vue

@@ -6,21 +6,28 @@
         type="primary"
         @click="submitCtion"
         v-hasPermi="['system:config:add']"
+         v-if="tab == 0 || tab == 3"
       >暂存</el-button>
     </el-col>
     <el-col :span="1.5">
       <el-button
         type="primary"
-        @click="handleUpdate"
-        v-hasPermi="['system:config:edit']"
+        @click="handleUpdatex"
       >取消</el-button>
     </el-col>
+    <el-col :span="1.5">
+      <el-button
+        type="primary"
+        @click="nextYg"
+        v-if="tab == 1 || tab == 2"
+      >下一页</el-button>
+    </el-col>
     <el-col :span="1.5" :offset="18">
     <el-button
         type="danger"
-        @click="handleUpdate"
+        @click="handleAudit"
         v-hasPermi="['system:config:edit']"
-        v-if="tab == 0"
+         v-if="tab == 0 || tab == 3"
       >确认审核</el-button>
         </el-col>
   </el-row>
@@ -37,14 +44,14 @@
               <span>*</span>
               <span>合同约定开工时间:</span>
             </p>
-            <p>{{queryParams.orderBeginTime}}</p>
+            <p>{{queryParamstwr.orderBeginTime}}</p>
           </div>
           <div class="nstruction_navne">
             <p>
               <span>*</span>
               <span> 合同约定竣工时间:</span>
             </p>
-            <p>{{queryParams.orderEndTime}}</p>
+            <p>{{queryParamstwr.orderEndTime}}</p>
           </div>
 
        </div>
@@ -185,10 +192,10 @@
             </el-table-column>
           </el-table>
           <pagination
-            v-if="total>0 && tab==0"
-            :total="total"
-            :page.sync="queryParams.pageNum"
-            :limit.sync="queryParams.pageSize"
+            v-if="totaltwo>0 && tab==0"
+            :total="totaltwo"
+            :page.sync="queryParamstwrction.pageNum"
+            :limit.sync="queryParamstwrction.pageSize"
             @pagination="getListtoi"
           />
 
@@ -225,10 +232,10 @@
             </el-table-column>
           </el-table>
           <pagination
-            v-if="total>0 && tab==1"
-            :total="total"
-            :page.sync="queryParams.pageNum"
-            :limit.sync="queryParams.pageSize"
+            v-if="totalth>0 "
+            :total="totalth"
+            :page.sync="queryParamsstallation.pageNum"
+            :limit.sync="queryParamsstallation.pageSize"
             @pagination="getListther"
           />
 
@@ -276,7 +283,7 @@
      </div>
      </div>
      <div class="namjeu" v-if="tab == 3">
-       <el-form :model="queryParamstheyr" ref="queryForm" :inline="true" v-show="showSearch" label-width="135px" label-position="center" class="manager_form">
+       <el-form :model="queryParamstheyr" ref="queryFormtwo" :rules="queryFormtwo" :inline="true" v-show="showSearch" label-width="135px" label-position="center" class="manager_form">
            <el-form-item label=" 入统时间:">
                 <el-date-picker type="date" placeholder="选择日期" v-model="queryParamstheyr.statisticsDate" style="width: 335px"></el-date-picker>
             </el-form-item>
@@ -420,7 +427,7 @@
 </template>
 
 <script>
-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";
+import { listConfig, listConfigfive, listConfigsix, listConfigserve, listConfigfunding, listConfigarrival, listConfigintegration, getConfig, delConfig, delConfigther, delConfigfour, delConfigfive, addConfig, addConfigther, addConfigfour, addConfigfiv, addConfigtherction, addConfigsix, addConfigbout, updateConfig, updateConfigatruction, updateConfigntegration, exportConfig, clearCache } from "@/api/system/config";
 export default {
   name: "Config",
   data() {
@@ -441,9 +448,15 @@ export default {
       showSearch: true,
       // 总条数
       total: 0,
+      totaltwo:0,
+      totalth:0,
       open:false,
       opentwo:false,
       openther:false,
+      typeOptions:[],
+      typeOptionstwo:[],
+      typeOptionsther:[],
+      typeOptionsfour:[],
       // 参数表格数据
       configList: [],
       configListwo:[],
@@ -473,6 +486,14 @@ export default {
       queryParamstwo:0,
       queryParamstheyr:{},
       queryParamstwr:{},
+      queryParamstwrction:{
+        pageNum: 1,
+        pageSize: 10,
+      },
+      queryParamsstallation:{
+        pageNum: 1,
+        pageSize: 10,
+      },
       // 表单参数
       form: {},
       formtwo:{},
@@ -501,7 +522,14 @@ export default {
       onstruction:[],
       permit:[],
       ontract:[],
-      ntry:[]
+      ntry:[],
+      modify:0,  //判断是修改还是新增   新增0   修改  1
+      ermit:[],
+      ontractr:[],
+      ruction:[],
+      queryFormhye:{},
+      udgment:0  ,//项目入统判断是新增  还是修改   新增0   修改1
+      udgmentList:[]
     };
   },
   created() {
@@ -625,15 +653,42 @@ export default {
     getList() {
       this.loading = true;
       listConfigfive(this.bmProjectId).then(response => {
-          this.queryParams = {}
+
           this.fileListther = []
           this.fileListfour = []
           this.fileListfive = []
-          this.queryParams = response.data;
+          // this.ermit = []
+
+
           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.queryParamstwr = response.data;
+            this.modify = 1
+            if(this.queryParamstwr.constructionCode !== null){
+              this.ermit = this.queryParamstwr.constructionCode.split(',')
+              console.log(this.ermit,90)
+              for(var i = 0 ; i < this.ermit.length; i++){
+                this.fileListther.push({name:this.ermit[i],url:this.ermit[i]})
+              }
+            }
+             if(this.queryParamstwr.constructionDoc !== null){
+              this.ontractr = this.queryParamstwr.constructionDoc.split(',')
+               console.log(this.ontractr,80)
+              for(var i = 0; i < this.ontractr.length; i++){
+                this.fileListfour.push({name:this.ontractr[i],url:this.ontractr[i]})
+              }
+            }
+             if(this.queryParamstwr.constructionPhoto !== null){
+              this.ruction = this.queryParamstwr.constructionPhoto.split(',')
+              console.log(this.ruction,70)
+              for(var i=0; i < this.ruction.length; i++ ){
+                 this.fileListfive.push({name:this.ruction[i],url:this.ruction[i]})
+              }
+            }
+          }else {
+            //新增
+            this.queryParamstwr = {}
+            this.modify = 0
           }
 
           this.total = response.total;
@@ -644,7 +699,7 @@ export default {
     //开工图片列表
     getListtoi() {
       this.loading = true;
-      listConfigsix().then(response => {
+      listConfigsix(this.queryParamstwrction).then(response => {
           this.configList = response.rows;
           this.configList.filter(route => {
               if(route.photo !== null){
@@ -661,7 +716,7 @@ export default {
               }
 
                })
-          this.total = response.total;
+          this.totaltwo = response.total;
           this.loading = false;
         }
       );
@@ -669,7 +724,7 @@ export default {
     //设备安装接口
     getListther() {
       this.loading = true;
-      listConfigserve().then(response => {
+      listConfigserve(this.queryParamsstallation).then(response => {
           this.configListher = response.rows;
           this.configListher.filter(route => {
               if(route.photo !== null){
@@ -682,7 +737,7 @@ export default {
               }
 
                })
-          this.total = response.total;
+          this.totalth = response.total;
           this.loading = false;
         }
       );
@@ -713,7 +768,10 @@ export default {
       this.loading = true;
       listConfigarrival(this.bmjdeu).then(response => {
         if(response.data !== undefined){
-            this.queryParamstheyr = response.data
+
+          this.queryParamstwo = response.data
+        }else{
+
         }
 
           this.loading = false;
@@ -726,8 +784,20 @@ export default {
       listConfigintegration(this.bmProjectId).then(response => {
         this.fileListthertwo = []
          if(response.data !== undefined){
-           this.queryParamstwo = response.data
-           this.fileListthertwo.push({name:this.queryParamstwo.statisticsPhoto,url:this.queryParamstwo.statisticsPhoto})
+           //修改
+           this.udgment = 1
+           this.queryParamstheyr = response.data
+
+           if(this.queryParamstheyr.statisticsPhoto !== null){
+             this.udgmentList = this.queryParamstheyr.statisticsPhoto.split(',')
+             for(var i = 0 ; i < this.udgmentList.length; i++){
+               this.fileListthertwo.push({name:this.udgmentList[i],url:this.udgmentList[i]})
+             }
+           }
+
+         }else {
+           //新增
+           this.udgment = 0
          }
 
           this.loading = false;
@@ -851,28 +921,55 @@ export default {
     },
     //项目施工提交按钮
     submitCtion(){
-       this.queryParamstwr.bmProjectId = this.bmProjectId
-       this.queryParamstheyr.bmProjectId = this.bmProjectId
+
+       // this.queryParamstheyr.bmProjectId = this.bmProjectId
        // this.formther.bmProjectId = this.bmProjectId
        console.log(this.numhu)
        if(this.tab == 0){
          this.$refs["queryForm"].validate(valid => {
            if (valid) {
+             if(this.modify == 1){
+               //修改
+               updateConfigatruction(this.queryParamstwr).then(response => {
+                 this.msgSuccess("修改成功");
+                 this.open = false;
+                 this.getListtoi();
+                 this.$router.go(-1)
+               });
+             }else if(this.modify == 0){
+               //新增
+               this.queryParamstwr.bmProjectId = this.bmProjectId
                addConfigtherction(this.queryParamstwr).then(response => {
                  this.msgSuccess("新增成功");
                  this.open = false;
                  this.getListtoi();
+                 this.$router.go(-1)
                });
+             }
+
            }
          });
        }else if(this.tab == 3){
-         this.$refs["queryForm"].validate(valid => {
+         this.$refs["queryFormtwo"].validate(valid => {
            if (valid) {
+             if(this.udgment == 1){
+               //修改
+               updateConfigntegration(this.queryParamstheyr).then(response => {
+                 this.msgSuccess("修改成功");
+                 this.open = false;
+                 // this.getListtoi();
+                 this.$router.go(-1)
+               });
+             }else{
+               this.queryParamstheyr.bmProjectId = this.bmProjectId
                addConfigsix(this.queryParamstheyr).then(response => {
                  this.msgSuccess("新增成功");
                  this.opentwo = false;
-                 this.getListther();
+                 // this.getListther();
+                  this.$router.go(-1)
                });
+             }
+
            }
          });
        }
@@ -954,19 +1051,47 @@ export default {
     }
     // this.$router.push('/tab');
     },
+    //下一页点击
+    nextYg(){
+      this.tab = this.tab + 1
+      if(this.tab == 2){
+        this.getListfour()
+        this.getListfive()
+      }else if(this.tab == 3){
+       this.getListsix()
+      }
+    },
     quipment(index){
       this.resettwo();
       this.numhu = index
       this.opentwo = true;
       this.titletwo = "添加参数";
+    },
+    //取消
+    handleUpdatex(){
+      this.$router.go(-1)
+    },
+    //确认审核
+    handleAudit(){
+      this.queryFormhye.code =  1
+      this.queryFormhye.bmProjectId =  this.bmProjectId
+       addConfigbout(this.queryFormhye).then(response => {
+         console.log(response)
+         this.msgSuccess("提交成功");
+         this.$router.go(-1)
+          // 就可以回到上一页。
+         // this.open = false;
+         // this.getListtwo();
+       });
+      // console.log(this.queryParams)
     }
   }
 };
 </script>
-<style rel="stylesheet/scss" lang="scss">
+<style rel="stylesheet/scss" lang="scss" scoped>
   .roiyy{
     position: fixed;
-    top:180px;
+    top:130px;
     left:0;
     width: 100%;
     padding-left: 230px;
@@ -1041,7 +1166,7 @@ export default {
     }
     .maget_ty{
       .el-form-item__label{
-        width: 135px !important;
+        width: 140px !important;
       }
     }
     .forieu{

+ 4 - 4
ruoyi-ui/src/views/management/row/index.vue

@@ -1,12 +1,12 @@
 <template>
 
   <div class="app-container">
-    <div class="header">
+<!--    <div class="header">
       <span>
         项目详情 >
       </span>
-    </div>
-  <div style="height: 115px;"></div>
+    </div> -->
+  <div style="height: 85px;"></div>
 
 
   <div class="naue">
@@ -319,7 +319,7 @@ export default {
   }
 };
 </script>
-<style rel="stylesheet/scss" lang="scss">
+<style rel="stylesheet/scss" lang="scss" scoped>
   .manager_form{
     .manager_lab{
       .el-form-item__label{

+ 180 - 79
ruoyi-ui/src/views/under/index.vue

@@ -1,6 +1,6 @@
 <template>
 
-  <div class="app-cont">
+  <div class="app-conta">
     <el-row :gutter="10" class="mb8 roiyy">
        <el-col :span="1.5">
          <el-button
@@ -97,20 +97,20 @@
              style="width: 223px"
            />
          </el-form-item>
-         <el-form-item label="投资方联系方式:" prop="phone">
+         <el-form-item label="投资方联系方式:" prop="phone" class="weiru">
            <el-input
-             v-model="queryParams.phone"
+             v-model.number="queryParams.phone"
              placeholder="请输入联系方式"
              clearable
              size="small"
-             style="width: 223px"
+             style="width: 233px"
            />
          </el-form-item>
          <div class="nvestor">
            <p>引荐方 <i>*</i></p>
          </div>
          <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="sysdeptId">
              <el-select v-model="item.sysdeptId" placeholder="系统内置" clearable size="small" style="width: 188px">
                <el-option
                  v-for="dict in typeOptionstwo"
@@ -120,9 +120,9 @@
                />
              </el-select>
            </el-form-item>
-           <el-form-item label="投资分配额:" prop="item.investmentAllcocation">
+           <el-form-item label="投资分配额:" prop="investmentAllcocation">
              <el-input
-               v-model="item.investmentAllcocation"
+               v-model.number="item.investmentAllcocation"
                placeholder="输入数字"
                clearable
                size="small"
@@ -131,7 +131,7 @@
              />
              <span class="souu">%</span>
            </el-form-item>
-           <el-form-item label="引荐方联系人:" prop="item.referral">
+           <el-form-item label="引荐方联系人:" prop="referral">
              <el-input
                v-model="item.referral"
                placeholder="请输入"
@@ -142,7 +142,7 @@
              />
            </el-form-item>
 
-           <el-form-item label="引荐方联系方式:" prop="item.referralPhone">
+           <el-form-item label="引荐方联系方式:" prop="referralPhone">
              <el-input
                v-model="item.referralPhone"
                placeholder="请输入联系方式"
@@ -244,7 +244,7 @@
          </div>
          <el-form-item label="预计投资额" prop="needAmt">
            <el-input
-             v-model="queryParams.needAmt"
+             v-model.number="queryParams.needAmt"
              placeholder="请输入预计投资额"
              clearable
              size="small"
@@ -254,7 +254,7 @@
          </el-form-item>
          <el-form-item label="其中 固定资产投资:" prop="fixedAssets" class="manager_lab" >
            <el-input
-             v-model="queryParams.fixedAssets"
+             v-model.number="queryParams.fixedAssets"
              placeholder="请输入"
              clearable
              size="small"
@@ -293,7 +293,7 @@
            <el-form-item label="预计产值:" prop="productPrice"  class="maneg_lar">
 
              <el-input
-               v-model="queryParams.productPrice"
+               v-model.number="queryParams.productPrice"
                placeholder="请输入预计产值"
                clearable
                size="small"
@@ -305,7 +305,7 @@
          </div>
          <el-form-item label="预计税收:" prop="productTax" class="manager_labtwo" >
            <el-input
-             v-model="queryParams.productTax"
+             v-model.number="queryParams.productTax"
              placeholder="请输入预计税收"
              clearable
              size="small"
@@ -404,16 +404,14 @@
           />
         </el-form-item>
        <el-form-item label="拟落户地点:" prop="address">
-           <el-select v-model="queryParams.address" placeholder="系统内置" clearable size="small" style="width: 188px">
-             <el-option
-               v-for="dict in typeOptions"
-               :key="dict.dictValue"
-               :label="dict.dictLabel"
-               :value="dict.dictValue"
-             />
-           </el-select>
+           <el-input
+             v-model="queryParams.address"
+             placeholder="请输入拟落户地点"
+             size="small"
+             style="width: 188px"
+           />
          </el-form-item>
-         <el-form-item label="是否签订框架协议:" prop="isFrameorder" class="maget_ty">
+         <el-form-item label="是否签订框架协议:" prop="isFrameorder" class="maget_tyty">
              <el-select v-model="queryParams.isFrameorder" placeholder="系统内置" clearable size="small" style="width: 298px">
                <el-option
                  v-for="dict in typeOptions"
@@ -484,7 +482,7 @@
         <el-form-item label="法人代表姓名" prop="companyLegal">
           <el-input v-model="form.companyLegal" placeholder="请输入参数键值" />
         </el-form-item>
-        <el-form-item label="系统内置" prop="configType">
+       <!-- <el-form-item label="系统内置" prop="configType">
           <el-radio-group v-model="form.configType">
             <el-radio
               v-for="dict in typeOptions"
@@ -492,12 +490,12 @@
               :label="dict.dictValue"
             >{{dict.dictLabel}}</el-radio>
           </el-radio-group>
-        </el-form-item>
+        </el-form-item> -->
         <el-form-item label="统一社会信用代码" prop="companyCode">
           <el-input v-model="form.companyCode"  placeholder="请输入统一社会信用代码" />
         </el-form-item>
         <el-form-item label="联系方式" prop="phone">
-          <el-input v-model="form.phone"  placeholder="请输入联系方式" />
+          <el-input v-model.number="form.phone"   placeholder="请输入联系方式" />
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
@@ -506,17 +504,17 @@
       </div>
     </el-dialog>
     <el-dialog :title="titletwo" :visible.sync="opentwo" width="800px" append-to-body>
-      <el-form ref="formtwo" :model="formtwo" :rules="rules" label-width="150px">
+      <el-form ref="formtwo" :model="formtwo" :rules="rulestwo" label-width="150px">
         <el-form-item label="姓名" prop="name">
           <el-input v-model="formtwo.name" placeholder="请输入企业名称" />
         </el-form-item>
         <el-form-item label="自然人所在地" prop="address">
           <el-input v-model="formtwo.address" placeholder="请输入参数键名" />
         </el-form-item>
-        <el-form-item label="身份证号码" prop="idCode">
-          <el-input v-model="formtwo.idCode" placeholder="请输入参数键值" />
+        <el-form-item label="身份证号码" prop="idcode">
+          <el-input v-model="formtwo.idcode" placeholder="请输入参数键值" />
         </el-form-item>
-        <el-form-item label="系统内置" prop="configType">
+  <!--      <el-form-item label="系统内置" prop="configType">
           <el-radio-group v-model="form.configType">
             <el-radio
               v-for="dict in typeOptions"
@@ -524,9 +522,9 @@
               :label="dict.dictValue"
             >{{dict.dictLabel}}</el-radio>
           </el-radio-group>
-        </el-form-item>
+        </el-form-item> -->
         <el-form-item label="联系方式" prop="phone">
-          <el-input v-model="formtwo.phone"  placeholder="请输入联系方式" />
+          <el-input v-model.number="formtwo.phone" type="number"  placeholder="请输入联系方式" />
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
@@ -541,7 +539,7 @@
 </template>
 
 <script>
-import { listConfig, listConfigtwo, listConfigthert, listConfigfour, listConfigfieu, getConfig, getConfigKeytwo, delConfig, delConfigtwo, addConfig, addConfigtwo, addConfigalking, updateConfig, updateConfigtwo, updateConfigalking, exportConfig, clearCache } from "@/api/system/config";
+import { listConfig, listConfigtwo, listConfigthert, listConfigfour, listConfigfieu, getConfig, getConfigKeytwo, delConfig, delConfigtwo, addConfig, addConfigtwo, addConfigalking, addConfigbout, updateConfig, updateConfigtwo, updateConfigalking, exportConfig, clearCache } from "@/api/system/config";
 export default {
   name: "Config",
   props:{
@@ -592,6 +590,13 @@ export default {
           "referral":"",
           "referralPhone":""
         },
+        {
+          "bmProjectId":'',
+          "sysdeptId":'',
+          "investmentAllcocation":'',
+          "referral":"",
+          "referralPhone":""
+        }
         ]
       },
       dialogImageUrl: '',
@@ -601,29 +606,81 @@ export default {
       // 表单参数
       form: {},
       formtwo:{},
+      queryFormhye:{},
       fileList:[],
       fileListhye:[],
       // 表单校验
       rules: {
-        configName: [
-          { required: true, message: "参数名称不能为空", trigger: "blur" }
+        companyName: [
+          { required: true, message: "企业名称不能为空", trigger: "blur" }
+        ],
+        companyAddress: [
+          { required: true, message: "企业所在地不能为空", trigger: "blur" }
+        ],
+        companyLegal: [
+          { required: true, message: "法人代表姓名不能为空", trigger: "blur" }
         ],
-        configKey: [
-          { required: true, message: "参数键名不能为空", trigger: "blur" }
+        companyCode: [
+          { required: true, message: "统一社会信用代码不能为空", trigger: "blur" }
         ],
-        configValue: [
-          { required: true, message: "参数键值不能为空", trigger: "blur" }
+        phone: [
+          { required: true, message: "联系方式不能为空", trigger: "blur" },
+          { type: 'number', message: '联系方式必须为数字值'}
         ]
       },
+      rulestwo: {
+        name: [
+          { required: true, message: "姓名不能为空", trigger: "blur" }
+        ],
+        address: [
+          { required: true, message: "所在地不能为空", trigger: "blur" }
+        ],
+        idcode: [
+          { required: true, message: "身份证号码不能为空", trigger: "blur" }
+        ],
+        phone: [
+          { required: true, message: "联系方式不能为空", trigger: "blur" },
+          { type: 'number', message: '联系方式必须为数字值'}
+        ]
+      },
+
       queryForm:{
+        contactor: [
+          { required: true, message: "投资方联系人不能为空", trigger: "blur" }
+        ],
+        phone: [
+          { required: true, message: "投资方联系方式不能为空", trigger: "blur" }
+        ],
         needAmt: [
-          { required: true, message: "参数名称不能为空", trigger: "blur" }
+          { required: true, message: "预计投资额不能为空", trigger: "blur" },
+          { type: 'number', message: '预计投资额必须为数字值'}
+        ],
+        fixedAssets: [
+          { required: true, message: "固定资产投资不能为空", trigger: "blur" },
+          { type: 'number', message: '固定资产投资必须为数字值'}
+        ],
+        productName: [
+          { required: true, message: "产品名称不能为空", trigger: "blur" }
+        ],
+        productQty: [
+          { required: true, message: "设计产能不能为空", trigger: "blur" }
+        ],
+        productPrice: [
+          { required: true, message: "预计产值不能为空", trigger: "blur" },
+          { type: 'number', message: '预计产值必须为数字值'}
         ],
-        configKey: [
-          { required: true, message: "参数键名不能为空", trigger: "blur" }
+        productTax: [
+          { required: true, message: "预计税收不能为空", trigger: "blur" },
+          { type: 'number', message: '预计税收必须为数字值'}
         ],
-        configValue: [
-          { required: true, message: "参数键值不能为空", trigger: "blur" }
+        productEmp: [
+          { required: true, message: "预计用工不能为空", trigger: "blur" }
+        ],
+        address: [
+          { required: true, message: "拟落户地点不能为空", trigger: "blur" }
+        ],
+        isFrameorder: [
+          { required: true, message: "请选择是否签订框架协议", trigger: "blur" }
         ]
       },
       ntry:[],
@@ -686,34 +743,55 @@ export default {
       this.loading = true;
       listConfigtwo(this.bmProjectId).then(response => {
         console.log(response)
-        // if(response.data == undefined){
-          // console.log(876)
-          // //新增
-          // this.sbuen = 0
-          // this.queryParams = {
-          //   referralList:[
-          //     {
-          //     "bmProjectId":this.bmProjectId,
-          //     "sysdeptId":'',
-          //     "investmentAllcocation":'',
-          //     "referral":"",
-          //     "referralPhone":""
-          //   },
-          //   {
-          //     "bmProjectId":this.bmProjectId,
-          //     "sysdeptId":'',
-          //     "investmentAllcocation":'',
-          //     "referral":"",
-          //     "referralPhone":""
-          //   },
-          //   ]
-          // },
-          // this.queryParams.bmProjectId = this.bmProjectId
-        // }else if(response.data !== undefined){
+        if(response.data == undefined){
+          console.log(876)
+          //新增
+          this.sbuen = 0
+          this.queryParams = {
+            referralList:[
+              {
+              "bmProjectId":this.bmProjectId,
+              "sysdeptId":'',
+              "investmentAllcocation":'',
+              "referral":"",
+              "referralPhone":""
+            },
+            {
+              "bmProjectId":this.bmProjectId,
+              "sysdeptId":'',
+              "investmentAllcocation":'',
+              "referral":"",
+              "referralPhone":""
+            },
+            ]
+          },
+          this.queryParams.bmProjectId = this.bmProjectId
+        }else if(response.data !== undefined){
           //修改
           this.sbuen = 1
           this.queryParams = response.data;
-          this.queryParams.phone = 987
+          if(this.queryParams.referralList == null){
+            this.queryParams.referralList =
+            [
+              {
+                "bmProjectId":this.bmProjectId,
+                "sysdeptId":'',
+                "investmentAllcocation":'',
+                "referral":"",
+                "referralPhone":""
+              },
+              {
+                "bmProjectId":this.bmProjectId,
+                "sysdeptId":'',
+                "investmentAllcocation":'',
+                "referral":"",
+                "referralPhone":""
+              },
+            ]
+
+            // }
+          }
+          // this.queryParams.phone = 987
           console.log(this.queryParams,98755)
           // this.queryParams = this.queryParams.bmProjectId
            this.fileListhye = this.queryParams.attachment.split(',')
@@ -721,7 +799,7 @@ export default {
              this.fileList.push({name:this.fileListhye[i],url:this.fileListhye[i]})
            }
            // this.fileList.push({name:this.queryParams.attachment,url:this.queryParams.attachment})
-        // }
+        }
 
 
           // this.fileList =  this.queryParams.attachment
@@ -746,7 +824,7 @@ export default {
     getListther() {
       this.loading = true;
       listConfigfour(this.bmProjectId).then(response => {
-        console.log(response)
+        console.log(response.rows)
           this.configListtwoL = response.rows;
           // this.fileList =  this.queryParams.attachment
           // this.total = response.total;
@@ -814,9 +892,9 @@ export default {
     handleAdd() {
       this.reset();
       this.open = true;
-      this.opentwo =  true
+      // this.opentwo =  true
       this.title = "添加参数";
-      this.titletwo = "添加参数";
+      // this.titletwo = "添加参数";
 
     },
     handleAddtwo() {
@@ -837,10 +915,11 @@ export default {
     handleUpdate(row) {
       this.reset();
       const id = row.id
+      this.open = true;
       getConfig(id).then(response => {
         console.log(345)
         this.form = response.data;
-        this.open = true;
+
         // this.opentwo = true
         this.title = "修改参数";
         // this.titletwo = "修改参数";
@@ -904,13 +983,14 @@ export default {
     },
     // 暂存接口
     emporary(){
-     this.$refs["queryForm"].validate(valid => {
+     this.$refs["queryParams"].validate(valid => {
        if (valid) {
          if ( this.sbuen ==1 ) {
            updateConfigalking(this.queryParams).then(response => {
              this.msgSuccess("修改成功");
              this.open = false;
              this.getListtwo();
+             this.$router.go(-1)
            });
          } else {
            // this.queryParams.bmProjectId = this.bmProjectId
@@ -920,12 +1000,23 @@ export default {
              this.msgSuccess("新增成功");
              this.open = false;
              this.getListtwo();
+             this.$router.go(-1)
            });
          }
        }
      });
     },
     submitCtion(){
+      this.queryFormhye.code =  1
+      this.queryFormhye.bmProjectId =  this.bmProjectId
+      addConfigbout(this.queryFormhye).then(response => {
+        console.log(response)
+        this.msgSuccess("提交成功");
+        this.$router.go(-1)
+         // 就可以回到上一页。
+        // this.open = false;
+        // this.getListtwo();
+      });
      console.log(this.queryParams)
     },
     /** 删除按钮操作 */
@@ -982,16 +1073,21 @@ export default {
   }
 };
 </script>
-<style rel="stylesheet/scss" lang="scss">
+<style  lang="scss"  >
   .roiyy{
     position: fixed;
-    top:180px;
+    top:130px;
     left:0;
     width: 100%;
     padding-left: 230px;
     padding-right: 30px;
     box-sizing: border-box;
-    z-index: 44;
+    z-index: 999;
+  }
+  .weiru{
+    .el-form-item__label{
+      width: 130px !important;
+    }
   }
   .manager_form{
     .manager_lab{
@@ -1034,7 +1130,12 @@ export default {
     }
     .maget_ty{
       .el-form-item__label{
-        width: 135px !important;
+        width: 140px !important;
+      }
+    }
+    .maget_tyty{
+      .el-form-item__label{
+        width: 140px !important;
       }
     }
     .forieu{
@@ -1074,7 +1175,7 @@ export default {
       margin-bottom: 0 !important;
     }
   }
-.app-cont{
+.app-conta{
   .header{
     padding-left: 22px;
     height: 45px;