Commit e6e600e7 by fukai

check增加模型赋值

parents 5b974928 6b2f0f89
......@@ -27,4 +27,8 @@ export default {
.e-table-wrapper .el-table {
flex:1;
}
.el-input__count{
right: 1px !important;
}
</style>
......@@ -65,6 +65,11 @@ export default {
const fieldErrors = result.fieldErrors;
this.getVM().updateModel(result.data)
Utils.positioningErrorMsg(fieldErrors, fields)
const tab = Utils.positioningErrorMsg(fieldErrors, fields);
if(tab) {
// tab切换之后,需出发tab-click的事件
this.getVM().tabClick(tab);
}
}
},
exit(){
......
......@@ -65,7 +65,6 @@ export default {
const obj = {}
for (let i = 0; i < lines.length; i++) {
let line = lines[i];
line = line.replace(/Quote/g, "\"");
if (etyReg.test(line)) {
const gs = line.match(etyReg)
const columnName = gs[1]
......
<template>
<div class="eContainer-table-block">
<el-table ref="table" :data="tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)"
<el-table
ref="table"
:data="
tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)
"
style="width: 100%"
class="eContainer-table"
@selection-change="handleSelectionChange"
:row-key="getRowKey"
:header-cell-style="{background: 'eef1f6', color: '#606266'}"
:header-cell-style="{ background: 'eef1f6', color: '#606266' }"
:highlight-current-row="true"
@row-click="rowClick"
:border="true">
<el-table-column type="selection" width="55" v-if="showSelection" :reserve-selection="true"></el-table-column>
:border="true"
>
<el-table-column
type="selection"
width="55"
v-if="showSelection"
:reserve-selection="true"
></el-table-column>
<el-table-column
v-for="(item, key) in tableColumns"
:key="key"
......@@ -30,7 +40,14 @@
@size-change="sizeChange"
@current-change="currentChange"
></el-pagination>
<div class="paginationLable">当前显示第 {{(currentPage - 1) * pageSize + 1}}-{{currentPage * pageSize > tableData.length ? tableData.length : currentPage * pageSize}} 条,共 {{tableData.length}}</div>
<div class="paginationLable">
当前显示第 {{ (currentPage - 1) * pageSize + 1 }}-{{
currentPage * pageSize > tableData.length
? tableData.length
: currentPage * pageSize
}}
条,共 {{ tableData.length }}
</div>
</div>
</template>
......@@ -51,50 +68,50 @@ export default {
},
showSelection: {
type: Boolean,
default: false
}
default: false,
},
},
computed: {
tableColumns() {
const columnArr = []
const columnArr = [];
const lines = this.columns;
const etyReg = /\"([^\"]*)\"/
const obj = {}
const etyReg = /\"([^\"]*)\"/;
const obj = {};
for (let i = 0; i < lines.length; i++) {
const line = lines[i];
if (etyReg.test(line)) {
const gs = line.match(etyReg)
const columnName = gs[1]
const newLine = line.replace(gs[0], "_")
const colPropArr = newLine.split(" ")
const positionArr = colPropArr[1].split(":")
const gs = line.match(etyReg);
const columnName = gs[1];
const newLine = line.replace(gs[0], "_");
const colPropArr = newLine.split(" ");
const positionArr = colPropArr[1].split(":");
if (!obj[positionArr[0]]) {
obj[positionArr[0]] = []
obj[positionArr[0]] = [];
}
obj[positionArr[0]].push({
idx: colPropArr[0],
prop: columnName,
width: colPropArr[3]
})
width: colPropArr[3] + 'px',
});
}
}
for (const k in obj) {
if (Object.hasOwnProperty.call(obj, k)) {
const o = obj[k];
const tableColumn = o.map(item => item.prop).join("\n")
const tableColumn = o.map((item) => item.prop).join("\n");
columnArr.push({
prop: tableColumn,
label: tableColumn,
// width: o[0].width,
width: "auto",
index: k,
children: o
})
children: o,
});
}
}
return columnArr.sort((a,b) => {
return parseInt(a.index) - parseInt(b.index)
})
return columnArr.sort((a, b) => {
return parseInt(a.index) - parseInt(b.index);
});
},
tableData() {
// return this.list.map((row) => {
......@@ -105,26 +122,28 @@ export default {
// }
// return res;
// });
const arr = []
const arr = [];
for (let i = 0; i < this.list.length; i++) {
const d = this.list[i];
const items = d.split("\t")
const it = {}
const items = d.split("\t");
const it = {};
for (let j = 0; j < this.tableColumns.length; j++) {
const column = this.tableColumns[j];
it[column['prop']] = column.children.map(c => items[c['idx']] || " ").join("\n")
it[column["prop"]] = column.children
.map((c) => items[c["idx"]] || " ")
.join("\n");
}
it['IDX'] = i
arr.push(it)
it["IDX"] = i;
arr.push(it);
}
return arr
return arr;
},
},
data() {
return {
currentPage: 1,
pageSizes: [5, 10, 20, 30, 40, 50, 100],
pageSize: 5
pageSize: 5,
};
},
methods: {
......@@ -135,44 +154,44 @@ export default {
this.currentPage = currentPage;
},
handleSelectionChange(val) {
this.$emit("multipleSelect", this.getSelectedRowIndex(val))
this.$emit("multipleSelect", this.getSelectedRowIndex(val));
},
getRowKey(row) {
return row['IDX']
return row["IDX"];
},
getSelectedRowIndex(val) {
const indexArr = []
const indexArr = [];
for (let j = 0; j < val.length; j++) {
const v = val[j];
for (let i = 0; i < this.tableData.length; i++) {
const data = this.tableData[i];
if (v['IDX'] === data ['IDX']) {
indexArr.push(i)
if (v["IDX"] === data["IDX"]) {
indexArr.push(i);
}
}
}
return indexArr
return indexArr;
},
// 行点击,设置高亮
rowClick(row, column, event) {
this.$refs.table.setCurrentRow(row);
this.$emit("chooseRowEvent", row)
}
}
this.$emit("chooseRowEvent", row);
},
},
};
</script>
<style>
.eContainer-table-block{
.eContainer-table-block {
margin-top: 15px;
}
.eContainer-table-block .paginationLable{
.eContainer-table-block .paginationLable {
font-size: 12px;
color: #808080;
height: 26px;
line-height: 26px;
float:right;
margin-top:20px;
float: right;
margin-top: 20px;
}
.eContainer-table-block .el-table__body-wrapper {
overflow: auto;
......@@ -184,7 +203,7 @@ export default {
background: #f0f9eb;
}
.eContainer-table-block .el-table .cell{
.eContainer-table-block .el-table .cell {
white-space: pre-wrap;
}
</style>
\ No newline at end of file
......@@ -2,48 +2,44 @@ import Api from "~/service/Api"
import Utils from "../utils"
export default {
data(){
data() {
return {}
},
mounted(){
mounted() {
//this.restoreDisplay()
},
methods:{
init(params){
return Api.post(this.declareParams.trnName+"/init",{params})
methods: {
init(params) {
return Api.post(this.declareParams.trnName + "/init", { params })
},
save(params){
return Api.post(this.declareParams.trnName+"/saveData", this.wrapper(params))
save(params) {
return Api.post(this.declareParams.trnName + "/saveData", this.wrapper(params))
},
exeuteCheck(rulePath,params){
executeCheck(rulePath,params){
return Api.post(this.declareParams.trnName+"/executeCheck/"+rulePath, this.wrapper(params))
},
executeDefault(rulePath,params)
{
return Api.post(this.declareParams.trnName+"/executeDefault/"+rulePath, this.wrapper(params))
executeDefault(rulePath, params) {
return Api.post(this.declareParams.trnName + "/executeDefault/" + rulePath, this.wrapper(params))
},
executeRule(rulePath,params)
{
return Api.post(this.declareParams.trnName+"/executeRule/"+rulePath, this.wrapper(params))
executeRule(rulePath, params) {
return Api.post(this.declareParams.trnName + "/executeRule/" + rulePath, this.wrapper(params))
},
async checkAll(params){
const res = await Api.post(this.declareParams.trnName+"/checkAll", this.wrapper(params))
async checkAll(params) {
const res = await Api.post(this.declareParams.trnName + "/checkAll", this.wrapper(params))
return res
},
pedding(params){
return Api.post(this.declareParams.trnName+"/pending", this.wrapper(params))
pedding(params) {
return Api.post(this.declareParams.trnName + "/pending", this.wrapper(params))
},
async restoreDisplay()
{
async restoreDisplay() {
let inr = this.$route.query.trn
if(!inr)
if (!inr)
return
let data =await Api.post("display/"+inr)
Utils.copyValueFromVO(this.model,JSON.parse(data.data))
let data = await Api.post("display/" + inr)
Utils.copyValueFromVO(this.model, JSON.parse(data.data))
},
executeNotify(params)
{
return Api.post(this.declareParams.trnName+"/executeNotify", this.wrapper(params))
executeNotify(params) {
return Api.post(this.declareParams.trnName + "/executeNotify", this.wrapper(params))
},
}
}
\ No newline at end of file
......@@ -4,47 +4,45 @@ import Utils from "~/utils"
* Bdtudp Check规则
*/
let checkObj = {
"bddgrp.tag72add" :null,
"bddgrp.acb.adrelc" :null,
"bddgrp.rmb.pts.extkey" :null,
"bddgrp.rec.disdat" :null,
"bdtp.oth.pts.extkey" :null,
"bddgrp.beb.pts.extkey" :null,
"bddgrp.rmb.pts.adrblk" :null,
"bddgrp.beb.pts.adrblk" :null,
"bddgrp.rec.docflg" :null,
"bdtp.furide" :null,
"bddgrp.blk.docdis" :null,
"bddgrp.prb.pts.ref" :null,
"bddgrp.acb.pts.extkey" :null,
"bddgrp.blk.accrmk" :null,
"bddgrp.prb.pts.extkey" :null,
"bddgrp.rec.expdat" :null,
"bddgrp.beb.adrelc" :null,
"bddgrp.shp.namelc" :null,
"aamset.utlamt2" :null,
"bddgrp.acb.pts.adrblk" :null,
"bddgrp.acb.namelc" :null,
"bddgrp.beb.namelc" :null,
"bddgrp.rec.rcvdat" :null,
"bddgrp.shp.pts.adrblk" :null,
"bdtp.acbp.ptsget.sdamod.dadsnd" :null,
"bddgrp.blk.comcon" :null,
"bddgrp.prb.pts.bankno" :null,
"bddgrp.rmb.namelc" :null,
"bdtp.rmbp.ptsget.sdamod.dadsnd" :null,
"bddgrp.rec.reltyp" :null,
"bddgrp.rec.relgodflg" :null,
"bdtp.shpp.ptsget.sdamod.dadsnd" :null,
"bdtp.recget.sdamod.dadsnd" :null,
"bddgrp.shp.adrelc" :null,
"bddgrp.rmb.adrelc" :null,
"setmod.docamt" :null,
"bdtp.bebp.ptsget.sdamod.dadsnd" :null,
"bdtp.oth.pts.bankno" :null,
"bdtp.didget.sdamod.dadsnd" :null,
"bddgrp.shp.pts.extkey" :null,
"bddgrp.rec.trpdocnum" :null,
"bddgrp.tag72add": null,
"liaall.misamt": null,
"liaall.limmod.limpts.oth.pts.extkey": null,
"bddgrp.rec.disdat": null,
"bdtp.oth.pts.extkey": null,
"liaall.limmod.ownref": null,
"liaall.limmod.ecifno": null,
"liaall.limmod.othp.ptsget.sdamod.dadsnd": null,
"bddgrp.rec.docflg": null,
"bdtp.furide": null,
"bddgrp.blk.docdis": null,
"setmod.dspflg": null,
"bddgrp.prb.pts.ref": null,
"bddgrp.blk.accrmk": null,
"bddgrp.prb.pts.extkey": null,
"bddgrp.rec.expdat": null,
"bddgrp.shp.namelc": null,
"liaall.liaccv.totcovamt": null,
"aamset.utlamt2": null,
"bddgrp.rec.rcvdat": null,
"bddgrp.shp.pts.adrblk": null,
"liaall.limmod.limpts.wrk.pts.extkey": null,
"bddgrp.blk.comcon": null,
"bddgrp.prb.pts.bankno": null,
"bddgrp.rec.reltyp": null,
"bddgrp.rec.relgodflg": null,
"bdtp.shpp.ptsget.sdamod.dadsnd": null,
"mtabut.coninf.conexedat": null,
"bdtp.recget.sdamod.dadsnd": null,
"liaall.limmod.limpts.nonrevflg1": null,
"bddgrp.shp.adrelc": null,
"liaall.limmod.wrkp.ptsget.sdamod.dadsnd": null,
"setmod.docamt": null,
"liaall.liaccv.cshpct": null,
"bdtp.oth.pts.bankno": null,
"bdtp.didget.sdamod.dadsnd": null,
"bddgrp.shp.pts.extkey": null,
"bddgrp.rec.trpdocnum": null,
"liaall.liaccv.relcshpct": null,
}
for (const key in checkObj) {
......
......@@ -6,61 +6,64 @@ import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"bddgrp.acb.pts.extkey" :Utils.defaultFunction,
"bddgrp.blk.docdisflg" :Utils.defaultFunction,
"bddgrp.blk.docdis" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction,
"setmod.docamt" :Utils.defaultFunction,
"bddgrp.ben.pts.nam" :Utils.defaultFunction,
"bdtp.oth.pts.extkey" :Utils.defaultFunction,
"bddgrp.prb.pts.extkey" :Utils.defaultFunction,
"bddgrp.rmb.pts.extkey" :Utils.defaultFunction,
"bddgrp.rmb.adrelc" :Utils.defaultFunction,
"bddgrp.rmb.namelc" :Utils.defaultFunction,
"bddgrp.rmb.dbfadrblkcn" :Utils.defaultFunction,
"bddgrp.shp.pts.extkey" :Utils.defaultFunction,
"bddgrp.shp.adrelc" :Utils.defaultFunction,
"bddgrp.shp.namelc" :Utils.defaultFunction,
"bddgrp.shp.dbfadrblkcn" :Utils.defaultFunction,
"bddgrp.rec.stadat" :Utils.defaultFunction,
"bddgrp.beb.pts.extkey" :Utils.defaultFunction,
"bddgrp.acb.adrelc" :Utils.defaultFunction,
"bddgrp.acb.namelc" :Utils.defaultFunction,
"bddgrp.acb.dbfadrblkcn" :Utils.defaultFunction,
"sftmt" :Utils.defaultFunction,
"bdtp.cre752flg" :Utils.defaultFunction,
"didgrp.cbs.nom1.cur" :Utils.defaultFunction,
"bddgrp.beb.adrelc" :Utils.defaultFunction,
"bddgrp.beb.namelc" :Utils.defaultFunction,
"bddgrp.beb.dbfadrblkcn" :Utils.defaultFunction,
"bddgrp.rec.docflg" :Utils.defaultFunction,
"didgrp.rec.avbby" :Utils.defaultFunction,
"bddgrp.shp.pts.adrblk" :Utils.defaultFunction,
"didgrp.rec.ownref" :Utils.defaultFunction,
"bddgrp.rec.rtoaplflg" :Utils.defaultFunction,
"bddgrp.rec.ownref" :Utils.defaultFunction,
"bddgrp.rmb.pts.adrblk" :Utils.defaultFunction,
"bddgrp.beb.pts.adrblk" :Utils.defaultFunction,
"bddgrp.rec.advtyp" :Utils.defaultFunction,
"bddgrp.cbs.max2.amt" :Utils.defaultFunction,
"bddgrp.rec.docprbrol" :Utils.defaultFunction,
"bddgrp.acb.pts.adrblk" :Utils.defaultFunction,
"bddgrp.rec.relgoddat" :Utils.defaultFunction,
"bddgrp.cbs.max.amt" :Utils.defaultFunction,
"bddgrp.rec.predat" :Utils.defaultFunction,
"bddgrp.cbs.max.cur" :Utils.defaultFunction,
"didgrp.rec.expdat" :Utils.defaultFunction,
"didgrp.cbs.opn1.amt" :Utils.defaultFunction,
"didgrp.rec.shpdat" :Utils.defaultFunction,
"bddgrp.rec.reltyp" :Utils.defaultFunction,
"bddgrp.apl.pts.nam" :Utils.defaultFunction,
"aamset.utlamt" :Utils.defaultFunction,
"bddgrp.cbs.opn2.cur" :Utils.defaultFunction,
"aamset.utlamt2" :Utils.defaultFunction,
"bddgrp.cbs.opn1.amt" :Utils.defaultFunction,
"bddgrp.rec.disdat" :Utils.defaultFunction,
"bddgrp.rec.approvcod" :Utils.defaultFunction,
"bddgrp.rec.payrol" :Utils.defaultFunction,
"bddgrp.prb.pts.nam" :Utils.defaultFunction,
"liaall.limmod.limpts.oth.pts.extkey": Utils.defaultFunction,
"bddgrp.blk.docdisflg": Utils.defaultFunction,
"bddgrp.blk.docdis": Utils.defaultFunction,
"setmod.doccur": Utils.defaultFunction,
"setmod.dspflg": Utils.defaultFunction,
"setmod.docamt": Utils.defaultFunction,
"bddgrp.ben.pts.nam": Utils.defaultFunction,
"mtabut.coninf.usr.extkey": Utils.defaultFunction,
"liaall.limmod.limpts.wrk.pts.extkey": Utils.defaultFunction,
"bdtp.oth.pts.extkey": Utils.defaultFunction,
"liaall.limmod.limpts.nonrevflg2": Utils.defaultFunction,
"liaall.limmod.limpts.nonrevflg1": Utils.defaultFunction,
"bddgrp.prb.pts.extkey": Utils.defaultFunction,
"bddgrp.shp.pts.extkey": Utils.defaultFunction,
"bddgrp.shp.adrelc": Utils.defaultFunction,
"bddgrp.shp.namelc": Utils.defaultFunction,
"bddgrp.shp.dbfadrblkcn": Utils.defaultFunction,
"liaall.liaccv.addinf": Utils.defaultFunction,
"bddgrp.rec.stadat": Utils.defaultFunction,
"liaall.liaccv.totcovamt": Utils.defaultFunction,
"sftmt": Utils.defaultFunction,
"bdtp.cre752flg": Utils.defaultFunction,
"liaall.limmod.limpts.oth.pts.nam": Utils.defaultFunction,
"liaall.liaccv.concur": Utils.defaultFunction,
"bddgrp.rec.docflg": Utils.defaultFunction,
"bddgrp.shp.pts.adrblk": Utils.defaultFunction,
"didgrp.rec.ownref": Utils.defaultFunction,
"bddgrp.rec.rtoaplflg": Utils.defaultFunction,
"bddgrp.rec.ownref": Utils.defaultFunction,
"bddgrp.rec.advtyp": Utils.defaultFunction,
"liaall.limmod.comamt": Utils.defaultFunction,
"liaall.limmod.ccvamt": Utils.defaultFunction,
"liaall.limmod.limpts.wrk.pts.nam": Utils.defaultFunction,
"bddgrp.rec.docprbrol": Utils.defaultFunction,
"setmod.glemod.gleshwstm": Utils.defaultFunction,
"bddgrp.rec.relgoddat": Utils.defaultFunction,
"bddgrp.cbs.max.amt": Utils.defaultFunction,
"bddgrp.rec.predat": Utils.defaultFunction,
"bddgrp.cbs.max.cur": Utils.defaultFunction,
"didgrp.rec.expdat": Utils.defaultFunction,
"didgrp.cbs.opn1.amt": Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inftxt": Utils.defaultFunction,
"bddgrp.rec.reltyp": Utils.defaultFunction,
"bddgrp.apl.pts.nam": Utils.defaultFunction,
"aamset.utlamt": Utils.defaultFunction,
"bddgrp.cbs.opn2.cur": Utils.defaultFunction,
"aamset.utlamt2": Utils.defaultFunction,
"bddgrp.cbs.opn1.amt": Utils.defaultFunction,
"liaall.misamt": Utils.defaultFunction,
"bddgrp.rec.disdat": Utils.defaultFunction,
"bddgrp.rec.approvcod": Utils.defaultFunction,
"liaall.liaccv.newamt": Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inftxt": Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inflev": Utils.defaultFunction,
"mtabut.coninf.conexedat": Utils.defaultFunction,
"bddgrp.rec.payrol": Utils.defaultFunction,
"liaall.liaccv.cshpct": Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inflev": Utils.defaultFunction,
"bddgrp.prb.pts.nam": Utils.defaultFunction,
}
//你可以添加自动default处理
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)
{
async onAcctagButtxmsel() {
let rtnmsg = await this.executeRule("acctag.buttxmsel")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onDocdisButtxmsel() {
let rtnmsg = await this.executeRule("docdis.buttxmsel")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onShppDet() {
let rtnmsg = await this.executeRule("shpp.det")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onLiaallButmisamt() {
let rtnmsg = await this.executeRule("liaall.butmisamt")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onRmbpDet(){
let rtnmsg = await this.executeRule("rmbp_det")
if(rtnmsg.respCode == SUCCESS)
{
async onLiaallButmissig() {
let rtnmsg = await this.executeRule("liaall.butmissig")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onAcbpDet(){
let rtnmsg = await this.executeRule("acbp_det")
if(rtnmsg.respCode == SUCCESS)
{
async onLiaccvAdd() {
let rtnmsg = await this.executeRule("liaccv.add")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onBebpDet(){
let rtnmsg = await this.executeRule("bebp_det")
if(rtnmsg.respCode == SUCCESS)
{
async onLiaccvDel() {
let rtnmsg = await this.executeRule("liaccv.del")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onSetmodDet() {
let rtnmsg = await this.executeRule("setmod.det")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onWrkpDet() {
let rtnmsg = await this.executeRule("wrkp.det")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onOthpDet() {
let rtnmsg = await this.executeRule("othp.det")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
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) {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onDocdisButtxmsel(){
let rtnmsg = await this.executeRule("docdis_buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
async onLimptsGet2() {
let rtnmsg = await this.executeRule("limpts.get2")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onShppDet(){
let rtnmsg = await this.executeRule("shpp_det")
if(rtnmsg.respCode == SUCCESS)
{
async onLimmodTrycal() {
let rtnmsg = await this.executeRule("limmod.trycal")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
......
......@@ -152,7 +152,7 @@ function checkDidgrpAplPtsYouzbmN100(rule, value, callback) {
*/
function checkAmeadvrmkN100(rule, value, callback) {
const that = this;
that.exeuteCheck("ameadvrmk").then(res => {
that.executeCheck("ameadvrmk").then(res => {
callback()
})
}
......@@ -169,7 +169,7 @@ function checkLiaallLimmodOwnrefN100(rule, value, callback) {
*/
function checkDidgrpRecExpplcN900(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.rec.expplc").then(res => {
that.executeCheck("didgrp.rec.expplc").then(res => {
//TODO
callback()
})
......@@ -194,7 +194,7 @@ function checkDidgrpAdvPtsBanknoN100(rule, value, callback) {
*/
function checkDidgrpRecTratypN100(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.rec.tratyp").then(res => {
that.executeCheck("didgrp.rec.tratyp").then(res => {
//TODO
callback()
})
......@@ -247,7 +247,7 @@ function checkDidgrpRecSdsrfsN100(rule, value, callback) {
*/
function checkDidgrpIssPtsYouzbmN1001(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.iss.pts.youzbm").then(res => {
that.executeCheck("didgrp.iss.pts.youzbm").then(res => {
//TODO
callback()
})
......@@ -293,7 +293,7 @@ function checkDidgrpRecShptoN100(rule, value, callback) {
*/
function checkDidgrpBenNamelcN100(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.ben.namelc").then(res => {
that.executeCheck("didgrp.ben.namelc").then(res => {
//TODO
callback()
})
......@@ -311,7 +311,7 @@ function checkDidgrpCmbPtsBanknoN100(rule, value, callback) {
*/
function checkDidgrpRecShpparN100(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.rec.shppar").then(res => {
that.executeCheck("didgrp.rec.shppar").then(res => {
//TODO
callback()
})
......@@ -336,7 +336,7 @@ function checkDidgrpRmbAdrelcN100(rule, value, callback) {
*/
function checkDidgrpAplPtsExtkeyN950(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.apl.pts.extkey").then(res => {
that.executeCheck("didgrp.apl.pts.extkey").then(res => {
//TODO
callback()
})
......@@ -431,7 +431,7 @@ function checkDidgrpRmbPtsBanknoN100(rule, value, callback) {
*/
function checkDidgrpBenAdrelcN100(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.ben.adrelc").then(res => {
that.executeCheck("didgrp.ben.adrelc").then(res => {
//TODO
callback()
})
......@@ -456,7 +456,7 @@ function checkDidgrpAplPtsDihdigN100(rule, value, callback) {
*/
function checkDidgrpRecConnoN100(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.rec.conno").then(res => {
that.executeCheck("didgrp.rec.conno").then(res => {
//TODO
callback()
})
......@@ -562,7 +562,7 @@ function checkDidgrpIssPtsBanknoN100(rule, value, callback) {
*/
function checkDidgrpBlkLcrgodN100(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.blk.lcrgod").then(res => {
that.executeCheck("didgrp.blk.lcrgod").then(res => {
that.model.didgrp.blk.lcrgod = res.data.didgrp_blk_lcrgod;
callback()
})
......@@ -593,7 +593,7 @@ function checkDidgrpRecIdcodeN100(rule, value, callback) {
*/
function checkDidgrpRecFenctgN100(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.rec.fenctg").then(res => {
that.executeCheck("didgrp.rec.fenctg").then(res => {
//TODO
callback()
})
......@@ -666,7 +666,7 @@ function checkDidgrpCbsNom1CurN100(rule, value, callback) {
*/
function checkDidgrpIssPtsDihdigN1001(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.iss.pts.dihdig").then(res => {
that.executeCheck("didgrp.iss.pts.dihdig").then(res => {
//TODO
callback()
})
......@@ -677,7 +677,7 @@ function checkDidgrpIssPtsDihdigN1001(rule, value, callback) {
*/
function checkDidgrpAplNamelcN100(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.apl.namelc").then(res => {
that.executeCheck("didgrp.apl.namelc").then(res => {
//TODO
callback()
})
......@@ -709,7 +709,7 @@ function checkMtabutConinfConexedatN100(rule, value, callback) {
*/
function checkDidgrpAdvPtsYouzbmN1003(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.adv.pts.youzbm").then(res => {
that.executeCheck("didgrp.adv.pts.youzbm").then(res => {
//TODO
callback()
})
......@@ -769,7 +769,7 @@ function checkDidgrpRecOpndatN950(rule, value, callback) {
*/
function checkDidgrpRecAvbbyN100(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.rec.avbby").then(res => {
that.executeCheck("didgrp.rec.avbby").then(res => {
//TODO
if (res.respCode == SUCCESS){
Utils.copyValueFromVO(that.model, res.data);
......@@ -823,7 +823,7 @@ function checkDidgrpApcPtsDihdigN1002(rule, value, callback) {
*/
function checkDidgrpAdvPtsExtkeyN100(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.adv.pts.extkey").then(res => {
that.executeCheck("didgrp.adv.pts.extkey").then(res => {
//TODO
callback()
})
......@@ -869,7 +869,7 @@ function checkSetmodDocamtN15000(rule, value, callback) {
*/
function checkDidgrpAdvPtsDihdigN1003(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.adv.pts.dihdig").then(res => {
that.executeCheck("didgrp.adv.pts.dihdig").then(res => {
//TODO
callback()
})
......@@ -894,7 +894,7 @@ function checkDidgrpRecExpdatN100(rule, value, callback) {
*/
function checkDidgrpBenPtsExtkeyN950(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.ben.pts.extkey").then(res => {
that.executeCheck("didgrp.ben.pts.extkey").then(res => {
//TODO
callback()
})
......@@ -933,7 +933,7 @@ function checkDidgrpRecAvbwthN900(rule, value, callback) {
*/
function checkDidgrpBlkLcrdocN100(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.blk.lcrdoc").then(res => {
that.executeCheck("didgrp.blk.lcrdoc").then(res => {
that.model.didgrp.blk.lcrdoc = res.data.didgrp_blk_lcrdoc;
callback()
})
......@@ -957,7 +957,7 @@ function checkDidgrpBlkLcrdocN1001(rule, value, callback) {
*/
function checkDidgrpRecTenmaxdayN1000(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.rec.tenmaxday").then(res => {
that.executeCheck("didgrp.rec.tenmaxday").then(res => {
//TODO
Utils.copyValueFromVO(this.model, res.data)
callback()
......@@ -997,7 +997,7 @@ function checkDidgrpBlkPreperN100(rule, value, callback) {
*/
function checkDidgrpAplAdrelcN100(rule, value, callback) {
const that = this;
that.exeuteCheck("didgrp.apl.adrelc").then(res => {
that.executeCheck("didgrp.apl.adrelc").then(res => {
callback()
})
}
......@@ -1035,7 +1035,7 @@ function checkDidgrpBlkAdlcndN100(rule, value, callback) {
*/
function checkLitameadvN100(rule, value, callback) {
const that = this;
that.exeuteCheck("litameadv").then(res => {
that.executeCheck("litameadv").then(res => {
callback()
})
this.model.ameadvrmk = ""
......
......@@ -152,6 +152,7 @@ export default class Utils {
static positioningErrorMsg(fieldErrors, formFields) {
let firstErrorItem = null
// 顺序
for (let i = 0; i < formFields.length; i++) {
const field = formFields[i];
for (const key in fieldErrors) {
......@@ -168,8 +169,8 @@ export default class Utils {
}
}
}
if (firstErrorItem) {
let firstErrorTab = null
if (firstErrorItem) {
let parentVC = firstErrorItem
while(!firstErrorTab) {
const tag = parentVC.$vnode.tag
......@@ -199,6 +200,7 @@ export default class Utils {
})
}, 0)
}
return firstErrorTab;
}
static defaultFunction(rule, value, callback){
......@@ -214,7 +216,7 @@ export default class Utils {
static reflectCheck(key){
return async function(rule, value, callback){
//调用具体的check
const res = await this.exeuteCheck(key)
const res = await this.executeCheck(key)
// if (res.respCode == SUCCESS){
// }
......
<template>
<div class="eibs-tab">
<el-col :span="12">
<el-form-item label="信用证概要" prop="didgrp.rec.nam">
<c-input
v-model="model.didgrp.rec.nam"
maxlength="40"
placeholder="请输入Externally Displayed Name to Identify the Contract"
></c-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="信用证金额" prop="didgrp.cbs.nom1.cur">
<c-select v-model="model.didgrp.cbs.nom1.cur" placeholder="币种">
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item
label=""
label-width="-20px !important"
prop="didgrp.cbs.nom1.amt"
>
<c-input
v-model="model.didgrp.cbs.nom1.amt"
placeholder="请输入信用证金额"
></c-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="指定银行" prop="didgrp.avbnam">
<c-input
v-model="model.didgrp.avbnam"
maxlength="40"
placeholder="请输入指定银行"
></c-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="兑付方式" prop="didgrp.rec.avbby">
<c-select
v-model="model.didgrp.rec.avbby"
style="width: 100%"
placeholder="请选择兑付方式"
>
</c-select>
</el-form-item>
</el-col>
<el-col :span="12">
<span v-text="model.bdtp.zchday" data-path=".bdtp.zchday"> </span>
</el-col>
<el-col :span="12">
<el-form-item label="Shipment Date" prop="didgrp.rec.shpdat">
<c-date-picker
type="date"
v-model="model.didgrp.rec.shpdat"
style="width: 100%"
placeholder="请选择Shipment Date"
></c-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="开证日期" prop="didgrp.rec.opndat">
<c-date-picker
type="date"
v-model="model.didgrp.rec.opndat"
style="width: 100%"
placeholder="请选择开证日期"
></c-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="到期日/到期地点">
<c-input
type="textarea"
v-model="model.didgrp.rec.expplc"
maxlength="35"
show-word-limit
placeholder="请输入到期日/到期地点"
></c-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="信用证类型" prop="didgrp.rec.lcrtyp">
<c-select
v-model="model.didgrp.rec.lcrtyp"
style="width: 100%"
placeholder="请选择信用证类型"
>
</c-select>
</el-form-item>
</el-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bdtudp/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [CommonProcess],
data() {
return {};
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item label="应付保证金金额" prop="liaall.liaccv.concur">
<c-input v-model="model.liaall.liaccv.concur" maxlength="3" placeholder="请输入应付保证金金额"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="合同金额" prop="liaall.liaccv.newamt">
<c-input v-model="model.liaall.liaccv.newamt" placeholder="请输入合同金额"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="保证金应收比例" style="marginLeft:-200px !important" prop="liaall.liaccv.cshpct">
<c-input v-model="model.liaall.liaccv.cshpct" placeholder="请输入保证金应收比例"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Reserved Amount" prop="liaall.liaccv.newresamt">
<c-input v-model="model.liaall.liaccv.newresamt" placeholder="请输入Reserved Amount"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="保证金实收比例" prop="liaall.liaccv.relcshpct">
<c-input v-model="model.liaall.liaccv.relcshpct" placeholder="请输入保证金实收比例"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.liaall.liaccv.gleflg">Create gle flag</c-checkbox>
</c-col>
<c-col :span="12">
<el-form-item label="reserve amount based percent" prop="liaall.liaccv.pctresamt">
<c-input v-model="model.liaall.liaccv.pctresamt" placeholder="请输入reserve amount based percent"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.liaall.liaccv.chgcurflg">Change currency flag</c-checkbox>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onLiaccvAdd">
Add
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onLiaccvDel">
Del
</c-button>
</c-col>
<c-col :span="12">
<el-form-item label="金额总和" prop="liaall.liaccv.totcovamt">
<c-input v-model="model.liaall.liaccv.totcovamt" placeholder="请输入金额总和"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Additional Information " prop="liaall.liaccv.addinf">
<c-input type="textarea" v-model="model.liaall.liaccv.addinf" maxlength="70" 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"
import Event from "~/model/Bdtudp/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [CommonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<span v-text="model.mtabut.coninf.oitinf.labinftxt" data-path=".mtabut.coninf.oitinf.labinftxt" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="Infotext" prop="mtabut.coninf.oitinf.oit.inftxt">
<c-input type="textarea" v-model="model.mtabut.coninf.oitinf.oit.inftxt" maxlength="60" show-word-limit placeholder="请输入Infotext" ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Infotext Level" prop="mtabut.coninf.oitinf.oit.inflev">
<c-select v-model="model.mtabut.coninf.oitinf.oit.inflev" style="width:100%" placeholder="请选择Infotext Level">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.mtabut.coninf.oitset.labinftxt" data-path=".mtabut.coninf.oitset.labinftxt" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="Infotext" prop="mtabut.coninf.oitset.oit.inftxt">
<c-input type="textarea" v-model="model.mtabut.coninf.oitset.oit.inftxt" maxlength="60" show-word-limit placeholder="请输入Infotext" ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Infotext Level" prop="mtabut.coninf.oitset.oit.inflev">
<c-select v-model="model.mtabut.coninf.oitset.oit.inflev" style="width:100%" placeholder="请选择Infotext Level">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="执行日期" prop="mtabut.coninf.conexedat">
<c-date-picker type="date" v-model="model.mtabut.coninf.conexedat" style="width:100%" placeholder="请选择执行日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="User ID" prop="mtabut.coninf.usr.extkey">
<c-input v-model="model.mtabut.coninf.usr.extkey" maxlength="8" placeholder="请输入User ID"></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"
import Event from "~/model/Bdtudp/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [CommonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-col :span="12">
<el-form-item label="Discrepancies">
<c-input type="textarea" v-model="model.bddgrp.blk.docdis" maxlength="50" show-word-limit placeholder="请输入Discrepancies" ></c-input>
<c-col :span="12">
<span v-text="model.trnmod.trndoc.advlabel" data-path=".trnmod.trndoc.advlabel" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="国内证落款" prop="trnmod.trndoc.advnam">
<c-input v-model="model.trnmod.trndoc.advnam" maxlength="50" placeholder="请输入国内证落款"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="修改申请人名称" prop="trnmod.trndoc.amdapl">
<c-input type="textarea" v-model="model.trnmod.trndoc.amdapl" maxlength="50" show-word-limit placeholder="请输入修改申请人名称" ></c-input>
</el-form-item>
</el-col>
</c-col>
<el-col :span="12">
<c-checkbox v-model="model.bddgrp.blk.docdisflg">discrepancies modified</c-checkbox>
</el-col>
<c-col :span="12">
<span v-text="model.trnmod.trndoc.amdnam" data-path=".trnmod.trndoc.amdnam" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="国内证通知书" prop="trnmod.trndoc.advdoc">
<c-input v-model="model.trnmod.trndoc.advdoc" maxlength="1" placeholder="请输入国内证通知书"></c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
......
<template>
<div class="eibs-tab">
<c-row>
<c-col :span="6">
<c-checkbox v-model="model.bddgrp.rec.igndisflg"
>Ignore Discrepancies</c-checkbox
>
<c-col :span="12">
<c-row>
<c-col :span="24">
<el-form-item label="不符点">
<c-input
type="textarea"
:rows="6"
v-model="model.bddgrp.blk.docdis"
maxlength="65"
show-word-limit
placeholder="请输入不符点"
></c-input>
</el-form-item>
</c-col>
<c-col :span="6">
<c-checkbox v-model="model.bddgrp.rec.approvcod"
>Documents on Approval Basis</c-checkbox
>
<c-col :span="24">
<el-form-item label="解释和结论">
<c-input
type="textarea"
:rows="4"
v-model="model.bddgrp.blk.comcon"
maxlength="65"
show-word-limit
placeholder="请输入解释和结论"
></c-input>
</el-form-item>
</c-col>
<c-col :span="6">
<c-checkbox v-model="model.bdtp.cre752flg">Create 752</c-checkbox>
<c-col :span="24">
<el-form-item label="到期付款确认备注">
<c-input
type="textarea"
:rows="2"
resize="none"
v-model="model.bddgrp.blk.accrmk"
maxlength="65"
show-word-limit
placeholder="请输入到期付款确认备注"
></c-input>
</el-form-item>
</c-col>
<c-col :span="6">
<c-checkbox v-model="model.bdtp.cre732flg">Create MT 732</c-checkbox>
<c-col :span="24">
<c-istream-table
:list="model.bdtp.docgrdm.docgrd"
:columns="columns"
>
</c-istream-table>
</c-col>
</c-row>
</c-col>
<!-- <c-col :span="12">
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="onDocdisButtxmsel"
<c-col :span="12">
<c-row>
<c-col :span="24">
<div class="c-checkbox">
<c-checkbox v-model="model.bddgrp.rec.igndisflg"
>忽略不符点</c-checkbox
>
</div>
</c-col>
<c-col :span="24">
<div class="c-checkbox">
<c-checkbox v-model="model.bddgrp.blk.docdisflg"
>录入不符点</c-checkbox
>
...
</c-button>
</c-col> -->
</div>
</c-col>
<c-col :span="12">
<el-form-item label="Type of Advice Received" prop="bddgrp.rec.advtyp">
<c-col :span="24">
<el-form-item label="收到的通知类型" prop="bddgrp.rec.advtyp">
<c-select
v-model="model.bddgrp.rec.advtyp"
style="width: 100%"
placeholder="请选择Type of Advice Received"
placeholder="请选择收到的通知类型"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="不符点通知日期" prop="bddgrp.rec.disdat">
<c-col :span="24">
<el-form-item label="付款日期" prop="bddgrp.rec.totdat">
<c-date-picker
type="date"
v-model="model.bddgrp.rec.disdat"
v-model="model.bddgrp.rec.totdat"
style="width: 100%"
placeholder="请选择不符点通知日期"
placeholder="请选择付款日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Comments and Conclusions">
<c-input
type="textarea"
v-model="model.bddgrp.blk.comcon"
maxlength="65"
show-word-limit
placeholder="请输入Comments and Conclusions"
></c-input>
<c-col :span="24">
<el-form-item label="不符点通知日期" prop="bddgrp.rec.disdat">
<c-date-picker
type="date"
v-model="model.bddgrp.rec.disdat"
style="width: 100%"
placeholder="请选择不符点通知日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<span
v-text="model.bdtp.docgrdm.docdsclab"
data-path=".bdtp.docgrdm.docdsclab"
<c-col :span="24">
<div class="c-checkbox">
<c-checkbox v-model="model.bddgrp.rec.approvcod"
>议付行担保议付</c-checkbox
>
</span>
</div>
</c-col>
<c-col :span="12">
<el-form-item label="到期付款确认备注">
<c-input
type="textarea"
v-model="model.bddgrp.blk.accrmk"
maxlength="65"
show-word-limit
placeholder="请输入到期付款确认备注"
></c-input>
</el-form-item>
<c-col :span="24">
<div class="c-checkbox">
<c-checkbox v-model="model.bdtp.cre752flg"
>Create MT 752</c-checkbox
>
</div>
</c-col>
<c-col :span="12">
<c-col :span="24">
<el-form-item label="Further Identification" prop="bdtp.furide">
<c-select
v-model="model.bdtp.furide"
......@@ -96,6 +128,16 @@
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<div class="c-checkbox">
<c-checkbox v-model="model.bdtp.cre732flg"
>Create MT 732</c-checkbox
>
</div>
</c-col>
</c-row>
</c-col>
</c-row>
</div>
</template>
......@@ -110,11 +152,22 @@ export default {
props: ["model", "codes"],
mixins: [CommonProcess],
data() {
return {};
return {
columns: [
"0 0 \"lst1\" 50 ",
"1 1 \"lst2\" 50",
"2 2 \"document\" 200",
],
};
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
.c-checkbox {
text-align: center;
margin: 10px;
font-size: 16px;
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item label="Sight Amount" prop="liaall.outamt">
<c-input v-model="model.liaall.outamt" placeholder="请输入Sight Amount"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Sight Amount Percentage" prop="liaall.outpct">
<c-input v-model="model.liaall.outpct" placeholder="请输入Sight Amount Percentage"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="External Booking Amount" prop="liaall.concur">
<c-input v-model="model.liaall.concur" maxlength="3" placeholder="请输入External Booking Amount"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Amount not yet assigned" prop="liaall.misamt">
<c-input v-model="model.liaall.misamt" placeholder="请输入Amount not yet assigned"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onLiaallButmisamt">
Add to Current Line
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onLiaallButmissig">
Add to Sight Amount
</c-button>
</c-col>
<c-col :span="12">
<el-form-item label="Old Amount booked externally" prop="liaall.exttotoldamt">
<c-input v-model="model.liaall.exttotoldamt" placeholder="请输入Old Amount booked externally"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Total booking amount external assinged" prop="liaall.exttotamt">
<c-input v-model="model.liaall.exttotamt" placeholder="请输入Total booking amount external assinged"></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"
import Event from "~/model/Bdtudp/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [CommonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item label="Booking stream to Display" prop="setmod.glemod.gleshwstm">
<c-input v-model="model.setmod.glemod.gleshwstm" placeholder="请输入Booking stream to Display"></c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
......
<template>
<div class="eibs-tab">
<!-- ====================左边======================= -->
<c-col :span="12">
<c-col :span="18">
<el-form-item
label="国内信用证项下开证授信额度:"
prop="liaall.limmod.limpts.wrk.pts.extkey"
>
<c-input
v-model="model.liaall.limmod.limpts.wrk.pts.extkey"
:disabled="true"
maxlength="16"
placeholder="请输入External Key of Address"
></c-input>
</el-form-item>
</c-col>
<c-col :span="6">
<div class="button_contains">
<c-button size="small" type="primary;width:10%" @click="onSeainf"
>i</c-button
>
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="onPreperButtxmsel"
>
Details
</c-button>
</div>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="liaall.limmod.limpts.wrk.pts.nam">
<c-input
v-model="model.liaall.limmod.limpts.wrk.pts.nam"
maxlength="16"
placeholder=""
:disabled="true"
style="width: 90%"
></c-input>
</el-form-item>
</c-col>
<c-col :span="18">
<el-form-item label="额度类型" prop="liaall.limmod.limpts.nonrevflg1">
<c-select
v-model="model.liaall.limmod.limpts.nonrevflg1"
style="width: 100%"
placeholder="请选择Flag to Mark Non-revolving Limits"
@change="nonrevflg1Change"
>
<el-option
v-for="item in codes.nonrevflg1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="6">
<div class="button_contains">
<c-button size="small" type="primary" @click="onLimptsGet1">
查询
</c-button>
</div>
</c-col>
<c-col :span="24">
<el-form-item label="合同流水号" prop="liaall.limmod.limpts.pfcod1">
<c-input
v-model="model.liaall.limmod.limpts.pfcod1"
maxlength="14"
placeholder="请输入合同流水号"
:disabled="this.model.liaall.limmod.limpts.nonrevflg1 != '2'"
style="width: 55%"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- ========================右边======================= -->
<c-col :span="12">
<c-col :span="24">
<el-form-item label="业务编号" prop="liaall.limmod.ownref">
<c-input
v-model="model.liaall.limmod.ownref"
maxlength="16"
placeholder="请输入国结业务编号"
:disabled="true"
style="width: 70%"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="业务余额" prop="liaall.limmod.comamt">
<c-input
v-model="model.liaall.limmod.comamt"
placeholder="请输入业务余额"
:disabled="true"
style="width: 70%"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="保证金余额" prop="liaall.limmod.ccvamt">
<c-input
v-model="model.liaall.limmod.ccvamt"
placeholder="请输入保证金余额"
:disabled="true"
style="width: 70%"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="22" :offset="1">
<c-table style="text-align: center" :data="tableData" :border="true">
<el-table-column label="可否串用" width="auto"> </el-table-column>
-->
<el-table-column label="序号" width="auto"> </el-table-column>
<el-table-column label="额度类型" width="auto"> </el-table-column>
<el-table-column label="入账机构" width="auto"> </el-table-column>
<el-table-column label="额度编号" width="auto"> </el-table-column>
<el-table-column label="额度明细编号" width="auto"> </el-table-column>
<el-table-column label="额度品种代码" width="auto"> </el-table-column>
<el-table-column label="品种代码描述" width="auto"> </el-table-column>
<el-table-column label="" width="auto"> </el-table-column>
</c-table>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bdtudp/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [CommonProcess],
data() {
return {
tableData: {},
};
},
methods: {
...Event,
nonrevflg1Change() {
if (this.model.liaall.limmod.limpts.nonrevflg1 == "1") {
this.model.liaall.limmod.limpts.pfcod1 = "";
}
},
},
created: function () {},
};
</script>
<style>
.button_contains {
display: flex;
text-align: center;
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item label="our reference" prop="setmod.ref">
<c-input v-model="model.setmod.ref" maxlength="16" placeholder="请输入our reference"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.setmod.docamttyplab" data-path=".setmod.docamttyplab" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="Type of settlement" prop="setmod.dspflg">
<c-select v-model="model.setmod.dspflg" style="width:100%" placeholder="请选择Type of settlement">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.setmod.xreflg">Recalculate Rates</c-checkbox>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSetmodDet">
细节
</c-button>
</c-col>
<c-col :span="12">
<span v-text="model.setmod.retmsg" data-path=".setmod.retmsg" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="自�'�区主�'�号" prop="setmod.zmqacc">
<c-input v-model="model.setmod.zmqacc" maxlength="20" placeholder="请输入自�'�区主�'�号"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.setmod.zmqacclab" data-path=".setmod.zmqacclab" > </span>
</c-col>
<c-col :span="12">
<span v-text="model.setmod.setglg.labdspflg" data-path=".setmod.setglg.labdspflg" > </span>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Bdtudp/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [CommonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
......@@ -20,40 +20,40 @@
<m-payp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000147 -->
<!-- <el-tab-pane label="PD000147" name="mt754p">
<m-mt754p :model="model" :codes="codes" />
</el-tab-pane> -->
<!--PD000062 -->
<el-tab-pane label="单据详情" name="docpre">
<m-docpre :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000139 -->
<!-- <el-tab-pane label="PD000139" name="mt750p">
<m-mt750p :model="model" :codes="codes" />
</el-tab-pane> -->
<!--PD000027 -->
<el-tab-pane label="或有" name="engp">
<m-engp :model="model" :codes="codes" :event="Event" />
</el-tab-pane>
<!--PD000137 -->
<!-- <el-tab-pane label="PD000137" name="ovwp">
<m-ovwp :model="model" :codes="codes" />
</el-tab-pane> -->
<!--PD000001 -->
<el-tab-pane label="保证金" name="ccvpan">
<m-ccvpan :model="model" :codes="codes" :event="Event" />
</el-tab-pane>
<!--PD000062 -->
<el-tab-pane label="不符点" name="docpre">
<m-docpre :model="model" :codes="codes" />
<el-tab-pane label="帐务" name="setpan">
<m-setpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000079 -->
<el-tab-pane label="明细" name="shpdet">
<m-shpdet :model="model" :codes="codes" />
<el-tab-pane label="分录" name="glepan">
<m-glepan :model="model" :codes="codes" ref="glepan" />
</el-tab-pane>
<!--PD000168 -->
<el-tab-pane label="信用证内容" name="brlip">
<m-brlip :model="model" :codes="codes" />
<el-tab-pane label="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000213 -->
<!-- <el-tab-pane label="PD000213" name="othadvtypp">
<m-othadvtypp :model="model" :codes="codes" />
</el-tab-pane> -->
<el-tab-pane label="报文及面函" name="docpan">
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="统一授信" name="limitbody">
<m-limitbody :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
<c-bus-button :$pntvm="this"></c-bus-button>
</el-form>
......@@ -62,29 +62,44 @@
</template>
<script>
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Default from "~/model/Ditopn/Default";
import Bdtudp from "~/model/Bdtudp";
import CommonProcess from "~/mixin/CommonProcess";
import Pattern from "~/model/Bdtudp/Pattern";
import Payp from "./Payp";
//import Mt754p from "./Mt754p";
//import Mt750p from "./Mt750p";
//import Ovwp from "./Ovwp";
import Ovwp from "./Ovwp";
import Docpre from "./Docpre";
import Shpdet from "./Shpdet";
import Brlip from "./Brlip";
//import Othadvtypp from "./Othadvtypp";
//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: {
"m-payp": Payp,
//"m-mt754p": Mt754p,
//"m-mt750p": Mt750p,
//"m-ovwp": Ovwp,
"m-payp": Payp,
"m-ovwp": Ovwp,
"m-docpre": Docpre,
"m-shpdet": Shpdet,
"m-brlip": Brlip,
//"m-othadvtypp": Othadvtypp,
"m-engp": Engp,
"m-ccvpan": Ccvpan,
"m-setpan": Setpan,
"m-glepan": Glepan,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-limitbody": Limitbody,
},
provide() {
return {
......@@ -95,11 +110,12 @@ export default {
data() {
return {
initPane: "payp",
trnName: "bdtudp",
model: new Bdtudp().data,
// defaultRule:Default,
// rules:this.mergeRules(Pattern,Check),
defaultRule: Default,
rules: Pattern,
codes: {},
Event: { ...Event },
codes: { ...CodeTable },
};
},
methods: {
......@@ -108,8 +124,12 @@ export default {
created: async function () {
console.log("进入bdtudp交易");
let rtnmsg = await Api.post("bdtudp/init", { params: {} });
if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//更新数据
Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
......
......@@ -172,15 +172,13 @@ export default {
},
methods:{
},
mounted:async function(){
created:async function(){
console.log("进入ditopn交易");
let rtnmsg = await this.init(this.$route.query)
if(rtnmsg.respCode == SUCCESS)
{
//更新数据
console.log(rtnmsg)
Utils.copyValueFromVO(this.model,rtnmsg.data)
console.log(this.model);
if(this.isInDisplay){
this.restoreDisplay()
}
......
<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>
<template>
<div class="eibs-tab">
<c-col :span="24">
<el-form-item :label="argadr.title" :prop="argadr.rol">
<c-input
v-model="model[argadr.rol]"
:placeholder="'请输入' + argadr.title + '角色'"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="BIC" :prop="argadr.url + 'extkey'">
<c-input
v-model="model[argadr.url + 'extkey']"
maxlength="16"
:placeholder="'请输入' + argadr.title + 'BIC'"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="联行行号" :prop="argadr.url + 'bankno'">
<c-input
v-model="model[argadr.url + 'bankno']"
maxlength="20"
placeholder="请输入联行行号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="联行行名" :prop="argadr.url + 'jigomc'">
<c-input
v-model="model[argadr.url + 'jigomc']"
maxlength="35"
placeholder="请输入联行行名"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="联行地址" :prop="argadr.url + 'dizhii'">
<c-input
type="textarea"
v-model="model[argadr.url + 'dizhii']"
maxlength="35"
placeholder="请输入联行地址"
></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"],
mixins: [CommonProcess],
props: ["model", "codes", "argadr"],
data() {
return {
data: [],
};
},
watch: {},
//methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<el-form-item :label="argadr.title + '编号'" :prop="argadr.url + 'ref'">
<c-input
v-model="model[argadr.url + 'ref']"
maxlength="16"
:placeholder="'请输入' + argadr.title + '编号'"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item :label="argadr.title + '名称'" :prop="argadr.url + 'nam'">
<c-input
v-model="model[argadr.url + 'nam']"
maxlength="40"
:placeholder="'请输入' + argadr.title + '名称'"
></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"],
mixins: [CommonProcess],
props: ["model", "codes", "argadr"],
data() {
return {
data: [],
};
},
watch: {},
// methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
......@@ -169,34 +169,46 @@
</c-col>
<c-col>
<el-dialog :visible.sync="dialogVisible" center>
<el-form :model="dialog">
<c-col>
<el-form :model="dialog" label-width="200px">
<c-col :span="16" >
<el-form-item label="收款人">
<el-select v-model="dialog.ptypay">
<el-select v-model="dialog.ptypay" style="width: 100%">
<el-option
v-for="item in codes.ptypay"
v-for="item in codes.payee"
:key="item.value"
:labelF="item.label"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="收款人摘要"
><c-input v-model="dialog.txtpay" />
</c-col>
<c-col :span="16">
<el-form-item label="收款人摘要">
<c-input v-model="dialog.txtpay" style="width: 100%"/>
</el-form-item>
</c-col>
<c-col :span="16">
<el-form-item label="付款人">
<el-select v-model="dialog.ptydbt">
<el-select v-model="dialog.ptydbt" style="width: 100%">
<el-option
v-for="item in codes.ptydbt"
:key="item.value"
:labelF="item.label"
:value="item.value"
/> </el-select
></el-form-item>
<el-form-item label="付款人摘要"
><c-input v-model="dialog.txtdbp" />
/>
</el-select>
</el-form-item>
</c-col>
<c-col :span="16">
<el-form-item label="付款人摘要">
<c-input v-model="dialog.txtdbp" style="width: 100%"/>
</el-form-item>
<el-form-item label="费用"
><c-select v-model="dialog.cur">
</c-col>
<c-col :span="16">
<c-col :span="18">
<el-form-item label="费用">
<c-select v-model="dialog.cur" style="width: 100%">
<el-option
v-for="item in codes.cur"
:key="item.value"
......@@ -204,21 +216,24 @@
:value="item.value"
/>
</c-select>
<c-input v-model="dialog.amt" style="width: 200px"
/></el-form-item>
<el-form-item label-width="10em">
<c-checkbox v-model="dialog.forflg"
>CG00005</c-checkbox
>
</el-form-item>
</c-col>
<c-col :span="6">
<el-form-item label="" label-width="20px">
<c-input v-model="dialog.amt" style="width: 100%"/>
</el-form-item>
</c-col>
</c-col>
<c-col :span="16">
<el-form-item>
<c-checkbox v-model="dialog.forflg">CG00005</c-checkbox>
</el-form-item>
</c-col>
</el-form>
</c-col>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="saveDialog"
>确 定</el-button
>
<el-button type="primary" @click="saveDialog">确 定</el-button>
<el-button @click="dialogVisible = false">取 消</el-button>
</span>
</el-dialog>
</c-col>
......@@ -292,7 +307,7 @@
</el-table-column>
</c-table>
</c-col>
<setpan-dialog v-if="dialogVisible2" :visible="dialogVisible2" :model="model" :idx="index" :codes="codes"/>
<setpan-dialog ref="setpanDialog" :model="model" :idx="index" :codes="codes"/>
<c-col :span="24" style="text-align: left">
<el-form-item label="Settlement:" label-width="100px">
</el-form-item>
......@@ -403,7 +418,6 @@ export default {
data() {
return {
dialogVisible: false,
dialogVisible2: false,
dialog: {
payee: "",
ptydbt: "",
......@@ -449,10 +463,12 @@ export default {
},
// 第三个表格
detail2(index, row) {
this.executeRule("det").then(res=>{
this.dialogVisible2 = true;
this.index = index;
this.dialog2 = row
const that = this;
that.executeRule("det").then(res=>{
that.$refs.setpanDialog.visiable = true;
that.$refs.setpanDialog.formData = Object.assign({}, that.model.setmod.setfeg.setfel[index]);
that.index = index;
that.dialog2 = row
})
},
},
......
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