38948b74 by yuanbo

增加注释

1 parent 7e062a8c
......@@ -27,6 +27,10 @@
}
},
methods: {
/**
* @description: pushRecord
* @author: renchao
*/
pushRecord () {
this.$startLoading()
push(this.formData).then((res) => {
......
......@@ -65,6 +65,10 @@
},
methods: {
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick () {
this.$startLoading()
list({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -76,6 +80,11 @@
}
});
},
/**
* @description: openDialog
* @param {*} scroll
* @author: renchao
*/
openDialog (scroll) {
const h = this.$createElement;
this.$msgbox({
......@@ -97,6 +106,11 @@
}
}).then(action => { });
},
/**
* @description: detail
* @param {*} row
* @author: renchao
*/
detail (row) {
detail(row.bsm).then((res) => {
this.$endLoading()
......
......@@ -130,6 +130,10 @@ export default {
}
},
methods: {
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$emit("input", false);
this.activeStep = 0;
......@@ -142,6 +146,10 @@ export default {
}
},
//加载详细信息
/**
* @description: 加载详细信息
* @author: renchao
*/
loadData () {
this.$startLoading();
getFwmxInfo({ sqcxBsm: this.sqcxBsm }).then((res) => {
......@@ -156,6 +164,10 @@ export default {
});
},
//查询结果
/**
* @description: 查询结果
* @author: renchao
*/
queryChick () {
this.$startLoading();
this.activeStep = 1;
......@@ -172,6 +184,10 @@ export default {
});
},
//重置
/**
* @description: 重置
* @author: renchao
*/
resetClick () {
this.form.djSqcxDO = { ycqrgx: "1", cxyt: "",bdcqzh: "" };
this.form.sqrList = _.cloneDeep([this.newData]);
......@@ -180,8 +196,17 @@ export default {
this.form.dyjlList = [];
this.isSearch = false;
},
/**
* @description: handleRead
* @author: renchao
*/
handleRead (scope) { },
//添加申请人或权利人
/**
* @description: 添加申请人或权利人
* @param {*} type
* @author: renchao
*/
add (type) {
if (type == "sqr") {
this.form.sqrList.push(_.cloneDeep(this.newData));
......@@ -190,6 +215,13 @@ export default {
}
},
//移除申请人或权利人
/**
* @description: 移除申请人或权利人
* @param {*} index
* @param {*} row
* @param {*} type
* @author: renchao
*/
remove (index, row, type) {
if (type == "sqr") {
this.form.sqrList.splice(index, 1);
......@@ -198,6 +230,11 @@ export default {
}
},
//电话号码校验
/**
* @description: 电话号码校验
* @param {*} row
* @author: renchao
*/
teltest (row) {
const reg = /^1([38]\d|5[0-35-9]|7[3678])\d{8}$/;
if (row.lxdh == "" || row.lxdh.length <= 10 || !reg.test(row.lxdh)) {
......
......@@ -74,9 +74,18 @@ export default {
}
},
methods: {
/**
* @description: setResult
* @param {*} data
* @author: renchao
*/
setResult(data){
this.resultData = data
},
/**
* @description: getDetailInfo
* @author: renchao
*/
getDetailInfo(){
this.$startLoading();
getFwmxInfo({ sqcxBsm: this.formData.bsmSqcx }).then((res) => {
......
......@@ -78,6 +78,10 @@ export default {
},
methods: {
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick () {
this.$startLoading();
getSqcxPage({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -89,14 +93,29 @@ export default {
}
});
},
/**
* @description: dydjbClick
* @param {*} scope
* @author: renchao
*/
dydjbClick (scope) {
this.$popupDialog("打印登记薄", "sqcx/dydjb/components/dydjbInfo", {
bsmSqcx: scope.row.bsmSqcx,
})
},
/**
* @description: handleSort
* @param {*} name
* @param {*} sort
* @author: renchao
*/
handleSort (name, sort) {
console.log(name, sort);
},
/**
* @description: openAddDialog
* @author: renchao
*/
openAddDialog () {
this.isDialog = true
this.sqcxBsm = ''
......
......@@ -324,9 +324,18 @@
},
methods: {
// 字典
/**
* @description: 字典
* @param {*} val
* @author: renchao
*/
getDictData (val) {
return store.getters.dictData[val]
},
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$popupCacel()
this.form = {
......@@ -338,6 +347,10 @@
}
},
//加载详细信息
/**
* @description: 加载详细信息
* @author: renchao
*/
loadData () {
this.$startLoading();
getJtfcInfo({ sqcxBsm: this.formData.sqcxBsm }).then((res) => {
......@@ -350,6 +363,10 @@
});
},
//查询结果
/**
* @description: 查询结果
* @author: renchao
*/
queryChick () {
this.$startLoading();
addJtfcCxjgXx(this.form).then((res) => {
......@@ -362,6 +379,10 @@
});
},
//重置
/**
* @description: 重置
* @author: renchao
*/
resetClick () {
this.form.djSqcxDO = { ycqrgx: "1", cxyt: "" };
this.form.sqrList = _.cloneDeep([this.newData]);
......@@ -370,6 +391,12 @@
this.form.dyjlList = [];
this.isSearch = false;
},
/**
* @description: handleRead
* @param {*} row
* @param {*} type
* @author: renchao
*/
handleRead (row, type) {
getIdCardInfo().then(res => {
if (res.data.code == 0) {
......@@ -393,13 +420,28 @@
})
},
//添加申请人
/**
* @description: 添加申请人
* @author: renchao
*/
handleAddsqr () {
this.form.sqrList.push(_.cloneDeep(this.newData));
},
/**
* @description: handleAddqlr
* @author: renchao
*/
handleAddqlr () {
this.form.qlrList.push(_.cloneDeep(this.newData));
},
//移除申请人或权利人
/**
* @description: 移除申请人或权利人
* @param {*} index
* @param {*} row
* @param {*} type
* @author: renchao
*/
remove (index, row, type) {
console.log(type, 'type');
if (type == "sqr") {
......@@ -409,6 +451,11 @@
}
},
//电话号码校验
/**
* @description: 电话号码校验
* @param {*} row
* @author: renchao
*/
teltest (row) {
const reg = /^1([38]\d|5[0-35-9]|7[3678])\d{8}$/;
if (row.lxdh == "" || row.lxdh.length <= 10 || !reg.test(row.lxdh)) {
......@@ -420,6 +467,10 @@
}
},
//打印
/**
* @description: 打印
* @author: renchao
*/
printResult () {
this.openPrintPrew();
var formdata = new FormData();
......@@ -432,6 +483,10 @@
});
},
//打开打印预览
/**
* @description: 打开打印预览
* @author: renchao
*/
openPrintPrew () {
let lodop = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
// 获取页面的HTML内容
......
......@@ -83,14 +83,29 @@
}
});
},
/**
* @description: handleSort
* @param {*} name
* @param {*} sort
* @author: renchao
*/
handleSort (name, sort) {
console.log(name, sort);
},
/**
* @description: handleAdd
* @author: renchao
*/
handleAdd () {
this.$popupDialog("家庭房产查询", "sqcx/jtfc/components/addjtfc", {
sqcxBsm: ''
})
},
/**
* @description: handleAdd
* @param {*} row
* @author: renchao
*/
handleViewClick (row) {
this.$popupDialog("家庭房产查询", "sqcx/jtfc/components/addjtfc", {
sqcxBsm: row.bsmSqcx
......
......@@ -92,6 +92,10 @@ export default {
},
methods: {
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick () {
this.$startLoading();
getSqcxPage({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -103,10 +107,21 @@ export default {
}
});
},
/**
* @description: handleSort
* @param {*} name
* @param {*} sort
* @author: renchao
*/
handleSort (name, sort) {
console.log(name, sort);
},
// 查看
/**
* @description: 查看
* @param {*} scope
* @author: renchao
*/
handleViewClick (scope) {
this.$popupDialog("申请查询记录", "sqcx/sqcxjl/components/sqcxjlInfo", {
sqcxBsm: scope.row.bsmSqcx
......