b6ba6928 by tianhaohao@pashanhoo.com

更新房屋对应的效验内容

1 parent 06e04c01
......@@ -83,16 +83,16 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="坐落:">
<el-input maxlength="100" disabled v-model="ruleForm.sldy.zl"></el-input>
<el-form-item label="坐落:" prop="sldy.zl">
<el-input maxlength="100" :disabled="!viewEdit" v-model="ruleForm.sldy.zl"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10" v-if="ruleForm.fdcq1">
<el-col :span="8">
<el-form-item label="宗地面积:">
<el-form-item label="宗地面积:" prop="zdjbxx.zdmj">
<div class="flex">
<el-input disabled v-model="ruleForm.zdjbxx.zdmj"></el-input>
<el-input :disabled="!viewEdit" v-model="ruleForm.zdjbxx.zdmj"></el-input>
<el-select
disabled
v-model="ruleForm.zdjbxx.mjdw"
......@@ -107,13 +107,21 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="土地性质:">
<el-input disabled v-model="ruleForm.zdjbxx.qlxzmc"></el-input>
<el-form-item label="土地性质:" prop="zdjbxx.qlxz">
<treeselect
:disabled="!viewEdit"
v-model="ruleForm.zdjbxx.qlxz"
noOptionsText="暂无数据"
placeholder=""
:normalizer="normalizer"
:default-expand-level="1"
:show-count="true"
:options="dictData['A9']" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="土地使用权人:">
<el-input disabled v-model="ruleForm.fdcq1.tdsyqr"></el-input>
<el-input :disabled="!viewEdit" v-model="ruleForm.fdcq1.tdsyqr"></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -157,8 +165,7 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="房地产交易价格:">
<el-form-item label="房地产交易价格:" prop="fdcq1.fdcjyjg">
<div class="flex">
<el-input
maxlength="11"
......@@ -176,6 +183,18 @@
</div>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="产权来源:" prop="fdcq1.cqlybm">
<el-select v-model="ruleForm.fdcq1.cqlybm" :disabled="!viewEdit">
<el-option
v-for="item in dictData['cqly']"
:key="item.dcode"
:label="item.dname"
:value="item.dcode">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10">
<el-col :span="24">
......@@ -274,7 +293,7 @@
</div>
<el-row :gutter="10">
<el-col>
<el-form-item v-if="ruleForm.sldy" label="登记原因:" prop="fdcq1.djyy">
<el-form-item label="登记原因:" prop="fdcq1.djyy">
<el-input
class="textArea"
type="textarea"
......@@ -307,8 +326,7 @@
export default {
mixins: [ywmix],
mounted () {
let that = this
// this.loading = true
let that = this;
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
var formdata = new FormData();
......@@ -331,7 +349,8 @@
}
});
that.czrOptions = that.ruleForm.qlrList;
that.isSave = this.viewEdit
that.isSave = this.viewEdit;
this.rules = formValidate(this.ruleForm.sldy.djlx);
} else {
that.isSave = false
that.$confirm(res.message, '提示', {
......@@ -350,6 +369,16 @@
},
data () {
return {
normalizer (node) {
if (node.children == null || node.children == "null") {
delete node.children;
}
return {
id: node.dcode,
label: node.dname,
children: node.children,
};
},
isSave: true,
loading: false,
disabled: true,
......@@ -380,11 +409,7 @@
propsParam: this.$attrs,
//表单是否可操作
viewEdit: false,
rules: {
'fdcq1.djyy': [
{ required: true, message: '请输入登记原因', trigger: 'blur' }
]
}
rules: {}
}
},
methods: {
......
......@@ -4,22 +4,27 @@
* @author: renchao
*/
export function formValidate (djlx) {
switch (djlx) {
case "100":
return fristValidate();
case "200":
return transferValidate();
case "300":
return changeValidate();
case "400":
return logoutValidate();
case "500":
return riviseValidate();
case "901":
return renewalValidate();
case "902":
return replaceValidate();
}
var formRules={
'sldy.zl': [
{ required: true, message: '坐落:', trigger: 'blur' }
],
'zdjbxx.zdmj': [
{ required: true, message: '宗地面积:', trigger: 'blur' }
],
'zdjbxx.qlxz': [
{ required: true, message: '土地性质:', trigger: 'blur' }
],
'fdcq1.djyy': [
{ required: true, message: '登记原因:', trigger: 'blur' }
],
'fdcq1.fdcjyjg': [
{ required: false, message: '房地产交易价格:', trigger: 'blur' }
]
}
if (djlx=="200") {
formRules["fdcq1.fdcjyjg"][0].required=true;
}
return formRules;
}
/**
......@@ -28,12 +33,6 @@ export function formValidate (djlx) {
* @author: renchao
*/
export function fristValidate () {
var formRules={
'diyaq.djyy': [
{ required: true, message: '请输入登记原因', trigger: 'blur' }
]
}
return formRules;
}
......
......@@ -690,7 +690,7 @@
}
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
that.$store.dispatch("user/refreshPage", false);
that.$store.dispatch("user/refreshPage", false);
saveData(that.ruleForm).then((res) => {
if (res.code === 200) {
that.$message({
......@@ -711,7 +711,7 @@
} else {
that.$message({
showClose: true,
message: "请输入登记原因",
message: "请输入红框内的相关信息!",
type: "error"
})
return false
......
......@@ -40,7 +40,7 @@ export function formValidate (djlx) {
]
}
if (djlx=="200") {
formRules["cfdj.fdcjyjg"][0].required=true;
formRules["fdcq2.fdcjyjg"][0].required=true;
}
return formRules;
}
......
......@@ -183,6 +183,10 @@ class data extends filter {
label: "权利类型",
},
{
prop: "bdcdyh",
label: "不动产单元号",
},
{
prop: "xmmc",
label: "项目名称",
},
......