Commit 60b22bcf by lei wang

ucl交易代码提交

parent a423d10c
......@@ -7788,6 +7788,10 @@ const CodeTable = {
{ label: "否", value: " " },
{ label: "是", value: "X" },
],
ucl_defflg: [
{ label: "是", value: "X" },
{ label: "否", value: "" },
],
swtcod: [
{ label: '/AGENT/', value: 'AGEN' },
{ label: '/COMM/', value: 'COM' },
......
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/ucl/queryByPage", data)
}
export function edit(data) {
return Api.post("/manager/ucl/edit", data)
}
\ No newline at end of file
......@@ -383,6 +383,8 @@ import Dbdtdh from "~/views/Statics/Dbdtdh";
import Inflck from "~/views/Statics/Inflck";
import Infucl from "~/views/Statics/Infucl";
/**
* 带有name的才会被添加进顶部的标签页里
*/
......@@ -779,5 +781,7 @@ const BusRouter = [
{ path: 'infxrt', component: Infxrt, name: 'StaticsInfxrt', meta: { title: '牌价查询' } },
{ path: 'inflck', component: Inflck, name: 'StaticsInflck', meta: { title: '业务解锁' } },
{ path: 'infucl', component: Infucl, name: 'StaticsInfucl', meta: { title: '用户归属机构更换' } },
]
export default BusRouter
\ No newline at end of file
......@@ -207,6 +207,7 @@ export default {
{ inifrm: "inftdh", ininam: "节假日查询", pntmiu: "10"},
{ inifrm: "infxrt", ininam: "牌价查询", pntmiu: "10"},
{ inifrm: "inflck", ininam: "业务解锁", pntmiu: "10"},
{ inifrm: "infucl", ininam: "用户归属机构更换", pntmiu: "10"},
// { inifrm: "gitset", ininam: "进口保函赔付", pntmiu: "13" },
// { inifrm: "gitcrq", ininam: "进口保函索赔登记", pntmiu: "13" },
......
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="机构名称" prop="bchName">
<c-input v-model="model.bchname" placeholder="请输入机构名称" style="width: 100%"></c-input>
</el-form-item>
</c-col>
</c-col>
<!------------- 右 ---------->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="机构编号" prop="branchinr">
<c-input v-model="model.branchinr" placeholder="请输入机构编号" style="width: 100%"></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: right">
<el-button type="primary" icon="el-icon-search" size="small" @click="onSearch()">查询
</el-button>
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table :data="uclData" :columns="uclColumns" :pageNumber="model.pageNum" :pageSize="model.pageSize"
:total="model.total" v-on:queryFunc="queryFunc" :border="true">
<c-table-column fixed="right" prop="op" label="操作" width="240px">
<template slot-scope="{ scope }">
<c-button style="margin-left: 5px" size="small" type="primary"
@click="uclEdit(scope.$index, scope.row)">修改</c-button>
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/ucl.js";
import { edit } from "~/service/test/ucl.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
uclData: [],
uclColumns: [
{ label: '机构名称', prop: 'bchName', width: 'auto' },
{ label: '机构编号', prop: 'branchinr', width: 'auto' },
{ label: '是否默认机构', prop: 'usrdefCn', width: 'auto' },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInfuclSearch()
}
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch() {
this.model.pageSize = 5;
this.model.pageNum = 1;
this.onInfuclSearch();
},
onInfuclSearch() {
queryByPage(this.model).then(res => {
const list = res.list
Object.keys(list).forEach((item) => {
let obj = list[item]
let codArr = codes['ucl_defflg'].filter((i) => {
return i.value == obj.usrdef.trim()
})
obj.usrdefCn = codArr[0].label
})
this.uclData = list
this.model.pageNum = res.pageNumber
this.model.pageSize = res.pageSize
this.model.total = res.total
})
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber
this.model.pageSize = pageSize
this.onInfuclSearch()
},
uclCodesByKey(key) {
return codes[key] ?? [];
},
uclEdit(index, row) {
this.$confirm("请确认是否将此机构修改为用户默认机构?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
edit(row)
.then((res) => {
this.$message.success("修改成功!")
this.onInfuclSearch()
})
.catch((err) => {
this.$message.error("修改失败!")
})
})
.catch(() => {
this.$message({
type: "info",
message: "已取消修改",
})
})
},
},
};
</script>
<style scoped>
.table-button-item-list {
padding: 0;
margin: 0;
}
.table-button-item-list li {
list-style: none;
padding: 5px 0;
text-align: center;
color: #606266;
cursor: pointer;
}
</style>
<template>
<div class="eContainer">
<c-page title="用户归属机构更换">
<el-form :model="model" ref="modelForm" label-width="120px" label-position="right" size="small">
<c-tabs v-model="tabVal" ref="elment" type="card">
<!--PD000039 -->
<el-tab-pane label="查询面板" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInfucl",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
cod: "",
pageSize:5,
pageNum:1,
total:0
},
};
},
};
</script>
<style>
</style>
\ No newline at end of file
......@@ -127,6 +127,8 @@ import Dbdtdh from "./Dbdtdh";
import Inflck from "./Inflck";
import Infucl from "./Infucl";
const StaticsRouter = [
{ path: 'dbiptm/:inr', component:Dbiptm, name: 'StaticsDbiptm', meta: { title: (tag) => { return '客户详情: ' + tag.params.inr } } },
......@@ -260,6 +262,8 @@ const StaticsRouter = [
{ path: 'inflck', component: Inflck, name: 'StaticsInflck', meta: { title: '业务解锁' } },
{ path: 'infucl', component: Infucl, name: 'StaticsInfucl', meta: { title: '用户归属机构更换' } },
]
export default StaticsRouter
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment