Commit 0bf02bed by songhai

feature:多实体维护功能页面

parent 8139c3e4
...@@ -4,12 +4,14 @@ import Dblbch1 from "./Bch1/Dblbch/views"; ...@@ -4,12 +4,14 @@ import Dblbch1 from "./Bch1/Dblbch/views";
import Dblmenu from "./Menu/Dblmenu/views"; import Dblmenu from "./Menu/Dblmenu/views";
import Dblbch from "./Bch/Dblbch"; import Dblbch from "./Bch/Dblbch";
import Dblrole from "./Role/Dblrole"; import Dblrole from "./Role/Dblrole";
import Dblety from "./Ety/Dblety/views";
const AdminRouter = [ const AdminRouter = [
{ path: 'Sysparam', component: Sysparam, name: 'Sysparam', meta: { keepAlive: true, title: '系统参数查询' } }, { path: 'Sysparam', component: Sysparam, name: 'Sysparam', meta: { keepAlive: true, title: '系统参数查询' } },
{ path: 'DblBch', component: Dblbch, name: 'DblBch', meta: { keepAlive: true, title: '机构查询v1.0' } }, { path: 'DblBch', component: Dblbch, name: 'DblBch', meta: { keepAlive: true, title: '机构查询v1.0' } },
{ path: 'DblBch1', component: Dblbch1, name: 'DblBch1', meta: { keepAlive: true, title: '机构查询v1.1' } }, { path: 'DblBch1', component: Dblbch1, name: 'DblBch1', meta: { keepAlive: true, title: '机构查询v1.1' } },
{ path: 'Dblmenu', component: Dblmenu, name: 'Dblmenu', meta: { keepAlive: true, title: '菜单查询' } }, { path: 'Dblmenu', component: Dblmenu, name: 'Dblmenu', meta: { keepAlive: true, title: '菜单查询' } },
{ path: 'Dblrole', component: Dblrole, name: 'Dblrole', meta: { keepAlive: true, title: '角色查询' } }, { path: 'Dblrole', component: Dblrole, name: 'Dblrole', meta: { keepAlive: true, title: '角色查询' } },
{ path: 'Dblety', component: Dblety, name: 'Dblety', meta: { keepAlive: true, title: '实体查询' } },
] ]
export default AdminRouter export default AdminRouter
import Api from "~/service/Api"
export default {
}
export default class Ety {
constructor() {
this.data = {
id :0,
inr :"",
extkey :"",
nam :"",
etg :"",
offlog :"",
letlog :"",
userpic :"",
defico :"",
ver :"",
ownptainr :"",
defrouusg :"",
etaextkey :"",
ownbic :"",
owntid :"",
admusr :"",
timzon :"",
clearid :"",
ptyextkey :"",
ptanam :"",
pageSize:PageSize,
pageNum: 1,
total: 0
}
}
}
export const Pattern = {
"extkey": [
{ "required": true, "message": "请输入实体代码"},
{ "max": 8, "message": "最大长度8个字符"}
],
"nam": [{ "required": true, "message": "请输入实体名称"}],
"etg": [{ "required": true, "message": "请选择实体组"}],
//offlog
//letlog
//userpic
//defico
"ptyextkey": [{ "required": true, "message": "请选择关联的业务当事人"}],
"ownptainr": [{ "required": true, "message": "请选择关联的业务当事人和地址"}],
//defrouusg
"etaextkey": [{ "required": true, "message": "请选择实体地址代码"}],
//ownbic
//owntid
//admusr
"timzon": [{ "required": true, "message": "请选择所属时区"}],
//clearid
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- ----------左 ---------->
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item :label="$t('statics.实体代码')" prop="extkey">
<c-input v-model="model.extkey" style="width: 100%" >
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item :label="$t('statics.实体名称')" prop="nam">
<c-input v-model="model.nam" ></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<span style="float: left">
<el-button type="primary" size="small" ref="etyInsertBtn" v-if="true" @click="etyAdd">{{$t('statics.新增')}}</el-button>
</span>
<span style="float: right">
<el-button size="small" @click="handleReset">{{$t('statics.重置')}}</el-button>
<el-button type="primary" icon="el-icon-search" size="small" :loading="searchLoading" @click="onSearch()">{{$t('statics.查询')}}
</el-button>
</span>
</c-col>
<c-col :span="24">
<c-paging-table :data="etyData" :pageNumber="model.pageNum" :pageSize="model.pageSize"
:total="model.total" v-on:queryFunc="queryFunc" :border="true" @sort-change="sortChange" sortable="custom">
<el-table-column prop="extkey" :label="$t('statics.实体代码')" width="auto">
</el-table-column>
<el-table-column prop="nam" :label="$t('statics.实体名称')" width="auto">
<template slot-scope="scope">
{{scope.row.nam}}
</template>
</el-table-column>
<el-table-column prop="etg" :label="$t('statics.所属实体组代码')" width="auto">
<template slot-scope="scope">
{{scope.row.etg}}
</template>
</el-table-column>
<!--
<el-table-column prop="offlog" :label="$t('statics.OFFICE界面LOGO路径')" width="auto">
<template slot-scope="scope">
{{scope.row.offlog}}
</template>
</el-table-column>
<el-table-column prop="letlog" :label="$t('statics.信函头LOGO路径')" width="auto">
<template slot-scope="scope">
{{scope.row.letlog}}
</template>
</el-table-column>
<el-table-column prop="userpic" :label="$t('statics.OFFICE界面使用图片路径')" width="auto">
<template slot-scope="scope">
{{scope.row.userpic}}
</template>
</el-table-column>
<el-table-column prop="defico" :label="$t('statics.实体默认图标路径')" width="auto">
<template slot-scope="scope">
{{scope.row.defico}}
</template>
</el-table-column>
<el-table-column prop="ver" :label="$t('statics.版本号')" width="auto">
<template slot-scope="scope">
{{scope.row.ver}}
</template>
</el-table-column>
-->
<el-table-column prop="ownptainr" :label="$t('statics.关联的业务当事人客户号')" width="auto">
<template slot-scope="scope">
{{scope.row.ptyextkey}}
</template>
</el-table-column>
<el-table-column prop="ownptainr" :label="$t('statics.关联的业务当事人地址描述')" width="auto">
<template slot-scope="scope">
{{scope.row.ptanam}}
</template>
</el-table-column>
<el-table-column prop="ownptainr" :label="$t('statics.关联的实体地址表主键INR')" width="auto" v-show="false">
<template slot-scope="scope">
{{scope.row.ownptainr}}
</template>
</el-table-column>
<!-- <el-table-column prop="defrouusg" :label="$t('statics.默认分配用户组')" width="auto">
<template slot-scope="scope">
{{scope.row.defrouusg}}
</template>
</el-table-column> -->
<el-table-column prop="etaextkey" :label="$t('statics.实体地址代码')" width="auto">
<template slot-scope="scope">
{{scope.row.etaextkey}}
</template>
</el-table-column>
<el-table-column prop="ownbic" :label="$t('statics.实体的BIC')" width="auto">
<template slot-scope="scope">
{{scope.row.ownbic}}
</template>
</el-table-column>
<el-table-column prop="owntid" :label="$t('statics.实体的TRADE CONNECT代码')" width="auto">
<template slot-scope="scope">
{{scope.row.owntid}}
</template>
</el-table-column>
<el-table-column prop="admusr" :label="$t('statics.应用管理员')" width="auto">
<template slot-scope="scope">
{{scope.row.admusr}}
</template>
</el-table-column>
<el-table-column prop="timzon" :label="$t('statics.所属时区')" width="auto">
<template slot-scope="scope">
{{scope.row.timzon}}
</template>
</el-table-column>
<el-table-column prop="clearid" :label="$t('statics.清算编号')" width="auto">
<template slot-scope="scope">
{{ scope.row.clearid}}
</template>
</el-table-column>
<c-table-column fixed="right" prop="op" :label="$t('statics.操作')" width="280px">
<template slot-scope="{ scope }">
<c-button style="margin-left: 5px" size="small" type="" ref="etyDisplayBtn" @click="etyInfo(scope.row)">
{{$t('statics.详情')}}</c-button>
<c-button style="margin-left: 5px" size="small" type="primary" ref="etyUpdateBtn"
@click="etyEdit(scope.row)">{{$t('statics.修改')}}</c-button>
<c-button style="margin-left: 5px" size="small" type="primary" v-if="true" ref="etyDeleteBtn"
@click="etyDelete(scope.row)">{{$t('statics.删除')}}</c-button>
<!-- <c-button style="margin-left: 5px" size="small" type="primary" v-if="true" ref="etyMenuBtn"-->
<!-- @click="etyMenuEdit(scope.row)">{{$t('statics.菜单')}}</c-button>-->
</template>
</c-table-column>
</c-paging-table>
</c-col>
<el-dialog :title="$t('statics.' + dialogNam[operaTyp])" :visible.sync="dialogFlg" :modal-append-to-body="false"
:close-on-click-modal="false" width="70%">
<el-form :model="dataForm" :rules="rules" ref="dataForm" label-suffix=":" :disabled="isDisabled">
<c-col :span="24" style="padding-right: 20px;">
<c-col :span="12">
<el-form-item :label="$t('statics.实体代码')" :label-width="formLabelWidth" prop="extkey">
<c-input v-model="dataForm.extkey" autocomplete="off" :disabled="isDisabled">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.实体名称')" :label-width="formLabelWidth" prop="nam">
<c-input v-model="dataForm.nam" autocomplete="off" :disabled="isDisabled">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.所属实体组代码')" :label-width="formLabelWidth" prop="etg">
<el-select v-model="dataForm.etg" autocomplete="off" :disabled="isDisabled">
<el-option
v-for="item in etgList"
:key="item.inr"
:label="item.extkey+'('+item.nam+')'"
:value="item.extkey"
>
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.OFFICE界面LOGO路径')" :label-width="formLabelWidth" prop="offlog">
<c-input v-model="dataForm.offlog" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.信函头LOGO路径')" :label-width="formLabelWidth" prop="letlog">
<c-input v-model="dataForm.letlog" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.OFFICE界面使用图片路径')" :label-width="formLabelWidth" prop="userpic">
<c-input v-model="dataForm.userpic" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.实体默认图标路径')" :label-width="formLabelWidth" prop="defico">
<c-input v-model="dataForm.defico" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="12">
<el-form-item :label="$t('statics.版本号')" :label-width="formLabelWidth" prop="ver">
<c-input v-model="dataForm.ver" autocomplete="off" :disabled="isDisabled">
</c-input>
</el-form-item>
</c-col> -->
<c-col :span="12">
<el-form-item :label="$t('statics.关联的业务当事人客户号')" :label-width="formLabelWidth" prop="ptyextkey">
<el-select v-model="dataForm.ptyextkey" autocomplete="off" :disabled="isDisabled">
<el-option
v-for="item in ptaList"
:key="item.inr"
:label="item.ptyextkey"
:value="item.ptyextkey"
@click.native="selectPtyExtkey(item)""
>
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.关联的业务当事人地址描述')" :label-width="formLabelWidth" prop="ptanam">
<c-input v-model="dataForm.ptanam" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.关联的实体地址表主键INR')" :label-width="formLabelWidth" prop="ownptainr" v-show="false">
<c-input v-model="dataForm.ownptainr" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.默认分配用户组')" :label-width="formLabelWidth" prop="defrouusg">
<c-input v-model="dataForm.defrouusg" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.实体地址代码')" :label-width="formLabelWidth" prop="etaextkey">
<el-select v-model="dataForm.etaextkey" autocomplete="off" :disabled="isDisabled">
<el-option
v-for="item in etaList"
:key="item.inr"
:label="item.extkey+'('+item.nam+')'"
:value="item.extkey"
>
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.实体的BIC')" :label-width="formLabelWidth" prop="ownbic">
<c-input v-model="dataForm.ownbic" autocomplete="off" :disabled="isDisabled">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.实体的TRADE CONNECT代码')" :label-width="formLabelWidth" prop="owntid">
<c-input v-model="dataForm.owntid" autocomplete="off" :disabled="isDisabled">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.应用管理员')" :label-width="formLabelWidth" prop="admusr">
<c-input v-model="dataForm.admusr" autocomplete="off" :disabled="true">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.所属时区')" :label-width="formLabelWidth" prop="timzon">
<el-select v-model="dataForm.timzon" autocomplete="off" :disabled="isDisabled">
<el-option
v-for="item in timzonList"
:key="item.inr"
:label="item.cod+'('+item.txt+')'"
:value="item.cod"
>
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('statics.清算编号')" :label-width="formLabelWidth" prop="clearid">
<c-input v-model="dataForm.clearid" autocomplete="off" :disabled="isDisabled">
</c-input>
</el-form-item>
</c-col>
</c-col>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="commitAdd" v-if="operaTyp == 'add'">{{$t('statics.提 交')}}</el-button>
<el-button type="primary" @click="commitEdit" v-if="operaTyp == 'edit'">{{$t('statics.提 交')}}</el-button>
<el-button @click="dialogFlg = false" v-if="operaTyp != 'info'">{{$t('statics.取 消')}}</el-button>
<el-button @click="dialogFlg = false" v-if="operaTyp == 'info'">{{$t('statics.返 回')}}</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import Ety, {
Pattern
} from "../model/index.js";
import commonFunctions from "~/mixin/commonFunctions.js";
import Api from "~/service/Api";
import { getPtaTableDtat } from "~/service/business/common";
export default {
mixins: [commonFunctions],
props: ["data"],
inject: ["root"],
data() {
return {
rules: Pattern,
model: new Ety().data,
//下拉列表选项
etgList: [],
etaList: [],
timzonList: [],
ptaList: [],
etyData: [],
// roleColumns: [{
// label: '角色代码',
// prop: 'cod',
// width: 'auto'
// },
// {
// label: '角色名称',
// prop: 'name',
// width: 'auto'
// },
// {
// label: '角色描述',
// prop: 'description',
// width: 'auto'
// },
// {
// label: '适用范围',
// prop: 'bchlev',
// width: 'auto'
// },
// {
// label: '角色状态',
// prop: 'state',
// width: 'auto'
// },
// ],
dataForm: new Ety().data,
menuForm: new Ety().data,
dialogNam: {
'add': '实体信息--新增',
'edit': '实体信息--修改',
'info': '实体信息--详情',
},
operaTyp: "",
isDisabled: false,
showDisplayBtn: false,
showInsertBtn: false,
showUpdateBtn: false,
showDeleteBtn: false,
dialogFlg: false,
dialogFlgMenu:false,
formLabelWidth: "150px",
searchLoading: false,
};
},
//初始化查询
created() {
},
watch :{
},
activated() {
},
mounted() {
this.etgListInit();
this.etaListInit();
this.timzonListInit();
this.ptaListInit();
},
computed: {
},
methods: {
etgListInit(){
Api.post('/admin/dblety/etg/getEtgList',{}).then(res=>{
this.etgList = res.data;
}
)
},
etaListInit(){
Api.post('/admin/dblety/eta/getEtaList',{}).then(res=>{
this.etaList = res.data;
}
)
},
timzonListInit(){
Api.post('/admin/dblety/stb/getTimzonList',{
"uil": "EN"
}).then(res=>{
this.timzonList = res.data;
}
)
},
ptaListInit(){
Api.post('/admin/dblety/pta/getPtaList',{}).then(res=>{
this.ptaList = res.data;
}
)
},
selectPtyExtkey(item){
this.dataForm.ptanam=item.nam;
this.dataForm.ownptainr=item.inr;
console.log(this.dataForm.ownptainr);
},
handleCheckChange(){
console.log ("-1--",this.$refs.treeRef);
console.log ("-2------",this.$refs.treeRef.getCheckedNodes(false,true));
console.log ("-3------",this.$refs.treeRef.getCheckedKeys(false));
},
handleReset() {
//this.root.$refs.modelForm.resetFields();
this.model.extkey="";
this.model.nam="";
this.model.etg="";
this.model.offlog="";
this.model.letlog="";
this.model.userpic="";
this.model.defico="";
this.model.ver="";
this.model.ownptainr="";
this.model.defrouusg="";
this.model.etaextkey="";
this.model.ownbic="";
this.model.owntid="";
this.model.admusr="";
this.model.timzon="";
this.model.clearid="";
this.model.ptyextkey="";
this.model.ptanam="";
this.onDbletySearch();
},
onSearch() {
this.model.pageSize = PageSize;
this.model.pageNum = 1;
this.onDbletySearch();
},
onDbletySearch() {
this.searchLoading = true;
Api.post('/admin/dblety/ety/listety',this.model).then(res => {
if (res.respCode == "AAAAAA") {
const list = res.data.list
this.etyData = list
this.model.pageNum = res.data.pageNum
this.model.pageSize = res.data.pageSize
this.model.total = res.data.total
this.searchLoading = false;
} else {
this.searchLoading = false;
this.$notify.error(this.$t('statics.查询失败'));
this.$notify.error()
}
})
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber
this.model.pageSize = pageSize
this.onDbletySearch()
},
//新增弹窗
etyAdd() {
this.isDisabled = false;
this.operaTyp = "add";
this.dialogFlg = true;
this.dataForm = new Ety().data;
},
//新增提交
commitAdd() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/admin/dblety/ety/addety',this.dataForm)
.then((res) => {
if (res.respCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success(this.$t('statics.添加成功!'));
this.dialogFlg = false;
this.onDbletySearch();
} else {
this.$notify.error(this.$t('statics.添加失败!'));
}
})
.catch((err) => {
this.$notify.error(this.$t('statics.添加失败!'));
});
} else {
this.$notify.error({
title: this.$t('statics.失败'),
message: this.$t('statics.请检查必输项!')
});
}
});
},
//查看弹窗
etyInfo(row) {
let tmp=row;
console.log("-------",row)
console.log("-------",tmp)
let id=row.id
console.log("-------",row.id)
Api.get('/admin/dblety/ety/etydetail/etyid/'+row.id)
.then((res) => {
this.isDisabled = true;
this.operaTyp = "info"
this.dataForm = res.data;
this.dialogFlg = true;
})
.catch((err) => {
this.$notify.error(this.$t('statics.数据查询失败'));
});
},
//修改弹窗
etyEdit(row) {
Api.get('/admin/dblety/ety/etydetail/etyid/'+row.id)
.then((res) => {
this.isDisabled = false;
this.dataForm = res.data;
this.operaTyp = "edit"
this.dialogFlg = true;
})
.catch((err) => {
this.$notify.error(this.$t('statics.数据查询失败'));
});
},
commitEdit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
Api.post('/admin/dblety/ety/updateety',this.dataForm)
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success(this.$t('statics.修改成功!'));
this.dialogFlg = false;
this.onDbletySearch();
} else {
this.$notify.error(this.$t('statics.修改失败!'));
}
})
.catch((err) => {
this.$notify.error(this.$t('statics.修改失败!'));
});
} else {
this.$notify.error(validMsg);
return false;
}
});
},
etyDelete(row) {
this.$confirm(this.$t('statics.是否确认删除?'), this.$t('statics.提示'), {
confirmButtonText: this.$t('statics.确定'),
cancelButtonText: this.$t('statics.取消'),
type: "warning",
})
.then(() => {
Api.post('/admin/dblety/ety/deleteety?id='+row.id)
.then((res) => {
if (res.errorCode == "AAAAAA" || res.respCode == "AAAAAA") {
this.$notify.success(this.$t('statics.删除成功'));
this.dialogFlg = false;
this.onDbletySearch();
} else {
this.$notify.error(this.$t('statics.删除失败'));
}
})
.catch((err) => {
this.$notify.error(this.$t('statics.删除失败'));
});
})
.catch(() => {
this.$message({
type: "info",
message: this.$t('statics.已取消删除'),
});
});
},
sortChange(obj) {
}
},
};
</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;
}
.el-dialog {
min-height: 70%;
}
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="$t('statics.多实体维护')">
<el-form :model="model" ref="modelForm" label-width="120px" label-position="right" size="small">
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane :label="$t('statics.多实体维护')" 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: "Param",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
code: "",
name: "",
// paging
pageNum: 1,
pageSize:PageSize,
total: 0
},
};
},
};
</script>
<style></style>
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