Commit eb624fa8 by 闫泽浩

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs into development-202206
parents ba246036 836995da
......@@ -40,7 +40,7 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"gidgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -53,7 +53,7 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"gidgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/ety/queryByPage", data)
}
export function queryById(inr) {
return Api.post("/manager/ety/queryById", {inr})
}
export function add(data) {
return Api.post("/manager/ety/add", data)
}
export function edit(data) {
return Api.post("/manager/ety/edit", data)
}
export function deleteById(inr) {
return Api.post("/manager/ety/deleteById", {inr})
}
<template>
<m-ety title="dbaety" type="add"></m-ety>
</template>
<script>
import Dbiety from "~/views/Statics/Dbiety";
export default {
name: "StaticsDbaety",
components: {
"m-ety": Dbiety
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-ety title="dbdety" type="delete"></m-ety>
</template>
<script>
import Dbiety from "~/views/Statics/Dbiety";
export default {
name: "StaticsDbdety",
components: {
"m-ety": Dbiety
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-ety title="dbeety" type="edit"></m-ety>
</template>
<script>
import Dbiety from "~/views/Statics/Dbiety";
export default {
name: "StaticsDbeety",
components: {
"m-ety": Dbiety
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
......@@ -19,11 +19,11 @@
<c-input v-model="model.txt" placeholder="请输入币种名称"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<!-- <c-col :span="24">
<el-form-item label="版本号" prop="ver">
<c-input v-model="model.ver" placeholder="请输入版本号"> </c-input>
</el-form-item>
</c-col>
</c-col> -->
</c-col>
</div>
</template>
......
export default class Ety {
constructor() {
this.data = {
inr: "",
extkey: "",
nam: "",
etg: "",
offlog: "",
letlog: "",
userpic: "",
defico: "",
ver: "",
ownptainr: "",
defrouusg: "",
etaextkey: "",
ownbic: "",
owntid: "",
admusr: "",
timzon: "",
clearid: "",
}
}
}
export const Pattern= {
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"extkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"nam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"etg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"offlog": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 38, "message": "最大长度38个字符", "trigger": "blur" }
],
"letlog": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 38, "message": "最大长度38个字符", "trigger": "blur" }
],
"userpic": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 38, "message": "最大长度38个字符", "trigger": "blur" }
],
"defico": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 38, "message": "最大长度38个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"ownptainr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"defrouusg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"etaextkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"ownbic": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 12, "message": "最大长度12个字符", "trigger": "blur" }
],
"owntid": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 23, "message": "最大长度23个字符", "trigger": "blur" }
],
"admusr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"timzon": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
}
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<!-- <c-col :span="24">
<el-form-item label="inr" prop="inr">
<c-input
v-model="model.inr"
placeholder="请输入inr"
>
</c-input>
</el-form-item>
</c-col> -->
<c-col :span="24">
<el-form-item label="实体号" prop="extkey">
<c-input
v-model="model.extkey"
placeholder="请输入实体号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="实体名称" prop="nam">
<c-input
v-model="model.nam"
placeholder="请输入实体名称"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="实体组" prop="etg">
<c-input
v-model="model.etg"
placeholder="请输入实体组"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Office界面Logo" prop="offlog">
<c-input
v-model="model.offlog"
placeholder="请输入Office界面Logo"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="信函头Logo" prop="letlog">
<c-input
v-model="model.letlog"
placeholder="请输入信函头Logo"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Office界面使用图片" prop="userpic">
<c-input
v-model="model.userpic"
placeholder="请输入Office界面使用图片"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="实体默认图标" prop="defico">
<c-input
v-model="model.defico"
placeholder="请输入实体默认图标"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="版本号" prop="ver">
<c-input
v-model="model.ver"
placeholder="请输入版本号"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="我方地址的INR" prop="ownptainr">
<c-input
v-model="model.ownptainr"
placeholder="请输入我方地址的INR"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="默认用户组" prop="defrouusg">
<c-input
v-model="model.defrouusg"
placeholder="请输入默认用户组"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="实体地址代码" prop="etaextkey">
<c-input
v-model="model.etaextkey"
placeholder="请输入实体地址代码"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="实体的BIC" prop="ownbic">
<c-input
v-model="model.ownbic"
placeholder="请输入实体的BIC"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="实体的TC ID" prop="owntid">
<c-input
v-model="model.owntid"
placeholder="请输入实体的TC ID"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="管理员" prop="admusr">
<c-input
v-model="model.admusr"
placeholder="请输入管理员"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="时区" prop="timzon">
<c-input
v-model="model.timzon"
placeholder="请输入时区"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="清算编号" prop="clearid">
<c-input
v-model="model.clearid"
placeholder="请输入清算编号"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import codes from "@/config/CodeTable";
export default {
name: "",
inject: ["root"],
props: ["model"],
data() {
return {};
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="150px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="基本信息" name="ety">
<c-content>
<m-ety-info :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<div style="text-align: center">
<c-button
type="primary"
style="margin-right: 10px"
@click="commitAdd"
v-if="type === 'add'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitEdit"
v-if="type === 'edit'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitDelete"
v-if="type === 'delete'"
>提 交</c-button
>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template>
<script>
import Utils from "~/utils";
import Ety, { Pattern } from "./Ety.js";
import EtyInfo from "./EtyInfo.vue";
import { queryById, add, edit, deleteById } from "~/service/test/ety.js";
export default {
name: "StaticsDbiety",
components: {
"m-ety-info": EtyInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbiety"
}
},
data() {
return {
model: new Ety().data,
tabVal: "ety",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
queryById(inr).then((res) => {
if (res.inr) {
this.model = res;
} else {
this.$message.error("客户不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitDelete() {
this.$confirm("是否确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteById(this.model.inr)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新infpty的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfety", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
......@@ -102,7 +102,7 @@ export default {
{ label: "币种号码", prop: "cod", width: "auto" },
{ label: "币种数字号码", prop: "numcod", width: "auto" },
{ label: "币种名称", prop: "txt", width: "auto" },
{ label: "版本号", prop: "ver", width: "auto" },
// { label: "版本号", prop: "ver", width: "auto" },
],
};
},
......
<template>
<div class="eibs-tab">
<!-- ----------左 ---------->
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="实体号" prop="extkey">
<c-input
v-model="model.extkey"
placeholder="请输入实体号"
>
</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="nam">
<c-input
v-model="model.nam"
placeholder="请输入实体名称"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="etyAdd">新增</el-button>
</c-col>
<c-col :span="12" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
<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="etyData"
:columns="etyColumns"
: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: 0"
size="small"
@click="etyInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="etyEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="etyDelete(scope.$index, scope.row)"
>删除</c-button
>
<el-popover placement="top-start" width="50" trigger="click">
<ul class="table-button-item-list">
<li>
<c-button size="small" style="margin-left: 0">指派</c-button>
</li>
<li>
<c-button size="small" style="margin-left: 0">删除</c-button>
</li>
</ul>
<a
slot="reference"
href="javascript:void(0)"
style="margin-left: 5px"
>
<i class="el-icon-more"></i>
</a>
</el-popover>
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/ety.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
etyData: [],
etyColumns:
[
{ label: '实体号', prop: 'extkey', width: '120' },
{ label: '实体名称', prop: 'nam', width: '150' },
{ label: '实体组', prop: 'etg', width: '120' },
{ label: 'Office界面Logo', prop: 'offlog', width: '200' },
{ label: '信函头Logo', prop: 'letlog', width: '200' },
{ label: 'Office界面使用图片', prop: 'userpic', width: '300' },
{ label: '实体默认图标', prop: 'defico', width: '200' },
{ label: '版本号', prop: 'ver', width: '120' },
{ label: '我方地址的INR', prop: 'ownptainr', width: '200' },
{ label: '默认用户组', prop: 'defrouusg', width: '200' },
{ label: '实体地址代码', prop: 'etaextkey', width: '200' },
{ label: '实体的BIC', prop: 'ownbic', width: '200' },
{ label: '实体的TC ID', prop: 'owntid', width: '200' },
{ label: '管理员', prop: 'admusr', width: '120' },
{ label: '时区', prop: 'timzon', width: '100' },
{ label: '清算编号', prop: 'clearid', width: '150' },
]
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInfetySearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch(){
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInfetySearch();
},
onInfetySearch() {
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list
this.etyData = 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.onInfetySearch()
},
getCodesByKey(key) {
return codes[key] ?? [];
},
etyAdd() {
this.$router.push(`/statics/dbaety`)
},
etyInfo(index, row) {
this.$router.push(`/statics/dbiety/${row.inr}`)
},
etyEdit(index, row) {
this.$router.push(`/statics/dbeety/${row.inr}`)
},
etyDelete(index, row) {
this.$router.push(`/statics/dbdety/${row.inr}`)
},
},
};
</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: "StaticsInfety",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// ety
nam: "",
extkey: "",
// paging
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
......@@ -107,6 +107,12 @@ import Dbizmqxrt from "./Dbizmqxrt";
import Infbnk from "~/views/Statics/Infbnk";
import Dbibnk from "~/views/Statics/Dbibnk";
import Infety from "./Infety";
import Dbiety from "./Dbiety";
import Dbaety from "./Dbaety";
import Dbeety from "./Dbeety";
import Dbdety from "./Dbdety";
const StaticsRouter = [
{ path: 'dbiptm/:inr', component:Dbiptm, name: 'StaticsDbiptm', meta: { title: (tag) => { return '客户详情: ' + tag.params.inr } } },
......@@ -204,6 +210,13 @@ const StaticsRouter = [
{ path: 'dbiapf/:inr', component: Dbiapf, name: 'StaticsDbiapf', meta: { title: (tag) => { return '报文格式信息详情: ' + tag.params.inr } } },
{ path: 'dbeapf/:inr', component: Dbeapf, name: 'StaticsDbeapf', meta: { title: (tag) => { return '报文格式信息修改: ' + tag.params.inr } } },
{ path: 'dbdapf/:inr', component: Dbdapf, name: 'StaticsDbdapf', meta: { title: (tag) => { return '报文格式信息删除: ' + tag.params.inr } } },
{ path: 'infety', component: Infety, name: 'StaticsInfety', meta: { title: '实体查询' } },
{ path: 'dbaety', component: Dbaety, name: 'StaticsDbaety', meta: { title: '实体新增' } },
{ path: 'dbiety/:inr', component: Dbiety, name: 'StaticsDbiety', meta: { title: (tag) => { return '查看实体详情信息: ' + tag.params.inr } } },
{ path: 'dbeety/:inr', component: Dbeety, name: 'StaticsDbeety', meta: { title: (tag) => { return '实体修改: ' + tag.params.inr } } },
{ path: 'dbdety/:inr', component: Dbdety, name: 'StaticsDbdety', meta: { title: (tag) => { return '实体删除: ' + tag.params.inr } } },
{ path: 'dblzmq', component: Dblzmq, name: 'StaticsDblzmq', meta: { title: '自贸区牌价查询' } },
{ path: 'dbazmq', component: Dbazmq, name: 'StaticsDbazmq', meta: { title: '自贸区牌价新增' } },
{ path: 'dbizmqxrt/:inr', component: Dbizmqxrt, name: 'StaticsDbizmqxrt', meta: { title: (tag) => { return '自贸区牌价详情: ' + tag.params.inr } } },
......
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