Commit 6b2f0f89 by zhengxiaokui

public

parent 73f89b65
......@@ -27,4 +27,8 @@ export default {
.e-table-wrapper .el-table {
flex:1;
}
.el-input__count{
right: 1px !important;
}
</style>
......@@ -13,7 +13,7 @@ export default {
return Api.post(this.declareParams.trnName + "/init", { params })
},
save(params) {
return Api.post(this.declareParams.trnName + "saveData", this.wrapper(params))
return Api.post(this.declareParams.trnName + "/saveData", this.wrapper(params))
},
executeCheck(rulePath,params){
return Api.post(this.declareParams.trnName+"/executeCheck/"+rulePath, this.wrapper(params))
......
import Api from "~/service/Api"
import Utils from "~/utils"
import Utils from "~/utils/index"
export default {
async onAcctagButtxmsel() {
let rtnmsg = await this.executeRule("acctag.buttxmsel")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
......@@ -102,6 +100,21 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
onSeainf() {
console.log('11111111')
},
async onPreperButtxmsel() {
let rtnmsg = await this.executeRule("preper_buttxmsel")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onLimptsGet1() {
let rtnmsg = await this.executeRule("limpts.get1")
if (rtnmsg.respCode == SUCCESS) {
......
......@@ -19,7 +19,7 @@ export default {
{ max: 3, message: "长度不能超过3" }
],
"didgrp.cbs.opn1.amt": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -41,7 +41,7 @@ export default {
],
"bddgrp.cbs.max.amt": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -54,7 +54,7 @@ export default {
{ max: 3, message: "长度不能超过3" }
],
"bddgrp.cbs.opn1.amt": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -112,7 +112,7 @@ export default {
],
"setmod.docamt": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -122,7 +122,7 @@ export default {
],
"aamset.utlamt": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -131,7 +131,7 @@ export default {
{ max: 35, message: "长度不能超过35" }
],
"aamset.utlamt2": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -278,7 +278,7 @@ export default {
],
"liaall.outamt": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -291,19 +291,19 @@ export default {
{ max: 3, message: "长度不能超过3" }
],
"liaall.misamt": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotoldamt": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotamt": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -312,7 +312,7 @@ export default {
{ max: 3, message: "长度不能超过3" }
],
"liaall.liaccv.newamt": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -321,7 +321,7 @@ export default {
{ max: 5, message: "长度不能超过5" }
],
"liaall.liaccv.newresamt": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -331,7 +331,7 @@ export default {
],
"liaall.liaccv.pctresamt": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -339,7 +339,7 @@ export default {
"liaall.liaccv.totcovamt": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -437,7 +437,7 @@ export default {
],
"liaall.limmod.comamt": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -450,7 +450,7 @@ export default {
{ max: 40, message: "长度不能超过40" }
],
"liaall.limmod.ccvamt": [
{ type: "number", required: false, message: "必输项" },
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......
......@@ -27,12 +27,12 @@
<!--PD000027 -->
<el-tab-pane label="或有" name="engp">
<m-engp :model="model" :codes="codes" />
<m-engp :model="model" :codes="codes" :event="Event" />
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="保证金" name="ccvpan">
<m-ccvpan :model="model" :codes="codes" />
<m-ccvpan :model="model" :codes="codes" :event="Event" />
</el-tab-pane>
<el-tab-pane label="帐务" name="setpan">
......@@ -72,14 +72,19 @@ import Payp from "./Payp";
import Ovwp from "./Ovwp";
import Docpre from "./Docpre";
import Shpdet from "./Shpdet";
import Engp from "./Engp";
import Ccvpan from "./Ccvpan";
import Coninfp from "./Coninfp";
//import Engp from "./Engp";
//import Ccvpan from "./Ccvpan";
//import Coninfp from "./Coninfp";
import Limitbody from "./Limitbody";
import Glepan from "~/views/Public/Glepan";
import Setpan from "~/views/Public/Setpan";
import Docpan from "~/views/Public/Docpan";
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp";
import Event from "~/model/bdtudp/Event";
export default {
components: {
......@@ -105,10 +110,12 @@ export default {
data() {
return {
initPane: "payp",
trnName: "bdtudp",
model: new Bdtudp().data,
defaultRule: Default,
rules: Pattern,
codes: {},
Event: { ...Event },
codes: { ...CodeTable },
};
},
methods: {
......
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item label="合同金额" prop="liaall.liaccv.concur">
<c-row :gutter="20">
<c-col :span="8">
<c-select
v-model="model.liaall.liaccv.concur"
disabled
style="width: 100%"
placeholder="请选择Type of settlement"
>
<el-option
v-for="item in codes.curtxt"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</c-col>
<c-col :span="14">
<c-input
:readonly="true"
v-model="model.liaall.liaccv.newamt"
></c-input>
</c-col>
</c-row>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="保证金应收比例" prop="liaall.liaccv.cshpct">
<c-row>
<c-col :span="8">
<c-input v-model="model.liaall.liaccv.cshpct"></c-input>
</c-col>
<c-col :span="12" style="margin-left: 20px">
<span>%</span>
</c-col>
</c-row>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Reserved Amount" prop="liaall.liaccv.newresamt">
<c-row :gutter="20">
<c-col :span="8">
<c-select
v-model="model.liaall.liaccv.concur"
disabled
style="width: 100%"
placeholder="请选择Type of settlement"
>
<el-option
v-for="item in codes.curtxt"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</c-col>
<c-col :span="14">
<c-input
:readonly="true"
v-model="model.liaall.liaccv.newresamt"
></c-input>
</c-col>
</c-row>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="保证金实收比例" prop="liaall.misamt">
<c-row>
<c-col :span="8">
<c-input :readonly="true" v-model="model.liaall.misamt"></c-input>
</c-col>
<c-col :span="12" style="margin-left: 20px">
<span>%</span>
</c-col>
</c-row>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="应付保证金金额" prop="liaall.liaccv.concur">
<c-row :gutter="20">
<c-col :span="8">
<c-select
v-model="model.liaall.liaccv.concur"
disabled
style="width: 100%"
placeholder="请选择Type of settlement"
>
<el-option
v-for="item in codes.curtxt"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</c-col>
<c-col :span="14">
<c-input
:readonly="true"
v-model="model.liaall.liaccv.pctresamt"
></c-input>
</c-col>
</c-row>
</el-form-item>
</c-col>
<c-col :span="24" style="text-align: right">
<c-row>
<c-col :span="2" :offset="19">
<c-button size="small" type="primary" @click="event.onLiaccvAdd">
Add
</c-button>
<el-dialog
:visible.sync="dialogTableVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<c-istream-table :list="stmData.data" :columns="stmData.columns">
<el-table-column prop="op" label="OP" width="100">
<template slot-scope="scope">
<a href="javascript:void(0)" @click="event.pickDepItem(scope.row)"
>选择</a
>
</template>
</el-table-column>
</c-istream-table>
</el-dialog>
</c-col>
<c-col :span="2">
<c-button size="small" icon="el-icon-delete" @click="event.onLiaccvDel">
Del
</c-button>
</c-col>
</c-row>
</c-col>
<c-col :span="24"><div style="height: 10px"></div></c-col>
<c-col :span="22" :offset="1">
<c-table
:border="true"
:list="model.liaall.liaccv.liaccvg"
style="width:80%,text-align:center"
>
<el-table-column prop="ccdflg" label="CFO" width="auto">
</el-table-column>
<el-table-column prop="ownref" label="保证金编号" width="auto">
</el-table-column>
<el-table-column prop="cur" label="币种" width="auto">
</el-table-column>
<el-table-column prop="oldamt" label="余额" width="auto">
</el-table-column>
<el-table-column prop="amt" label="变动金额" width="auto">
</el-table-column>
<el-table-column prop="acc" label="保证金账号" width="auto">
</el-table-column>
<el-table-column prop="rat" label="汇率" width="auto">
</el-table-column>
<el-table-column prop="concur" label="币种" width="auto">
</el-table-column>
<el-table-column prop="covamt" label="折算后金额" width="auto">
</el-table-column>
</c-table>
</c-col>
<c-col :span="24">
<el-form-item label="金额总和">
<c-col :span="8">
<c-input
style="width: 50%"
v-model="model.liaall.liaccv.totcovamt"
placeholder="请输入金额总和"
></c-input>
</c-col>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Additional Information ">
<c-input
type="textarea"
rows="5"
v-model="model.liaall.liaccv.addinf"
maxlength="200"
show-word-limit
placeholder="请输入Additional Information "
></c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
export default {
inject: ["root"],
props: ["model", "codes","event"],
mixins: [CommonProcess],
data() {
return {
dialogTableVisible: false,
stmData: {
columns: [
'1 1:1 "Ref." 120',
'2 2:1 "User" 80',
'3 3:1 "Applicant" 196',
'4 4:1 "Account" 120',
'5 5:1 "Cur" 50',
'6 6:1 "Amount" 80 2 0 1 18.3',
'7 7:1 "Open date" 80 4 7',
'8 8:1 "flg" 40',
'9 9:1 "Remarks" 180',
"P COLORED TRUE",
"P VERTLINES TRUE",
"P HORZLINES TRUE",
"P MULTISELECT FALSE",
"P COLUMNSIZING TRUE",
],
data: [],
},
relrowDisabled: true,
};
},
//methods: { ...this.event },
created: function () {
},
};
</script>
<style>
</style>
<template>
<c-row>
<c-col :span="24">
<c-col :span="12">
<el-form-item
style="height=200px;"
label="General"
prop="mtabut.coninf.oitinf.oit.inftxt"
>
<c-input
type="textarea"
:rows="6"
@input="infChanged($event, 'mtabut.coninf.oitinf.oit.inflev')"
v-model="model.mtabut.coninf.oitinf.oit.inftxt"
maxlength="60"
:autosize="{ minRows: 4, maxRows: 6 }"
resize="none"
show-word-limit
placeholder="请输入Infotext"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
label="Display Type"
prop="mtabut.coninf.oitinf.oit.inflev"
>
<c-select
v-model="model.mtabut.coninf.oitinf.oit.inflev"
style="width: 50%"
:disabled="model.mtabut.coninf.oitinf.oit.inftxt ? false : true"
placeholder="请选择Infotext Level"
>
<el-option
v-for="item in codes.inflev"
: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="Settlement" prop="mtabut.coninf.oitset.oit.inftxt">
<c-input
type="textarea"
@input="infChanged($event, 'mtabut.coninf.oitset.oit.inflev')"
v-model="model.mtabut.coninf.oitset.oit.inftxt"
maxlength="60"
resize="none"
:autosize="{ minRows: 4, maxRows: 6 }"
show-word-limit
placeholder="请输入Infotext"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
label="Display Type"
prop="mtabut.coninf.oitset.oit.inflev"
>
<c-select
v-model="model.mtabut.coninf.oitset.oit.inflev"
style="width: 50%"
:disabled="model.mtabut.coninf.oitset.oit.inftxt ? false : true"
placeholder="请选择Infotext Level"
>
<el-option
v-for="item in codes.inflev"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12">
<el-form-item label="执行日期" prop="mtabut.coninf.conexedat">
<el-date-picker
type="date"
v-model="model.mtabut.coninf.conexedat"
style="width: 40%"
placeholder="请选择执行日期"
></el-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Send for Release to" prop="mtabut.coninf.usr.extkey">
<c-input
v-model="model.mtabut.coninf.usr.extkey"
maxlength="8"
style="width: 40%"
disabled="disabled"
placeholder="请输入User ID"
></c-input>
</el-form-item>
</c-col>
</c-row>
</template>
<script>
import CommonProcess from "~/mixin/CommonProcess";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [CommonProcess],
data() {
return {};
},
methods: {
infChanged(e, type) {
if (!e) {
this.model[type] = "";
console.log("1111", this.model[type]);
}
},
},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab" style="margin: 0 10px">
<c-col :span="24" style="margin-bottom: 1px"> Liability </c-col>
<c-col :span="24" >
<c-table
:list="model.liaall.liaallg"
style="width:80%,text-align:center,margin-bottom:18px"
:border="true"
>
<el-table-column prop="cbtpfx" label="Type" width="auto">
</el-table-column>
<el-table-column prop="matdat" label="Maturity" width="auto">
</el-table-column>
<el-table-column prop="tenday" label="Tenor" width="auto">
</el-table-column>
<el-table-column prop="rol" label="Dbt." width="auto">
</el-table-column>
<el-table-column prop="nam" label="Name" width="auto">
</el-table-column>
<el-table-column prop="cdtrol" label="Cdt." width="auto">
</el-table-column>
<el-table-column prop="cur" label="Cur" width="auto"> </el-table-column>
<el-table-column prop="oldamt" label="Old Amount" width="auto">
<template slot-scope="scope">
{{ moneyFormat(scope.row.oldamt) }}
</template>
</el-table-column>
<el-table-column prop="amt" label="Booking Amo" width="auto">
<template slot-scope="scope">
{{ moneyFormat(scope.row.amt) }}
</template>
</el-table-column>
<el-table-column prop="tenpct" label="%" width="auto">
</el-table-column>
<el-table-column prop="acc" label="Account" width="auto">
</el-table-column>
<el-table-column prop="valdat" label="Value Date" width="auto">
<template slot-scope="scope">
{{ dateFormat(scope.row.valdat) }}
</template>
</el-table-column>
</c-table>
</c-col>
<c-col :span="12">
<el-form-item label="Amount not yet assigned">
<c-input
style="width: 20%"
disabled
v-model="model.liaall.concur"
maxlength="3"
placeholder="请输入External Booking Amount"
></c-input>
<c-input
style="width: 50%"
disabled
v-model="model.liaall.misamt"
placeholder="请输入Amount not yet assigned"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="">
<c-button
size="small"
disabled
type="primary"
@click="event.onLiaallButmisamt"
>
Add to Current Line
</c-button>
</el-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
//import Event from "~/model/Ditopn/Event";
export default {
inject: ["root"],
mixins: [CommonProcess],
props: ["model", "codes", "event"],
data() {
return {};
},
//methods: { ...this.event },
created: function () {},
};
</script>
<style>
</style>
......@@ -66,7 +66,7 @@ export default {
};
},
watch: {},
methods: { ...Event },
//methods: { ...Event },
created: function () {},
};
</script>
......
......@@ -36,7 +36,7 @@ export default {
};
},
watch: {},
methods: { ...Event },
// methods: { ...Event },
created: function () {},
};
</script>
......
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