Commit 6b9a0f47 by hewei

静态交易页面优化

parent 4207cac3
<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="cod">
<!-- <c-select v-model="model.cod" style="width: 100%" placeholder="请输入cod">
<el-option v-for="item in codes.currencycode" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select> -->
<c-input v-model="model.cod" style="width: 100%" placeholder="请输入货币种类">
</c-input>
<!-- <c-select v-model="model.cod" placeholder="请输入cod" code="codes.currencycode"
style="width: 100%;">
</c-select> -->
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="舍入货币单位" prop="rndunt">
<c-input-currency-min v-model="model.rndunt" placeholder="请输入舍入货币单位">
</c-input-currency-min>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="基础汇率" prop="bas">
<c-input v-model="model.bas" placeholder="请输入基础汇率">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账户兑换币种" prop="acc1">
<c-input v-model="model.acc1" placeholder="请输入账户兑换币种">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="柜台账户兑换币种" prop="acc2">
<c-input v-model="model.acc2" placeholder="请输入柜台账户兑换币种">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="利率录入操作列表" prop="seq" style="width: 100%">
<c-input v-model="model.seq" placeholder="请输入利率录入操作列表" style="width: 100%">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="自定义的货币种类" prop="newcur" style="width: 100%">
<c-select v-model="model.newcur" placeholder="请输入自定义的货币种类" style="width: 100%">
<el-option v-for="item in codes.currencycode" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="开始时间" prop="begdat" style="width: 100%">
<c-date-picker type="date" v-model="model.begdat" placeholder="请输入开始时间"
style="width: 100%">
</c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="结束时间" prop="enddat" style="width: 100%">
<c-date-picker type="date" v-model="model.enddat" placeholder="请输入结束时间"
style="width: 100%">
</c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12">
<el-form-item label="借贷起息日" prop="dbtday">
<c-input v-model="model.dbtday" placeholder="请输入借贷起息日">
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="信贷起息日" prop="cdtday">
<c-input v-model="model.cdtday" placeholder="请输入信贷起息日">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="币种" prop="maxcur" style="width: 100%">
<c-select v-model="model.maxcur" placeholder="请输入币种" style="width: 100%">
<el-option v-for="item in codes.currencycode" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="最大金额" prop="maxamt">
<c-input-currency v-model="model.maxamt" placeholder="请输入最大金额">
</c-input-currency>
</el-form-item>
</c-col>
</c-col>
</c-col>
<!-- 右边 -->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="可替换币种" prop="altcod">
<c-input v-model="model.altcod" placeholder="请输入可替换币种">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货币小数位" prop="dec">
<c-input v-model="model.dec" placeholder="请输入货币小数位">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="汇率最大浮动值" prop="dif">
<c-input v-model="model.dif" placeholder="请输入汇率最大浮动值">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账户平均汇率" prop="glbrat">
<c-input-currency v-model="model.glbrat" placeholder="请输入账户平均汇率">
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="与中间价的差数" prop="bsrmar">
<c-input-currency v-model="model.bsrmar" placeholder="请输入与中间价的差数">
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="与调整价的差数" prop="sqrmar">
<c-input-currency v-model="model.sqrmar" placeholder="请输入与调整价的差数">
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="汇率插入日期" prop="odrintday">
<c-input v-model="model.odrintday" placeholder="汇率插入日期">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24" style="padding-left: 120px">
<el-table :data="stmData.data" border>
<el-table-column prop="uilcod" label="Language" sortable width="220">
</el-table-column>
<el-table-column prop="nam" label="Description" sortable width="300">
</el-table-column>
</el-table>
</c-col>
<!-- <c-col :span="24">
<el-form-item label="ver" prop="ver">
<c-input v-model="model.ver" placeholder="请输入ver">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="etgextkey" prop="etgextkey">
<c-input v-model="model.etgextkey" placeholder="请输入etgextkey">
</c-input>
</el-form-item>
</c-col> -->
</c-col>
</div>
</template>
<script>
export default {
name: "",
inject: ["root"],
props: ["model",],
data() {
return {
stmData: {
data: [],
},
codes: {
currencycode: [
{ label: "人民币", value: "CNY" },
{ label: "韩圆", value: "KRW" },
{ label: "新西兰元", value: "NZD" },
{ label: "美元", value: "USD" },
],
}
};
},
mounted() {
// console.log(codes);
}
};
</script>
\ 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-content>
<m-currency :model="model" ref="currency" />
</c-content>
</el-form>
<div style="text-align: center">
<c-button type="primary" style="margin-right: 10px" @click="commitAdd">提 交</c-button>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
<!-- <div class="eContainer">-->
<!-- <c-page title="货币查询">-->
<!-- <el-form :model="model" ref="modelForm" label-width="120px" label-position="right" size="small">-->
<!-- <c-content>-->
<!-- <m-currency :model="model" ref="currency" />-->
<!-- </c-content>-->
<!-- </el-form>-->
<!-- <div style="text-align: center">-->
<!-- <c-button type="primary" style="margin-right: 10px" @click="commitAdd">提 交</c-button>-->
<!-- <c-button type="primary" @click="goBack">返 回</c-button>-->
<!-- </div>-->
<!-- </c-page>-->
<!-- </div>-->
<m-cur title="dbacur" type="add"></m-cur>
</template>
<script>
import Utils from "~/utils";
import commonFuncs from "~/mixin/commonFuncs";
import Cur, { Pattern } from "../Infcur/Cur.js";
import Currency from "./Currency";
import { curInfo, add, edit, curDelete } from "~/service/test/cur.js";
import Dbicur from "~/views/Statics/Dbicur"
export default {
name: "StaticsDbacur",
components: {
"m-currency": Currency
},
provide() {
return {
root: this,
};
"m-cur": Dbicur
},
mixins: [commonFuncs],
data() {
return {
tabVal: "",
model: new Cur().data,
rules: Pattern,
};
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
console.log(this.model);
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfcur", params: { update } });
},
},
mounted() {
// this.$refs.cur.rules['ptaList'] = [
// { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
// ]
console.log(this.$refs.modelForm);
}
};
</script>
......
<template>
<div class="eContainer">
<c-page title="货币查询">
<el-form :model="model" ref="modelForm" label-width="120px" label-position="right" size="small">
<c-content>
<m-currency :model="model" ref="currency" />
</c-content>
</el-form>
<div style="text-align: center">
<c-button type="primary" style="margin-right: 10px" @click="commitEdit">提 交</c-button>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
<!-- <div class="eContainer">-->
<!-- <c-page title="货币查询">-->
<!-- <el-form :model="model" ref="modelForm" label-width="120px" label-position="right" size="small">-->
<!-- <c-content>-->
<!-- <m-currency :model="model" ref="currency" />-->
<!-- </c-content>-->
<!-- </el-form>-->
<!-- <div style="text-align: center">-->
<!-- <c-button type="primary" style="margin-right: 10px" @click="commitEdit">提 交</c-button>-->
<!-- <c-button type="primary" @click="goBack">返 回</c-button>-->
<!-- </div>-->
<!-- </c-page>-->
<!-- </div>-->
<m-cur title="dbecur" type="edit"></m-cur>
</template>
<script>
import Utils from "~/utils";
// import Utils from "~/utils";
// import commonFuncs from "~/mixin/commonFuncs";
import Cur, { Pattern } from "../Infcur/Cur.js";
// import Cur, { Pattern } from "../Infcur/Cur.js";
import Dbicur from "@/views/Statics/Dbicur";
import Currency from "../Dbacur/Currency";
import { curInfo, add, edit, curDelete } from "~/service/test/cur.js";
// import { curInfo, add, edit, curDelete } from "~/service/test/cur.js";
export default {
name: "StaticsDbacur",
components: {
"m-currency": Currency
},
provide() {
return {
root: this,
};
// "m-currency": Currency
"m-cur": Dbicur,
},
// provide() {
// return {
// root: this,
// };
// },
// mixins: [commonFuncs],
data() {
return {
tabVal: "",
model: new Cur().data,
rules: Pattern,
// tabVal: "",
// model: new Cur().data,
// rules: Pattern,
};
},
methods: {
async goin(){
this.model = await curInfo(this.$route.params.inr);
},
commitEdit() {
this.model.inr = this.$route.params.inr
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack()
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfcur", params: { update } });
},
},
created () {
this.goin(this.$route.params.inr);
},
mounted() {
// this.$refs.cur.rules['ptaList'] = [
// { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
// ]
console.log(this.$refs.modelForm);
}
// methods: {
// async goin(){
// this.model = await curInfo(this.$route.params.inr);
// },
// commitEdit() {
// this.model.inr = this.$route.params.inr
// this.$refs.modelForm.validate((validated) => {
// if (validated) {
// edit(this.model)
// .then((res) => {
// this.$message.success("保存成功!");
// this.goBack()
// })
// .catch((err) => {
// this.$message.error("保存失败!");
// });
// } else {
// Utils.formValidateTips(this.$refs.modelForm.fields)
// }
// });
// },
// goBack(update) {
// this.$store.dispatch("TagsView/delView", this.$route);
// this.$router.push({ name: "StaticsInfcur", params: { update } });
// },
// },
// created () {
// this.goin(this.$route.params.inr);
// },
// mounted() {
// // this.$refs.cur.rules['ptaList'] = [
// // { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
// // ]
// console.log(this.$refs.modelForm);
// }
};
</script>
......
......@@ -65,8 +65,9 @@ export const Pattern = {
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"atxcod": [
{ "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
{required: false, message: "必输项"}
// { "type": "string", "trigger": "blur" },
// { "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"atxtxt": [
],
......@@ -86,20 +87,23 @@ export const Pattern = {
{ "type": "string", "trigger": "blur" }
],
"uil": [
{ "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
{required: false, message: "必输项"}
// { "type": "string", "trigger": "blur" },
// { "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
],
"gtxlegfrm": [
{ "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
{required: false, message: "必输项"}
// { "type": "string", "trigger": "blur" },
// { "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"covgodsrvdft": [
{ "type": "string", "trigger": "blur" },
{ "max": 3300, "message": "最大长度3300个字符", "trigger": "blur" }
],
"gtxexpflg": [
{ "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
{required: false, message: "必输项"}
// { "type": "string", "trigger": "blur" },
// { "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"labaddinf": [
{ "type": "string", "trigger": "blur" },
......@@ -110,8 +114,9 @@ export const Pattern = {
{ "max": 15, "message": "最大长度15个字符", "trigger": "blur" }
],
"gtxpri": [
{ "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
{required: false, message: "必输项"}
// { "type": "string", "trigger": "blur" },
// { "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"expliatxt": [
{ "type": "string", "trigger": "blur" },
......@@ -147,6 +152,9 @@ export const Pattern = {
{ "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"gtxpurpos": [
{required: false, message: "必输项"}
],
}
......@@ -12,11 +12,17 @@
</c-col> -->
<c-col :span="24">
<el-form-item label="保函文本用途" prop="atxcod">
<c-input
v-model="model.atxcod"
placeholder="请输入保函文本用途"
>
</c-input>
<c-select style="width: 100%"
v-model="model.atxcod"
placeholder="请选择保函文本用途"
:code="getCodesByKey('atxcod')"
>
</c-select>
<!-- <c-input-->
<!-- v-model="model.atxcod"-->
<!-- placeholder="请输入保函文本用途"-->
<!-- >-->
<!-- </c-input>-->
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -58,11 +64,17 @@
</c-col>
<c-col :span="24">
<el-form-item label="出具目的" prop="gtxpurpos">
<c-input
v-model="model.gtxpurpos"
placeholder="请输入出具目的"
>
</c-input>
<c-select style="width: 100%"
v-model="model.gtxpurpos"
placeholder="请选择出具目的"
:code="getCodesByKey('gtxpurpos')"
>
</c-select>
<!-- <c-input-->
<!-- v-model="model.gtxpurpos"-->
<!-- placeholder="请输入出具目的"-->
<!-- >-->
<!-- </c-input>-->
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -76,20 +88,33 @@
</c-col>
<c-col :span="24">
<el-form-item label="保函格式" prop="gtxlegfrm">
<c-input
v-model="model.gtxlegfrm"
placeholder="请输入保函格式"
>
</c-input>
<c-select style="width: 100%"
v-model="model.gtxlegfrm"
placeholder="请选择保函格式"
:code="getCodesByKey('gtxlegfrm')"
>
</c-select>
<!-- <c-input-->
<!-- v-model="model.gtxlegfrm"-->
<!-- placeholder="请输入保函格式"-->
<!-- >-->
<!-- </c-input>-->
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="上一级文本" prop="atxtxt">
<c-input
v-model="model.atxtxt"
placeholder="请输入上一级文本"
>
</c-input>
<c-mul-row-input
v-model="model.atxtxt"
:rows="4"
:cols="35"
placeholder="请输入上一级文本"
>
</c-mul-row-input>
<!-- <c-input-->
<!-- v-model="model.atxtxt"-->
<!-- placeholder="请输入上一级文本"-->
<!-- >-->
<!-- </c-input>-->
</el-form-item>
</c-col>
</c-col>
......@@ -107,20 +132,32 @@
</c-col>
<c-col :span="24">
<el-form-item label="优先级" prop="gtxpri">
<c-input
v-model="model.gtxpri"
placeholder="请输入优先级"
>
</c-input>
<c-select style="width: 100%"
v-model="model.gtxpri"
placeholder="请选择优先级"
:code="getCodesByKey('gtxpri')"
>
</c-select>
<!-- <c-input-->
<!-- v-model="model.gtxpri"-->
<!-- placeholder="请输入优先级"-->
<!-- >-->
<!-- </c-input>-->
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="保函无责任担保标志" prop="gtxexpflg">
<c-input
v-model="model.gtxexpflg"
placeholder="请输入保函无责任担保标志"
>
</c-input>
<c-select style="width: 100%"
v-model="model.gtxexpflg"
placeholder="请选择保函无责任担保标志"
:code="getCodesByKey('gtxexpflg')"
>
</c-select>
<!-- <c-input-->
<!-- v-model="model.gtxexpflg"-->
<!-- placeholder="请输入保函无责任担保标志"-->
<!-- >-->
<!-- </c-input>-->
</el-form-item>
</c-col>
<c-col :span="24">
......
......@@ -15,7 +15,7 @@
:value="item.value">
</el-option>
</c-select> -->
<c-input v-model="model.cod" style="width: 100%" placeholder="请输入货币种类" disabled>
<c-input v-model="model.cod" style="width: 100%" placeholder="请输入货币种类" >
</c-input>
<!-- <c-select v-model="model.cod" placeholder="请输入cod" code="codes.currencycode"
style="width: 100%;">
......@@ -23,39 +23,39 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="舍入货币单位" prop="rndunt">
<c-input-currency-min v-model="model.rndunt" placeholder="请输入舍入货币单位" disabled>
<el-form-item label="舍入货币单位" prop="rndunt">
<c-input-currency-min v-model="model.rndunt" placeholder="请输入舍入货币单位" >
</c-input-currency-min>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="基础汇率" prop="bas">
<c-input v-model="model.bas" placeholder="请输入基础汇率" disabled>
<c-input v-model="model.bas" placeholder="请输入基础汇率" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账户兑换币种" prop="acc1">
<c-input v-model="model.acc1" placeholder="请输入账户兑换币种" disabled>
<c-input v-model="model.acc1" placeholder="请输入账户兑换币种" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="柜台账户兑换币种" prop="acc2">
<c-input v-model="model.acc2" placeholder="请输入柜台账户兑换币种" disabled>
<c-input v-model="model.acc2" placeholder="请输入柜台账户兑换币种" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="利率录入操作列表" prop="seq" style="width: 100%">
<c-input v-model="model.seq" placeholder="请输入利率录入操作列表" style="width: 100%" disabled>
<c-input v-model="model.seq" placeholder="请输入利率录入操作列表" style="width: 100%" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="自定义的货币种类" prop="newcur" style="width: 100%">
<c-select v-model="model.newcur" placeholder="请输入自定义的货币种类" style="width: 100%" disabled>
<c-select v-model="model.newcur" placeholder="请输入自定义的货币种类" style="width: 100%" >
<el-option v-for="item in codes.currencycode" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
......@@ -67,34 +67,34 @@
<c-col :span="12">
<el-form-item label="开始时间" prop="begdat" style="width: 100%">
<c-date-picker type="date" v-model="model.begdat" placeholder="请输入开始时间"
style="width: 100%" disabled>
style="width: 100%" >
</c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="结束时间" prop="enddat" style="width: 100%">
<c-date-picker type="date" v-model="model.enddat" placeholder="请输入结束时间"
style="width: 100%" disabled>
style="width: 100%" >
</c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12">
<el-form-item label="借贷起息日" prop="dbtday">
<c-input v-model="model.dbtday" placeholder="请输入借贷起息日" disabled>
<c-input v-model="model.dbtday" placeholder="请输入借贷起息日" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="信贷起息日" prop="cdtday">
<c-input v-model="model.cdtday" placeholder="请输入信贷起息日" disabled>
<c-input v-model="model.cdtday" placeholder="请输入信贷起息日" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="币种" prop="maxcur" style="width: 100%">
<c-select v-model="model.maxcur" placeholder="请输入币种" style="width: 100%" disabled>
<c-select v-model="model.maxcur" placeholder="请输入币种" style="width: 100%" >
<el-option v-for="item in codes.currencycode" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
......@@ -103,7 +103,7 @@
</c-col>
<c-col :span="12">
<el-form-item label="最大金额" prop="maxamt">
<c-input-currency v-model="model.maxamt" placeholder="请输入最大金额" disabled>
<c-input-currency v-model="model.maxamt" placeholder="请输入最大金额" >
</c-input-currency>
</el-form-item>
</c-col>
......@@ -113,43 +113,43 @@
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="可替换币种" prop="altcod">
<c-input v-model="model.altcod" placeholder="请输入可替换币种" disabled>
<c-input v-model="model.altcod" placeholder="请输入可替换币种" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货币小数位" prop="dec">
<c-input v-model="model.dec" placeholder="请输入货币小数位" disabled>
<c-input v-model="model.dec" placeholder="请输入货币小数位" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="汇率最大浮动值" prop="dif">
<c-input v-model="model.dif" placeholder="请输入汇率最大浮动值" disabled>
<c-input v-model="model.dif" placeholder="请输入汇率最大浮动值" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="账户平均汇率" prop="glbrat">
<c-input-currency v-model="model.glbrat" placeholder="请输入账户平均汇率" disabled>
<c-input-currency v-model="model.glbrat" placeholder="请输入账户平均汇率" >
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="与中间价的差数" prop="bsrmar">
<c-input-currency v-model="model.bsrmar" placeholder="请输入与中间价的差数" disabled>
<c-input-currency v-model="model.bsrmar" placeholder="请输入与中间价的差数" >
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="与调整价的差数" prop="sqrmar">
<c-input-currency v-model="model.sqrmar" placeholder="请输入与调整价的差数" disabled>
<c-input-currency v-model="model.sqrmar" placeholder="请输入与调整价的差数" >
</c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="汇率插入日期" prop="odrintday" disabled>
<c-input v-model="model.odrintday" placeholder="汇率插入日期" disabled>
<c-input v-model="model.odrintday" placeholder="汇率插入日期" >
</c-input>
</el-form-item>
</c-col>
......
<template>
<div class="eContainer">
<c-page :title="title">
<el-form ref="modelForm" label-width="120px" size="small" label-position="right" :model="model" :rules="rules">
<el-form ref="modelForm" label-width="120px" size="small" label-position="right" :model="model" :rules="rules" :disabled="isDisabled">
<c-content>
<m-cur-info :model="model" />
</c-content>
......@@ -42,13 +42,13 @@ export default {
},
title: {
type: String,
default: "dbipty"
default: "dbicur"
}
},
data() {
return {
model: new Cur().data,
tabVal: "pty",
tabVal: "cur",
rules: Pattern,
};
},
......
......@@ -46,24 +46,20 @@ export const Pattern = {
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"hndtyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 2, "message": "最大长度2个字符", "trigger": "blur" }
{ "required": true, "message": "必输项", "type": "string" }
],
"objtyp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
{ "required": true, "message": "必输项", "type": "string" },
],
"objinr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"gtxpri": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
{ required: true, message: "必输项", type: "string" }
],
"expflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
{ required: false, "message": "必输项", "type": "string" },
],
"uil": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
......@@ -78,13 +74,16 @@ export const Pattern = {
{ "max": 15, "message": "最大长度15个字符", "trigger": "blur" }
],
"legfrm": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
{ "required": true, "message": "必输项", "type": "string" }
],
"covgodsrvdft": [
{ "type": "string", "trigger": "blur" },
{ "max": 420, "message": "最大长度420个字符", "trigger": "blur" }
],
"etgextkey": [
{"required": true, "type": "string", "message": "必输项", "trigger": "blur"},
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
]
}
......@@ -39,17 +39,17 @@
</c-col> -->
<c-col :span="24">
<el-form-item label="保函文本" prop="gidtxt">
<c-input
v-model="model.gidtxt"
placeholder="请输入保函文本">
</c-input>
<!-- <c-mul-row-input-->
<!-- v-model="model.gidtxt"-->
<!-- :rows="4"-->
<!-- :cols="35"-->
<!-- placeholder="请输入保函文本"-->
<!-- >-->
<!-- </c-mul-row-input>-->
<!-- <c-input-->
<!-- v-model="model.gidtxt"-->
<!-- placeholder="请输入保函文本">-->
<!-- </c-input>-->
<c-mul-row-input
v-model="model.gidtxt"
:rows="4"
:cols="35"
placeholder="请输入保函文本"
>
</c-mul-row-input>
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -63,20 +63,32 @@
</c-col>
<c-col :span="24">
<el-form-item label="处理类型" prop="hndtyp">
<c-input
v-model="model.hndtyp"
placeholder="请输入处理类型"
>
</c-input>
<c-select style="width: 100%"
v-model="model.hndtyp"
placeholder="请选择处理类型"
:code="getCodesByKey('hndtyp')"
>
</c-select>
<!-- <c-input-->
<!-- v-model="model.hndtyp"-->
<!-- placeholder="请输入处理类型"-->
<!-- >-->
<!-- </c-input>-->
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="对象类型" prop="objtyp">
<c-input
v-model="model.objtyp"
placeholder="请输入对象类型"
>
</c-input>
<c-select style="width: 100%"
v-model="model.objtyp"
placeholder="请选择对象类型"
:code="getCodesByKey('objtyp')"
>
</c-select>
<!-- <c-input-->
<!-- v-model="model.objtyp"-->
<!-- placeholder="请输入对象类型"-->
<!-- >-->
<!-- </c-input>-->
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -92,20 +104,32 @@
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="优先级" prop="gtxpri">
<c-input
v-model="model.gtxpri"
placeholder="请输入优先级"
>
</c-input>
<c-select style="width: 100%"
v-model="model.gtxpri"
placeholder="请选择优先级"
:code="getCodesByKey('gtxpri')"
>
</c-select>
<!-- <c-input-->
<!-- v-model="model.gtxpri"-->
<!-- placeholder="请输入优先级"-->
<!-- >-->
<!-- </c-input>-->
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="无责任担保标志" prop="expflg">
<c-input
v-model="model.expflg"
placeholder="请输入无责任担保标志"
>
</c-input>
<c-select style="width: 100%"
v-model="model.expflg"
placeholder="请选择无责任担保标志"
:code="getCodesByKey('expflg')"
>
</c-select>
<!-- <c-input-->
<!-- v-model="model.expflg"-->
<!-- placeholder="请输入无责任担保标志"-->
<!-- >-->
<!-- </c-input>-->
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -137,11 +161,17 @@
</c-col>
<c-col :span="24">
<el-form-item label="格式" prop="legfrm">
<c-input
v-model="model.legfrm"
placeholder="请输入格式"
>
</c-input>
<c-select style="width: 100%"
v-model="model.legfrm"
placeholder="请选择格式"
:code="getCodesByKey('legfrm')"
>
</c-select>
<!-- <c-input-->
<!-- v-model="model.legfrm"-->
<!-- placeholder="请输入格式"-->
<!-- >-->
<!-- </c-input>-->
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -167,12 +197,20 @@
</template>
<script>
import codes from "@/config/CodeTable";
export default {
name: "",
inject: ["root"],
props: ["model"],
data() {
return {};
},
methods: {
getCodesByKey(key) {
return codes[key] ?? [];
},
}
};
</script>
......
......@@ -34,7 +34,7 @@
<c-select style="width: 100%"
v-model="model.gtxpurpos"
placeholder="请选择出具目的"
:code="getCodesByKey('gtxpurpos')"
:code="getCodesByKey('gtxpurpos') "
>
</c-select>
</el-form-item>
......
......@@ -3,8 +3,8 @@
<!-- ----------左 ---------->
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="货币代码" prop="cod">
<c-input v-model="model.cod" placeholder="请输入货币代码" style="width: 100%">
<el-form-item label="货币种类" prop="cod">
<c-input v-model="model.cod" placeholder="请输入货币种类" style="width: 100%">
</c-input>
</el-form-item>
</c-col>
......@@ -21,7 +21,7 @@
<c-col :span="24" style="text-align: right; height: 36.8px">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button type="primary" icon="el-icon-search" size="small" @click="onInfcurSearch">查询
<el-button type="primary" icon="el-icon-search" size="small" @click="onSearch()">查询
</el-button>
</c-col>
......@@ -87,6 +87,11 @@ export default {
this.model.cod = ""
this.model.seanam = ""
},
onSearch() {
this.model.pageSize = 5;
this.model.pageNum = 1;
this.onInfcurSearch();
},
onInfcurSearch() {
queryByPage(this.model).then(res => {
/**
......
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