|
@@ -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;
|