a0e971e1 by 杨威

修改宗地信息接口

1 parent d65b99cb
......@@ -35,6 +35,16 @@ export function insertQjZdjbxx(data) {
data: data,
});
}
/**
* 修改宗地基本信息
*/
export function updateQjZdjbxx(data) {
return request({
url: "zd/qjZdjbxx/updateQjZdjbxx",
method: "put",
data: data,
});
}
/**
* 生成宗地代码
......
......@@ -315,6 +315,9 @@
</td>
</tr>
</table>
<div style="min-height: 40px;text-align: center;margin-top: 10px">
<el-button type="primary" @click="updateZDxx">保存</el-button>
</div>
</div>
</div>
</template>
......@@ -327,7 +330,7 @@
getListByXzqbsm,
getListByPbsm,
} from "../../../api/common";
import {getBdcdyh, getQjZdjbxxDetailById} from "../../../api/zd";
import {getBdcdyh, getQjZdjbxxDetailById,updateQjZdjbxx} from "../../../api/zd";
export default {
name: "",
......@@ -393,9 +396,9 @@
"gmjjhyflbsm": "",
"gygyqlrqk": "",
"jg": 0,
"jyjzmu": "",
"jyjzxg": "",
"jyrjl": "",
"jyjzmd": ">",
"jyjzxg": "<",
"jyrjl": "<",
"jzmd": 0,
"jzmdsm": "",
"jzxg": 0,
......@@ -422,12 +425,12 @@
"zdbsm": "",
"zddm": "",
"zdmj": 0,
"zdszb": "",
"zdszd": "",
"zdszn": "",
"zdszx": "",
"zdszb": "",
"zdszd": "",
"zdszn": "",
"zdszx": "西",
"zdtzmbsm": "",
"zl": ""
"zl": "坐落"
},
};
},
......@@ -456,12 +459,22 @@
.then((res) => {
console.log(res);
this.formData.zddm = res.result.substring(0, 19);
this.formData.bdcdyh = res.result;
this.formData.dyhbsm = res.result;
})
.catch((error) => {
});
},
//修改宗地基本信息
updateZDxx(){
//获取权利性质数据
this.formData.list = this.$refs.qlxzModule.getQlxzDataList();
updateQjZdjbxx(this.formData)
.then((res) => {
console.log(res);
})
.catch((error) => {
});
},
getQlrxxData() {
console.log(this.$refs.qlrxxModule.getQlgyfsData()); //权利共有方式数据
console.log(this.$refs.qlrxxModule.getQlrxxData()); //权利人表格数据
......