4344fffd by 杨威

修改宗地信息流程优化

1 parent a3093e1c
......@@ -112,14 +112,13 @@
/>
<el-button type="primary" class="createBtn" @click="generatorCode"
>生成
</el-button
>
</el-button>
</td>
</tr>
<tr>
<td colspan="2">地籍号</td>
<td colspan="4">
<input type="text" class="formInput" v-model="formData.djh"/>
<input type="text" class="formInput" v-model="formData.djh" />
</td>
<td colspan="2">不动产单元号<i class="requisite">*</i></td>
......@@ -135,7 +134,7 @@
<tr>
<td colspan="2">坐落<i class="requisite">*</i></td>
<td colspan="4">
<input type="text" class="formInput" v-model="formData.zl"/>
<input type="text" class="formInput" v-model="formData.zl" />
</td>
<td colspan="2">土地权属来源证明材料</td>
<td colspan="4" class="psr">
......@@ -161,20 +160,20 @@
</td>
<td colspan="2">价格(元)</td>
<td colspan="4" class="psr">
<input type="text" class="formInput" v-model="formData.jg"/>
<input type="text" class="formInput" v-model="formData.jg" />
</td>
</tr>
<tr>
<td colspan="2" rowspan="2">所在图幅号</td>
<td colspan="2">比例尺</td>
<td colspan="8" class="psr">
<input type="text" class="formInput" v-model="formData.blc"/>
<input type="text" class="formInput" v-model="formData.blc" />
</td>
</tr>
<tr>
<td colspan="2">图幅号</td>
<td colspan="8" class="psr">
<input type="text" class="formInput" v-model="formData.tfh"/>
<input type="text" class="formInput" v-model="formData.tfh" />
</td>
</tr>
<tr>
......@@ -191,15 +190,24 @@
</el-select>
</td>
<td colspan="2">
<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"/>
<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">
<input type="text" class="formInput" v-model="formData.rjsm"/>
<input type="text" class="formInput" v-model="formData.rjsm" />
</td>
</tr>
<tr>
......@@ -216,15 +224,24 @@
</el-select>
</td>
<td colspan="2">
<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"/>
<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">
<input type="text" class="formInput" v-model="formData.jzmdsm"/>
<input type="text" class="formInput" v-model="formData.jzmdsm" />
</td>
</tr>
<tr>
......@@ -241,40 +258,49 @@
</el-select>
</td>
<td colspan="2">
<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"/>
<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">
<input type="text" class="formInput" v-model="formData.jzxgsm"/>
<input type="text" class="formInput" v-model="formData.jzxgsm" />
</td>
</tr>
<tr>
<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.zdszb"/>
<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.zdszd"/>
<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.zdszn"/>
<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.zdszx"/>
<input type="text" class="formInput" v-model="formData.zdszx" />
</td>
</tr>
<tr>
......@@ -285,36 +311,37 @@
<tr>
<td colspan="2" rowspan="2">批准面积(㎡)</td>
<td colspan="2" rowspan="2">
<input type="text" class="formInput" v-model="formData.pzmj"/>
<input type="text" class="formInput" v-model="formData.pzmj" />
</td>
<td colspan="2" rowspan="2">宗地面积(㎡)</td>
<td colspan="2" rowspan="2">
<input type="text" class="formInput" v-model="formData.zdmj"/>
<input type="text" class="formInput" v-model="formData.zdmj" />
</td>
<td colspan="2">建筑占地总面积</td>
<td colspan="2">
<input type="text" class="formInput" v-model="formData.jzzdzmj"/>
<input type="text" class="formInput" v-model="formData.jzzdzmj" />
</td>
</tr>
<tr>
<td colspan="2">建筑面积(㎡)</td>
<td colspan="2">
<input type="text" class="formInput" v-model="formData.jzzmj"/>
<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.gygyqlrqk"/>
<input type="text" class="formInput" v-model="formData.gygyqlrqk" />
</td>
</tr>
<tr>
<td colspan="2" rowspan="2">说明</td>
<td colspan="10" rowspan="2">
<input type="text" class="formInput" v-model="formData.sm"/>
<input type="text" class="formInput" v-model="formData.sm" />
</td>
</tr>
</table>
<div style="min-height: 40px;text-align: center;margin-top: 10px">
<el-button type="primary" @click="updateZDxx">保存</el-button>
</div>
......@@ -323,16 +350,20 @@
</template>
<script>
import Qlr from "../../../components/formMenu/qlr";
import Qlxz from "../../../components/formMenu/qlxz";
import {
import Qlr from "../../../components/formMenu/qlr";
import Qlxz from "../../../components/formMenu/qlxz";
import {
getDdicByMC,
getListByXzqbsm,
getListByPbsm,
} from "../../../api/common";
import {getBdcdyh, getQjZdjbxxDetailById,updateQjZdjbxx} from "../../../api/zd";
} from "../../../api/common";
import {
getBdcdyh,
getQjZdjbxxDetailById,
updateQjZdjbxx,
} from "../../../api/zd";
export default {
export default {
name: "",
components: {
Qlr,
......@@ -342,72 +373,71 @@
data() {
return {
compareList: [
{label: "<", value: "<"},
{label: ">", value: ">"},
{label: "=", value: "="},
{label: "<=", value: "<="},
{label: ">=", value: ">="},
{label: "-", value: "-"}
{ label: "<", value: "<" },
{ label: ">", value: ">" },
{ label: "=", value: "=" },
{ label: "<=", value: "<=" },
{ label: ">=", value: ">=" },
{ label: "-", value: "-" },
],
formData: {
"bblx": 0,
"bbsxh": 0,
"bhqkbsm": "",
"blc": "",
"bz": "",
"dcrq": "2020-10-22T09:07:38.644Z",
"dcy": "",
"dcyj": "",
"djh": "",
"djqbsm": "",
"djzqbsm": "",
"dyhbsm": "",
"gmjjhyflbsm": "",
"gygyqlrqk": "",
"jg": 0,
"jyjzmd": ">",
"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": "坐落"
bblx: 0,
bbsxh: 0,
bhqkbsm: "",
blc: "",
bz: "",
dcrq: "2020-10-22T09:07:38.644Z",
dcy: "",
dcyj: "",
djh: "",
djqbsm: "",
djzqbsm: "",
dyhbsm: "",
gmjjhyflbsm: "",
gygyqlrqk: "",
jg: 0,
jyjzmd: ">",
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: "坐落",
},
};
},
created() {
this.getZdjbxxData();
},
mounted() {
},
mounted() {},
methods: {
//根据zdbsm查询基本信息
getZdjbxxData() {
......@@ -418,8 +448,7 @@
this.formData = res.result;
}
})
.catch((error) => {
});
.catch((error) => {});
},
//生成宗地代码
generatorCode() {
......@@ -430,19 +459,28 @@
this.formData.zddm = res.result.substring(0, 19);
this.formData.dyhbsm = res.result;
})
.catch((error) => {
});
.catch((error) => {});
},
//修改宗地基本信息
updateZDxx(){
updateZDxx() {
//获取权利性质数据
this.formData.list = this.$refs.qlxzModule.getQlxzDataList();
updateQjZdjbxx(this.formData)
.then((res) => {
if (res.code == 200) {
console.log(res);
})
.catch((error) => {
this.$message({
message: '保存成功',
type: "success",
});
} else {
this.$message({
message: res.message,
type: "warning",
});
}
})
.catch((error) => {});
},
getQlrxxData() {
console.log(this.$refs.qlrxxModule.getQlgyfsData()); //权利共有方式数据
......@@ -460,8 +498,7 @@
this.djqList = res.result;
this.$store.state.djqList = res.result;
})
.catch((error) => {
});
.catch((error) => {});
},
changeDjq(item) {
getListByPbsm(item)
......@@ -470,36 +507,35 @@
this.djzqList = res.result;
this.$store.state.djzqList = res.result;
})
.catch((error) => {
});
.catch((error) => {});
},
},
computed: {
zl() {
return this.formData.zl
return this.formData.zl;
},
mj() {
return this.formData.zdmj
return this.formData.zdmj;
},
zddm() {
return this.formData.zddm
}
return this.formData.zddm;
},
},
watch: {
zl: function (val) {
this.$store.state.zdzl = val
zl: function(val) {
this.$store.state.zdzl = val;
},
mj: function (val) {
this.$store.state.zdmj = val
mj: function(val) {
this.$store.state.zdmj = val;
},
zddm: function (val) {
this.$store.state.zddm = val
}
zddm: function(val) {
this.$store.state.zddm = val;
},
};
},
};
</script>
<style lang="less" scoped>
.main {
.main {
box-sizing: border-box;
padding: 18px;
height: auto;
......@@ -570,5 +606,5 @@
width: 100%;
}
}
}
}
</style>
......