Commit 112e655e by liuxin

detsel补充单据部分

parent 5a085abd
......@@ -129,7 +129,7 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"bfdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -228,7 +228,7 @@ export default {
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"bfdgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......
<template>
<c-row>
<c-col :span="24">
<c-col :span="11">
<c-col :span="12">
<el-form-item label="信用证编号" prop="dedgrp.rec.ownref">
<c-fullbox>
<c-input
......@@ -25,7 +25,7 @@
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<c-col :span="12">
<el-form-item label="摘要" prop="dedgrp.rec.nam">
<c-input
v-model="model.dedgrp.rec.nam"
......@@ -37,8 +37,10 @@
</c-col>
</c-col>
<!-- 信用证 -->
<div v-if="hotreg == 1 || hotreg == 2">
<c-col :span="24">
<c-col :span="11">
<c-col :span="12">
<c-col :span="24">
<el-form-item label="信用证金额" prop="dedgrp.cbs.nom1.cur">
<c-input
......@@ -150,7 +152,7 @@
</c-col>
</c-col>
<c-col :span="11" :offset="1">
<c-col :span="12">
<c-col :span="24">
<el-form-item
label="受益人参考号"
......@@ -235,6 +237,114 @@
</c-col>
</c-col>
</c-col>
</div>
<!-- 单据 -->
<div v-if="hotreg == 3 || hotreg == 4">
<c-col :span="24">
<!-- Left -->
<c-col :span="12">
<c-col :span="24">
<el-form-item label="单据业务编号" prop="bfdgrp.rec.ownref">
<c-input v-model="model.bfdgrp.rec.ownref" maxlength="16" @keyup.enter.native="showGridPromptDialog('bfdgrp.rec.ownref')" placeholder="请输入单据业务编号"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="单据金额" prop="bfdgrp.cbs.max.cur">
<c-input v-model="model.bfdgrp.cbs.max.cur" maxlength="3" placeholder="请输入单据金额"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="5px" prop="bfdgrp.cbs.max.amt">
<c-input
v-model="model.bfdgrp.cbs.max.amt"
placeholder="请输入Balance"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="单据金额" prop="bfdgrp.cbs.opn1.cur">
<c-input v-model="model.bfdgrp.cbs.opn1.cur" maxlength="3" placeholder="请输入单据金额"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="5px" prop="bfdgrp.cbs.opn1.amt">
<c-input
v-model="model.bfdgrp.cbs.opn1.amt"
placeholder="请输入Balance"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
<c-input v-model="model.bfdgrp.rec.doctypcod" maxlength="1" placeholder="请输入单据类型"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="远期单据到期日" prop="bfdgrp.rec.orddat">
<c-date-picker type="date" v-model="model.bfdgrp.rec.orddat" style="width:100%" placeholder="请选择远期单据到期日"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="寄单日期" prop="dfdgrp.rec.opndat">
<c-date-picker type="date" v-model="model.dfdgrp.rec.opndat" style="width:100%" placeholder="请选择代付日期"></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="到单日期" prop="bfdgrp.rec.rcvdat">
<c-date-picker type="date" v-model="model.bfdgrp.rec.rcvdat" style="width:100%" placeholder="请选择到单日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="提示日期" prop="bfdgrp.rec.predat">
<c-date-picker type="date" v-model="model.bfdgrp.rec.predat" style="width:100%" placeholder="请选择Presentation Date"></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="单据状态" prop="bfdgrp.rec.docsta">
<c-input v-model="model.bfdgrp.rec.docsta" maxlength="40" placeholder="请输入单据状态"></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- Right -->
<c-col :span="12">
<c-col :span="24">
<el-form-item label="摘要" prop="bfdgrp.rec.nam">
<c-input v-model="model.bfdgrp.rec.nam" maxlength="40" placeholder="请输入Externally Displayed Name to Identify the Contract"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptsmsg
:model="model"
:argadr="{ title: '交单行', grp: 'bfdgrp', rol: 'prb' }"
></c-ptsmsg>
</c-col>
<c-col :span="24">
<c-ptsmsg
:model="model"
:argadr="{ title: '开证行', grp: 'bfdgrp', rol: 'iss' }"
></c-ptsmsg>
</c-col>
<c-col :span="24">
<c-ptsmsg
:model="model"
:argadr="{ title: '申请人', grp: 'bfdgrp', rol: 'apl' }"
></c-ptsmsg>
</c-col>
</c-col>
</c-col>
</div>
<!-- ========================操作菜单================== -->
<c-col :span="23">
......@@ -246,10 +356,10 @@
<el-tabs tab-position="right" @tab-click="onTabClick">
<el-tab-pane
v-for="it in meum"
:key="it.label"
:key="it.key"
:label="it.label"
>
<sel-mune :data="it.item" :model="model" />
<sel-mune :data="meumItem" :model="model" />
</el-tab-pane>
</el-tabs>
</c-col>
......@@ -261,9 +371,14 @@ import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letsel/Event";
import SelMune from "./SelMune.vue";
import Ptsmsg from "~/views/Public/Ptsmsg";
export default {
components: { SelMune },
components: {
SelMune,
"c-ptsmsg": Ptsmsg,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
......@@ -272,267 +387,57 @@ export default {
hotreg: "1",
meum: [
{
label: "信用证",
item: [
{
title: "Pre-Advising/Notifying",
url: "/business/letrsv",
disabled: false,
},
{
title: "Advising/Confirming",
url: "/business/letopn",
hotsubx: "6",
disabled: false,
},
{ title: "Reservation", url: "#", disabled: false },
{
title: "Resevation & Receving Docs",
url: "#",
disabled: false,
label:'信用证',
key:1
},
{
title: "Confirmation an Export L/C",
url: "#",
disabled: true,
label:'信用证其他',
key:2
},
{
title: "Amending Issuing Bank",
url: "/business/letame",
hotsubx: "6",
disabled: false,
label:'单据',
key:3
},
{
title: "Changing Issuing Bank",
url: "#",
disabled: true,
label:'单据其他',
key:4
},
{ title: "Receiving Docs", url: "#", disabled: true },
],
},
{
label: "Others",
item: [
{
title: "Charge Settlement",
url: "#",
disabled: true,
label:'融资',
key:5
},
{ title: "Attachment", url: "#", disabled: true },
{
title: "Editing References",
url: "#",
disabled: true,
},
{ title: "Common Message", url: "#", disabled: true },
{ title: "Cancelling", url: "#", disabled: true },
{ title: "Re_Opening", url: "#", disabled: true },
],
label:'融资其他',
key:6
},
{
label: "Docs",
item: [
{ title: "Correct Drawing", url: "#", disabled: true },
{
title: "Processing Discrepant Docs",
url: "#",
disabled: true,
},
{
title: "Sending Documents",
url: "#",
disabled: true,
label:'同业代付',
key:7
},
{
title: "Changing Maturity",
url: "#",
disabled: true,
},
{ title: "Funds Settlement", url: "#", disabled: true },
{ title: "Reimbursement", url: "#", disabled: true },
],
},
{
label: "Oth.Docs",
item: [
{
title: "Charge Settlement",
url: "#",
disabled: true,
},
{ title: "Attachment", url: "#", disabled: true },
{
title: "Confirmation Limit Canclling",
url: "#",
disabled: true,
},
{
title: "Editing Reference",
url: "#",
disabled: true,
},
{ title: "Common Message", url: "#", disabled: true },
{ title: "Cancelling", url: "#", disabled: true },
{ title: "Re_Opening", url: "#", disabled: true },
],
},
{
label: "Advance",
item: [
{
title: "Creating an Advance",
url: "#",
disabled: true,
},
{
title: "Amending an Advance",
url: "#",
disabled: true,
},
{
title: "Setting an Advance",
url: "#",
disabled: true,
},
{ title: "递延收益冲销", url: "#", disabled: true },
{
title: "资产转卖收入或损失确认",
url: "#",
disabled: true,
},
{ title: "Cancelling", url: "#", disabled: true },
],
},
{
label: "Oth.Advance",
item: [
{
title: "Charge Settlement",
url: "#",
disabled: true,
},
{ title: "Attachment", url: "#", disabled: true },
{
title: "Editing References",
url: "#",
disabled: true,
},
{
title: "Engagement Adjustment",
url: "#",
disabled: true,
},
{ title: "Common Messages", url: "#", disabled: true },
],
},
{
label: "Transfer",
item: [
{
title: "Opening a Transfer L/C",
url: "/business/lttopn",
hotsubx: "1",
disabled: false,
},
{
title: "Amenting a Transfer L/C",
url: "#",
disabled: true,
},
{
title: "Receiving Docs from 2nd Benfic",
url: "#",
disabled: true,
},
],
},
{
label: "Oth.Transfer",
item: [
{
title: "Charge Settlement",
url: "#",
disabled: true,
},
{ title: "Attachment", url: "#", disabled: true },
{
title: "Editing References",
url: "#",
disabled: true,
},
{ title: "Common Messages", url: "#", disabled: true },
{ title: "Cancelling", url: "#", disabled: true },
{ title: "Re_Opening", url: "#", disabled: true },
],
},
{
label: "L/T Docs",
item: [
{
title: "Receiving Docs from 1st Benfic",
url: "#",
disabled: true,
},
{ title: "Correct Drawing", url: "#", disabled: true },
{
title: "Processing discrepant Docs",
url: "#",
disabled: true,
},
{
title: "Sending Documents",
url: "#",
disabled: true,
},
{
title: "Changing Maturity",
url: "#",
disabled: true,
},
{ title: "funds Settlement", url: "#", disabled: true },
{
title: "Reimbursement Clain",
url: "#",
disabled: true,
},
],
},
{
label: "Oth.L/T Docs",
item: [
{
title: "Charge Settlement",
url: "#",
disabled: true,
},
{ title: "Attachment", url: "#", disabled: true },
{
title: "Editing References",
url: "#",
disabled: true,
},
{ title: "Common Messages", url: "#", disabled: true },
{ title: "Cancelling", url: "#", disabled: true },
{ title: "Re_Opening", url: "#", disabled: true },
],
},
label:'其他',
key:8
}
],
};
},
methods: {
...Event,
//各入口按钮请求
async onTabClick(tab, event) {
switch (tab.label) {
case "Transfer":
this.hotreg = "9";
async onTabClick(tab) {
var label = tab.label;
var key = 1;
var meum = this.meum;
for(let i = 0; i < meum.length; i++){
if(meum[i].label == label){
key = meum[i].key;
break;
default:
this.hotreg = "1";
}
let rtnmsg = await this.executeRule(`cfgfil.hotreg${this.hotreg}`);
}
this.hotreg = key;
let rtnmsg = await this.executeRule(`cfgfil.hotreg${key}`);
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
this.updateModel(rtnmsg.data)
} else {
this.$notify.error({
title: "错误",
......@@ -541,7 +446,11 @@ export default {
}
},
},
created: function () {},
computed: {
meumItem() {
return this.model.cfgfil.btnstm.rows || []
}
}
};
</script>
<style>
......
<template>
<el-table
:data="data"
:data="tableData"
border
stripe
:show-header="false"
:cell-style="cellSttyle"
>
<el-table-column prop="title" align="center">
<el-table-column prop="label" align="center">
<template slot-scope="scope">
<c-button
@click.native="onNarBtnClick(scope.row.url, scope.row.hotsubx)"
:title="scope.row.title"
@click.native="onNarBtnClick(scope.row.url)"
:label="scope.row.label"
:disabled="scope.row.disabled"
>{{ scope.row.title }}</c-button
>{{ scope.row.label }}</c-button
>
<!-- <el-link
:disabled="scope.row.disabled"
......@@ -34,18 +34,49 @@ export default {
data() {
return {
cellSttyle: { height: "25px" },
meumItem: [],
};
},
methods: {
//各入口按钮请求
async onNarBtnClick(href, hotsubx) {
let rtnmsg = await this.executeRule(`cfgfil.hotsub${hotsubx}`);
console.log("cfgfil.code:" + this.model.cfgfil[`subtrn${hotsubx}`]);
if ((rtnmsg.respCode == SUCCESS)) {
this.$router.history.push(href);
async onNarBtnClick(url) {
let rtnmsg = await this.executeRule("dedgrp.rec.ownref,cfgfil.hotsub7");
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
this.$router.history.push("/business/" + url);
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
// let rtnmsg = await this.executeRule(`cfgfil.hotsub${hotsubx}`);
// console.log("cfgfil.code:" + this.model.cfgfil[`subtrn${hotsubx}`]);
// if (rtnmsg.respCode == SUCCESS) {
// this.$router.history.push(href);
// } else {
// this.$notify.error({
// title: "错误",
// message: "服务请求失败!",
// });
// }
},
},
computed: {
tableData() {
const arr = [];
var data = this.data;
for (let i = 0; i < data.length; i++) {
const items = data[i].split("\t");
arr.push({
url: items[0],
label: items[1],
disabled: items[2] == "N" ? true : false,
other: items[3],
});
}
console.log(arr);
return arr;
},
},
};
......
<template>
<div class="eibs-tab">
<!-- <div class="eibs-tab"> -->
<div>
<c-col :span="24">
<el-form-item :label="argadr.title + '编号'" :prop="argadr.url + 'ref'">
<el-form-item :label="argadr.title + '编号'" :prop="'${argadr.grp}.${argadr.rol}.pts.ref'">
<c-input
v-model="model[argadr.url + 'ref']"
v-model="model[argadr.grp][argadr.rol].pts.ref"
maxlength="16"
:placeholder="'请输入' + argadr.title + '编号'"
:disabled="disabled"
......@@ -12,9 +13,9 @@
</c-col>
<c-col :span="24">
<el-form-item :label="argadr.title + '名称'" :prop="argadr.url + 'nam'">
<el-form-item :label="argadr.title + '名称'" :prop="'${argadr.grp}.${argadr.rol}.pts.nam'">
<c-input
v-model="model[argadr.url + 'nam']"
v-model="model[argadr.grp][argadr.rol].pts.nam"
maxlength="40"
:placeholder="'请输入' + argadr.title + '名称'"
:disabled="disabled"
......
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