复用机构树按部门查询流程列表
This commit is contained in:
@@ -381,10 +381,10 @@ public class LoanPricingWorkflowServiceImpl implements ILoanPricingWorkflowServi
|
|||||||
wrapper.like(LoanPricingWorkflow::getCustIsn, loanPricingWorkflow.getCustIsn());
|
wrapper.like(LoanPricingWorkflow::getCustIsn, loanPricingWorkflow.getCustIsn());
|
||||||
}
|
}
|
||||||
|
|
||||||
// 按机构号筛选
|
// 按创建人部门筛选
|
||||||
if (StringUtils.hasText(loanPricingWorkflow.getOrgCode()))
|
if (loanPricingWorkflow.getDeptId() != null)
|
||||||
{
|
{
|
||||||
wrapper.like(LoanPricingWorkflow::getOrgCode, loanPricingWorkflow.getOrgCode());
|
wrapper.eq(LoanPricingWorkflow::getDeptId, loanPricingWorkflow.getDeptId());
|
||||||
}
|
}
|
||||||
|
|
||||||
return wrapper;
|
return wrapper;
|
||||||
|
|||||||
@@ -42,8 +42,8 @@
|
|||||||
<if test="query != null and query.custIsn != null and query.custIsn != ''">
|
<if test="query != null and query.custIsn != null and query.custIsn != ''">
|
||||||
AND lpw.cust_isn LIKE CONCAT('%', #{query.custIsn}, '%')
|
AND lpw.cust_isn LIKE CONCAT('%', #{query.custIsn}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="query != null and query.orgCode != null and query.orgCode != ''">
|
<if test="query != null and query.deptId != null">
|
||||||
AND lpw.org_code LIKE CONCAT('%', #{query.orgCode}, '%')
|
AND lpw.dept_id = #{query.deptId}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
ORDER BY lpw.update_time DESC
|
ORDER BY lpw.update_time DESC
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ class LoanPricingWorkflowMapperXmlTest
|
|||||||
assertTrue(xml.contains("lpw.create_by = #{query.dataScopeCreateBy}"));
|
assertTrue(xml.contains("lpw.create_by = #{query.dataScopeCreateBy}"));
|
||||||
assertTrue(xml.contains("lpw.dept_id IN"));
|
assertTrue(xml.contains("lpw.dept_id IN"));
|
||||||
assertTrue(xml.contains("find_in_set(#{query.dataScopeDeptId}, ancestors)"));
|
assertTrue(xml.contains("find_in_set(#{query.dataScopeDeptId}, ancestors)"));
|
||||||
|
assertTrue(xml.contains("lpw.dept_id = #{query.deptId}"));
|
||||||
assertTrue(xml.contains("SUBSTRING_INDEX(lpw.create_by, '-', -1) LIKE CONCAT('%', #{query.createBy}, '%')"));
|
assertTrue(xml.contains("SUBSTRING_INDEX(lpw.create_by, '-', -1) LIKE CONCAT('%', #{query.createBy}, '%')"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,12 +17,14 @@
|
|||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="机构号" prop="orgCode">
|
<el-form-item label="机构号" prop="deptId">
|
||||||
<el-input
|
<treeselect
|
||||||
v-model="queryParams.orgCode"
|
v-model="queryParams.deptId"
|
||||||
placeholder="请输入机构号"
|
:options="deptOptions"
|
||||||
|
:show-count="true"
|
||||||
|
placeholder="请选择机构号"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter.native="handleQuery"
|
style="width: 220px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
@@ -124,16 +126,20 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getWorkflowEdit, listWorkflow} from "@/api/loanPricing/workflow"
|
import {getWorkflowEdit, listWorkflow} from "@/api/loanPricing/workflow"
|
||||||
|
import {deptTreeSelect} from "@/api/system/user"
|
||||||
import {mapGetters} from "vuex"
|
import {mapGetters} from "vuex"
|
||||||
import CustomerTypeSelector from "./components/CustomerTypeSelector"
|
import CustomerTypeSelector from "./components/CustomerTypeSelector"
|
||||||
import CustomerMapSelector from "./components/CustomerMapSelector"
|
import CustomerMapSelector from "./components/CustomerMapSelector"
|
||||||
import PersonalCreateDialog from "./components/PersonalCreateDialog"
|
import PersonalCreateDialog from "./components/PersonalCreateDialog"
|
||||||
import CorporateCreateDialog from "./components/CorporateCreateDialog"
|
import CorporateCreateDialog from "./components/CorporateCreateDialog"
|
||||||
import {formatRate} from "@/utils/rate"
|
import {formatRate} from "@/utils/rate"
|
||||||
|
import Treeselect from "@riophae/vue-treeselect"
|
||||||
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "LoanPricingWorkflow",
|
name: "LoanPricingWorkflow",
|
||||||
components: {
|
components: {
|
||||||
|
Treeselect,
|
||||||
CustomerTypeSelector,
|
CustomerTypeSelector,
|
||||||
CustomerMapSelector,
|
CustomerMapSelector,
|
||||||
PersonalCreateDialog,
|
PersonalCreateDialog,
|
||||||
@@ -149,6 +155,8 @@ export default {
|
|||||||
total: 0,
|
total: 0,
|
||||||
// 利率定价流程表格数据
|
// 利率定价流程表格数据
|
||||||
workflowList: [],
|
workflowList: [],
|
||||||
|
// 机构树选项
|
||||||
|
deptOptions: [],
|
||||||
// 是否显示客户类型选择弹出层
|
// 是否显示客户类型选择弹出层
|
||||||
showTypeSelector: false,
|
showTypeSelector: false,
|
||||||
// 是否显示客户号查询选择弹出层
|
// 是否显示客户号查询选择弹出层
|
||||||
@@ -169,12 +177,13 @@ export default {
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
custIsn: undefined,
|
custIsn: undefined,
|
||||||
createBy: undefined,
|
createBy: undefined,
|
||||||
orgCode: undefined
|
deptId: undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList()
|
this.getList()
|
||||||
|
this.getDeptTree()
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters([
|
...mapGetters([
|
||||||
@@ -202,6 +211,12 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
formatRate,
|
formatRate,
|
||||||
|
/** 查询机构下拉树结构 */
|
||||||
|
getDeptTree() {
|
||||||
|
deptTreeSelect().then(response => {
|
||||||
|
this.deptOptions = response.data
|
||||||
|
})
|
||||||
|
},
|
||||||
/** 查询利率定价流程列表 */
|
/** 查询利率定价流程列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|||||||
Reference in New Issue
Block a user