816facd6 by yuanbo

增加注释

1 parent 9621e352
......@@ -136,6 +136,11 @@
}
},
methods: {
/**
* @description: updateDetail
* @param {*} value
* @author: renchao
*/
updateDetail (value) {
this.tableDataList[this.dataIndex] = value
this.key++
......@@ -143,19 +148,39 @@
},
// 新增
/**
* @description: 新增
* @author: renchao
*/
addClick () {
this.dialog = true
},
// 删除
/**
* @description: 删除
* @param {*} index
* @param {*} row
* @author: renchao
*/
deleClick (index, row) {
this.tableData.splice(index, 1)
},
// 身份证读取
/**
* @description: 身份证读取
* @author: renchao
*/
readClick () { },
// 修改
/**
* @description: 修改
* @param {*} index
* @param {*} row
* @author: renchao
*/
editClick (index, row) {
console.log(row, 'rowrowrowrowrow');
this.dataIndex = index
......@@ -163,6 +188,10 @@
this.details = row
},
/**
* @description: queryViewClick
* @author: renchao
*/
queryViewClick () {
this.dialog = true
}
......
......@@ -178,10 +178,18 @@
}
},
methods: {
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$emit("input", false);
this.$refs['ruleForm'].resetFields();
},
/**
* @description: submitForm
* @author: renchao
*/
submitForm () {
this.$emit("input", false);
this.$emit("updateDetail", _.cloneDeep(this.ruleForm));
......
......@@ -53,6 +53,10 @@
},
methods: {
// 批量删除确定按钮
/**
* @description: 批量删除确定按钮
* @author: renchao
*/
submitdelclick () {
var formdata = new FormData();
formdata.append("bsmSldyList", this.selectBdcdy);
......@@ -68,6 +72,11 @@
})
},
// 批量删除勾选事件
/**
* @description: 批量删除勾选事件
* @param {*} e
* @author: renchao
*/
handleSelectionChange (e) {
this.selectBdcdy = [];
e.forEach((item, index) => {
......
......@@ -62,6 +62,10 @@
}
},
methods: {
/**
* @description: queryClick
* @author: renchao
*/
queryClick () {
this.ruleForm.bsmSlsq = this.$route.query.bsmSlsq;
getCertificateList(this.ruleForm).then(res => {
......
......@@ -78,6 +78,10 @@
},
methods: {
//读取申请单元信息
/**
* @description: 读取申请单元信息
* @author: renchao
*/
loadBdcdylist () {
var formdata = new FormData();
formdata.append("bsmSlsq", this.bsmSlsq);
......@@ -102,6 +106,10 @@
})
},
//批量按钮判断
/**
* @description: 批量按钮判断
* @author: renchao
*/
judgeBatchShow () {
this.showBatch = false;
if (this.unitData.length > 1) {
......@@ -163,6 +171,10 @@
});
},
//批量按钮点击事件
/**
* @description: 批量按钮点击事件
* @author: renchao
*/
batchUnitClick () {
this.currentSelectProps.batchOperation = true;
// this.activeIndex = "-1";
......@@ -170,6 +182,10 @@
},
//批量操作
/**
* @description: 批量操作
* @author: renchao
*/
handleBatchDel () {
this.$popupDialog("批量删除", "workflow/components/batchDel", {
bsmSlsq: this.bsmSlsq,
......@@ -177,6 +193,11 @@
}, '50%', true)
},
//申请单元点击事件
/**
* @description: 申请单元点击事件
* @param {*} index
* @author: renchao
*/
unitClick (index) {
this.currentSelectProps = this.unitData[index];
this.currentSelectProps.batchOperation = false;
......
......@@ -95,6 +95,10 @@
},
methods: {
//读取申请单元信息
/**
* @description: 读取申请单元信息
* @author: renchao
*/
loadBdcdylist () {
var formdata = new FormData();
formdata.append("bsmSlsq", this.bsmSlsq);
......@@ -120,6 +124,10 @@
})
},
//批量按钮判断
/**
* @description: 批量按钮判断
* @author: renchao
*/
judgeBatchShow () {
this.showBatch = false;
if (this.afterUnitData.length > 1) {
......@@ -171,6 +179,10 @@
},
//批量按钮点击事件
/**
* @description: 批量按钮点击事件
* @author: renchao
*/
batchUnitClick () {
this.currentSelectProps.batchOperation = true;
// this.activeIndex = "-1";
......@@ -178,6 +190,11 @@
},
//申请单元点击事件
/**
* @description: 申请单元点击事件
* @param {*} index
* @author: renchao
*/
unitClick (index) {
this.activeHIndex = '-1'
this.currentSelectProps = this.aroundUnitData[index];
......@@ -188,6 +205,11 @@
this.$emit('getCurrentSelectProps', this.currentSelectProps);
this.$parent.stepForm(index);
},
/**
* @description: handleAfterunitClick
* @param {*} index
* @author: renchao
*/
handleAfterunitClick (index) {
this.activeIndex = '-1'
this.currentSelectProps = this.afterUnitData[index];
......
......@@ -242,6 +242,12 @@ export default {
this.clearViewer();
},
methods: {
/**
* @description: formatDate
* @param {*} row
* @param {*} column
* @author: renchao
*/
formatDate(row, column) {
let data = row[column.property];
if (data == null) {
......@@ -262,10 +268,19 @@ export default {
dt.getSeconds()
);
},
/**
* @description: processReZoom
* @author: renchao
*/
processReZoom() {
this.defaultZoom = 1;
this.bpmnViewer.get("canvas").zoom("fit-viewport", "auto");
},
/**
* @description: processZoomIn
* @param {*} zoomStep
* @author: renchao
*/
processZoomIn(zoomStep = 0.1) {
const newZoom = Math.floor(this.defaultZoom * 100 + zoomStep * 100) / 100;
if (newZoom > 4) {
......@@ -276,6 +291,11 @@ export default {
this.defaultZoom = newZoom;
this.bpmnViewer.get("canvas").zoom(this.defaultZoom);
},
/**
* @description: processZoomOut
* @param {*} zoomStep
* @author: renchao
*/
processZoomOut(zoomStep = 0.1) {
const newZoom = Math.floor(this.defaultZoom * 100 - zoomStep * 100) / 100;
if (newZoom < 0.2) {
......@@ -286,10 +306,20 @@ export default {
this.defaultZoom = newZoom;
this.bpmnViewer.get("canvas").zoom(this.defaultZoom);
},
/**
* @description: getOperationTagType
* @param {*} type
* @author: renchao
*/
getOperationTagType(type) {
return "success";
},
// 流程图预览清空
/**
* @description: 流程图预览清空
* @param {*} e
* @author: renchao
*/
clearViewer(a) {
if (this.$refs.processCanvas) {
this.$refs.processCanvas.innerHTML = "";
......@@ -300,6 +330,10 @@ export default {
this.bpmnViewer = null;
},
// 添加自定义箭头
/**
* @description: 添加自定义箭头
* @author: renchao
*/
addCustomDefs() {
const canvas = this.bpmnViewer.get("canvas");
const svg = canvas._svg;
......@@ -309,6 +343,11 @@ export default {
svg.appendChild(customFailDefs);
},
// 任务悬浮弹窗
/**
* @description: 任务悬浮弹窗
* @param {*} element
* @author: renchao
*/
onSelectElement(element) {
this.selectTaskId = undefined;
this.dlgTitle = undefined;
......@@ -334,6 +373,11 @@ export default {
}
},
// 下拉列表切换
/**
* @description: 下拉列表切换
* @param {*} val
* @author: renchao
*/
handleSelect(val) {
this.taskCommentList = (this.taskList || []).filter((item) => {
return item.taskDefinitionKey === val;
......@@ -343,6 +387,11 @@ export default {
}
},
// 显示流程图
/**
* @description: 显示流程图
* @param {*} xml
* @author: renchao
*/
async importXML(xml) {
let xmlData = this.$x2js.xml2js(xml).definitions.process;
this.selectOptions = xmlData.userTask.map((item) => {
......@@ -394,6 +443,10 @@ export default {
}
},
// 获取流程记录
/**
* @description: 获取流程记录
* @author: renchao
*/
getCommentList() {
this.formData.allCommentList.forEach(async (item, index) => {
// item.comments.forEach(element => {
......@@ -455,6 +508,11 @@ export default {
},
// 设置流程图元素状态
/**
* @description: 设置流程图元素状态
* @param {*} processNodeInfo
* @author: renchao
*/
setProcessStatus(processNodeInfo) {
this.processNodeInfo = processNodeInfo;
if (
......
......@@ -161,6 +161,11 @@
}
},
methods: {
/**
* @description: handleupdateDetail
* @param {*} value
* @author: renchao
*/
handleupdateDetail (value) {
if (this.isaddupdate) {
if (!_.isEqual(value, this.tableData)) {
......@@ -176,6 +181,10 @@
this.key++
},
// 新增
/**
* @description: 新增
* @author: renchao
*/
addClick () {
if (this.gyfs == '0' && this.tableDataList.length > 0) {
this.$message.warning("当前共有方式为单独所有,无法添加多个权利人")
......@@ -186,6 +195,12 @@
},
// 删除
/**
* @description: 删除
* @param {*} index
* @param {*} row
* @author: renchao
*/
deleClick (index, row) {
this.$confirm('确定要删除吗, 是否继续?', '提示', {
confirmButtonText: '确定',
......@@ -198,6 +213,11 @@
},
// 身份证读取
/**
* @description: 身份证读取
* @param {*} row
* @author: renchao
*/
readClick (row) {
getIdCardInfo().then(res => {
if (res.data.code == 0) {
......@@ -221,12 +241,24 @@
})
},
// 修改
/**
* @description: 修改
* @param {*} index
* @param {*} row
* @author: renchao
*/
editClick (index, row) {
this.dataIndex = index
this.dialog = true
this.details = row
this.isaddupdate = false
},
/**
* @description: queryViewClick
* @param {*} index
* @param {*} row
* @author: renchao
*/
queryViewClick (index, row) {
this.dialog = true
this.details = row
......
......@@ -88,6 +88,10 @@
},
methods: {
//审批意见数据初始化
/**
* @description: 审批意见数据初始化
* @author: renchao
*/
list () {
let that = this
this.$startLoading()
......@@ -105,6 +109,10 @@
}
})
},
/**
* @description: onSubmit
* @author: renchao
*/
onSubmit () {
this.ruleForm.bsmSlsq = this.bsmSlsq
this.ruleForm.bestepid = this.bestepid
......@@ -118,10 +126,18 @@
})
},
//打开常用意见列表弹窗
/**
* @description: 打开常用意见列表弹窗
* @author: renchao
*/
commonOpinion () {
this.$popupDialog("常用意见", "workflow/components/dialog/commonOpinion", {}, "70%", true)
},
//使用常用意见
/**
* @description: 使用常用意见
* @author: renchao
*/
useOpinion (opinion) {
this.ruleForm.shyj = opinion
}
......
......@@ -130,28 +130,57 @@
}
},
methods: {
/**
* @description: updateDetail
* @param {*} value
* @author: renchao
*/
updateDetail (value) {
this.tableDataList[this.dataIndex] = value
this.key++
this.$emit('upDateQlrxxList', this.tableDataList)
},
// 添加
/**
* @description: 添加
* @author: renchao
*/
handleAdd () {
this.dialog = true
},
// 减
/**
* @description: 减
* @param {*} index
* @param {*} row
* @author: renchao
*/
handleMinus (index, row) {
this.tableData.splice(index, 1)
},
// 身份证读取
/**
* @description: 身份证读取
* @author: renchao
*/
readClick () { },
// 修改
/**
* @description: 修改
* @param {*} index
* @param {*} row
* @author: renchao
*/
handleEdit (index, row) {
console.log(row, 'rowrowrowrowrow');
this.dataIndex = index
this.dialog = true
this.details = row
},
/**
* @description: handleView
* @author: renchao
*/
handleView () {
this.dialog = true
}
......
......@@ -35,6 +35,10 @@
};
},
methods: {
/**
* @description: onSubmit
* @author: renchao
*/
onSubmit () {
stopTask({
bsmSlsq: this.formData.bsmSlsq,
......
......@@ -104,6 +104,10 @@
},
methods: {
//初始化列表
/**
* @description: 初始化列表
* @author: renchao
*/
list () {
var bsmSlsq = this.$route.query.bsmSlsq;
getSlsqBdcqzList({ bsmSlsq: bsmSlsq }).then((res) => {
......@@ -116,6 +120,12 @@
});
},
//打开证书预览弹窗
/**
* @description: 打开证书预览弹窗
* @param {*} item
* @param {*} type
* @author: renchao
*/
openZsylDialog (item, type) {
if (type == 1) {
//证书预览
......@@ -125,17 +135,30 @@
}
},
//再次打印
/**
* @description: 再次打印
* @param {*} item
* @author: renchao
*/
openInvalidDiglog (item) {
this.bsmSz = item.bsmSz;
this.invalidDiglog = true;
this.bsmBdcqz = item.bsmBdcqz
},
/**
* @description: closeInvalidDiglog
* @author: renchao
*/
closeInvalidDiglog () {
this.invalidDiglog = false;
this.bsmSz = "";
this.zfyy = "";
},
//作废缮证信息
/**
* @description: 作废缮证信息
* @author: renchao
*/
confirmInvalid () {
invalidCertificate({ bsmBdcqz: this.bsmBdcqz, zfyy: this.zfyy }).then((res) => {
if (res.code === 200) {
......@@ -149,6 +172,11 @@
}
});
},
/**
* @description: openRecordPop
* @param {*} item
* @author: renchao
*/
openRecordPop (item) {
this.$popupDialog("缮证记录", "workflow/components/dialog/szRecord", { bsmBdcqz: item.bsmBdcqz }, '60%', true)
}
......
......@@ -166,6 +166,10 @@
},
},
methods: {
/**
* @description: renderHeader
* @author: renchao
*/
renderHeader () {
return (
<div>
......@@ -184,6 +188,10 @@
);
},
// 修改事件
/**
* @description: 修改事件
* @author: renchao
*/
addrow () {
this.tableDataList = this.tableDataList.map((item) => {
return {
......@@ -193,6 +201,11 @@
});
this.$emit("upDateTdytxxList", this.tableDataList);
},
/**
* @description: startTime
* @param {*} index
* @author: renchao
*/
startTime (index) {
// let startTime = this.tableDataList[index].tdsyqssj;
let endTime = this.tableDataList[index].jssj;
......@@ -215,6 +228,11 @@
this.tableDataList[index].syqx = endYear - startYear;
}
},
/**
* @description: endTime
* @param {*} index
* @author: renchao
*/
endTime (index) {
// let startTime = this.tableDataList[index].tdsyqssj;
let startTime = this.tableDataList[index].qssj;
......@@ -237,6 +255,12 @@
this.tableDataList[index].syqx = endYear - startYear;
}
},
/**
* @description: sumTime
* @param {*} index
* @param {*} syqx
* @author: renchao
*/
sumTime (index, syqx) {
let startTime = this.tableDataList[index].qssj;
......@@ -247,6 +271,10 @@
},
// 新增
/**
* @description: 新增
* @author: renchao
*/
addClick () {
this.tableDataList[this.tableDataList.length] = _.cloneDeep(this.newdata);
......@@ -254,6 +282,12 @@
},
// 删除
/**
* @description: 删除
* @param {*} index
* @param {*} row
* @author: renchao
*/
deleClick (index, row) {
this.$confirm("确定要删除吗, 是否继续?", "提示", {
confirmButtonText: "确定",
......
......@@ -68,6 +68,10 @@
this.getBackNode();
},
methods: {
/**
* @description: onSubmit
* @author: renchao
*/
onSubmit () {
console.log(this.formData.bsmSlsq);
console.log(this.selectItem);
......@@ -89,11 +93,20 @@
}, 1000);
});
},
/**
* @description: changeSelectItem
* @param {*} item
* @author: renchao
*/
changeSelectItem (item) {
this.selectItem = item;
this.selectActivity = item.activityId;
},
//获取可回退环节信息
/**
* @description: 获取可回退环节信息
* @author: renchao
*/
getBackNode () {
getTaskBackNode(this.formData).then((res) => {
if (res.code == 200) {
......@@ -106,6 +119,10 @@
});
},
/**
* @description: cancelBack
* @author: renchao
*/
cancelBack () {
popupCacel();
}
......
......@@ -39,6 +39,10 @@
}
},
methods: {
/**
* @description: tablelistFn
* @author: renchao
*/
tablelistFn () {
getNextLinkInfo(this.queryForm).then(res => {
if (res.code === 200) {
......@@ -49,6 +53,10 @@
}
})
},
/**
* @description: submitForm
* @author: renchao
*/
submitForm () {
completeTask(this.queryForm).then(res => {
if (res.code === 200) {
......@@ -62,6 +70,10 @@
}
})
},
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$emit("input", false);
},
......
......@@ -4,6 +4,12 @@
* @LastEditTime: 2023-06-19 13:16:53
*/
//流程环节操作按钮
/**
* @description: 流程环节操作按钮
* @param {*} tabName
* @param {*} djywbm
* @author: renchao
*/
export function getForm(tabName, djywbm) {
let form;
switch (tabName) {
......
......@@ -43,6 +43,10 @@ export default {
},
methods: {
//加载流程初始参数
/**
* @description: 加载流程初始参数
* @author: renchao
*/
flowInitParam () {
var formdata = new FormData();
formdata.append("bsmSlsq", this.bsmSlsq);
......@@ -59,6 +63,11 @@ export default {
})
},
//流程环节操作按钮
/**
* @description: 流程环节操作按钮
* @param {*} item
* @author: renchao
*/
operation (item) {
//按钮 B0:选择不动产单元 B1:流程图 B2:材料分屏 B3:材料导入 B4:登记簿 B5:证书预览 B6:打印申请书 B7:证书领取 B8:楼盘表 B9:登簿
//操作按钮 登簿:record 转件:transfer 退回:back 退出:signout
......@@ -225,6 +234,10 @@ export default {
break;
}
},
/**
* @description: del
* @author: renchao
*/
del () {
let formdata = new FormData();
formdata.append("bsmSlsq", this.bsmSlsq);
......@@ -255,6 +268,11 @@ export default {
});
},
//发送下一个环节
/**
* @description: 发送下一个环节
* @param {*} obj
* @author: renchao
*/
sendToNext (obj) {
const h = this.$createElement;
this.$msgbox({
......@@ -304,6 +322,10 @@ export default {
});
});
},
/**
* @description: sendToEnd
* @author: renchao
*/
sendToEnd () {
let that = this
const h = this.$createElement;
......@@ -350,6 +372,10 @@ export default {
})
},
//批量操作
/**
* @description: 批量操作
* @author: renchao
*/
handleBatchDel () {
this.$popupDialog("批量删除", "workflow/components/batchDel", {
width: "50%",
......@@ -359,6 +385,11 @@ export default {
})
},
/**
* @description: handleChange
* @param {*} file
* @author: renchao
*/
handleChange (file) {
var formdata = new FormData();
formdata.append("file", file.raw);
......@@ -373,6 +404,11 @@ export default {
})
},
// 上传
/**
* @description: 上传
* @param {*} file
* @author: renchao
*/
beforeUpload (file) {
return true;
}
......
......@@ -21,6 +21,10 @@ export default {
}, false)
},
methods: {
/**
* @description: getHomeNotice
* @author: renchao
*/
getHomeNotice () {
getHomeNoticeList().then(res => {
if (res.result) {
......@@ -29,10 +33,21 @@ export default {
})
},
//右侧表单选项卡事件
/**
* @description: 右侧表单选项卡事件
* @param {*} activeName
* @param {*} oldActiveName
* @author: renchao
*/
beforeLeave (activeName, oldActiveName) {
if (activeName && activeName != 0) this.getFromRouter(activeName)
},
//切换选项卡内容组件
/**
* @description: 切换选项卡内容组件
* @param {*} tabname
* @author: renchao
*/
getFromRouter (tabname) {
console.log(tabname, 'tabnametabnametabnametabnametabname');
//根据tabname获取选中的表单 此操作为了获取后端返回的表单对象,使用里面的是否可操作的属性
......
......@@ -118,12 +118,26 @@
window.removeEventListener("unload", (e) => this.unloadHandler(e));
},
methods: {
/**
* @description: getCurrentSelectProps
* @param {*} val
* @author: renchao
*/
getCurrentSelectProps (val) {
this.currentSelectProps = val
},
/**
* @description: beforeunloadHandler
* @author: renchao
*/
beforeunloadHandler () {
this._beforeUnload_time = new Date().getTime();
},
/**
* @description: unloadHandler
* @param {*} e
* @author: renchao
*/
unloadHandler (e) {
this._gap_time = new Date().getTime() - this._beforeUnload_time;
//判断是窗口关闭还是刷新
......@@ -133,6 +147,11 @@
}
},
//申请单元点击事件
/**
* @description: 申请单元点击事件
* @param {*} index
* @author: renchao
*/
stepForm (index) {
getStepFormInfo(this.currentSelectProps).then((res) => {
if (res.code === 200) {
......@@ -158,6 +177,10 @@
}
})
},
/**
* @description: openDialog
* @author: renchao
*/
openDialog () {
this.$store.dispatch('user/refreshPage', false)
let data = JSON.parse(localStorage.getItem('ywbl'))
......
......@@ -103,10 +103,20 @@
};
},
methods: {
/**
* @description: getCurrentSelectProps
* @param {*} val
* @author: renchao
*/
getCurrentSelectProps (val) {
this.currentSelectProps = val
},
//申请单元点击事件
/**
* @description: 申请单元点击事件
* @param {*} index
* @author: renchao
*/
stepForm (index) {
this.currentSelectProps.type = "READ_ONLY"
getStepFormInfo(this.currentSelectProps).then((res) => {
......
......@@ -68,6 +68,10 @@ export default {
};
},
methods: {
/**
* @description: queryClick
* @author: renchao
*/
queryClick () {
getErrorLogList({ ...this.queryForm, ...this.pageData }).then(res => {
if (res.code === 200) {
......@@ -80,6 +84,11 @@ export default {
}
})
},
/**
* @description: viewDetail
* @param {*} e
* @author: renchao
*/
viewDetail (e) {
this.$popupDialog("错误日志", "xtjk/cwrz/components/viewDialog", e, "50%")
}
......
......@@ -68,6 +68,10 @@ export default {
};
},
methods: {
/**
* @description: queryClick
* @author: renchao
*/
queryClick () {
getOperationLogList({ ...this.queryForm, ...this.pageData }).then(res => {
if (res.code === 200) {
......@@ -77,6 +81,11 @@ export default {
}
})
},
/**
* @description: viewDetail
* @param {*} e
* @author: renchao
*/
viewDetail (e) {
this.$popupDialog("操作日志", "xtjk/czrz/components/viewDialog", e, "50%")
}
......
......@@ -163,6 +163,10 @@
},
methods: {
// 列表渲染接口
/**
* @description: 列表渲染接口
* @author: renchao
*/
queryClick () {
getServerInfo().then(res => {
if (res.code === 200) {
......
......@@ -216,6 +216,10 @@
},
methods: {
// 材料目录明细初始化
/**
* @description: 材料目录明细初始化
* @author: renchao
*/
clmlInitList () {
return new Promise(resolve => {
this.unitData = this.$parent.unitData;
......@@ -237,6 +241,11 @@
})
})
},
/**
* @description: updateList
* @param {*} val
* @author: renchao
*/
updateList (val) {
this.tableData.forEach(item => {
if (item.bsmSj === val.bsmSj) {
......@@ -249,14 +258,29 @@
}
},
// 左侧菜单点击
/**
* @description: 左侧菜单点击
* @param {*} item
* @author: renchao
*/
menuClick (item) {
this.checkedId = item.id
},
// 添加材料目录
/**
* @description: 添加材料目录
* @author: renchao
*/
handleAdd () {
this.isDialog = true;
},
// 上移
/**
* @description: 上移
* @param {*} index
* @param {*} row
* @author: renchao
*/
moveUpward (index, row) {
let obj = {
xh: row.xh,
......@@ -277,6 +301,12 @@
})
},
// 下移
/**
* @description: 下移
* @param {*} index
* @param {*} row
* @author: renchao
*/
moveDown (index, row) {
let obj = {
xh: row.xh,
......@@ -297,6 +327,11 @@
})
},
// 新增弹窗保存
/**
* @description: 新增弹窗保存
* @param {*} data
* @author: renchao
*/
addSave (data) {
let obj = {
bsmSlsq: this.$parent.bsmSlsq,
......@@ -319,6 +354,12 @@
});
},
// 材料目录删除
/**
* @description: 材料目录删除
* @param {*} index
* @param {*} row
* @author: renchao
*/
handleDelete (index, row) {
let that = this
this.$confirm('此操作将永久删除该 是否继续?', '提示', {
......@@ -343,6 +384,10 @@
})
},
// 材料目录关闭收起
/**
* @description: 材料目录关闭收起
* @author: renchao
*/
iconClick () {
this.menuOpen = !this.menuOpen;
if (this.menuOpen) {
......@@ -352,17 +397,34 @@
}
},
// 材料目录点击选中
/**
* @description: 材料目录点击选中
* @param {*} item
* @author: renchao
*/
treeClick (item) {
this.treeCheckId = item.bsmSj;
this.previewImg.imgList = item?.children;
this.previewImg.bsmSj = item?.bsmSj;
},
// 小图片点击
/**
* @description: 小图片点击
* @param {*} item
* @param {*} index
* @author: renchao
*/
imgClick (item, index) {
this.showImg = item;
this.titleYs = index + 1;
},
// 字典
/**
* @description: 字典
* @param {*} val
* @param {*} code
* @author: renchao
*/
dicStatus (val, code) {
let data = this.$store.getters.dictData[code],
name = "暂无";
......
......@@ -52,9 +52,17 @@
},
},
methods: {
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$emit("input", false);
},
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit () {
this.$parent.addSave(this.ruleForm);
this.$emit("input", false);
......
......@@ -13,12 +13,22 @@ export default {
},
methods: {
// 点击高级查询弹出查询弹框
/**
* @description: 点击高级查询弹出查询弹框
* @author: renchao
*/
moreQueryClick () {
this.isSearch = true
},
// 查询事件
/**
* @description: 查询事件
* @param {*} bs
* @param {*} mc
* @param {*} code
* @author: renchao
*/
handleSelect (bs, mc, code) {
this.dictData[bs].forEach(item => {
if (item.dcode == this.queryForm[code]) {
......@@ -27,6 +37,11 @@ export default {
})
},
// 清空单个表单
/**
* @description: 清空单个表单
* @param {*} el
* @author: renchao
*/
handleEmpty (el) {
for (var i = 0; i < this.searchList.length; i++) {
if (el == this.searchList[i].zdm) {
......@@ -48,7 +63,12 @@ export default {
this.searchForm[el] = ''
},
// 删除单个查询条件
/**
* @description: 删除单个查询条件
* @param {*} item
* @param {*} index
* @author: renchao
*/
handelItem (item, index) {
let obj = {
ywlymc: 'ywly',
......@@ -65,6 +85,10 @@ export default {
}
this.searchForm[item.zdm] = ''
},
/**
* @description: iterationData
* @author: renchao
*/
iterationData () {
let obj = {
ywlymc: '业务来源', qllxmc: '权利类型', djlxmc: '登记类型', ywh: '业务号', sqywmc: '申请业务名称',
......@@ -75,12 +99,21 @@ export default {
if (value) return { name: obj[name], value, zdm: name }
}).filter(Boolean)
},
/**
* @description: getSearch
* @param {*} val
* @author: renchao
*/
getSearch (val) {
this.otherForm = val
this.iterationData()
this.queryClick()
},
// 清空查询条件
/**
* @description: 清空查询条件
* @author: renchao
*/
hanldeCleanAll () {
this.searchForm = {}
this.queryForm = {
......
......@@ -70,9 +70,17 @@
methods: {
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$emit('input', false)
},
/**
* @description: resetForm
* @author: renchao
*/
resetForm () {
this.$refs['ruleForm'].resetFields()
this.ruleForm = {
......@@ -82,6 +90,10 @@
slsj: ''
}
},
/**
* @description: submitForm
* @author: renchao
*/
submitForm () {
this.$emit('getSearch', _.cloneDeep(this.ruleForm))
this.$emit('input', false)
......
......@@ -146,6 +146,10 @@
},
methods: {
// 列表渲染接口
/**
* @description: 列表渲染接口
* @author: renchao
*/
queryClick () {
this.$startLoading();
this.searchForm.ywh = this.queryForm.ywh;
......@@ -163,11 +167,21 @@
}
});
},
/**
* @description: handleSort
* @param {*} val
* @author: renchao
*/
handleSort (val) {
this.queryForm.sortField = val.prop;
this.queryForm.sortOrder = val.order == "ascending" ? "asc" : "desc";
this.queryClick();
},
/**
* @description: del
* @param {*} item
* @author: renchao
*/
del (item) {
let formdata = new FormData();
formdata.append("bsmSlsq", item.bsmSlsq);
......@@ -197,6 +211,11 @@
});
});
},
/**
* @description: ywhClick
* @param {*} item
* @author: renchao
*/
ywhClick (item) {
//判断用户是否拥有该任务的权限,若有则跳转,无权限则给予提示并刷新页面
judgeUserTaskPermission({
......
......@@ -213,6 +213,10 @@
},
methods: {
/**
* @description: onSubmit
* @author: renchao
*/
onSubmit () {
this.ruleForm.bsmSlsq = this.$route.query.bsmSlsq;
batchSaveData(this.ruleForm).then((res) => {
......@@ -221,6 +225,11 @@
}
});
},
/**
* @description: changeCflx
* @param {*} e
* @author: renchao
*/
changeCflx (e) {
let cflxItem = {}
cflxItem = this.dictData['A32'].find((item) => {
......
......@@ -330,6 +330,10 @@
},
methods: {
/**
* @description: onSubmit
* @author: renchao
*/
onSubmit () {
saveData(this.ruleForm).then((res) => {
if (res.code === 200) {
......@@ -337,6 +341,11 @@
}
});
},
/**
* @description: changeCflx
* @param {*} e
* @author: renchao
*/
changeCflx (e) {
let cflxItem = {};
cflxItem = this.dictData["A32"].find((item) => {
......
......@@ -302,6 +302,10 @@
};
},
methods: {
/**
* @description: onSubmitClick
* @author: renchao
*/
onSubmitClick () {
saveData(this.ruleForm, this.propsParam.djlx).then((res) => {
if (res.code === 200) {
......@@ -322,12 +326,22 @@
},
// 更新权利人信息
/**
* @description: 更新权利人信息
* @param {*} val
* @author: renchao
*/
upDateQlrxxList (val) {
if (!_.isEqual(val, this.ruleForm.qlrList)) {
this.ruleForm.qlrList = _.cloneDeep(val);
}
},
// 更新义务人信息
/**
* @description: 更新义务人信息
* @param {*} val
* @author: renchao
*/
upDateYwrxxList (val) {
if (!_.isEqual(val, this.ruleForm.ywrList)) {
this.ruleForm.ywrList = _.cloneDeep(val);
......
......@@ -252,21 +252,44 @@
},
methods: {
// 更新土地用途信息
/**
* @description: 更新土地用途信息
* @param {*} val
* @author: renchao
*/
upDateTdytxxList (val) {
this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
this.key++;
},
// 更新权利人信息
/**
* @description: 更新权利人信息
* @param {*} val
* @author: renchao
*/
upDateQlrxxList (val) {
this.ruleForm.qlrList = _.cloneDeep(val);
},
/**
* @description: showCZInfo
* @author: renchao
*/
showCZInfo () {
console.log(this.ruleForm.slsq.gyfs);
},
// 更新权利人信息
/**
* @description: 更新权利人信息
* @param {*} val
* @author: renchao
*/
upDateYwrxxList (val) {
this.ruleForm.ywrList = _.cloneDeep(val);
},
/**
* @description: onSubmit
* @author: renchao
*/
onSubmit () {
saveData(this.ruleForm).then((res) => {
if (res.code === 200) {
......
......@@ -277,6 +277,10 @@
};
},
methods: {
/**
* @description: dataSelectClick
* @author: renchao
*/
dataSelectClick () {
this.$popup("房屋信息比对", this.BASE_API.SERVERAPI + "/rest/ywbl/fdcq2/slxxCompareDetai",
{
......@@ -287,19 +291,38 @@
});
},
// 更新土地用途信息
/**
* @description: 更新土地用途信息
* @param {*} val
* @author: renchao
*/
upDateTdytxxList (val) {
this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
this.key++;
},
// 更新权利人信息
/**
* @description: 更新权利人信息
* @param {*} val
* @author: renchao
*/
upDateQlrxxList (val) {
this.ruleForm.qlrList = _.cloneDeep(val);
},
// 更新权利人信息
/**
* @description: 更新权利人信息
* @param {*} val
* @author: renchao
*/
upDateYwrxxList (val) {
this.ruleForm.ywrList = _.cloneDeep(val);
},
/**
* @description: onSubmit
* @author: renchao
*/
onSubmit () {
saveData(this.ruleForm).then((res) => {
if (res.code === 200) {
......
......@@ -91,6 +91,10 @@
};
},
methods: {
/**
* @description: loadData
* @author: renchao
*/
loadData () {
var formdata = new FormData();
formdata.append("bsmSldy", this.propsParam.formData.bsmSldy);
......@@ -108,6 +112,10 @@
}
});
},
/**
* @description: checkChange
* @author: renchao
*/
checkChange () {
if (this.checkList.length === 0) {
this.tableData = [];
......@@ -116,6 +124,11 @@
this.loadData();
}
},
/**
* @description: getQsztName
* @param {*} code
* @author: renchao
*/
getQsztName (code) {
let name = "";
for (let item of this.qsztList) {
......
......@@ -209,6 +209,10 @@
},
methods: {
//组装房地产权通用信息
/**
* @description: 组装房地产权通用信息
* @author: renchao
*/
splicingFdcq2Info () {
let fdcq2List = this.ruleForm.fdcq2List;
let fwxzArr = [];
......@@ -232,16 +236,34 @@
},
// 更新权利人信息
/**
* @description: 更新权利人信息
* @param {*} val
* @author: renchao
*/
upDateQlrxxList (val) {
this.ruleForm.qlrList = _.cloneDeep(val);
},
/**
* @description: showCZInfo
* @author: renchao
*/
showCZInfo () {
console.log(this.ruleForm.slsq.gyfs);
},
// 更新义务人信息
/**
* @description: 更新义务人信息
* @param {*} val
* @author: renchao
*/
upDateYwrxxList (val) {
this.ruleForm.ywrList = _.cloneDeep(val);
},
/**
* @description: onSubmit
* @author: renchao
*/
onSubmit () {
saveBatchData(this.ruleForm).then((res) => {
if (res.code === 200) {
......