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