52d9b75d by zhaoqian

树,以及部分权限控制问题

1 parent 7a84d435
......@@ -10,22 +10,22 @@
<tr height="30">
<td colspan="2" align="center" >宗地代码</td>
<td colspan="4" >
<input class="formInput" maxlength="19" v-model="form.zddm">
<input class="formInput" :disabled="disabled" maxlength="19" v-model="form.zddm">
</td>
<td colspan="2" align="center" >不动产单元号</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">
<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="4" >
<input class="formInput" v-model="form.xmmc">
<input class="formInput" :disabled="disabled" v-model="form.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"
......@@ -144,7 +145,7 @@
<span>坐落</span>
</td>
<td colspan="10" >
<input class="formInput" v-model="form.zl">
<input class="formInput" v-model="form.zl" :disabled="disabled">
</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>
......@@ -387,6 +389,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){
......
......@@ -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:
......
......@@ -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)
......