8f874e2c by 杨威

字段校对

1 parent b397629f
......@@ -52,7 +52,7 @@
<li>
<el-select class="formSelect percent30" v-model="items.pzyt">
<el-option
v-for="item in pzytList"
v-for="item in $store.state.tdytList"
:key="item.dm"
:label="item.mc"
:value="item.dm"
......@@ -63,7 +63,7 @@
<li>
<el-select class="formSelect percent30" v-model="items.sjyt">
<el-option
v-for="item in sjytList"
v-for="item in $store.state.tdytList"
:key="item.dm"
:label="item.mc"
:value="item.dm"
......@@ -113,10 +113,10 @@
<li>
<el-select class="formSelect percent30" v-model="items.dj1">
<el-option
v-for="item in djList"
:key="item.value"
:label="item.label"
:value="item.value"
v-for="item in $store.state.tddjList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
>
</el-option>
</el-select>
......@@ -124,10 +124,10 @@
<li>
<el-select class="formSelect percent30" v-model="items.dj2">
<el-option
v-for="item in djList"
:key="item.value"
:label="item.label"
:value="item.value"
v-for="item in $store.state.tddjList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
>
</el-option>
</el-select>
......@@ -145,10 +145,10 @@
<div class="title">
<el-select class="formSelect" v-model="items.qlxz">
<el-option
v-for="item in compareList"
:key="item.value"
:label="item.label"
:value="item.value"
v-for="item in $store.state.qlxzList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
>
</el-option>
</el-select>
......@@ -176,14 +176,6 @@ export default {
},
data() {
return {
pzytList:[],
sjytList:[],
djList:[],
compareList: [
{label: "=", value: "="},
{label: "<=", value: "<="},
{label: ">=", value: ">="},
],
countList: [
{
id: Math.random(),
......@@ -201,26 +193,12 @@ export default {
tdsyjssj: "",
},
],
outNum:0
};
},
created(){
this.getDicData()
},
methods: {
//获取字典数据
getDicData(){
getDdicByMC("土地用途")
.then((res) => {
this.pzytList = res.result;
this.sjytList = res.result;
})
.catch((error) => {});
getDdicByMC("土地等级")
.then((res) => {
this.djList = res.result;
})
.catch((error) => {});
},
//外层操作
handleClick(id, ind, type) {
if (type === "add") {
......@@ -239,12 +217,14 @@ export default {
dj2: "",
tdsyjssj: "",
});
this.outNum++
} else {
this.countList.forEach((item, index) => {
if (index == ind && this.countList.length > 1) {
this.countList.splice(index, 1);
}
});
this.outNum--
}
this.hasBorderOrNot();
},
......@@ -283,7 +263,12 @@ export default {
tempNum++;
}
});
this.countList.splice(tempIndex, tempNum);
//判断外层是否没有增加,如果没有增加,则不能删除当前外层
if(ind == 0 && this.outNum == 0){
}else{
this.countList.splice(tempIndex, tempNum);
}
}
}
this.hasBorderOrNot();
......
......@@ -127,7 +127,7 @@
<input
type="text"
class="formInput percent78"
v-model="formData.bdcdyh"
v-model="formData.dyhbsm"
/>
<el-button type="primary" class="createBtn">生成</el-button>
</td>
......@@ -149,13 +149,13 @@
<tr>
<td colspan="2">国民经济行业分类</td>
<td colspan="4">
<el-select class="formSelect" v-model="formData.gmjjhyfl">
<el-option
v-for="item in $store.state.sshyList"
:key="item.value"
:label="item.label"
:value="item.value"
>
<el-select class="formSelect" v-model="formData.gmjjhyflbsm">
<el-option
v-for="item in $store.state.sshyList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
>
</el-option>
</el-select>
</td>
......@@ -180,7 +180,7 @@
<tr>
<td colspan="2">容积率</td>
<td colspan="2">
<el-select class="formSelect" v-model="formData.rjl">
<el-select class="formSelect" v-model="formData.jyrjl">
<el-option
v-for="item in compareList"
:key="item.value"
......@@ -191,7 +191,9 @@
</el-select>
</td>
<td colspan="2">
<input type="text" class="formInput"/>
<input type="text" v-model="formData.rjl" :class="formData.jyrjl=='-'? 'formInput percent47' : 'formInput'"/>
<span class="percent4" v-show="formData.jyrjl=='-'">-</span>
<input type="text" v-show="formData.jyrjl=='-'" v-model="formData.rjl" class="formInput percent47"/>
</td>
<td colspan="2">容积说明</td>
<td colspan="4" class="psr">
......@@ -201,7 +203,7 @@
<tr>
<td colspan="2">建筑密度</td>
<td colspan="2">
<el-select class="formSelect" v-model="formData.jzmd">
<el-select class="formSelect" v-model="formData.jyjzmd">
<el-option
v-for="item in compareList"
:key="item.value"
......@@ -212,7 +214,9 @@
</el-select>
</td>
<td colspan="2">
<input type="text" class="formInput"/>
<input type="text" v-model="formData.jzmd" :class="formData.jyjzmd=='-'? 'formInput percent47' : 'formInput'"/>
<span class="percent4" v-show="formData.jyjzmd=='-'">-</span>
<input type="text" v-show="formData.jyjzmd=='-'" v-model="formData.jzmd" class="formInput percent47"/>
</td>
<td colspan="2">建筑密度说明</td>
<td colspan="4" class="psr">
......@@ -222,7 +226,7 @@
<tr>
<td colspan="2">建筑限高</td>
<td colspan="2">
<el-select class="formSelect" v-model="formData.jzxg">
<el-select class="formSelect" v-model="formData.jyjzxg">
<el-option
v-for="item in compareList"
:key="item.value"
......@@ -233,7 +237,9 @@
</el-select>
</td>
<td colspan="2">
<input type="text" class="formInput percent68"/>
<input type="text" v-model="formData.jzxg" :class="formData.jyjzxg=='-'? 'formInput percent47' : 'formInput'"/>
<span class="percent4" v-show="formData.jyjzxg=='-'">-</span>
<input type="text" v-show="formData.jyjzxg=='-'" v-model="formData.jzxg" class="formInput percent47"/>
</td>
<td colspan="2">建筑限高说明</td>
<td colspan="4" class="psr">
......@@ -244,25 +250,25 @@
<td colspan="2" rowspan="4">宗地四至</td>
<td colspan="2">北至<i class="requisite">*</i></td>
<td colspan="8" class="psr">
<input type="text" class="formInput" v-model="formData.bz"/>
<input type="text" class="formInput" v-model="formData.zdszb"/>
</td>
</tr>
<tr>
<td colspan="2">东至<i class="requisite">*</i></td>
<td colspan="8" class="psr">
<input type="text" class="formInput" v-model="formData.dz"/>
<input type="text" class="formInput" v-model="formData.zdszd"/>
</td>
</tr>
<tr>
<td colspan="2">南至<i class="requisite">*</i></td>
<td colspan="8" class="psr">
<input type="text" class="formInput" v-model="formData.nz"/>
<input type="text" class="formInput" v-model="formData.zdszn"/>
</td>
</tr>
<tr>
<td colspan="2">西至<i class="requisite">*</i></td>
<td colspan="8" class="psr">
<input type="text" class="formInput" v-model="formData.xz"/>
<input type="text" class="formInput" v-model="formData.zdszx"/>
</td>
</tr>
<tr>
......@@ -279,7 +285,7 @@
<td colspan="2" rowspan="2">
<input type="text" class="formInput" v-model="formData.zdmj"/>
</td>
<td colspan="2">建筑占地面积</td>
<td colspan="2">建筑占地面积</td>
<td colspan="2">
<input type="text" class="formInput" v-model="formData.jzzdzmj"/>
</td>
......@@ -287,13 +293,13 @@
<tr>
<td colspan="2">建筑面积(㎡)</td>
<td colspan="2">
<input type="text" class="formInput" v-model="formData.jzmj"/>
<input type="text" class="formInput" v-model="formData.jzzmj"/>
</td>
</tr>
<tr>
<td colspan="2">共有/共用权利人情况</td>
<td colspan="10">
<input type="text" class="formInput" v-model="formData.gyqlrqk"/>
<input type="text" class="formInput" v-model="formData.gygyqlrqk"/>
</td>
</tr>
<tr>
......@@ -332,39 +338,90 @@
{label: "=", value: "="},
{label: "<=", value: "<="},
{label: ">=", value: ">="},
{label: "-", value: "-"}
],
formData: {
xzqbsm: "",
djqbsm: "",
djzqbsm: "",
qllxbsm: "",
zdtzmbsm: "",
qlsdfs: "",
zddm: "",
djh: "",
bdcdyh: "",
zl: "",
tdqslyzmcl: "",
gmjjhyfl: "",
jg: "",
blc: "",
tfh: "",
rjl: "",
rjsm: "",
jzmd: "",
jzmdsm: "",
jzxg: "",
jzxgsm: "",
bz: "",
dz: "",
nz: "",
xz: "",
pzmj: "",
zdmj: "",
jzzdmj: "",
jzmj: "",
gyqlrqk: "",
sm: "",
"addQjQlxzRequestList": [
{
"addQjTdytRequestList": [
{
"bz": "",
"mj": 0,
"pzdjbsm": "",
"pzdjmc": "",
"pzytdm": "",
"pzytmc": "",
"pzytmj": 0,
"qlxzbsm": "",
"sjdjbsm": "",
"sjdjmc": "",
"sjytdm": "",
"sjytmc": "",
"sjytmj": 0,
"syqx": "",
"tdsyjssj": "2020-10-22T09:07:38.644Z",
"tdsyqssj": "2020-10-22T09:07:38.644Z",
"tdzh": ""
}
],
"bsm": "",
"glbsm": "",
"qlxzdm": "",
"qlxzmc": "",
"qlxzzdbsm": "",
"zhqlxzlx": 0
}
],
"bblx": 0,
"bbsxh": 0,
"bhqkbsm": "",
"blc": "",
"bz": "",
"dcrq": "2020-10-22T09:07:38.644Z",
"dcy": "",
"dcyj": "",
"djh": "",
"djqbsm": "",
"djzqbsm": "",
"dyhbsm": "",
"gmjjhyflbsm": "",
"gygyqlrqk": "",
"jg": 0,
"jyjzmu": "",
"jyjzxg": "",
"jyrjl": "",
"jzmd": 0,
"jzmdsm": "",
"jzxg": 0,
"jzxgsm": "",
"jzzdzmj": 0,
"jzzmj": 0,
"mjdw": "",
"pzmj": 0,
"qllxbsm": "",
"qlsdfs": "",
"qszt": "",
"rjl": 0,
"rjlsm": "",
"sfwqfg": "",
"sjly": 0,
"syqlxbsm": "",
"tdqslyzmcl": "",
"tfh": "",
"userbsm": "",
"xmmc": "",
"xzqbsm": "",
"ydybsm": "",
"ysclbsm": "",
"zdbsm": "",
"zddm": "",
"zdmj": 0,
"zdszb": "",
"zdszd": "",
"zdszn": "",
"zdszx": "",
"zdtzmbsm": "",
"zl": ""
},
};
},
......@@ -491,6 +548,16 @@
position: relative;
top: 7px;
}
.percent47 {
width: 45% !important;
float: left;
}
.percent4 {
height: 20px;
line-height: 20px;
width: 4% !important;
float: left;
}
.percent30 {
width: 30% !important;
float: left;
......