Commit e2b01878 by “wufan”

Merge remote-tracking branch 'origin/development-202206' into development-202206

parents 868695d3 171399e5
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})
}
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/lck/queryByPage", data)
}
export function deleteByVo(data) {
return Api.post(`/manager/lck/deleteByVo`, data)
}
\ No newline at end of file
......@@ -5,6 +5,9 @@ export function queryById(data) {
export function queryByPage(data) {
return Api.post("/manager/pts/queryByPage", data)
}
export function queryByPage2(data) {
return Api.post("/manager/pts/queryByPage2", data)
}
export function insert(data) {
return Api.post("/manager/pts/insert", data)
}
......
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/tdh/queryByPage", data)
}
export function queryById(data) {
return Api.post(`/manager/tdh/queryById`, data)
}
export function queryDetailById(data) {
return Api.post(`/manager/tdh/queryDetailById`, data)
}
export function add(data) {
return Api.post("/manager/tdh/add", data)
}
export function edit(data) {
return Api.post("/manager/tdh/edit", data)
}
export function deleteById(data) {
return Api.post(`/manager/tdh/deleteById`, data)
}
\ No newline at end of file
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/xrt/queryByPage", data)
}
export function queryById(data) {
return Api.post(`/manager/xrt/queryById`,data)
}
export function add(data) {
return Api.post("/manager/xrt/add", data)
}
export function edit(data) {
return Api.post("/manager/xrt/edit", data)
}
export function deleteById(data) {
return Api.post(`/manager/xrt/deleteById`,data)
}
export function queryByCUR(data){
return Api.post("/manager/xrt/edit",data)
}
......@@ -369,6 +369,20 @@ import Dbdapf from "~/views/Statics/Dbdapf";
import Inftxm2 from "~/views/Statics/Inftxm";
import Infdia from "~/views/Statics/Infdia";
import Infxrt from "~/views/Statics/Infxrt";
import Dbidia from "~/views/Statics/Dbidia";
import Dbadia from "~/views/Statics/Dbadia";
import Dbedia from "~/views/Statics/Dbedia";
import Dbddia from "~/views/Statics/Dbddia";
import Inftdh from "~/views/Statics/Inftdh";
import Dbitdh from "~/views/Statics/Dbitdh";
import Dbatdh from "~/views/Statics/Dbatdh";
import Dbetdh from "~/views/Statics/Dbetdh";
import Dbdtdh from "~/views/Statics/Dbdtdh";
import Inflck from "~/views/Statics/Inflck";
/**
* 带有name的才会被添加进顶部的标签页里
*/
......@@ -740,11 +754,11 @@ const BusRouter = [
{ path: 'dbefee/:inr', component: Dbefee, name: 'StaticsDbefee', meta: { title: (tag) => { return '费用代码修改: ' + tag.params.inr } } },
{ path: 'dbdfee/:inr', component: Dbdfee, name: 'StaticsDbdfee', meta: { title: (tag) => { return '费用代码删除: ' + tag.params.inr } } },
{ path: 'infdia', component: Infdia, name: 'StaticsInfact', meta: { title: '交易备忘录查询' } },
{ path: 'dbadia', component: Dbaact, name: 'StaticsDbaact', meta: { title: '交易备忘录新增' } },
{ path: 'dbidia/:inr', component: Dbiact, name: 'StaticsDbiact', meta: { title: (tag) => { return '交易备忘录详情: ' + tag.params.inr } } },
{ path: 'dbedia/:inr', component: Dbeact, name: 'StaticsDbeact', meta: { title: (tag) => { return '交易备忘录修改: ' + tag.params.inr } } },
{ path: 'dbddia/:inr', component: Dbdact, name: 'StaticsDbdact', meta: { title: (tag) => { return '交易备忘录删除: ' + tag.params.inr } } },
{ path: 'infdia', component: Infdia, name: 'StaticsInfdia', meta: { title: '交易备忘录查询' } },
{ path: 'dbadia', component: Dbadia, name: 'StaticsDbadia', meta: { title: '交易备忘录新增' } },
{ path: 'dbidia/:inr', component: Dbidia, name: 'StaticsDbidia', meta: { title: (tag) => { return '交易备忘录详情: ' + tag.params.inr } } },
{ path: 'dbedia/:inr', component: Dbedia, name: 'StaticsDbedia', meta: { title: (tag) => { return '交易备忘录修改: ' + tag.params.inr } } },
{ path: 'dbddia/:inr', component: Dbddia, name: 'StaticsDbddia', meta: { title: (tag) => { return '交易备忘录删除: ' + tag.params.inr } } },
{ path: 'infcup', component: Infcup, name: 'StaticsInfcup', meta: { title: '查询申报币种信息' } },
{ path: 'dbacup', component: Dbacup, name: 'StaticsDbacup', meta: { title: '新增申报币别信息' } },
......@@ -756,5 +770,14 @@ const BusRouter = [
{ 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: 'inftdh', component: Inftdh, name: 'StaticsInftdh', meta: { title: '节假日查询' } },
{ path: 'dbatdh', component: Dbatdh, name: 'StaticsDbatdh', meta: { title: '节假日新增' } },
{ path: 'dbitdh/:inr', component: Dbitdh, name: 'StaticsDbitdh', meta: { title: (tag) => { return '节假日详情: ' + tag.params.inr } } },
{ path: 'dbetdh/:inr', component: Dbetdh, name: 'StaticsDbetdh', meta: { title: (tag) => { return '节假日修改: ' + tag.params.inr } } },
{ path: 'dbdtdh/:inr', component: Dbdtdh, name: 'StaticsDbdtdh', meta: { title: (tag) => { return '节假日删除: ' + tag.params.inr } } },
{ path: 'infxrt', component: Infxrt, name: 'StaticsInfxrt', meta: { title: '牌价查询' } },
{ path: 'inflck', component: Inflck, name: 'StaticsInflck', meta: { title: '业务解锁' } },
]
export default BusRouter
\ No newline at end of file
......@@ -204,6 +204,10 @@ export default {
{ inifrm: "infdia", ininam: "交易备忘录查询", pntmiu: "10" },
{ inifrm: "inftxm2", ininam: "固定格式文本查询", pntmiu: "10"},
{ inifrm: "infcup", ininam: "查询申报币种信息", pntmiu: "10"},
{ inifrm: "inftdh", ininam: "节假日查询", pntmiu: "10"},
{ inifrm: "infxrt", ininam: "牌价查询", pntmiu: "10"},
{ inifrm: "inflck", ininam: "业务解锁", pntmiu: "10"},
// { inifrm: "gitset", ininam: "进口保函赔付", pntmiu: "13" },
// { inifrm: "gitcrq", ininam: "进口保函索赔登记", pntmiu: "13" },
{ inifrm: "14", ininam: "服务管理", pntmiu: "" },
......
<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-tdh title="dbatdh" type="add"></m-tdh>
</template>
<script>
import Dbitdh from "~/views/Statics/Dbitdh";
export default {
name: "StaticsDbatdh",
components: {
"m-tdh": Dbitdh
},
data() {
return {};
},
mounted() {
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-xrt ref="xrt" title="dbaxrt" type="add"></m-xrt>
</template>
<script>
import Dblxrt from "~/views/Statics/Dblxrt";
export default {
name: "StaticsDbaxrt",
components: {
"m-xrt": Dblxrt
},
data() {
return {};
},
mounted() {
this.$refs.fec.rules['fecList'] = [
{ type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
]
}
};
</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-tdh title="dbdtdh" type="delete"></m-tdh>
</template>
<script>
import Dbitdh from "~/views/Statics/Dbitdh";
export default {
name: "StaticsDbdtdh",
components: {
"m-tdh": Dbitdh
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-xrt title="dbdxrt" type="delete"></m-xrt>
</template>
<script>
import Dblxrt from "~/views/Statics/Dblxrt";
export default {
name: "StaticsDbdxrt",
components: {
"m-xrt": Dblxrt
},
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
<template>
<m-tdh title="dbetdh" type="edit"></m-tdh>
</template>
<script>
import Dbitdh from "~/views/Statics/Dbitdh";
export default {
name: "StaticsDbetdh",
components: {
"m-tdh": Dbitdh
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-xrt title="dbexrt" type="edit"></m-xrt>
</template>
<script>
import Dblxrt from "~/views/Statics/Dblxrt";
export default {
name: "StaticsDbexrt",
components: {
"m-xrt": Dblxrt
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
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
export default class Tdh {
constructor() {
this.data = {
inr: "",
calyear: "",
calendarName: "",
calendar: "",
ver: "",
dat: "",
dateday: "",
}
}
}
export const Pattern = {
"calyear": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
],
}
<template>
<div class="eibs-tab">
<!-- =============================================左边=========================================== -->
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="日期" prop="dat">
<c-input v-model="model.dat" style="width: 100%" placeholder="请输入日期"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="日历代码" prop="calendar">
<c-input :disabled="type === 'edit'" v-model="model.calendar" placeholder="请输入日历代码" style="width: 100%">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="年份" prop="calyear">
<c-select :disabled="type === 'edit'" v-model="model.calyear" placeholder="请选择年份">
</c-select>
</el-form-item>
</c-col>
</c-col>
<!-- =============================================右边=========================================== -->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="节日名" prop="dateday">
<c-input v-model="model.ownrefDesc" style="width: 100%" placeholder="请输入dateday"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="日历名称" prop="ownrefDesc">
<c-input :disabled="type === 'edit'" v-model="model.ownrefDesc" style="width: 100%" placeholder="请输入日历名称"> </c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
export default {
name: '',
props: ['model', 'type'],
data() {
return {
}
},
mounted() {},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
},
}
</script>
<style></style>
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="120px"
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="tdh">
<c-content>
<m-tdh-info :model="model" :type="type" />
</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 Tdh, { Pattern } from "./Tdh.js";
import TdhInfo from "./TdhInfo.vue";
import { queryById, add, edit, deleteById, queryDetailById } from "~/service/test/tdh.js";
export default {
name: "StaticsDbitdh",
components: {
"m-tdh-info": TdhInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbitdh"
}
},
data() {
return {
model: new Tdh().data,
tabVal: "tdh",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const data = {"inr":this.$route.params.inr};
queryDetailById(data).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) => {
console.log('返回结果'+res.messsage);
if (res.messsage !== null && Object.keys(res.messsage).length > 0) {
this.$message.error(res.messsage)
} else {
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(() => {
let data = {"inr":this.model.inr}
deleteById(data)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新inftdh的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInftdh", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
export default class Xrt {
constructor() {
this.data = {
// inr: "",
// extkey: "",
// nam: "",
// txt: "",
// uil: "",
// ver: "",
// etgextkey: "",
inr:"",
cur:"",
buyrat:"",
midrat:"",
selrat:"",
xrttim:"",
midrat:"",
selrat:"",
buyrat:"",
sel1rat:"",
buy1rat:"",
ttrrat:"",
odrrat:"",
resrat:"",
rebrat:"",
ibrrat:"",
};
}
}
export const Pattern = {
cur: [
{ required: true, message: "必输项", type: "string", trigger: "blur" },
{ max: 8, message: "最大长度8个字符", trigger: "blur" },
],
midrat: [
{ required: true, message: "必输项", type: "number", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
selrat: [
{ required: true, message: "必输项", type: "number", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
buyrat: [
{ required: true, message: "必输项", type: "number", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
sel1rat: [
{ required: true, message: "必输项", type: "number", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
buy1rat: [
{ required: true, message: "必输项", type: "number", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
ttrrat: [
{ required: true, message: "必输项", type: "number", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
odrrat: [
{ required: true, message: "必输项", type: "number", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
resrat: [
{ required: true, message: "必输项", type: "number", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
rebrat: [
{ required: true, message: "必输项", type: "number", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
ibrrat: [
{ required: true, message: "必输项", type: "number", trigger: "blur" },
{ max: 8, message: "最大长度8位", trigger: "blur" },
],
}
;
<template>
<div class="eibs-tab">
<c-col :span="16" class="col-left" v-if="type != 'add'">
<!-- 绑定的数据 -->
<!-- <el-table
:data="tableData"
style="width: 100%"
:default-sort = "{prop: 'date', order: 'descending'}"
>
<el-table-column
prop="model."
label="日末牌价"
width="">
</el-table-column>
<el-table-column
prop="date"
label="中间汇率"
sortable
width="100px">
</el-table-column>
<el-table-column
prop="name"
label="卖出汇率"
sortable
width="100px">
</el-table-column>
<el-table-column
prop="name"
label="买入汇率"
sortable
width="100px">
</el-table-column>
</el-table> -->
<c-paging-table
:data="xrtCURData"
:columns="xrtCURColumns"
v-on:queryFunc="queryFunc"
:border="true"
>
</c-paging-table>
</c-col>
<c-col :span="8" class="col-right">
<el-form-item label="货币名称" prop="cur" v-if="type == 'add'">
<c-input v-model="model.cur" placeholder="请输入货币名称">
</c-input>
</el-form-item>
<el-form-item label="中间价" prop="midrat">
<c-input v-model="model.midrat" placeholder="请输入中间价">
</c-input>
</el-form-item>
<el-form-item label="买入价" prop="selrat">
<c-input v-model="model.selrat" placeholder="请输入买入价">
</c-input>
</el-form-item>
<el-form-item label="卖出价" prop="buyrat">
<c-input v-model="model.buyrat" placeholder="请输入卖出价">
</c-input>
</el-form-item>
<el-form-item label="现钞卖出价" prop="sel1rat">
<c-input v-model="model.sel1rat" placeholder="请输入现钞卖出价">
</c-input>
</el-form-item>
<el-form-item label="现钞买入价" prop="buy1rat">
<c-input v-model="model.buy1rat" placeholder="请输入现钞买入价">
</c-input>
</el-form-item>
<el-form-item label="指定买价" prop="ttrrat">
<c-input v-model="model.ttrrat" placeholder="请输入指定买价">
</c-input>
</el-form-item>
<el-form-item label="票据买断汇款" prop="odrrat">
<c-input v-model="model.odrrat" placeholder="请输入票据买断汇款">
</c-input>
</el-form-item>
<el-form-item label="卖出参考汇率" prop="resrat">
<c-input v-model="model.resrat" placeholder="请输入卖出参考汇率">
</c-input>
</el-form-item>
<el-form-item label="卖出参考汇率" prop="rebrat">
<c-input v-model="model.rebrat" placeholder="请输入卖出参考汇率">
</c-input>
</el-form-item>
<el-form-item label="报表折算价" prop="ibrrat">
<c-input v-model="model.ibrrat" placeholder="请输入报表折算价">
</c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryByCUR } from "~/service/test/xrt.js";
export default {
name: "",
entyGrp: [],
props: ["model","type"],
data() {
return {
xrtCURData: [],
xrtCURColumns: [
{ label: '货币名称', prop: 'cur', width: '120' },
{ label: '日期时间', prop: 'xrttim', width: '120' },
{ label: '中间汇率', prop: 'midrat', width: '120' },
{ label: '买入汇率', prop: 'buyrat', width: '120' },
{ label: '卖出汇率', prop: 'selrat', width: '120' },
],
};
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
queryFunc(){
queryByCUR(this.model).then(res =>{
console.log(res)
})
}
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="title">
<el-form ref="modelForm" label-width="120px" 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="xrt">
<c-content>
<m-xrt-info :model="model" :type="type"/>
</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 Xrt, { Pattern } from "./Xrt.js";
import XrtInfo from "./XrtInfo.vue";
import { queryById, add, edit, deleteById,queryByCUR} from "~/service/test/xrt.js";
export default {
name: "StaticsDblxrt",
components: {
"m-xrt-info": XrtInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dblxrt"
}
},
data() {
return {
model: new Xrt().data,
tabVal: "xrt",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const params = this.$route.params;
// queryById(inr).then((res) => {
queryById(params).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(() => {
const params = this.$route.params;
deleteById(params)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfxrt", params: { update } });
},
},
};
</script>
<style>
</style>
\ 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="实体号" 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>
<template>
<div class="eibs-tab">
<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="lckData" :columns="lckColumns" :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 size="small" style="margin-left: 5px" @click="lckDelete(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/lck.js";
import { deleteByVo } from "~/service/test/lck.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
lckData: [],
lckColumns: [
{ label: '锁对象', prop: 'lckstr', width: 'auto' },
{ label: '用户', prop: 'lckusr', width: 'auto' },
{ label: '会话', prop: 'lcksnr', width: 'auto' },
{ label: '加锁时间', prop: 'lckdattim', width: 'auto' },
{ label: '是否被持有', prop: 'lckhld', width: 'auto' },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInflckSearch()
}
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
onSearch() {
this.model.pageSize = 5;
this.model.pageNum = 1;
this.onInflckSearch();
},
onInflckSearch() {
queryByPage(this.model).then(res => {
const list = res.list
this.lckData = 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.onInflckSearch()
},
lckDelete(index, row) {
this.$confirm("是否确认删除? 请确保此锁对象没有被其他会话使用", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteByVo(row)
.then((res) => {
this.$message.success("删除成功!");
this.onSearch();
})
.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: "StaticsInflck",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
cod: "",
pageSize: 5,
pageNum: 1,
total: 0
},
};
},
};
</script>
<style>
</style>
......@@ -73,7 +73,7 @@
<script>
import codes from "~/config/CodeTable";
import { queryById,queryByPage } from "~/service/test/pts.js";
import { queryById,queryByPage,queryByPage2 } from "~/service/test/pts.js";
export default {
name: "",
......@@ -90,9 +90,12 @@ export default {
],
ptaData: [],
ptaColumns: [
{ label: "客户号", prop: "extkey", width: "auto" },
{ label: "客户号", prop: "objkey", width: "auto" },
{ label: "客户名称", prop: "nam", width: "auto" },
{ label: "所属机构", prop: "branch", width: "auto" },
{ label: "机构名称", prop: "bchname", width: "auto" },
{ label: "经办机构", prop: "bchname", width: "auto" },
{ label: "机构名称", prop: "bchname", width: "auto" },
],
};
},
......@@ -111,6 +114,7 @@ export default {
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInfptsSearch();
this.onInfptsSearch2();
},
onInfptsSearch() {
queryByPage(this.model).then(res => {
......@@ -129,6 +133,22 @@ export default {
})
},
onInfptsSearch2() {
queryByPage2(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total:
* totalPage: 0
*/
const list = res.list
this.ptaData = list
this.model.total = res.total
})
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber;
this.model.pageSize = pageSize;
......
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="日历代码" prop="calendar">
<c-input v-model="model.calendar" placeholder="请输入日历代码" style="width: 100%">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="年份" prop="calyear">
<c-select v-model="model.calyear" placeholder="请选择年份">
</c-select>
</el-form-item>
</c-col>
</c-col>
<!------------- 右 ---------->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="日历名称" prop="calendarName">
<c-input v-model="model.calendarName" placeholder="请输入日历名称" style="width: 100%">
</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="tdhAdd">新增</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="tdhData"
:columns="tdhColumns"
: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="tdhInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="tdhEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="tdhDelete(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 { format } from "path";
import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/tdh.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
tdhData: [],
tdhColumns: [
{ label: '日期', prop: 'dat', width: 'auto' },
{ label: '节日名', prop: 'dateday', width: 'auto' }
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInftdhSearch()
}
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch() {
this.model.pageSize = 5;
this.model.pageNum = 1;
this.onInftdhSearch();
},
onInftdhSearch() {
queryByPage(this.model).then(res => {
const list = res.list
this.tdhData = 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.onInftdhSearch()
},
tdhtypeChange(val) {
this.model.fectyp = val;
},
tdhCodesByKey(key) {
return codes[key] ?? [];
},
tdhAdd() {
this.$router.push(`/statics/dbatdh`)
},
tdhInfo(index, row) {
this.$router.push(`/statics/dbitdh/${row.inr}`)
},
tdhEdit(index, row) {
this.$router.push(`/statics/dbetdh/${row.inr}`)
},
tdhDelete(index, row) {
this.$router.push(`/statics/dbdtdh/${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>
\ No newline at end of file
<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: "StaticsInftdh",
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
<template>
<div class="eibs-tab">
<!-- ----------左 ---------->
<c-col :span="8" class="col-left">
<c-col :span="24">
<el-form-item label="货币类型" prop="cur">
<c-select
v-model="model.cur"
style="height:30px;"
placeholder="请选择货币类型"
:code="getCodesByKey('curtxt1')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<!------------- 右 ---------->
<c-col :span="16" class="col-right">
<c-col :span="24">
<el-form-item label="时间区间" prop="opndatfrom" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.opndatfrom" value-format="yyyy-MM-dd" style="width: 100%" placeholder="请选择开始时间">
</c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker type="date" v-model="model.opndatto" value-format="yyyy-MM-dd" style="width: 100%" placeholder="请选择结束时间"></c-date-picker>
</c-col>
</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="xrtAdd">新增</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="xrtData"
:columns="xrtColumns"
: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="xrtInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="xrtEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="xrtDelete(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/xrt.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
xrtData: [],
xrtColumns: [
{ label: '货币名称', prop: 'cur', width: '120' },
{ label: '日期时间', prop: 'xrttim', width: '120' },
{ label: '中间汇率', prop: 'midrat', width: '120' },
{ label: '买入汇率', prop: 'buyrat', width: '120' },
{ label: '卖出汇率', prop: 'selrat', width: '120' },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params
if (update) {
this.onInfXrtSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onSearch(){
this.model.pageNum = 1;
this.model.pageSize = 5;
this.onInfXrtSearch();
},
onInfXrtSearch() {
queryByPage(this.model).then(res => {
const list = res.list
this.xrtData = 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.onInfXrtSearch()
},
getCodesByKey(key) {
return codes[key] ?? [];
},
xrtAdd() {
this.$router.push(`/statics/dbaxrt`)
},
xrtInfo(index, row) {
this.$router.push(`/statics/dblxrt/${row.inr}`)
},
xrtEdit(index, row) {
this.$router.push(`/statics/dbexrt/${row.inr}`)
},
xrtDelete(index, row) {
this.$router.push(`/statics/dbdxrt/${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">
<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: "StaticsInfxrt",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// // bch
// branch: "",
// etyexkey: "",
// bchkey: "",
// bchtyp: "",
//xrt
inr:"",
cur:"",
buyrat:"",
midrat:"",
selrat:"",
xrttim:"",
midrat:"",
selrat:"",
buyrat:"",
sel1rat:"",
buy1rat:"",
ttrrat:"",
odrrat:"",
resrat:"",
rebrat:"",
ibrrat:"",
opndatfrom:"",
opndatto:"",
// paging
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
......@@ -77,6 +77,11 @@ import Dbatxm from "~/views/Statics/Dbatxm";
import Dbetxm from "~/views/Statics/Dbetxm";
import Dbdtxm from "~/views/Statics/Dbdtxm";
import Infxrt from "./Infxrt";
import Dblxrt from "./Dblxrt";
import Dbaxrt from "./Dbaxrt";
import Dbexrt from "./Dbexrt";
import Dbdxrt from "./Dbdxrt";
import Inffee from "./Inffee";
import Dbifee from "./Dbifee";
import Dbafee from "./Dbafee";
......@@ -108,6 +113,20 @@ import Dbeptm from "./Dbeptm";
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";
import Inftdh from "./Inftdh";
import Dbitdh from "./Dbitdh";
import Dbatdh from "./Dbatdh";
import Dbetdh from "./Dbetdh";
import Dbdtdh from "./Dbdtdh";
import Inflck from "./Inflck";
const StaticsRouter = [
{ path: 'dbiptm/:inr', component:Dbiptm, name: 'StaticsDbiptm', meta: { title: (tag) => { return '客户详情: ' + tag.params.inr } } },
......@@ -188,6 +207,12 @@ const StaticsRouter = [
{ path: 'dbetxm/:inr', component: Dbetxm, name: 'StaticsDbetxm', meta: { title: (tag) => { return '固定格式文修改: ' + tag.params.inr } } },
{ path: 'dbdtxm/:inr', component: Dbdtxm, name: 'StaticsDbdtxm', meta: { title: (tag) => { return '固定格式文删除: ' + tag.params.inr } } },
{ path: 'infxrt', component: Infxrt, name: 'StaticsInfxrt', meta: { title: '牌价查询' } },
{ path: 'dblxrt/:inr', component: Dblxrt, name: 'StaticsDblxrt', meta: { title: (tag) => { return '牌价详情: ' + tag.params.inr } } },
{ path: 'dbaxrt', component: Dbaxrt, name: 'StaticsDbaxrt', meta: { title: '牌价新增' } },
{ path: 'dbexrt/:inr', component: Dbexrt, name: 'StaticsDbexrt', meta: { title: (tag) => { return '牌价修改: ' + tag.params.inr } } },
{ path: 'dbdxrt/:inr', component: Dbdxrt, name: 'StaticsDbdxrt', meta: { title: (tag) => { return '牌价删除: ' + tag.params.inr } } },
{ path: 'inffee', component: Inffee, name: 'StaticsInffee', meta: { title: '费用代码查询' } },
{ path: 'dbafee', component: Dbafee, name: 'StaticsDbafee', meta: { title: '费用代码新增' } },
{ path: 'dbifee/:inr', component: Dbifee, name: 'StaticsDbifee', meta: { title: (tag) => { return '费用代码详情: ' + tag.params.inr } } },
......@@ -205,6 +230,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 } } },
......@@ -219,6 +251,14 @@ const StaticsRouter = [
{ path: 'dbibtb/:inr', component: DbiBtb, name: 'StaticsDbibtb', meta: { title: (tag) => { return '清算代理行详情: ' + tag.params.inr } } },
{ path: 'Infpts', component: Infpts, name: 'StaticsDbaatx', meta: { title: '客户管户机构管理' } },
{ path: 'inftdh', component: Inftdh, name: 'StaticsInftdh', meta: { title: '节假日查询' } },
{ path: 'dbatdh', component: Dbatdh, name: 'StaticsDbatdh', meta: { title: '节假日新增' } },
{ path: 'dbitdh/:inr', component: Dbitdh, name: 'StaticsDbitdh', meta: { title: (tag) => { return '节假日详情: ' + tag.params.inr } } },
{ path: 'dbetdh/:inr', component: Dbetdh, name: 'StaticsDbetdh', meta: { title: (tag) => { return '节假日修改: ' + tag.params.inr } } },
{ path: 'dbdtdh/:inr', component: Dbdtdh, name: 'StaticsDbdtdh', meta: { title: (tag) => { return '节假日删除: ' + tag.params.inr } } },
{ path: 'inflck', component: Inflck, name: 'StaticsInflck', 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