44bae715 by 杨威
2 parents 87856703 a60277d2
import request from '@/plugin/axios'
/**
* 查询逻辑幢基本信息
*/
export function getQjLjzDetailById(data) {
return request({
url: '/system/qjLjz/getQjLjzDetailById',
method: 'get',
params: {
id: data,
}
})
}
/**
* 更新保存逻辑幢基本信息
*/
export function updateQjLjz(data) {
return request({
url: '/system/qjLjz/updateQjLjz',
method: 'put',
data: data,
})
}
......@@ -44,3 +44,17 @@ export function zrzList(data) {
data:data
})
}
/**
* 查询宗地、自然幢等权属状态
* @param bsm
*/
export function queryStatus(bsm) {
return request({
url:"/system/basiccommon/query-status",
method:'get',
params:{
bsm
}
})
}
......
......@@ -417,7 +417,6 @@
//todo 权利人页面调整
this.formData.addQjDlrFrRequest=[];
this.formData.glbsm=this.bsm;
this.formData.gyfsbsm=this.gyfs;
//将代理人,法人数据合在一起,名称为addQjDlrFrRequest;
//法人的type字段类型为0,
this.formData.fr.type=0;
......@@ -427,7 +426,6 @@
this.formData.dlrList[k].type=1;
this.formData.addQjDlrFrRequest.push(this.formData.dlrList[k]);
}
this.formData.gyfsbsm=this.gyfs;
//如果是从更新按钮点击确定的则进行更新操作,如果不是,则进行添加操作
if(this.update){
console.log(this.formData)
......@@ -563,19 +561,12 @@
},
created(){
this.gyfsList = this.$store.state.gyfsList;
if(this.tableData.length>1){
for(let i = 0;i<this.gyfsList.length;i++){
let item = this.gyfsList[i];
this.gyfsList.disabled = item.mc === "单独所有" && item.bsm === this.gyfs;
}
}
},
mounted() {
this.getQlrInfo();
if(this.$store.state.gyfsList.length>0){
this.gyfs=this.$store.state.gyfsList[0].bsm;
}
},
watch:{
dialogVisible(n){
......@@ -632,6 +623,11 @@
this.gyfsList[i].disabled = item.mc === "单独所有";
}
}
console.log(this.tableData.length+":this.tableData[0].length");
if(this.tableData.length>1){
console.log(JSON.stringify(this.tableData[0])+":this.tableData[0].length");
this.gyfs = this.tableData[0].gyfsbsm
}
},
}
};
......
......@@ -253,7 +253,7 @@ export default {
default:
break;
}
if(item.type == 'zd' ||item.type == 'dz' ||item.type == 'zrz'){
if(item.type == 'zd' ||item.type == 'dz' ||item.type == 'zrz'||item.type == 'gzw'){
this.$router.push({
path: '/'+item.type,
query:{
......
......@@ -10,26 +10,26 @@
<div>
<table border="1">
<tr>
<td>前缀</td>
<td>宗地</td>
<td>自然幢</td>
<td>逻辑幢</td>
<td>幢单元</td>
<td></td>
<td></td>
<td>后缀</td>
<th>前缀</th>
<th>宗地</th>
<th>自然幢</th>
<th>逻辑幢</th>
<th>幢单元</th>
<th></th>
<th></th>
<th>后缀</th>
</tr>
<tr>
<td>
<input type="text" class="inputtitle" v-model="plzlData.qz"/>
<el-input v-model="plzlData.qz"></el-input>
</td>
<td>
<el-select v-model="plzlData.zd">
<el-option v-for="i in zdgz"
:key="i.label"
:label="i.label"
:value="i.value">
:value="i.value"
:disabled="i.disabled">
</el-option>
</el-select>
</td>
......@@ -38,8 +38,8 @@
<el-option v-for="i in zrzgz"
:key="i.label"
:label="i.label"
:value="i.value">
:value="i.value"
:disabled="i.disabled">
</el-option>
</el-select>
</td>
......@@ -84,7 +84,7 @@
</el-select>
</td>
<td>
<input type="text" class="inputtitle" v-model="plzlData.hz"/>
<el-input v-model="plzlData.hz"></el-input>
</td>
</tr>
</table>
......@@ -132,22 +132,27 @@
zdgz: [
{
label: '宗地坐落',
value: '1'
value: '1',
disabled: false
}, {
label: "宗地名称",
value: '2'
value: '2',
disabled: false
}, {
label: "空",
value: '3'
value: '3',
disabled: false
}
],
zrzgz: [
{
label: '自然幢坐落',
value: '1'
value: '1',
disabled: false
}, {
label: "自然幢名称",
value: '2'
value: '2',
disabled: false
}, {
label: "空",
value: '3'
......@@ -305,6 +310,13 @@
watch: {
plZlVisible: function (val) {
this.isVisible = val
},
plzlData: {
handler(val) {
this.zrzgz[0].disabled = +val.zd === 1;
this.zdgz[0].disabled = +val.zrz === 1;
},
deep: true
}
}
}
......@@ -321,6 +333,10 @@
}
}
th {
height: 36px;
}
td {
text-align: center;
height: 36px;
......
......@@ -444,7 +444,7 @@ export default {
cursor: pointer;
height: 72px;
padding: 0 30px;
font-size: 20px;
font-size: 18px;
line-height: 72px;
float: left;
position: relative;
......@@ -453,7 +453,7 @@ export default {
/*border-right: 1px solid #EAEAEA;*/
i {
margin-right: 6px;
font-size: 22px;
font-size: 18px;
position: relative;
top: 1px;
}
......
......@@ -8,24 +8,24 @@
<th colspan="12"><font size="4"></font>多幢基本信息</th>
</tr>
<tr height="30">
<td colspan="2" align="center" >宗地代码</td>
<td colspan="2" align="center">宗地代码</td>
<td colspan="4" >
<input class="formInput" maxlength="19" v-model="form.zddm">
<input class="formInput" disabled maxlength="19" v-model="form.zddm">
</td>
<td colspan="2" align="center" >不动产单元号</td>
<td colspan="2" align="center" ><i class="requisite">*</i>不动产单元号</td>
<td colspan="4" class="psr">
<input class="formInput percent80" maxlength="28" v-model="form.bdcdyh">
<el-button @click.prevent="generatorCode" size="mini" class="createBtn" type="warning">生成</el-button>
<input class="formInput percent80" :disabled="disabled" maxlength="28" v-model="form.bdcdyh" @blur="inputBlur($event)" ref="bdcdyh">
<el-button @click.prevent="generatorCode" :disabled="disabled" size="mini" class="createBtn" type="warning">生成</el-button>
</td>
</tr>
<tr height="30">
<td colspan="2" align="center" >项目名称</td>
<td colspan="2" align="center" ><i class="requisite">*</i>项目名称</td>
<td colspan="4" >
<input class="formInput" v-model="form.xmmc">
<input class="formInput" :disabled="disabled" v-model="form.xmmc" @blur="inputBlur($event)" ref="xmmc">
</td>
<td colspan="2" align="center" >房屋性质</td>
<td colspan="4" >
<el-select class="formSelect" v-model="form.fwxzbsm" placeholder="请选择" >
<el-select class="formSelect" :disabled="disabled" v-model="form.fwxzbsm" placeholder="请选择" >
<el-option
v-for="item in $store.state.fwxzOptions"
:key="item.bsm"
......@@ -39,13 +39,14 @@
<tr height="30">
<td colspan="2" align="center" >共有土地面积(㎡)</td>
<td colspan="4" >
<input class="formInput" type="number" v-model="form.zdmj">
<input class="formInput" :disabled="disabled" type="number" v-model="form.zdmj">
</td>
<td colspan="2" align="center" >竣工日期</td>
<td colspan="4" >
<el-date-picker
style="width:100%"
v-model="form.jgrq"
:disabled="disabled"
type="date"
placeholder="选择日期">
</el-date-picker>
......@@ -55,11 +56,11 @@
<tr height="30">
<td colspan="2" align="center" >分摊土地面积(㎡)</td>
<td colspan="4" >
<input class="formInput" type="number" v-model="form.fttdsymj">
<input class="formInput" type="number" :disabled="disabled" v-model="form.fttdsymj">
</td>
<td colspan="2" align="center" >产别</td>
<td colspan="4" >
<el-select class="formSelect" v-model="form.fwcbbsm" placeholder="请选择" >
<el-select class="formSelect" :disabled="disabled" v-model="form.fwcbbsm" placeholder="请选择" >
<el-option
v-for="item in $store.state.cbOptions"
:key="item.bsm"
......@@ -73,11 +74,11 @@
<tr height="30">
<td colspan="2" align="center" >多幢独用土地面积(㎡)</td>
<td colspan="4" >
<input class="formInput" type="number" v-model="form.dlsytdmj">
<input class="formInput" :disabled="disabled" type="number" v-model="form.dlsytdmj">
</td>
<td colspan="2" align="center" >产权来源</td>
<td colspan="4" >
<el-select class="formSelect" v-model="form.fwcqlybsm" placeholder="请选择" >
<el-select class="formSelect" :disabled="disabled" v-model="form.fwcqlybsm" placeholder="请选择" >
<el-option
v-for="item in $store.state.cqlyOptions"
:key="item.bsm"
......@@ -106,7 +107,7 @@
:default-expand-all="defaultExpandAll"
:multiple="multiple"
:placeholder="placeholder"
:disabled="form.qszt!='0'"
:disabled="disabled"
:data="$store.state.fwytList"
:props="treeProps"
:check-strictly="checkStrictly"
......@@ -122,7 +123,7 @@
:default-expand-all="defaultExpandAll"
:multiple="multiple"
:placeholder="placeholder"
:disabled="form.qszt!='0'"
:disabled="disabled"
:data="$store.state.fwytList"
:props="treeProps"
:check-strictly="checkStrictly"
......@@ -141,10 +142,10 @@
<tr height="30">
<td colspan="2" align="center" >
<span>坐落</span>
<span><i class="requisite">*</i>坐落</span>
</td>
<td colspan="10" >
<input class="formInput" v-model="form.zl">
<input class="formInput" v-model="form.zl" :disabled="disabled" @blur="inputBlur($event)" ref="zl">
</td>
</tr>
......@@ -153,7 +154,7 @@
<span>附加说明</span>
</td>
<td colspan="10" rowspan="2" >
<input class="formInput" v-model="form.bz" type="textarea">
<input class="formInput" v-model="form.bz" :disabled="disabled" type="textarea">
</td>
</tr>
<tr height="30">
......@@ -164,7 +165,7 @@
<span>调查意见</span>
</td>
<td colspan="10" >
<input class="formInput" v-model="form.name">
<input class="formInput" v-model="form.name" :disabled="disabled">
</td>
</tr>
......@@ -173,7 +174,7 @@
<span>审查员</span>
</td>
<td colspan="2" >
<input class="formInput" v-model="form.name">
<input class="formInput" v-model="form.name" :disabled="disabled">
</td>
<td colspan="2" rowspan="2" align="right" style="width:8.33%;padding-right:10px">
<span>审查日期</span>
......@@ -182,6 +183,7 @@
<el-date-picker style="width:100%"
v-model="form.date"
type="date"
:disabled="disabled"
placeholder="选择日期">
</el-date-picker>
</td>
......@@ -190,8 +192,8 @@
</table>
</el-form>
<div class="header-button" :style="{width:mainBoxWidth+'px'}">
<el-button type="primary" class="saveBtn" @click="onSave">保存</el-button>
<el-button type="primary" @click="onSubmit">提交</el-button>
<el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled">保存</el-button>
<el-button type="primary" @click="onSubmit" :disabled="disabled">提交</el-button>
<el-button type="primary" @click="registerCall">登记调用</el-button>
</div>
</div>
......@@ -282,6 +284,8 @@
value: '',
ytTitleRowspan:1, //用途的单元格垂直合并数量
mainBoxWidth: 0,
rules:[],
}
},
created() {
......@@ -380,6 +384,15 @@
this.form.qlxzList
},
inputBlur(e) {
if (e.target.value != '') {
e.target.style.border = ""
} else {
e.target.style.border = "1px solid red";
e.target.style.boxSizing = 'border-box';
}
},
deleteQlxzItem(index){
},
......@@ -387,6 +400,11 @@
getDzDetailByBsm(data).then((res)=>{
if(res.code===200) {
this.form = res.result;
if(this.form.bblx === 0 && this.form.qszt === '0' && this.form.bhqkbsm == null){
this.disabled = false
}else {
this.disabled = true
}
console.log(this.form+"fwytList")
console.log(this.form)
if(this.form.fwytList.length===0){
......@@ -427,10 +445,66 @@
onSave(){
this.rules=[
{
data:this.form.bdcdyh,
name:'不动产单元号',
dom:this.$refs.bdcdyh,
rule: /^\s*$/g, //非空
},
{
data:this.form.xmmc,
name:'项目名称',
dom:this.$refs.xmmc,
rule: /^\s*$/g, //非空
},
{
data:this.form.zl,
name:'坐落',
dom:this.$refs.zl,
rule: /^\s*$/g, //非空
},
]
this.form.fwytList.forEach((item,index)=>{
this.rules.push(
{
data:item.fwytzdbsm,
name:'规划用途',
dom:this.$refs.ghyt[index],
rule: /^\s*$/g, //非空
},
{
data:item.fwytzdbsm,
name:'用途',
dom:this.$refs.yt[index],
rule: /^\s*$/g, //非空
},
)
})
console.log(this.form)
this.form.dzbsm=this.bsm;
let flag = true;
this.form.qlxzList= this.$refs.qlxzModule.getQlxzDataList();
if(1>0){
this.$refs.qlxzModule.getRules();
this.rules.forEach(item=>{
if(item.rule.test(item.data) || item.data == null){
if(item.dom.$el){
item.dom.$el.style.border = '1px solid red';
item.dom.$el.style.boxSizing = 'border-box';
}else{
item.dom.style.border = '1px solid red';
item.dom.style.boxSizing = 'border-box';
}
flag = false;
return false
}
})
this.$nextTick(()=> {
if (flag && this.$refs.qlxzModule.getRulesResult()) {
saveDzInfo(this.form).then((res)=>{
if(res.code===200){
this.$message.success("保存完成!")
......@@ -441,7 +515,14 @@
});
}
})
}else {
this.$message({
// message: item.name+'不能为空',
message: '请完善表单后再继续操作',
type: "warning",
});
}
})
},
onSubmit(){
console.log(this.form)
......@@ -454,6 +535,7 @@
if(res.code===200){
this.$message.success("提交完成!");
this.getDzDetailByBsm(this.$route.query.bsm)
this.getTreeByBsm(this.$route.query.bsm,'dz','0,1,2')
}
})
},
......@@ -512,6 +594,24 @@
this.getDzDetailByBsm(val)
},
"form.fwytList": {
handler : function (newVal, oldVal) {
newVal.forEach((item,ind)=>{
if(item.fwytzdbsm != ''){
this.$refs.ghyt[ind].$el.style.border=""
this.$refs.yt[ind].$el.style.border=""
}
})
},
deep:true
},
"form.bdcdyh":function (val) {
if (val != '') {
this.$refs.bdcdyh.style.border = '';
}
},
"$store.state.sxdrType": {
handler(n) {
this.$nextTick(()=>{
......
......@@ -2,7 +2,8 @@
<div class="content_box">
<el-tabs v-model="activeName" class="tabs" @tab-click="handleClick" type="border-card" >
<el-tab-pane label="多幢基本信息" name="dzxx"><dzxx v-if="dzJbxxVisble"></dzxx></el-tab-pane>
<el-tab-pane label="附件材料" name="fjcl"><fjcl v-if="fjclVisible"></fjcl></el-tab-pane>
<el-tab-pane label="附件材料" name="fjcl">
<fjcl v-if="fjclVisible" ref="fjcl"></fjcl></el-tab-pane>
</el-tabs>
</div>
</template>
......@@ -10,6 +11,7 @@
<script>
import dzxx from "./dzxx";
import fjcl from "./../zd/fjcl/fjcl"
import {queryStatus} from "@api/search"
export default {
name: "",
components: {
......@@ -18,13 +20,25 @@
props: {},
data() {
return {
isDisabled:false,
activeName: "dzxx",
dzJbxxVisble:true,
fjclVisible:false
};
},
methods: {
loadingStatus() {
debugger
let bsm=this.$store.state.dzbsm;
queryStatus(bsm).then(res => {
if (res.success) {
let qszt = res.result.qszt;
this.isDisabled = +qszt !== 0;
}
})
},
handleClick(tab, event) {
this.loadingStatus();
switch (tab.name) {
case 'dzxx':
this.dzJbxxVisble = true;
......
......@@ -13,17 +13,17 @@
</td>
<td colspan="2" align="center" >项目名称</td>
<td colspan="4" >
<input class="formInput" v-model="form.xmmc" :disabled="form.qszt!=='0'">
<input class="formInput" v-model="form.xmmc" :disabled="form.qszt!=='0'" @blur="inputBlur($event)" ref="xmmc">
</td>
</tr>
<tr height="30">
<td colspan="2" align="center" >坐落</td>
<td colspan="4" >
<input class="formInput" v-model="form.zl" :disabled="form.qszt!=='0'">
<input class="formInput" v-model="form.zl" :disabled="form.qszt!=='0'" @blur="inputBlur($event)" ref="zl">
</td>
<td colspan="2" align="center" >不动产单元号</td>
<td colspan="4" class="psr">
<input class="formInput percent80" maxlength="28" v-model="form.bdcdyh" :disabled="form.qszt!=='0'">
<input class="formInput percent80" maxlength="28" v-model="form.bdcdyh" :disabled="form.qszt!=='0'" @blur="inputBlur($event)" ref="bdcdyh">
<el-button @click.prevent="generatorCode" size="mini" class="createBtn" type="warning" :disabled="form.qszt!=='0'">生成</el-button>
</td>
</tr>
......@@ -129,6 +129,7 @@
bsm:'',
},
zdbsm:'',
rules:[],
}
},
methods:{
......@@ -140,6 +141,16 @@
}
})
},
inputBlur(e) {
if (e.target.value != '') {
e.target.style.border = ""
} else {
e.target.style.border = "1px solid red";
e.target.style.boxSizing = 'border-box';
}
},
generatorCode(){
if(this.form.bdcdyh!=null&&this.form.bdcdyh!==''){
this.open();
......@@ -182,6 +193,45 @@
});
},
onSave(){
this.rules=[
{
data:this.form.bdcdyh,
name:'不动产单元号',
dom:this.$refs.bdcdyh,
rule: /^\s*$/g, //非空
},
{
data:this.form.xmmc,
name:'项目名称',
dom:this.$refs.xmmc,
rule: /^\s*$/g, //非空
},
{
data:this.form.zl,
name:'坐落',
dom:this.$refs.zl,
rule: /^\s*$/g, //非空
},
]
let flag = true;
this.rules.forEach(item=>{
if(item.rule.test(item.data) || item.data == null){
if(item.dom.$el){
item.dom.$el.style.border = '1px solid red';
item.dom.$el.style.boxSizing = 'border-box';
}else{
item.dom.style.border = '1px solid red';
item.dom.style.boxSizing = 'border-box';
}
flag = false;
return false
}
})
this.$nextTick(()=> {
if (flag) {
console.log(this.form,'this.form');
this.bsm=this.$route.query.bsm;
this.form.bsm=this.bsm;
......@@ -191,6 +241,10 @@
this.$message.success("保存完成!");
}
})
}
})
},
getGzwDetailInfo(data){
getQjGzwDetailInfo(data).then((res)=>{
......@@ -219,6 +273,7 @@
if(res.code===200){
this.$message.success("提交完成!");
this.getGzwDetailInfo(this.bsm)
this.getTreeByBsm(this.bsm,'gzw','0,1,2')
}
})
},
......@@ -252,6 +307,12 @@
this.getGzwDetailInfo(val)
this.reload()
},
"form.bdcdyh":function (val) {
if (val != '') {
this.$refs.bdcdyh.style.border = '';
}
},
}
}
</script>
......
......@@ -315,7 +315,7 @@
export default {
name: "",
inject: ['getTreeByS'],
inject: ['getTreeByS','getRightTree'],
components: {zdQueryData,dzQueryData,hfghb},
props: {},
data() {
......@@ -634,6 +634,7 @@
}
saveDzFg(this.dzFghData).then(res => {
if (res.success) {
this.getRightTree(res.result,'0,1,2');
Message.success("保存成功")
//TO DO 多幢分割完成后的操作
} else {
......
......@@ -377,17 +377,17 @@ export default {
switch (row.dylx) {
case "zrz":
this.$store.state.zrzbsm = res.result;
this.getTreeByBsm(row.glbsm,row.dylx,'2');
this.getTreeByBsm(res.result,row.dylx,'2');
path = "/zrz";
break;
case "zd":
this.$store.state.zdbsm = res.result;
this.getRightTree(row.glbsm,'2');
this.getRightTree(res.result,'2');
path = "/zd";
break;
case "dz":
this.$store.state.dzbsm = res.result;
this.getTreeByBsm(row.glbsm,row.dylx,'2');
this.getTreeByBsm(res.result,row.dylx,'2');
path = "/dz";
break;
default:
......
......@@ -8,7 +8,7 @@
<djb v-if="djbVisible"></djb>
</el-tab-pane>
<el-tab-pane label="附件材料" name="fjcl">
<fjcl v-if="fjclVisible"></fjcl>
<fjcl v-if="fjclVisible" ref="fjcl" :is-disabled="isDisabled"></fjcl>
</el-tab-pane>
</el-tabs>
</div>
......@@ -26,6 +26,7 @@
},
data() {
return {
isDisabled:false,
hbsm:this.$store.state.hbsm,
activeName: "hjbxx",
djbVisible: false,
......@@ -36,7 +37,19 @@
},
methods: {
loadingStatus() {
debugger
console.log("是否禁用")
let bsm=this.$store.state.hbsm;
queryStatus(bsm).then(res => {
if (res.success) {
let qszt = res.result.qszt;
this.isDisabled = +qszt !== 0;
}
})
},
handleClick(tab, event) {
this.loadingStatus()
// console.log(tab, event);
switch (tab.name) {
case 'djb':
......
......@@ -12,8 +12,9 @@
:show-file-list="false"
multiple
:on-exceed="handleExceed"
:disabled="isDisabled"
>
<el-button size="small" type="primary">上传</el-button>
<el-button size="small" type="primary" :disabled="isDisabled" >上传</el-button>
</el-upload>
<table border="2">
<tr>
......@@ -22,12 +23,12 @@
<th class="lx">文件类型</th>
<th class="cz">操作</th>
</tr>
<tr v-if="list.length==0">
<td colspan="4" class="noData" >
<tr v-if="list.length===0">
<td colspan="4" class="noData">
<span>暂无数据</span>
</td>
</tr>
<tr v-else v-for="(item,index) in list" :key="index" >
<tr v-else v-for="(item,index) in list" :key="index">
<td class="xh">{{index+1}}</td>
<td class="mc">{{item.filename}}</td>
<td class="lx">{{item.filepostfix}}</td>
......@@ -44,47 +45,43 @@
</template>
<script>
import {insertFile, getFileLis, downloadFile,loadFile,deleteFile} from "@api/common"
import {Message} from "element-ui"
import {insertFile, getFileLis, downloadFile, loadFile, deleteFile} from "@api/common"
import {queryStatus} from "@api/search"
export default {
name: "fjcl",
data() {
return {
fileData:{
glbsm:'',
dylx:''
fileData: {
glbsm: '',
dylx: ''
},
list: [
],
/* filesData: {
dylx: "",
glbsm: "",
list: [
{
filename: "",
filepostfix: "",
fileurl: "",
preViewUrl:""
}
]
},*/
list: []
}
},
mounted() {
this.getFileList()
},
created(){
},
props: {
isDisabled:{
type:Boolean,
default:false
}
},
methods: {
deleteFile(bsm){
deleteFile(bsm) {
this.$confirm('将删除该文件, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
deleteFile(bsm).then(res=>{
deleteFile(bsm).then(res => {
if (res.success) {
this.getFileList();
}else {
} else {
this.$message.error("删除失败")
}
})
......@@ -95,38 +92,38 @@
});
});
},
loadFile(bsm){
loadFile(bsm).then(res=>{
loadFile(bsm) {
loadFile(bsm).then(res => {
if (res.success) {
window.open(res.message)
}
})
},
downloadFile(url) {
window.open(`/api/file/download?url=`+url);
window.open(`/api/file/download?url=` + url);
},
getFileList() {
switch (this.$route.name) {
case "宗地":
this.fileData.dylx = 'zd';
this.fileData.glbsm = this.$store.state.zdbsm
this.fileData.glbsm = this.$store.state.zdbsm;
break;
case "自然幢":
this.fileData.dylx = 'zrz';
this.fileData.glbsm = this.$store.state.zrzbsm
break
this.fileData.glbsm = this.$store.state.zrzbsm;
break;
case "多幢":
this.fileData.dylx = 'dz';
this.fileData.glbsm = this.$store.state.dzbsm
break
this.fileData.glbsm = this.$store.state.dzbsm;
break;
case "户":
this.fileData.dylx = 'h';
this.fileData.glbsm = this.$store.state.hbsm
this.fileData.glbsm = this.$store.state.hbsm;
break;
default:
break
}
getFileLis(this.fileData.glbsm ).then(res => {
getFileLis(this.fileData.glbsm).then(res => {
if (res.success) {
this.list = res.result;
} else {
......@@ -185,19 +182,19 @@
color: blue;
text-decoration: underline;
}
.xh{
.xh {
width: 100px;
}
.mc{
.mc {
width: 300px;
}
.lx{
.lx {
width: 120px;
}
.cz{
.cz {
width: 150px;
}
.noData span{
.noData span {
color: #BBB;
}
}
......
......@@ -2,12 +2,17 @@
<!-- <div class="content_box"> -->
<el-tabs v-model="activeName" class="tabs" @tab-click="handleClick" type="border-card" >
<el-tab-pane label="地籍调查表" name="djdcb"><zddcb></zddcb></el-tab-pane>
<el-tab-pane label="面积分摊表" name="mjftb"><mjftb v-if="mjftbVisible"></mjftb></el-tab-pane>
<el-tab-pane label="界址点" name="jzd"><jzd v-if="jzdVisible"></jzd></el-tab-pane>
<el-tab-pane label="界址线" name="jzx"><jzx v-if="jzxVisible"></jzx></el-tab-pane>
<el-tab-pane label="面积分摊表" name="mjftb"><mjftb v-if="mjftbVisible" :is-disabled="isDisabled"></mjftb></el-tab-pane>
<el-tab-pane label="界址点" name="jzd">
<jzd v-if="jzdVisible" :is-disabled="isDisabled"></jzd>
</el-tab-pane>
<el-tab-pane label="界址线" name="jzx" >
<jzx v-if="jzxVisible" :is-disabled="isDisabled"></jzx>
</el-tab-pane>
<el-tab-pane label="登记簿" name="djb"><djb v-if="djbVisible"></djb></el-tab-pane>
<el-tab-pane label="历史回溯" name="lshs"><lshs v-if="lshsVisible"></lshs></el-tab-pane>
<el-tab-pane label="附件材料" name="fjcl"><fjcl v-if="fjclVisible"></fjcl></el-tab-pane>
<el-tab-pane label="附件材料" name="fjcl">
<fjcl v-if="fjclVisible" ref="fjcl" :is-disabled="isDisabled"></fjcl></el-tab-pane>
</el-tabs>
<!-- </div> -->
</template>
......@@ -20,6 +25,7 @@ import jzx from "./jzx";
import djb from "./djb";
import lshs from "./lshs";
import fjcl from "./fjcl/fjcl"
import {queryStatus} from "@api/search"
export default {
name: "",
components: {
......@@ -28,6 +34,7 @@ export default {
props: {},
data() {
return {
isDisabled:false,
activeName: "djdcb",
mjftbVisible:false,
jzdVisible:false,
......@@ -38,8 +45,24 @@ export default {
};
},
methods: {
loadingStatus() {
debugger
console.log("是否禁用")
let bsm=this.$store.state.zdbsm;
queryStatus(bsm).then(res => {
if (res.success) {
let qszt = res.result.qszt;
this.isDisabled = +qszt !== 0;
}
})
},
/* loading(){
console.log("附件材料是否禁用")
this.$refs.fjcl.isUpload(this.$store.state.zdbsm)
},*/
handleClick(tab, event) {
// console.log(tab, event);
this.loadingStatus();
switch (tab.name) {
case 'mjftb':
this.mjftbVisible = true;
......
<template>
<div class="main">
<div class="button">
<el-button type="primary" @click="oneExit">编辑</el-button>
<el-button type="primary" @click="save">保存</el-button>
<el-button type="primary" @click="batchExit">批量修改</el-button>
<el-button type="primary" @click="oneExit" :disabled="isDisabled">编辑</el-button>
<el-button type="primary" @click="save" :disabled="isDisabled">保存</el-button>
<el-button type="primary" @click="batchExit" :disabled="isDisabled">批量修改</el-button>
</div>
<div class="table">
<table border="1">
......@@ -18,7 +18,7 @@
<th class="">界标类型</th>
<th class="">界址点类型</th>
</tr>
<tr v-if="jzdlist.length==0">
<tr v-if="jzdlist.length===0">
<td colspan="7"><span class="nodata">暂无数据</span></td>
</tr>
<tr v-for="(item,index) in jzdlist" :key="index" v-else>
......@@ -109,12 +109,18 @@
<script>
import {queryjzd, jzdsingleModify, jzdbatchModify} from '@api/zd'
import {queryStatus} from "@api/search"
import {Message} from 'element-ui'
export default {
name: "jzd",
components: {},
props: {},
props: {
isDisabled:{
type:Boolean,
default:false
}
},
data() {
return {
bsm: '',
......
<template>
<div class="main">
<div class="button">
<el-button type="primary" @click="oneExit">编辑</el-button>
<el-button type="primary" @click="save">保存</el-button>
<el-button type="primary" @click="batchExit">批量修改</el-button>
<el-button type="primary" @click="oneExit" :disabled="isDisabled">编辑</el-button>
<el-button type="primary" @click="save" :disabled="isDisabled">保存</el-button>
<el-button type="primary" @click="batchExit" :disabled="isDisabled">批量修改</el-button>
</div>
<div class="table">
<table border="1">
......@@ -19,7 +19,7 @@
<th class="">界限性质</th>
<th class="">说明</th>
</tr>
<tr v-if="jzxlist.length==0">
<tr v-if="jzxlist.length===0">
<td colspan="8"><span class="nodata">暂无数据</span></td>
</tr>
<tr v-for="(item,index) in jzxlist" :key="index" v-else>
......@@ -137,7 +137,12 @@
export default {
name: "jzx",
components: {},
props: {},
props: {
isDisabled:{
type:Boolean,
default:false
}
},
data() {
return {
bsm: '',
......@@ -246,13 +251,13 @@
}
},
created() {
},
mounted() {
let bsm = this.$store.state.zdbsm
let bsm = this.$store.state.zdbsm;
this.bsm = bsm;
this.getData(bsm)
},
mounted() {
},
methods: {
result() {
this.batchJzx.jzxlx = '';
......
......@@ -2,22 +2,23 @@
<div class="main" ref="mainBox">
<table border="1">
<tr>
<td colspan="2">土地坐落</td>
<td colspan="3"><input type="text" class="formInput" v-model="tdzl" disabled/></td>
<th colspan="2">土地坐落</th>
<th colspan="3"><el-input v-model="tdzl" disabled></el-input></th>
</tr>
<tr>
<td colspan="2">宗地代码</td>
<td colspan="3"><input type="text" class="formInput" v-model="zddm " disabled/></td>
<th colspan="2">宗地代码</th>
<td colspan="3"><el-input v-model="zddm " disabled></el-input></td>
</tr>
<tr>
<td colspan="2">宗地面积(㎡)</td>
<td><input type="number" class="formInput" v-model.number="zdmj" disabled/></td>
<td>定着物数量</td>
<th colspan="2">宗地面积(㎡)</th>
<th>
<el-input v-model="zdmj" disabled/></th>
<th>定着物数量</th>
<td class="dzwsl">{{dzwdsl}}</td>
</tr>
<tr>
<td colspan="2">备注</td>
<td colspan="3"><input type="text" class="formInput" v-model="mjftData.bz"/></td>
<th colspan="2">备注</th>
<td colspan="3"><el-input v-model="mjftData.bz" :disabled="isDisabled"></el-input></td>
</tr>
</table>
<table border="1">
......@@ -26,12 +27,13 @@
type="primary"
class="changeBtn inAdd addMinus"
@click="addRow"
:disabled="isDisabled"
>+</el-button
></td>
<td class="dzwdm">定着物代码</td>
<td class="syqmj">土地所有权/使用权面积(㎡)</td>
<td class="dytdmj">独有独用土地面积(㎡)</td>
<td class="fttjmj">分摊土地面积(㎡)</td>
<th class="dzwdm">定着物代码</th>
<th class="syqmj">土地所有权/使用权面积(㎡)</th>
<th class="dytdmj">独有独用土地面积(㎡)</th>
<th class="fttjmj">分摊土地面积(㎡)</th>
</tr>
<tr v-for="(item,i) in mjftData.list" :key="i">
<td class="cz">
......@@ -39,42 +41,40 @@
type="primary"
class="changeBtn inMinus addMinus"
@click="delRow(i)"
:disabled="isDisabled"
>-</el-button
>
</td>
<td class="dzwdm">
<el-input v-model="item.dzwdm"
maxlength="9"
:disabled="isDisabled"
>
</el-input>
</td>
<td class="syqmj">
<el-input style="ime-mode:inactive"
oninput="value = (value.match(/^\d*(\.?\d{0,3})/g)[0]) || null"
v-model="item.tdsyqsyqmj"
oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"
v-model="item.tdsyqsyqmj" :disabled="isDisabled"
></el-input>
</td>
<td class="dytdmj">
<el-input v-model="item.dydytdmj" style="ime-mode:inactive" oninput="value = (value.match(/^\d*(\.?\d{0,3})/g)[0]) || null"></el-input>
<el-input v-model="item.dydytdmj" style="ime-mode:inactive" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null" :disabled="isDisabled"></el-input>
</td>
<td class="fttjmj">
<el-input v-model="item.fttdmj" style="ime-mode:inactive" oninput="value = (value.match(/^\d*(\.?\d{0,3})/g)[0]) || null"></el-input>
<el-input v-model="item.fttdmj" style="ime-mode:inactive" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null" :disabled="isDisabled"></el-input>
</td>
</tr>
<tr>
<td class="cz"></td>
<td class="dzwdm">统计</td>
<th class="dzwdm">统计</th>
<td class="syqmj">{{sumTdsyqsyqmj}}</td>
<td class="dytdmj">{{sumDydytdmj}}</td>
<td class="fttjmj">{{sumFttdmj}}</td>
</tr>
</table>
<!-- <div class="pers">
<el-button @click="save" type="primary">保存</el-button>
</div> -->
<div class="header-button" :style="{width:mainBoxWidth+'px'}">
<el-button type="primary" class="saveBtn" @click="save">保存</el-button>
<el-button type="primary" class="saveBtn" @click="save" :disabled="isDisabled">保存</el-button>
</div>
</div>
</template>
......@@ -85,6 +85,12 @@
export default {
name: "index",
props: {
isDisabled:{
type:Boolean,
default:false
}
},
data() {
return {
tdzl: '', // 土地坐落 继承获取
......@@ -250,16 +256,6 @@
font-size: 14px;
width: 100%;
cursor: pointer;
.formInput {
margin: 0;
height: 36px;
outline: none;
border: none;
color: #606764;
overflow: visible;
text-align: center;
cursor: text;
}
td {
text-align: center;
height: 36px;
......@@ -303,11 +299,11 @@
width: 50px;
}
.dzwdm {
.dzwdm ,.syqmj,.dytdmj,.fttjmj{
width: 150px;
}
.syqmj {
/* .syqmj {
width: 150px;
}
......@@ -317,6 +313,6 @@
.fttjmj {
width: 150px;
}
}*/
</style>
......
......@@ -10,7 +10,7 @@
<td colspan="2" class="tdright">行政区</td>
<td colspan="2">
<el-select
:disabled="formData.qszt!='0'"
:disabled="disabled"
class="formSelect"
v-model="formData.xzqbsm"
@change="changeXzq(formData.xzqbsm)"
......@@ -28,7 +28,7 @@
<td colspan="2">
<el-select
class="formSelect"
:disabled="formData.qszt!='0'"
:disabled="disabled"
v-model="formData.djqbsm"
@change="changeDjq(formData.djqbsm)"
>
......@@ -43,7 +43,7 @@
</td>
<td colspan="2" class="tdright">地籍子区</td>
<td colspan="2">
<el-select class="formSelect" @change="changeDjzq" :disabled="formData.qszt!='0'" v-model="formData.djzqbsm">
<el-select class="formSelect" @change="changeDjzq" :disabled="disabled" v-model="formData.djzqbsm">
<el-option
v-for="item in $store.state.djzqList"
:key="item.bsm"
......@@ -57,7 +57,7 @@
<tr>
<td colspan="2" class="tdright">权利类型</td>
<td colspan="4">
<el-select class="formSelect" :disabled="formData.qszt!='0'" v-model="formData.qllxbsm">
<el-select class="formSelect" :disabled="disabled" v-model="formData.qllxbsm">
<el-option
v-for="item in $store.state.qllxList"
:key="item.bsm"
......@@ -69,7 +69,7 @@
</td>
<td colspan="2" class="tdright"><i class="requisite">*</i>宗地特征码</td>
<td colspan="4">
<el-select class="formSelect" ref="zdtzm" :disabled="formData.qszt!='0'"
<el-select class="formSelect" ref="zdtzm" :disabled="disabled"
v-model="formData.zdtzmbsm">
<el-option
v-for="item in $store.state.zdtzmList"
......@@ -84,7 +84,7 @@
<tr>
<td colspan="2" class="tdright">权利设定方式</td>
<td colspan="4">
<el-select class="formSelect" :disabled="formData.qszt!='0'" v-model="formData.qlsdfs">
<el-select class="formSelect" :disabled="disabled" v-model="formData.qlsdfs">
<el-option
v-for="item in $store.state.qlsdfsList"
:key="item.bsm"
......@@ -96,12 +96,12 @@
</td>
<td colspan="2" class="tdright"><i class="requisite">*</i>宗地代码</td>
<td colspan="4" class="psr">
<input :disabled="formData.qszt!='0'" @blur="inputBlur($event)" ref="zddm" on maxlength="19"
<input :disabled="disabled" @blur="inputBlur($event)" ref="zddm" on maxlength="19"
type="text"
class="formInput percent80"
v-model="formData.zddm"
/>
<el-button type="warning" :disabled="formData.qszt!='0'" class="createBtn"
<el-button type="warning" :disabled="disabled" class="createBtn"
@click="generatorCode"
>生成
</el-button>
......@@ -110,29 +110,29 @@
<tr>
<td colspan="2" class="tdright">地籍号</td>
<td colspan="4">
<input type="text" :disabled="formData.qszt!='0'" class="formInput" v-model="formData.djh"/>
<input type="text" :disabled="disabled" class="formInput" v-model="formData.djh"/>
</td>
<td colspan="2" class="tdright"><i class="requisite">*</i>不动产单元号</td>
<td colspan="4" class="psr">
<input
type="text" :disabled="formData.qszt!='0'" @blur="inputBlur($event)" ref="bdcdyh"
type="text" :disabled="disabled" @blur="inputBlur($event)" ref="bdcdyh"
maxlength="28"
class="formInput"
v-model="formData.bdcdyh"
/>
<!-- <el-button type="warning" :disabled="formData.qszt!='0'" class="createBtn">生成</el-button> -->
<!-- <el-button type="warning" :disabled="disabled" class="createBtn">生成</el-button> -->
</td>
</tr>
<tr>
<td colspan="2" class="tdright"><i class="requisite">*</i>坐落</td>
<td colspan="4">
<input type="text" :disabled="formData.qszt!='0'" @blur="inputBlur($event)" ref="zl"
<input type="text" :disabled="disabled" @blur="inputBlur($event)" ref="zl"
class="formInput" v-model="formData.zl"/>
</td>
<td colspan="2" class="tdright">项目名称</td>
<td colspan="4" class="psr">
<input :disabled="formData.qszt!='0'"
<input :disabled="disabled"
type="text"
class="formInput "
v-model="formData.xmmc"
......@@ -142,7 +142,7 @@
<tr>
<td colspan="2" class="tdright">国民经济行业分类</td>
<td colspan="4">
<!-- <el-select class="formSelect" :disabled="formData.qszt!='0'" v-model="formData.gmjjhyflbsm">-->
<!-- <el-select class="formSelect" :disabled="disabled" v-model="formData.gmjjhyflbsm">-->
<!-- <el-option-->
<!-- v-for="item in $store.state.gmjjhyflbsmList"-->
<!-- :key="item.bsm"-->
......@@ -157,7 +157,7 @@
:default-expand-all="defaultExpandAll"
:multiple="multiple"
:placeholder="placeholder"
:disabled="formData.qszt!='0'"
:disabled="disabled"
:data="$store.state.gmjjhyflbsmList"
:props="treeProps"
:check-strictly="checkStrictly"
......@@ -167,13 +167,13 @@
</td>
<td colspan="2" class="tdright">价格(元)</td>
<td colspan="4" class="psr">
<input :disabled="formData.qszt!='0'" class="formInput" type="number" v-model="formData.jg"/>
<input :disabled="disabled" class="formInput" type="number" v-model="formData.jg"/>
</td>
</tr>
<tr>
<td colspan="2" class="tdright">容积率</td>
<td colspan="2">
<el-select class="formSelect" :disabled="formData.qszt!='0'" v-model="formData.jyrjl">
<el-select class="formSelect" :disabled="disabled" v-model="formData.jyrjl">
<el-option
v-for="item in compareList"
:key="item.value"
......@@ -185,27 +185,27 @@
</td>
<td colspan="2">
<input
type="text" :disabled="formData.qszt!='0'"
type="text" :disabled="disabled"
v-model="rjl"
v-show="isInterval(formData.jyrjl)"
class="formInput percent47"
/>
<span class="percent4" v-show="isInterval(formData.jyrjl)">-</span>
<input
type="text" :disabled="formData.qszt!='0'"
type="text" :disabled="disabled"
v-model="formData.rjl"
:class="isInterval(formData.jyrjl) ? 'formInput percent47' : 'formInput'"
/>
</td>
<td colspan="2" class="tdright">容积说明</td>
<td colspan="4" class="psr">
<input type="text" :disabled="formData.qszt!='0'" class="formInput" v-model="formData.rjlsm"/>
<input type="text" :disabled="disabled" class="formInput" v-model="formData.rjlsm"/>
</td>
</tr>
<tr>
<td colspan="2" class="tdright">建筑密度</td>
<td colspan="2">
<el-select class="formSelect" :disabled="formData.qszt!='0'" v-model="formData.jyjzmd">
<el-select class="formSelect" :disabled="disabled" v-model="formData.jyjzmd">
<el-option
v-for="item in compareList"
:key="item.value"
......@@ -218,26 +218,26 @@
<td colspan="2">
<input
type="text"
v-model="jzmd" :disabled="formData.qszt!='0'"
v-model="jzmd" :disabled="disabled"
v-show="isInterval(formData.jyjzmd)"
class="formInput percent47"
/>
<span class="percent4" v-show="isInterval(formData.jyjzmd)">-</span>
<input
type="text"
v-model="formData.jzmd" :disabled="formData.qszt!='0'"
v-model="formData.jzmd" :disabled="disabled"
:class="isInterval(formData.jyjzmd) ? 'formInput percent47' : 'formInput'"
/>
</td>
<td colspan="2" class="tdright">建筑密度说明</td>
<td colspan="4" class="psr">
<input type="text" :disabled="formData.qszt!='0'" class="formInput" v-model="formData.jzmdsm"/>
<input type="text" :disabled="disabled" class="formInput" v-model="formData.jzmdsm"/>
</td>
</tr>
<tr>
<td colspan="2" class="tdright">建筑限高</td>
<td colspan="2">
<el-select class="formSelect" :disabled="formData.qszt!='0'" v-model="formData.jyjzxg">
<el-select class="formSelect" :disabled="disabled" v-model="formData.jyjzxg">
<el-option
v-for="item in compareList"
:key="item.value"
......@@ -249,34 +249,34 @@
</td>
<td colspan="2">
<input
type="text" :disabled="formData.qszt!='0'"
type="text" :disabled="disabled"
v-model="jzxg"
v-show="isInterval(formData.jyjzxg)"
class="formInput percent47"
/>
<span class="percent4" v-show="isInterval(formData.jyjzxg)">-</span>
<input
type="text" :disabled="formData.qszt!='0'"
type="text" :disabled="disabled"
v-model="formData.jzxg"
:class="isInterval(formData.jyjzxg) ? 'formInput percent47' : 'formInput'"
/>
</td>
<td colspan="2" class="tdright">建筑限高说明</td>
<td colspan="4" class="psr">
<input type="text" :disabled="formData.qszt!='0'" class="formInput" v-model="formData.jzxgsm"/>
<input type="text" :disabled="disabled" class="formInput" v-model="formData.jzxgsm"/>
</td>
</tr>
<tr>
<td colspan="2" rowspan="2" class="tdright">所在图幅号</td>
<td colspan="2" class="tdright">比例尺</td>
<td colspan="8" class="psr">
<input type="text" :disabled="formData.qszt!='0'" class="formInput" v-model="formData.blc"/>
<input type="text" :disabled="disabled" class="formInput" v-model="formData.blc"/>
</td>
</tr>
<tr>
<td colspan="2" class="tdright">图幅号</td>
<td colspan="8" class="psr">
<input type="text" :disabled="formData.qszt!='0'" class="formInput" v-model="formData.tfh"/>
<input type="text" :disabled="disabled" class="formInput" v-model="formData.tfh"/>
</td>
</tr>
......@@ -284,28 +284,28 @@
<td colspan="2" rowspan="4" class="tdright">宗地四至</td>
<td colspan="2" class="tdright"><i class="requisite">*</i>北至</td>
<td colspan="8" class="psr">
<input type="text" @blur="inputBlur($event)" ref="zdszb" :disabled="formData.qszt!='0'"
<input type="text" @blur="inputBlur($event)" ref="zdszb" :disabled="disabled"
class="formInput" v-model="formData.zdszb"/>
</td>
</tr>
<tr>
<td colspan="2" class="tdright"><i class="requisite">*</i>东至</td>
<td colspan="8" class="psr">
<input type="text" @blur="inputBlur($event)" ref="zdszd" :disabled="formData.qszt!='0'"
<input type="text" @blur="inputBlur($event)" ref="zdszd" :disabled="disabled"
class="formInput" v-model="formData.zdszd"/>
</td>
</tr>
<tr>
<td colspan="2" class="tdright"><i class="requisite">*</i>南至</td>
<td colspan="8" class="psr">
<input type="text" @blur="inputBlur($event)" ref="zdszn" :disabled="formData.qszt!='0'"
<input type="text" @blur="inputBlur($event)" ref="zdszn" :disabled="disabled"
class="formInput" v-model="formData.zdszn"/>
</td>
</tr>
<tr>
<td colspan="2" class="tdright"><i class="requisite">*</i>西至</td>
<td colspan="8" class="psr">
<input type="text" @blur="inputBlur($event)" ref="zdszx" :disabled="formData.qszt!='0'"
<input type="text" @blur="inputBlur($event)" ref="zdszx" :disabled="disabled"
class="formInput" v-model="formData.zdszx"/>
</td>
</tr>
......@@ -317,45 +317,45 @@
<tr>
<td colspan="2" class="tdright">批准面积(㎡)</td>
<td colspan="4" >
<input type="text" :disabled="formData.qszt!='0'" onkeyup="value=value.replace(/[^\d\.]/g,'')"
<input type="text" :disabled="disabled" onkeyup="value=value.replace(/[^\d\.]/g,'')"
class="formInput" v-model="formData.pzmj"/>
</td>
<td colspan="2" class="tdright"><i class="requisite">*</i>宗地面积(㎡)</td>
<td colspan="4" >
<input type="text" :disabled="formData.qszt!='0'" @blur="inputBlur($event)" ref="zdmj"
<input type="text" :disabled="disabled" @blur="inputBlur($event)" ref="zdmj"
onkeyup="value=value.replace(/[^\d\.]/g,'')" class="formInput" v-model="formData.zdmj"/>
</td>
</tr>
<tr>
<td colspan="2" class="tdright">建筑占地总面积(㎡)</td>
<td colspan="4">
<input type="text" :disabled="formData.qszt!='0'" onkeyup="value=value.replace(/[^\d\.]/g,'')"
<input type="text" :disabled="disabled" onkeyup="value=value.replace(/[^\d\.]/g,'')"
class="formInput" v-model="formData.jzzdzmj"/>
</td>
<td colspan="2" class="tdright">建筑总面积(㎡)</td>
<td colspan="4">
<input type="text" :disabled="formData.qszt!='0'" onkeyup="value=value.replace(/[^\d\.]/g,'')"
<input type="text" :disabled="disabled" onkeyup="value=value.replace(/[^\d\.]/g,'')"
class="formInput" v-model="formData.jzzmj"/>
</td>
</tr>
<tr>
<td colspan="2" class="tdright">共有/共用权利人情况</td>
<td colspan="10">
<input type="text" :disabled="formData.qszt!='0'" class="formInput"
<input type="text" :disabled="disabled" class="formInput"
v-model="formData.gygyqlrqk"/>
</td>
</tr>
<tr>
<td colspan="2" class="tdright" rowspan="2">说明</td>
<td colspan="10" rowspan="2">
<input type="text" :disabled="formData.qszt!='0'" class="formInput" v-model="formData.sm"/>
<input type="text" :disabled="disabled" class="formInput" v-model="formData.sm"/>
</td>
</tr>
</table>
<div class="header-button" :style="{width:mainBoxWidth+'px'}">
<el-button type="primary" class="saveBtn" @click="updateZDxx">保存</el-button>
<el-button type="primary" @click="submitZDxx">提交</el-button>
<el-button type="primary" class="saveBtn" @click="updateZDxx" :disabled="disabled">保存</el-button>
<el-button type="primary" @click="submitZDxx" :disabled="disabled">提交</el-button>
<el-button type="primary" @click="registerCall">登记调用</el-button>
</div>
</div>
......@@ -498,6 +498,13 @@
.then((res) => {
if (res.result) {
this.formData = res.result;
if(this.formData.bblx === 0 && this.formData.qszt === '0' && this.formData.bhqkbsm == null){
console.log("12345")
this.disabled = false
}else {
console.log("1234567890")
this.disabled = true
}
console.log(res.result, 'res.result');
this.getXzqData(res.result.xzqbsm, res.result.djqbsm);
//如果没有宗地代码,自动生成
......
......@@ -6,7 +6,7 @@
<el-tab-pane label="登记簿" name="djb"><djb></djb></el-tab-pane>
<el-tab-pane label="楼盘表" name="lpb"><lpb v-if="lpbLoad"></lpb></el-tab-pane>
<el-tab-pane label="历史回溯" name="lshs"><lshs></lshs></el-tab-pane>
<el-tab-pane label="附件材料" name="fjcl"><fjcl></fjcl></el-tab-pane>
<el-tab-pane label="附件材料" name="fjcl"><fjcl ref="fjcl" :is-disabled="isDisabled"></fjcl></el-tab-pane>
</el-tabs>
</div>
</template>
......@@ -18,6 +18,7 @@ import djb from "./djb";
import lpb from "./lpb";
import lshs from "./lshs";
import fjcl from "./../zd/fjcl/fjcl";
import {queryStatus} from "@api/search"
export default {
name: "",
components: {
......@@ -26,13 +27,26 @@ export default {
props: {},
data() {
return {
isDisabled:false,
activeName: "zrzxx",
lpbLoad:false, //默认不加载楼盘表组件
yzgyLoad:false,
};
},
methods: {
loadingStatus() {
debugger
console.log("是否禁用")
let bsm=this.$store.state.zrzbsm;
queryStatus(bsm).then(res => {
if (res.success) {
let qszt = res.result.qszt;
this.isDisabled = +qszt !== 0;
}
})
},
handleClick(tab, event) {
this.loadingStatus()
if(!this.lpbLoad){
this.lpbLoad = tab.name == 'lpb' ? true : false
}
......
......@@ -9,33 +9,24 @@
</template>
</el-table-column>
<el-table-column prop="zrzmc" label="自然幢" align="center">
<!-- <template slot-scope="scope">
<el-input size="small" v-model="scope.row.ljzbsm"></el-input>
</template> -->
</el-table-column>
<el-table-column prop="ljzmc" label="逻辑幢" align="center">
<!-- <template slot-scope="scope">
<el-input size="small" v-model="scope.row.ljzbsm"></el-input>
</template> -->
</el-table-column>
<el-table-column prop="zdymc" label="幢单元" align="center">
<!-- <template slot-scope="scope">
<el-input size="small" v-model="scope.row.zdybsm"></el-input>
</template> -->
</el-table-column>
<el-table-column prop="qsc" label="起始层" align="center">
<template slot-scope="scope">
<el-input size="small" v-model="scope.row.qsc"></el-input>
<el-input v-model="scope.row.qsc" type="number"></el-input>
</template>
</el-table-column>
<el-table-column prop="jsc" label="结束层" align="center">
<template slot-scope="scope">
<el-input size="small" v-model="scope.row.jsc"></el-input>
<el-input v-model="scope.row.jsc" type="number"></el-input>
</template>
</el-table-column>
<el-table-column prop="hs" label="每层户数" align="center">
<template slot-scope="scope">
<el-input size="small" v-model="scope.row.hs"></el-input>
<el-input v-model="scope.row.hs" type="number"></el-input>
</template>
</el-table-column>
</el-table>
......@@ -87,6 +78,9 @@ export default {
handleRowClick(row, index) {
if (row.cz == "+") {
let temp = JSON.parse(JSON.stringify(this.formData));
temp.qsc = '';
temp.jsc = '';
temp.hs = '';
temp.cz = "-";
this.tableData.push(temp);
} else {
......@@ -94,6 +88,23 @@ export default {
}
},
onSave(bsm) {
console.log(this.tableData)
let totalHs = 0;
for(let k =0;k<this.tableData.length;k++){
if(this.tableData[k].qsc === ""||this.tableData[k].jsc === ""||this.tableData[k].hs === ""){
this.$message.warning("表单不完整,请填写完整")
return false
}
if(this.tableData[k].qsc - this.tableData[k].jsc > 0){
this.$message.warning("存在结束层大于起始层,请重写填写")
return false
}
totalHs = totalHs + (this.tableData[k].jsc-this.tableData[k].qsc+1)*this.tableData[k].hs;
}
if(totalHs >= 5000){
this.$message.warning("单次添加户数累积超过5000户,请分次添加!")
return false
}
insertChInfo(this.tableData).then((res) => {
if (res.code === 200) {
this.$message.success("保存成功");
......
......@@ -393,8 +393,8 @@
</table>
</el-form>
<div class="header-button" :style="{width:mainBoxWidth+'px'}">
<el-button type="primary" class="saveBtn" @click="onSave">保存</el-button>
<el-button type="primary" @click="onSubmit">提交</el-button>
<el-button type="primary" class="saveBtn" @click="onSave" :disabled="disableFlag">保存</el-button>
<el-button type="primary" @click="onSubmit" :disabled="disableFlag">提交</el-button>
<el-button type="primary" @click="registerCall">登记调用</el-button>
<!-- <el-button type="primary" class="saveBtn" @click="save">保存</el-button> -->
</div>
......@@ -600,8 +600,10 @@
if(res.code===200){
this.form = res.result;
this.hbsm = res.result.bsm;
if(res.result.qszt !== '0'){
this.disableFlag = true;
if(this.form.bblx === 0 && this.form.qszt === '0' && this.form.bhqkbsm == null){
this.disableFlag = false
}else {
this.disableFlag = true
}
if(this.form.scyclx==='0'){
this.$set(this.form,"ycjzmj", this.form.jzmj)
......
......@@ -21,7 +21,7 @@
</td>
<td colspan="2" align="center">自然幢号</td>
<td colspan="4">
<el-input v-model="form.zrzh" maxlength="24"></el-input>
<el-input v-model="form.zrzh" maxlength="24" disabled></el-input>
</td>
</tr>
<tr height="30">
......@@ -96,28 +96,25 @@
:rowspan="ytTitleRowspan"
align="center"
>
<el-button
type="primary"
size="mini"
style="margin-right: 10px"
@click="addYtInfo"
>添加</el-button
>
<i class="iconfont iconicon-test1" style="margin-right: 8px;color:#66b1ff;font-size:30px" @click="addYtInfo"></i>
<span>用途</span>
</td>
<td colspan="1" align="center">
<span @click="deleteYtInfo(index)">删除</span>
<i class="iconfont iconicon-test" style="color:#FA6400;font-size:30px" @click="deleteYtInfo(index)"></i>
</td>
<td colspan="9">
<el-select v-model="item1.fwytzdbsm" placeholder="请选择">
<el-option
v-for="item in $store.state.tdytList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
>
</el-option>
</el-select>
<el-select-tree style="width:100%"
ref="yt"
v-if="show"
:default-expand-all="defaultExpandAll"
:multiple="multiple"
:placeholder="placeholder"
:data="$store.state.fwytList"
:props="treeProps"
:check-strictly="checkStrictly"
:clearable="clearable"
v-model="item1.fwytzdbsm"
></el-select-tree>
</td>
</tr>
......@@ -132,28 +129,25 @@
:rowspan="fwjgTitleRowspan"
align="center"
>
<el-button
type="primary"
size="mini"
style="margin-right: 10px"
@click="addFwjgInfo"
>添加</el-button
>
<i class="iconfont iconicon-test1" style="margin-right: 8px;color:#66b1ff;font-size:30px" @click="addFwjgInfo"></i>
<span>房屋结构</span>
</td>
<td colspan="1" align="center">
<span @click="deleteFwjgInfo(index)">删除</span>
<i class="iconfont iconicon-test" style="color:#FA6400;font-size:30px" @click="deleteFwjgInfo(index)"></i>
</td>
<td colspan="9">
<el-select v-model="item1.fwjgzdbsm" placeholder="请选择">
<el-option
v-for="item in $store.state.jgOptions"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
>
</el-option>
</el-select>
<el-select-tree style="width:100%"
ref="yt"
v-if="show"
:default-expand-all="defaultExpandAll"
:multiple="multiple"
:placeholder="placeholder"
:data="$store.state.jgOptions"
:props="treeProps"
:check-strictly="checkStrictly"
:clearable="clearable"
v-model="item1.fwjgzdbsm"
></el-select-tree>
</td>
</tr>
......@@ -192,6 +186,7 @@
<script>
import { insertLjzInfo } from "@api/lpb";
import { getQjLjzDetailById,updateQjLjz } from "@api/ljz";
import { formdate } from "@libs/function";
export default {
name: "ljz",
......@@ -204,6 +199,21 @@ export default {
},
data() {
return {
//树型结构
show:true,
clearable: true,
defaultExpandAll: true,
multiple: false,
placeholder: '请选择',
disabled: false,
checkStrictly: true,
treeProps: {
value: 'bsm',
children: 'children',
label: 'mc'
},
form: {
zrzbsm: "",
ljzh: "", //逻辑幢号
......@@ -275,7 +285,7 @@ export default {
this.form = {
// zrzbsm: "",
ljzh: "", //逻辑幢号
// zrzh: "", //自然幢号
zrzh: this.$store.state.zrzh, //自然幢号
ljzmc: "", //逻辑幢顺序号
bdcdyh: "", //不动产单元号
mph: "", //门牌号
......@@ -336,6 +346,11 @@ export default {
}else{
//逻辑幢更新接口调用 TODO
console.log('保存');
updateQjLjz(this.form).then((res)=>{
if(res.code === 200){
this.$message.success("修改成功")
}
})
}
},
onSubmit() {
......@@ -343,8 +358,48 @@ export default {
},
//根据逻辑幢bsm查询逻辑幢信息
getLjzInfo(bsm){
//逻辑幢信息查询接口调用 bsm为逻辑幢bsm TODO
this.form = {zrzh:'11111111'};
//逻辑幢信息查询接口调用 bsm为逻辑幢bsm
getQjLjzDetailById(bsm).then((res)=>{
if(res.code === 200){
this.form = res.result;
this.form.zrzh = this.$store.state.zrzh;
this.form.fwjgList= [
{
fwjgzdbsm: "", //房屋结构字典标识码
glbsm: "", //关联标识码
sx: "", //顺序
},
];
this.form.ytList= [
{
glbsm: "", //关联标识码
fwytzdbsm: "", //房屋用途字典标识码
sx: "", //顺序
},
];
if(this.form.qjfwjg.length>0){
this.form.fwjgList= [];
for(let i =0;i<this.form.qjfwjg.length;i++){
this.form.fwjgList.push({
fwjgzdbsm: this.form.qjfwjg[i].fwjgzdbsm, //房屋结构字典标识码
glbsm: this.form.qjfwjg[i].glbsm, //关联标识码
sx: this.form.qjfwjg[i].sx, //顺序
})
}
}
if(this.form.qjfwyt.length>0){
this.form.ytList= [];
for(let i =0;i<this.form.qjfwyt.length;i++){
this.form.ytList.push({
fwytzdbsm: this.form.qjfwyt[i].fwytzdbsm, //房屋结构字典标识码
glbsm: this.form.qjfwyt[i].glbsm, //关联标识码
sx: this.form.qjfwyt[i].sx, //顺序
})
}
}
console.log(JSON.stringify(this.form)+":this.form")
}
})
this.$forceUpdate();
}
},
......
......@@ -10,40 +10,40 @@
<td colspan="2" class="tdright">宗地代码</td>
<td colspan="4" style="min-width:450px">
<input v-model="form.zddm" class="formInput" disabled>
<input v-show="false" :disabled="form.qszt!='0'" maxlength="19" class="formInput" v-model="form.zdbsm">
<input v-show="false" :disabled="disabled" maxlength="19" class="formInput" v-model="form.zdbsm">
</td>
<td colspan="2" class="tdright"><i class="requisite">*</i>自然幢号</td>
<td colspan="4" class="psr">
<input class="formInput percent80" ref="zrzh" @blur="inputBlur($event)" :disabled="form.qszt!='0'" maxlength="24" v-model="form.zrzh">
<el-button @click.prevent="generatorCode" type="warning" :disabled="form.qszt!='0'" class="createBtn" size="mini">生成</el-button>
<input class="formInput percent80" ref="zrzh" @blur="inputBlur($event)" :disabled="disabled" maxlength="24" v-model="form.zrzh">
<el-button @click.prevent="generatorCode" type="warning" :disabled="disabled" class="createBtn" size="mini">生成</el-button>
</td>
</tr>
<tr>
<td colspan="2" class="tdright"><i class="requisite">*</i>项目名称</td>
<td colspan="4" >
<input class="formInput " ref="xmmc" @blur="inputBlur($event)" :disabled="form.qszt!='0'" v-model="form.xmmc">
<input class="formInput " ref="xmmc" @blur="inputBlur($event)" :disabled="disabled" v-model="form.xmmc">
</td>
<td colspan="2" class="tdright"><i class="requisite">*</i>不动产单元号</td>
<td colspan="4">
<input class="formInput " ref="bdcdyh" @blur="inputBlur($event)" :disabled="form.qszt!='0'" maxlength="28" v-model="form.bdcdyh">
<input class="formInput " ref="bdcdyh" @blur="inputBlur($event)" :disabled="disabled" maxlength="28" v-model="form.bdcdyh">
</td>
</tr>
<tr>
<td colspan="2" class="tdright">建筑物名称</td>
<td colspan="4" >
<input class="formInput" :disabled="form.qszt!='0'" v-model="form.jzwmc">
<input class="formInput" :disabled="disabled" v-model="form.jzwmc">
</td>
<td colspan="2" class="tdright">建筑物基本用途</td>
<td colspan="4" >
<input class="formInput" :disabled="form.qszt!='0'" v-model="form.jzwjbyt">
<input class="formInput" :disabled="disabled" v-model="form.jzwjbyt">
</td>
</tr>
<tr>
<td colspan="2" class="tdright"><i class="requisite">*</i>房屋性质</td>
<td colspan="4" >
<el-select class="formSelect" ref="fwxz" :disabled="form.qszt!='0'" v-model="form.fwxzbsm" placeholder="请选择" >
<el-select class="formSelect" ref="fwxz" :disabled="disabled" v-model="form.fwxzbsm" placeholder="请选择" >
<el-option
v-for="item in $store.state.fwxzOptions"
:key="item.bsm"
......@@ -56,7 +56,7 @@
<td colspan="4" >
<el-date-picker
style="width:100%"
:disabled="form.qszt!='0'"
:disabled="disabled"
v-model="form.jgrq"
type="date"
placeholder="选择日期">
......@@ -66,55 +66,55 @@
<tr>
<td colspan="2" class="tdright">地下层数</td>
<td colspan="4" >
<input class="formInput" :disabled="form.qszt!='0'" type="number" v-model="form.dxcs">
<input class="formInput" :disabled="disabled" type="number" v-model="form.dxcs">
</td>
<td colspan="2" class="tdright">地上层数</td>
<td colspan="4" >
<input class="formInput" :disabled="form.qszt!='0'" type="number" v-model="form.dscs">
<input class="formInput" :disabled="disabled" type="number" v-model="form.dscs">
</td>
</tr>
<tr>
<td colspan="2" class="tdright">总层数</td>
<td colspan="4" >
<input class="formInput" :disabled="form.qszt!='0'" type="number" v-model="form.zcs">
<input class="formInput" :disabled="disabled" type="number" v-model="form.zcs">
</td>
<td colspan="2" class="tdright">总套数</td>
<td colspan="4" >
<input class="formInput" :disabled="form.qszt!='0'" type="number" v-model="form.zts">
<input class="formInput" :disabled="disabled" type="number" v-model="form.zts">
</td>
</tr>
<tr>
<td colspan="2" class="tdright">建筑物高度(m)</td>
<td colspan="4" >
<input class="formInput" type="number" :disabled="form.qszt!='0'" v-model="form.jzwgd">
<input class="formInput" type="number" :disabled="disabled" v-model="form.jzwgd">
</td>
<td colspan="2" class="tdright">地下深度(m)</td>
<td colspan="4" >
<input class="formInput" :disabled="form.qszt!='0'" type="number" v-model="form.dxsd">
<input class="formInput" :disabled="disabled" type="number" v-model="form.dxsd">
</td>
</tr>
<tr>
<td colspan="2" class="tdright">幢用地面积(㎡)</td>
<td colspan="4" >
<input class="formInput" :disabled="form.qszt!='0'" type="number" v-model="form.zydmj">
<input class="formInput" :disabled="disabled" type="number" v-model="form.zydmj">
</td>
<td colspan="2" class="tdright">幢占用地面积(㎡)</td>
<td colspan="4" >
<input class="formInput" :disabled="form.qszt!='0'" type="number" v-model="form.zzdmj">
<input class="formInput" :disabled="disabled" type="number" v-model="form.zzdmj">
</td>
</tr>
<tr>
<td colspan="2" class="tdright">预测建筑面积(㎡)</td>
<td colspan="4" >
<input class="formInput" :disabled="form.qszt!='0'" type="number" v-model="form.ycjzmj">
<input class="formInput" :disabled="disabled" type="number" v-model="form.ycjzmj">
</td>
<td colspan="2" class="tdright">实测建筑面积(㎡)</td>
<td colspan="4" >
<input class="formInput" :disabled="form.qszt!='0'" type="number" v-model="form.scjzmj">
<input class="formInput" :disabled="disabled" type="number" v-model="form.scjzmj">
</td>
</tr>
......@@ -123,7 +123,7 @@
<tr>
<td colspan="2" class="tdright">产别</td>
<td colspan="4" >
<el-select v-model="form.fwcbbsm" :disabled="form.qszt!='0'" placeholder="请选择" >
<el-select v-model="form.fwcbbsm" :disabled="disabled" placeholder="请选择" >
<el-option
v-for="item in $store.state.cbOptions"
:key="item.bsm"
......@@ -134,7 +134,7 @@
</td>
<td colspan="2" class="tdright">产权来源</td>
<td colspan="4" >
<el-select v-model="form.fwcqlybsm" :disabled="form.qszt!='0'" placeholder="请选择" >
<el-select v-model="form.fwcqlybsm" :disabled="disabled" placeholder="请选择" >
<el-option
v-for="item in $store.state.cqlyOptions"
:key="item.bsm"
......@@ -163,7 +163,7 @@
:default-expand-all="defaultExpandAll"
:multiple="multiple"
:placeholder="placeholder"
:disabled="form.qszt!='0'"
:disabled="disabled"
:data="$store.state.fwytList"
:props="treeProps"
:check-strictly="checkStrictly"
......@@ -179,7 +179,7 @@
:default-expand-all="defaultExpandAll"
:multiple="multiple"
:placeholder="placeholder"
:disabled="form.qszt!='0'"
:disabled="disabled"
:data="$store.state.fwytList"
:props="treeProps"
:check-strictly="checkStrictly"
......@@ -200,7 +200,7 @@
</td>
<td colspan="9" >
<el-select class="persent78" ref="fwjg" :disabled="form.qszt!='0'" v-model="item1.fwjgzdbsm" placeholder="请选择" >
<el-select class="persent78" ref="fwjg" :disabled="disabled" v-model="item1.fwjgzdbsm" placeholder="请选择" >
<el-option
v-for="item in $store.state.jgOptions"
:key="item.bsm"
......@@ -222,7 +222,7 @@
<span><i class="requisite">*</i>坐落</span>
</td>
<td colspan="10" >
<input class="formInput" ref="zl" @blur="inputBlur($event)" :disabled="form.qszt!='0'" v-model="form.zl">
<input class="formInput" ref="zl" @blur="inputBlur($event)" :disabled="disabled" v-model="form.zl">
</td>
</tr>
......@@ -231,7 +231,7 @@
<span>附加说明</span>
</td>
<td colspan="10" rowspan="2" >
<input class="formInput" :disabled="form.qszt!='0'" v-model="form.bz" type="textarea">
<input class="formInput" :disabled="disabled" v-model="form.bz" type="textarea">
</td>
</tr>
<tr>
......@@ -242,7 +242,7 @@
<span>调查意见</span>
</td>
<td colspan="10" >
<input class="formInput" :disabled="form.qszt!='0'" v-model="form.dcyj">
<input class="formInput" :disabled="disabled" v-model="form.dcyj">
</td>
</tr>
......@@ -251,14 +251,14 @@
<span>审查员</span>
</td>
<td colspan="2" >
<input class="formInput" :disabled="form.qszt!='0'" v-model="form.scy">
<input class="formInput" :disabled="disabled" v-model="form.scy">
</td>
<td colspan="2" class="tdright">
<span>审查日期</span>
</td>
<td colspan="2" >
<el-date-picker
:disabled="form.qszt!='0'"
:disabled="disabled"
v-model="form.date"
type="date"
style="width: 100%"
......@@ -269,8 +269,8 @@
</table>
<div class="header-button" :style="{width:mainBoxWidth+'px'}">
<el-button type="primary" class="saveBtn" @click="onSave">保存</el-button>
<el-button type="primary" @click="onSubmit">提交</el-button>
<el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled">保存</el-button>
<el-button type="primary" @click="onSubmit" :disabled="disabled">提交</el-button>
<el-button type="primary" @click="registerCall">登记调用</el-button>
<!-- <el-button type="primary" class="saveBtn" @click="save">保存</el-button> -->
</div>
......@@ -663,6 +663,11 @@
// if(res.result.zddm == null){
// this.generatorCode()
// }
if(this.form.bblx === 0 && this.form.qszt === '0' && this.form.bhqkbsm == null){
this.disabled = false
}else {
this.disabled = true
}
this.$store.state.zrzh = res.result.zrzh;
if(this.form.fwjgList.length===0){
this.form.fwjgList.push({
......