Commit 59c45162 by zhangliding

静态交易lgb

parent 0861fbb8
......@@ -7698,7 +7698,16 @@ const CodeTable = {
codsta: [
{ label: "A 正常", value: "A"},
{ label: "D 删除", value: "D"}
]
],
lgbtyp: [
{ label: "融资性对外担保总额度", value: "OVR"}
],
lgbsta: [
{ label: "No Limite", value: ""},
{ label: "Normal", value: "N"},
{ label: "Blocked", value: "B"},
{ label: "Unlimited", value: "U"},
{ label: "Expired", value: "E"}
],
}
export default CodeTable;
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/manager/lgb/queryPageByIdFromLgbAndLga", data)
}
export function queryByIdFromLgbAndLga(inr) {
return Api.post(`/manager/lgb/queryByIdFromLgbAndLga?inr=${inr}`)
}
export function queryByIdFromLgo(inr) {
return Api.post(`/manager/lgb/queryByIdFromLgo?inr=${inr}`)
}
export function add(data) {
return Api.post("/manager/lgb/add", data)
}
export function edit(data) {
return Api.post("/manager/lgb/edit", data)
}
export function deleteById(inr) {
return Api.post(`/manager/lgb/deleteById?inr=${inr}`)
}
\ No newline at end of file
<template>
<m-lgb title="dbalgb" type="add"></m-lgb>
</template>
<script>
import Dbilgb from "~/views/Statics/Dbilgb";
export default {
name: "StaticsDbalgb",
components: {
"m-lgb": Dbilgb
},
data() {
return {};
},
mounted() {
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-lgb title="dbalgb" type="delete"></m-lgb>
</template>
<script>
import Dbilgb from "~/views/Statics/Dbilgb";
export default {
name: "StaticsDbdlgb",
components: {
"m-lgb": Dbilgb
},
data() {
return {};
},
mounted() {
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-lgb title="dbalgb" type="edit"></m-lgb>
</template>
<script>
import Dbilgb from "~/views/Statics/Dbilgb";
export default {
name: "StaticsDbelgb",
components: {
"m-lgb": Dbilgb
},
data() {
return {};
},
mounted() {
}
};
</script>
<style>
</style>
\ No newline at end of file
export default class Lgb {
constructor() {
this.data = {
inr: "",
extkey: "",
nam: "",
typ: "",
cur: "",
amt: "",
sta: "",
expdat: "",
usecur: "",
useamt: "",
naccur: "",
nacamt: "",
}
}
}
export const Pattern = {
//pty
"extkey": [
{ "type": "string", "trigger": "blur" },
{ "max": 24, "message": "最大长度24个字符", "trigger": "blur" }
],
"nam": [
{ "type": "string", "trigger": "blur" },
{ "max": 44, "message": "最大长度44个字符", "trigger": "blur" }
],
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
//lgb
"cur": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"amt": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,18}(\.\d{1,3})?$/, "message": "整数不能超过18位,小数不能超过3位", "trigger": "blur" }
],
"sta": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"expdat": [
{ "type": "string", "trigger": "blur" }
],
"typ": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
//lga
"usecur": [
{ "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"useamt": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,18}(\.\d{1,3})?$/, "message": "整数不能超过18位,小数不能超过3位", "trigger": "blur" }
],
"naccur": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"nacamt": [
{ "trigger": "blur" },
{ "pattern": /^-?\d{0,18}(\.\d{1,3})?$/, "message": "整数不能超过18位,小数不能超过3位", "trigger": "blur" }
]
}
<template>
<div class="eibs-tab">
<c-row>
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item label="保函额度品种" prop="sealsntyp">
<c-select style="width: 100%"
v-model="model.sealsntyp"
placeholder="请选择保函额度品种"
:code="getCodesByKey('sealsntyp')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-row>
<c-row>
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item
label="客户号"
prop="extkey"
style="width: 100%"
>
<c-input
v-model="model.extkey"
maxlength="40"
placeholder="请输入客户号"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<c-form-item label="客户名称" prop="nam">
<c-input
v-model="model.nam"
maxlength="40"
placeholder="请输入客户名称"
></c-input>
</c-form-item>
</c-col>
</c-col>
</c-row>
<!---------------左------------------->
<c-row>
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<c-form-item label="总额度类型" prop="typ">
<c-select
v-model="model.typ"
maxlength="40"
placeholder="请输入总额度类型"
:code="getCodesByKey('lgbtyp')"
></c-select>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="总额度状态" prop="sta">
<c-select
v-model="model.sta"
maxlength="40"
placeholder="请输入总额度状态"
:code="getCodesByKey('lgbsta')"
></c-select>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="总额度到期时间" prop="expdat">
<c-date-picker
v-model="model.expdat"
maxlength="40"
placeholder="请输入总额度到期时间"
></c-date-picker>
</c-form-item>
</c-col>
</c-col>
<!-------------------右 --------------------->
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<c-col :span="12">
<el-form-item label="总额度" prop="cur">
<c-select
v-model="model.cur"
maxlength="3"
style="width: 100%"
placeholder="请输入总额度币种"
:code="getCodesByKey('curtxt1')"
></c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item style="text-align: left; margin-left: 5px"
label-width="0px"
prop="amt"
>
<c-input-currency
v-model="model.amt"
style="text-align: left; width: 90%"
placeholder="请输入总额度金额"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="已使用额度" prop="usecur">
<c-input
v-model="model.usecur"
maxlength="3"
style="width: 100%"
placeholder="请输入已使用额度币种"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item style="text-align: left; margin-left: 5px"
label-width="0px"
prop="useamt"
>
<c-input-currency
v-model="model.useamt"
style="text-align: left; width: 90%"
placeholder="请输入已使用额度金额"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="可使用额度" prop="opncur">
<c-input
v-model="model.opncur"
maxlength="3"
style="width: 100%"
placeholder="请输入可使用额度币种"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item style="text-align: left; margin-left: 5px"
label-width="0px"
prop="opnamt"
>
<c-input-currency
v-model="model.opnamt"
style="text-align: left; width: 90%"
placeholder="请输入可使用额度金额"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="待复核额度" prop="naccur">
<c-input
v-model="model.naccur"
maxlength="3"
style="width: 100%"
placeholder="请输入待复核额度币种"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item style="text-align: left; margin-left: 5px"
label-width="0px"
prop="nacamt"
>
<c-input-currency
v-model="model.nacamt"
style="text-align: left; width: 90%"
placeholder="请输入待复核额度金额"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
</c-col>
</c-row>
<!-- lgo表查询结果展示区域 -->
<c-col :span="24">
<c-paging-table
:data="lgoVoData1"
:columns="lgoVoColumns"
:pageNumber="model.pageNum"
:pageSize="model.pageSize"
:total="model.total"
v-on:queryFunc="queryFunc"
:border="true"
>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import codes from "@/config/CodeTable";
export default {
name: "",
inject: ["root"],
props: {
model:Object,
lgoVoData:Array
},
data() {
return {
lgoVoColumns: [
{ label: 'ownref', prop: 'ownref', width: 'auto' },
{ label: 'objtyp', prop: 'objtyp', width: 'auto' },
{ label: 'objinr', prop: 'objinr', width: 'auto' },
{ label: 'cur', prop: 'cur', width: 'auto' },
{ label: 'amt', prop: 'amt', width: 'auto' },
{ label: 'xrfcur', prop: 'xrfcur', width: 'auto' },
{ label: 'xrfamt', prop: 'xrfamt', width: 'auto' },
{ label: 'rate', prop: 'rate', width: 'auto' },
{ label: 'pending', prop: 'pending', width: 'auto' },
],
};
},
methods: {
getCodesByKey(key) {
// console.log(this.lgoVoData)
this.lgoVoData1=this.lgoVoData
// console.log(this.lgoVoData1)
return codes[key] ?? [];
},
queryFunc(){}
},
};
</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="lgb">
<c-content>
<m-lgb-info :model="model" :lgoVoData="lgoVoData"/>
</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 Lgb, { Pattern } from "./Lgb.js";
import LgbInfo from "./LgbInfo.vue";
import { queryByIdFromLgbAndLga,queryByIdFromLgo,add, edit, deleteById } from "~/service/test/lgb.js";
export default {
name: "StaticsDbilgb",
components: {
"m-lgb-info": LgbInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbilgb"
}
},
data() {
return {
model: new Lgb().data,
tabVal: "lgb",
rules: Pattern,
lgoVoData:[]
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
console.log(inr)
queryByIdFromLgo(inr).then((res) => {
const list = res
this.lgoVoData = list
console.log(this.lgoVoData )
});
queryByIdFromLgbAndLga(inr).then((res) => {
const list = res
this.model = list;
});
}
if(this.type === "add"){
this.model.extkey= "EVERCNBJXXX"
this.model.nam="CHINA EVERBRIGHT BANK"
}
},
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: "StaticsInflgb", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page title="保函额度查询">
<el-form
:model="model"
ref="modelForm"
label-width="140px"
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: "StaticsInflgb",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// 保函额度品种
sealsntyp: "",
//客户号
extkey: "",
//客户名称
nam: "",
// paging
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
......@@ -137,6 +137,12 @@ import Dbaoit from './Dbaoit'
import Dbeoit from './Dbeoit'
import Dbdoit from './Dbdoit'
import Inflgb from './Inflgb'
import Dbilgb from './Dbilgb'
import Dbalgb from './Dbalgb'
import Dbelgb from './Dbelgb'
import Dbdlgb from './Dbdlgb'
const StaticsRouter = [
{ path: 'dbiptm/:inr', component:Dbiptm, name: 'StaticsDbiptm', meta: { title: (tag) => { return '客户详情: ' + tag.params.inr } } },
{ path: 'infptm', component:Infptm, name: 'StaticsInfptm', meta: { title: '银行密押查询' } },
......@@ -282,6 +288,12 @@ const StaticsRouter = [
{ path: 'dbeoit/:inr', component: Dbeoit, name: 'StaticsDbeoit', meta: { title: (tag) => { return '修改消息信息: ' + tag.params.inr } } },
{ path: 'dbdoit/:inr', component: Dbdoit, name: 'StaticsDbdoit', meta: { title: (tag) => { return '删除消息信息: ' + tag.params.inr } } },
{ path: 'inflgb', component: Inflgb, name: 'StaticsInflgb', meta: { title: '查询保函额度信息' } },
{ path: 'dbalgb', component: Dbalgb, name: 'StaticsDbalgb', meta: { title: '新增保函额度信息' } },
{ path: 'dbilgb/:inr', component: Dbilgb, name: 'StaticsDbilgb', meta: { title: (tag) => { return '查看保函额度详情信息: ' + tag.params.inr } } },
{ path: 'dbelgb/:inr', component: Dbelgb, name: 'StaticsDbelgb', meta: { title: (tag) => { return '修改保函额度信息: ' + tag.params.inr } } },
{ path: 'dbdlgb/:inr', component: Dbdlgb, name: 'StaticsDbdlgb', meta: { title: (tag) => { return '删除保函额度信息: ' + tag.params.inr } } },
]
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