Commit 865451b3 by wangren
parents 4528d2c4 7e210f48
......@@ -147,7 +147,7 @@ export default {
{ max: 3, message: "长度不能超过3" }
],
"dedgrp.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位" }
],
......
......@@ -16,7 +16,7 @@ export default {
{ max: 3, message: "长度不能超过3" }
],
"dedgrp.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位" }
],
......@@ -106,7 +106,7 @@ export default {
{ max: 40, message: "长度不能超过40" }
],
"strinf": [
{ type: "string", required: true, message: "必输项" },
{ type: "string", required: false, message: "必输项" },
{ max: 50, message: "长度不能超过50" }
],
......
......@@ -16,7 +16,7 @@ export default {
{ max: 3, message: "长度不能超过3" }
],
"dedgrp.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位" }
],
......
......@@ -6,11 +6,11 @@
<c-col :span="20">
<el-form-item
label="参考号"
prop="bfdgrp.rec.ownref"
prop="dedgrp.rec.ownref"
style="width: 100%"
>
<c-input
v-model="model.bfdgrp.rec.ownref"
v-model="model.dedgrp.rec.ownref"
maxlength="16"
placeholder="请输入参考号"
style="width: 95%"
......@@ -26,6 +26,7 @@
size="small"
type="primary"
@click="onSeainf"
disabled
>
<span
style="font-size: 15px; font-family: '宋体'; font-weight: bold"
......@@ -74,6 +75,7 @@
size="small"
type="primary"
@click="onSeainf"
disabled
>
<span
style="font-size: 15px; font-family: '宋体'; font-weight: bold"
......@@ -141,12 +143,20 @@
</c-col>
<c-col :span="24">
<el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
<c-input
<c-select
v-model="model.bfdgrp.rec.doctypcod"
maxlength="1"
style="width: 100%"
placeholder="请输入单据类型"
disabled
></c-input>
>
<el-option
v-for="item in codes.doctypcod"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -187,12 +197,20 @@
</c-col>
<c-col :span="24">
<el-form-item label="单据状态" prop="bfdgrp.rec.docsta">
<c-input
<c-select
v-model="model.bfdgrp.rec.docsta"
maxlength="40"
style="width: 100%"
placeholder="请输入单据状态"
disabled
></c-input>
>
<el-option
v-for="item in codes.docsta"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
......@@ -201,9 +219,9 @@
<c-col :span="12">
<c-col :span="24">
<c-col :span="12">
<el-form-item label="信用证余额" prop="bfdgrp.cbs.opn1.cur">
<el-form-item label="信用证余额" prop="dedgrp.cbs.opn1.cur">
<c-input
v-model="model.bfdgrp.cbs.opn1.cur"
v-model="model.dedgrp.cbs.opn1.cur"
maxlength="3"
placeholder="请输入信用证余额"
disabled
......@@ -211,9 +229,9 @@
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="5px" prop="bfdgrp.cbs.opn1.amt">
<el-form-item label="" label-width="5px" prop="dedgrp.cbs.opn1.amt">
<c-input
v-model="model.bfdgrp.cbs.opn1.amt"
v-model="model.dedgrp.cbs.opn1.amt"
placeholder="请输入Balance"
disabled
></c-input>
......@@ -236,14 +254,14 @@
<c-ptsmsg
:model="model"
:argadr="{
title: '交单',
title: '交单',
grp: 'bfdgrp',
rol: 'prb',
}"
:disabled="true"
></c-ptsmsg>
</c-col>
<c-col :span="24">
<!-- <c-col :span="24">
<c-ptsmsg
:model="model"
:argadr="{
......@@ -253,6 +271,27 @@
}"
:disabled="true"
></c-ptsmsg>
</c-col> -->
<c-col :span="24">
<el-form-item label="开证行编号" prop="dedgrp.rec.kzref">
<c-input
v-model="model.dedgrp.rec.kzref"
maxlength="16"
placeholder="'请输入开证行编号'"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="开证行名称" prop="bfdgrp.iss.pts.nam">
<c-input
v-model="model.bfdgrp.iss.pts.nam"
maxlength="40"
placeholder="'请输入开证行名称'"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptsmsg
......
......@@ -102,6 +102,7 @@ export default {
pattern: Pattern,
rules: null,
codes: {
...CodeTable
},
}
},
......
<template>
<div class="eibs-tab">
<!-- left -->
<!-- left -->
<c-col :span="12">
<c-col :span="24">
<c-col :span="20">
<el-form-item
label="参考号"
prop="bfdgrp.rec.ownref"
prop="dedgrp.rec.ownref"
style="width: 100%"
>
<c-input
v-model="model.bfdgrp.rec.ownref"
v-model="model.dedgrp.rec.ownref"
maxlength="16"
placeholder="请输入参考号"
style="width: 95%"
......@@ -139,26 +139,48 @@
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
<c-input
<c-select
v-model="model.bfdgrp.rec.doctypcod"
maxlength="1"
style="width: 100%"
placeholder="请输入单据类型"
disabled
></c-input>
>
<el-option
v-for="item in codes.doctypcod"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="远期单据到期日" prop="bfdgrp.rec.matdat">
<c-date-picker
type="date"
v-model="model.bfdgrp.rec.matdat"
style="width: 100%"
placeholder="请选择远期单据到期日"
disabled
></c-date-picker>
</el-form-item>
<c-col :span="12">
<el-form-item label="到期日" prop="bfdgrp.rec.matdat">
<c-date-picker
type="date"
v-model="model.bfdgrp.rec.matdat"
style="width: 100%"
placeholder="请选择到期日"
disabled
></c-date-picker>
</el-form-item>
</c-col>
<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="请选择寄单日期"
disabled
></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
......@@ -186,12 +208,20 @@
</c-col>
<c-col :span="24">
<el-form-item label="单据状态" prop="bfdgrp.rec.docsta">
<c-input
<c-select
v-model="model.bfdgrp.rec.docsta"
maxlength="40"
style="width: 100%"
placeholder="请输入单据状态"
disabled
></c-input>
>
<el-option
v-for="item in codes.docsta"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
......@@ -200,9 +230,9 @@
<c-col :span="12">
<c-col :span="24">
<c-col :span="12">
<el-form-item label="信用证余额" prop="bfdgrp.cbs.opn1.cur">
<el-form-item label="信用证余额" prop="dedgrp.cbs.opn1.cur">
<c-input
v-model="model.bfdgrp.cbs.opn1.cur"
v-model="model.dedgrp.cbs.opn1.cur"
maxlength="3"
placeholder="请输入信用证余额"
disabled
......@@ -210,9 +240,9 @@
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="5px" prop="bfdgrp.cbs.opn1.amt">
<el-form-item label="" label-width="5px" prop="dedgrp.cbs.opn1.amt">
<c-input
v-model="model.bfdgrp.cbs.opn1.amt"
v-model="model.dedgrp.cbs.opn1.amt"
placeholder="请输入Balance"
disabled
></c-input>
......@@ -242,7 +272,7 @@
:disabled="true"
></c-ptsmsg>
</c-col>
<c-col :span="24">
<!-- <c-col :span="24">
<c-ptsmsg
:model="model"
:argadr="{
......@@ -252,6 +282,27 @@
}"
:disabled="true"
></c-ptsmsg>
</c-col> -->
<c-col :span="24">
<el-form-item label="开证行编号" prop="dedgrp.rec.kzref">
<c-input
v-model="model.dedgrp.rec.kzref"
maxlength="16"
placeholder="'请输入开证行编号'"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="开证行名称" prop="bfdgrp.iss.pts.nam">
<c-input
v-model="model.bfdgrp.iss.pts.nam"
maxlength="40"
placeholder="'请输入开证行名称'"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptsmsg
......@@ -289,12 +340,11 @@
</c-col> -->
<c-col :span="4">
<el-form-item label="" prop="sndmsg">
<c-checkbox v-model="sndmsg"
>发送Message</c-checkbox>
</el-form-item>
</c-col>
<el-form-item label="" prop="sndmsg">
<c-checkbox v-model="sndmsg">发送Message</c-checkbox>
</el-form-item>
</c-col>
<!-- <c-col :span="24">
<el-form-item label="Booking Procedure" prop="rebkpflg">
<c-select
......@@ -305,24 +355,24 @@
</c-select>
</el-form-item>
</c-col> -->
<c-col :span="12">
<el-form-item label="Booking Procedure" prop="rebkpflg">
<c-select
v-model="model.rebkpflg"
style="width: 100%"
placeholder="请选择Booking Procedure"
<c-col :span="24">
<el-form-item label="Booking Procedure" prop="rebkpflg">
<c-select
v-model="model.rebkpflg"
style="width: 100%"
placeholder="请选择Booking Procedure"
>
<el-option
v-for="item in codes.rebkpflg"
:key="item.value"
:label="item.label"
:value="item.value"
>
<el-option
v-for="item in codes.rebkpflg"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="Drag Drop Sender" prop="bftp0.dedget.sdamod.dadsnd">
<c-input
......@@ -644,8 +694,8 @@ export default {
data() {
return {};
},
computed:{
sndmsg: {
computed: {
sndmsg: {
get() {
return this.model.sndmsg === "X";
},
......@@ -653,7 +703,7 @@ export default {
this.model.sndmsg = val ? "X" : "";
},
},
flag() {
flag() {
return this.model.mtabut.coninf.usr.extkey == "";
},
},
......
......@@ -6,11 +6,11 @@
<c-col :span="20">
<el-form-item
label="参考号"
prop="bfdgrp.rec.ownref"
prop="dedgrp.rec.ownref"
style="width: 100%"
>
<c-input
v-model="model.bfdgrp.rec.ownref"
v-model="model.dedgrp.rec.ownref"
maxlength="16"
placeholder="请输入参考号"
style="width: 95%"
......
......@@ -293,6 +293,7 @@
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptsmsg
:model="model"
......
......@@ -6,11 +6,11 @@
<c-col :span="20">
<el-form-item
label="参考号"
prop="bfdgrp.rec.ownref"
prop="dedgrp.rec.ownref"
style="width: 100%"
>
<c-input
v-model="model.bfdgrp.rec.ownref"
v-model="model.dedgrp.rec.ownref"
maxlength="16"
placeholder="请输入参考号"
style="width: 95%"
......@@ -143,12 +143,20 @@
</c-col>
<c-col :span="24">
<el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
<c-input
<c-select
v-model="model.bfdgrp.rec.doctypcod"
maxlength="1"
style="width: 100%"
placeholder="请输入单据类型"
disabled
></c-input>
>
<el-option
v-for="item in codes.doctypcod"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -188,12 +196,20 @@
</c-col>
<c-col :span="24">
<el-form-item label="单据状态" prop="bfdgrp.rec.docsta">
<c-input
<c-select
v-model="model.bfdgrp.rec.docsta"
maxlength="40"
style="width: 100%"
placeholder="请输入单据状态"
disabled
></c-input>
>
<el-option
v-for="item in codes.docsta"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
......@@ -295,18 +311,17 @@
</c-col>
<!-- next part -->
<c-col :span="24" style="margin-bottom: 35px">
<c-istream-table
:list="model.liaall.tenstm.rows || []"
:columns="stmData.columns"
:showSelection="true"
v-on:multipleSelect="multipleSelect"
>
</c-istream-table>
</c-col>
<!-- left -->
<c-col :span="12">
<c-col :span="24" style="margin-bottom:35px">
<c-istream-table
:list="model.liaall.tenstm.rows || []"
:columns="stmData.columns"
:showSelection="true"
v-on:multipleSelect="multipleSelect"
>
</c-istream-table>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="付款金额" prop="bfdgrp.cbs.opn1.cur">
......@@ -393,40 +408,19 @@
</el-form-item>
</c-col>
</c-col>
<c-col :span="24" style="height: 24px; margin-top: 20px">
<el-form-item label="融资金额" class="messageLabel"> </el-form-item>
</c-col>
<c-col :span="24" style="height: 0px; margin-top: 5px">
<el-divider></el-divider>
</c-col>
<c-col :span="24">
<c-table :data="model.bptbck.bptbckg" style="width: 100%">
<el-table-column prop="ownref" label="Reference" width="195px">
</el-table-column>
<el-table-column prop="opncur" label="Cur" width="195px">
</el-table-column>
<el-table-column prop="opnamt" label="Open amount" width="195px">
</el-table-column>
<el-table-column prop="bckamt" label="Pay back now" width="195px">
</el-table-column>
</c-table>
</c-col>
</c-col>
<!-- right -->
<c-col :span="12">
<c-col :span="24">
<el-form-item label="" prop="clsflg">
<c-checkbox v-model="clsflg"
>闭卷</c-checkbox>
<c-checkbox v-model="clsflg">闭卷</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="frepayflg">
<c-checkbox v-model="frepayflg"
>无偿放单</c-checkbox>
<c-checkbox v-model="frepayflg">无偿放单</c-checkbox>
</el-form-item>
</c-col>
......@@ -463,15 +457,35 @@
<c-col :span="24">
<el-form-item label="SG000254" prop="bpdgrp.rec.ffttyp">
<c-input
v-model="model.bpdgrp.rec.ffttyp"
maxlength="40"
placeholder="请输入SG000254"
disabled
></c-input>
v-model="model.bpdgrp.rec.ffttyp"
maxlength="40"
placeholder="请输入SG000254"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24" style="height: 24px; margin-top: 20px">
<el-form-item label="融资金额" class="messageLabel"> </el-form-item>
</c-col>
<c-col :span="24" style="height: 0px; margin-top: 5px">
<el-divider></el-divider>
</c-col>
<c-col :span="24">
<c-table :data="model.bptbck.bptbckg" style="width: 100%">
<el-table-column prop="ownref" label="Reference" width="389px">
</el-table-column>
<el-table-column prop="opncur" label="Cur" width="389px">
</el-table-column>
<el-table-column prop="opnamt" label="Open amount" width="389px">
</el-table-column>
<el-table-column prop="bckamt" label="Pay back now" width="389px">
</el-table-column>
</c-table>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="Drag Drop Sender" prop="bftp.dedget.sdamod.dadsnd">
......@@ -843,18 +857,18 @@ export default {
return {
stmData: {
columns: [
'1 1 "Type" 130',
'2 2 "Dbt" 130',
'3 3 "Cdt" 130',
'4 4 "Cur" 130',
'5 5 "Amt" 130 2 8 1 4',
'6 6 "Mat.Dat." 130 4 7 1',
'1 1 "Type" 250',
'2 2 "Dbt" 250',
'3 3 "Cdt" 250',
'4 4 "Cur" 250',
'5 5 "Amt" 250 2 8 1 4',
'6 6 "Mat.Dat." 250 4 7 1',
],
data: [],
},
};
},
computed:{
computed: {
clsflg: {
get() {
return this.model.mtabut.clsflg === "C";
......@@ -863,7 +877,7 @@ export default {
this.model.mtabut.clsflg = val ? "C" : "O";
},
},
frepayflg:{
frepayflg: {
get() {
return this.model.bfdgrp.rec.frepayflg === "O";
},
......@@ -875,16 +889,16 @@ export default {
return this.model.mtabut.coninf.usr.extkey == "";
},
},
methods: {
methods: {
...Event,
multipleSelect(selection) {
console.log(selection)
console.log(selection);
if (selection) {
const rtnmsg = this.executeRule('tenstm')
this.updateModel(rtnmsg.data)
const rtnmsg = this.executeRule("tenstm");
this.updateModel(rtnmsg.data);
}
}
},
},
},
created: function () {},
};
</script>
......
......@@ -49,6 +49,7 @@
style="margin-left: 10px; padding: 0 10px"
size="small"
type="primary"
disabled
>
...
</c-button>
......@@ -97,13 +98,14 @@
maxlength="50"
show-word-limit
placeholder="请输入不符点"
disabled
:disabled="!docdisflg"
></c-input>
<template slot="footer">
<c-button
style="margin-left: 10px; padding: 0 10px"
size="small"
type="primary"
:disabled="!docdisflg"
>
...
</c-button>
......@@ -111,10 +113,7 @@
</c-fullbox>
</el-form-item>
</c-col>
</c-col>
<!-- right -->
<c-col :span="12">
<c-col :span="24">
<el-form-item label="寄单状态" prop="bftp.folwupopt">
<c-fullbox>
......@@ -133,7 +132,7 @@
</c-select>
<template slot="footer">
<c-checkbox
v-model="model.bfdgrp.blk.docdisflg"
v-model="docdisflg"
style="margin-left: 10px"
>录入不符点</c-checkbox
>
......@@ -141,6 +140,10 @@
</c-fullbox>
</el-form-item>
</c-col>
</c-col>
<!-- right -->
<c-col :span="12">
<c-col :span="24">
<el-form-item label="" prop="approvcod">
......@@ -442,6 +445,14 @@ export default {
this.model.bfdsnd.ingdsc = val ? "Y" : "";
},
},
docdisflg:{
get() {
return this.model.bfdgrp.blk.docdisflg != "";
},
set(val) {
this.model.bfdgrp.blk.docdisflg = val ? "X" : "";
},
}
},
methods: { ...Event },
created: function () {},
......
......@@ -32,6 +32,7 @@
style="margin-left: 10px; padding: 0 10px"
size="small"
type="primary"
disabled
>
...
</c-button>
......@@ -74,6 +75,7 @@
style="margin-left: 10px; padding: 0 10px"
size="small"
type="primary"
disabled
>
...
</c-button>
......
......@@ -6,11 +6,11 @@
<c-col :span="20">
<el-form-item
label="参考号"
prop="bfdgrp.rec.ownref"
prop="dedgrp.rec.ownref"
style="width: 100%"
>
<c-input
v-model="model.bfdgrp.rec.ownref"
v-model="model.dedgrp.rec.ownref"
maxlength="16"
placeholder="请输入参考号"
style="width: 95%"
......@@ -141,12 +141,20 @@
</c-col>
<c-col :span="24">
<el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
<c-input
<c-select
v-model="model.bfdgrp.rec.doctypcod"
maxlength="1"
style="width: 100%"
placeholder="请输入单据类型"
disabled
></c-input>
>
<el-option
v-for="item in codes.doctypcod"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -187,12 +195,20 @@
</c-col>
<c-col :span="24">
<el-form-item label="单据状态" prop="bfdgrp.rec.docsta">
<c-input
<c-select
v-model="model.bfdgrp.rec.docsta"
maxlength="40"
style="width: 100%"
placeholder="请输入单据状态"
disabled
></c-input>
>
<el-option
v-for="item in codes.docsta"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
......@@ -201,9 +217,9 @@
<c-col :span="12">
<c-col :span="24">
<c-col :span="12">
<el-form-item label="信用证余额" prop="bfdgrp.cbs.opn1.cur">
<el-form-item label="信用证余额" prop="dedgrp.cbs.opn1.cur">
<c-input
v-model="model.bfdgrp.cbs.opn1.cur"
v-model="model.dedgrp.cbs.opn1.cur"
maxlength="3"
placeholder="请输入信用证余额"
disabled
......@@ -211,9 +227,9 @@
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="5px" prop="bfdgrp.cbs.opn1.amt">
<el-form-item label="" label-width="5px" prop="dedgrp.cbs.opn1.amt">
<c-input
v-model="model.bfdgrp.cbs.opn1.amt"
v-model="model.dedgrp.cbs.opn1.amt"
placeholder="请输入Balance"
disabled
></c-input>
......@@ -236,14 +252,14 @@
<c-ptsmsg
:model="model"
:argadr="{
title: '交单',
title: '交单',
grp: 'bfdgrp',
rol: 'prb',
}"
:disabled="true"
></c-ptsmsg>
</c-col>
<c-col :span="24">
<!-- <c-col :span="24">
<c-ptsmsg
:model="model"
:argadr="{
......@@ -253,6 +269,27 @@
}"
:disabled="true"
></c-ptsmsg>
</c-col> -->
<c-col :span="24">
<el-form-item label="开证行编号" prop="dedgrp.rec.kzref">
<c-input
v-model="model.dedgrp.rec.kzref"
maxlength="16"
placeholder="'请输入开证行编号'"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="开证行名称" prop="bfdgrp.iss.pts.nam">
<c-input
v-model="model.bfdgrp.iss.pts.nam"
maxlength="40"
placeholder="'请输入开证行名称'"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptsmsg
......@@ -273,113 +310,110 @@
</c-col>
<!-- next part -->
<!-- left -->
<c-col :span="12">
<c-col :span="24" style="height: 24px; margin-top: 20px">
<el-form-item
:label="model.bftp.docgrdm.docdsclab"
class="messageLabel"
<c-col :span="24" style="height: 24px; margin-top: -10px">
<el-form-item :label="model.bftp.docgrdm.docdsclab" class="messageLabel">
<c-button style="float: right" @click="addTableValue" type="primary"
>新增单据</c-button
>
</el-form-item>
</c-col>
<c-col :span="24" style="height: 0px">
<el-divider></el-divider>
</c-col>
<c-col :span="24" style="margin-bottom: 30px">
<c-table
style="text-align: center"
:list="TableValue"
:paginationShow="false"
:border="true"
>
<el-table-column
label="1st"
prop="cmail1"
width="auto"
></el-table-column>
<el-table-column
label="2st"
prop="cmail2"
width="auto"
></el-table-column>
<el-table-column label="Document" prop="docnam" width="auto">
<template slot-scope="scope">
<!-- {{scope.row.docnam}} -->
<c-select
style="width: 100%"
placeholder="请选择"
v-model="scope.row.docnam"
>
<el-option
v-for="item in codeTable"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</template>
</el-table-column>
<el-table-column label="操作" width="170px" fixed="right">
<template slot-scope="scope">
<c-button @click="deleteTable(scope.row)" type="primary"
>删除</c-button
>
</template>
</el-table-column>
</c-table>
</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="请选择收单日期"
disabled
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24" style="height: 0px; margin-top: 5px">
<el-divider></el-divider>
</c-col>
<c-col :span="24">
<c-table
:data="model.bftp.docgrdm.docgrd"
style="width: 100%; margin-bottom: 100px"
>
<el-table-column prop="cmail1" label="1st"> </el-table-column>
<el-table-column prop="cmail2" label="2st"> </el-table-column>
<el-table-column label="Document" prop="docnam">
<template slot-scope="scope">
<c-select v-model="scope.row.ptydbt">
<el-option
v-for="item in codes.ptydbt"
:key="item.value"
:label="item.value"
:value="item.value"
>
<span style="float: left">{{ item.label }}</span>
</el-option>
</c-select>
</template>
</el-table-column>
<el-table-column label="" prop="det" width="80px" fixed="right">
<template slot-scope="scope" slot="header">
<el-button
circle
style="padding: 4px"
class="el-icon-plus"
size="mini"
@click="addRow(scope)"
>
</el-button>
<el-button
style="padding: 4px"
circle
class="el-icon-minus"
size="mini"
@click="removeRow(scope)"
>
</el-button>
</template>
</el-table-column>
</c-table>
<c-col :span="12">
<el-form-item label="装运日期" prop="bfdgrp.rec.shpdat">
<c-date-picker
type="date"
v-model="model.bfdgrp.rec.shpdat"
style="width: 100%"
placeholder="请选择装运日期"
></c-date-picker>
</el-form-item>
</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="请选择收单日期"
disabled
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="装运日期" prop="bfdgrp.rec.shpdat">
<c-date-picker
type="date"
v-model="model.bfdgrp.rec.shpdat"
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.predat">
<c-date-picker
type="date"
v-model="model.bfdgrp.rec.predat"
style="width: 100%"
placeholder="请选择代付日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<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="请选择代付日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="到期日期" prop="bfdgrp.rec.matdat">
<c-date-picker
type="date"
v-model="model.bfdgrp.rec.matdat"
style="width: 100%"
placeholder="请选择到期日期"
disabled
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="到期日期" prop="bfdgrp.rec.matdat">
<c-date-picker
type="date"
v-model="model.bfdgrp.rec.matdat"
style="width: 100%"
placeholder="请选择到期日期"
disabled
></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<!-- right -->
<!-- left -->
<c-col :span="12">
<c-col :span="24">
<el-form-item label="付款人" prop="bfdgrp.rec.payrol">
<c-select
......@@ -399,7 +433,6 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="BIC" prop="bfdgrp.oth.pts.extkey">
<c-input
......@@ -423,7 +456,10 @@
grp: 'bfdgrp',
}"
></c-ptapdome>
</c-col>
<!-- right -->
<c-col :span="12">
<c-col :span="24">
<el-form-item label="交单人" prop="bfdgrp.rec.docprbrol">
<c-select
......@@ -447,7 +483,7 @@
<c-ptap
:model="model"
:argadr="{
title: '受益人',
title: '',
grp: 'bfdgrp',
rol: 'prb',
}"
......@@ -474,7 +510,7 @@
</el-form-item>
</c-col>
<c-col :span="3" style="float:right;">
<c-col :span="3" style="float: right">
<c-checkbox v-model="model.ameadrflg" disabled
>Ammendment Ben. Address</c-checkbox
>
......@@ -772,14 +808,57 @@ export default {
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {};
return {
TableValue: [
{
id: 0,
cmail1: "1",
cmail2: "2",
docnam: "1",
},
],
newValue: {
id: 0,
cmail1: "",
cmail2: "",
docnam: "",
},
codeTable: [
{ label: "增值税发票", value: "1" },
{ label: "发票", value: "2" },
{ label: "装箱单", value: "3" },
{ label: "空运单", value: "4" },
{ label: "海运提单", value: "5" },
{ label: "铁路运单", value: "6" },
{ label: "货物收据", value: "7" },
{ label: "邮政收据", value: "8" },
],
};
},
computed: {
flag() {
return this.model.mtabut.coninf.usr.extkey == "";
},
},
methods: { ...Event },
methods: {
...Event,
addTableValue() {
var index = this.TableValue.length;
var newTableValue = this.newValue;
if (index > 0) {
newTableValue.id = this.TableValue[index - 1].id + 1;
}
this.TableValue.push(newTableValue);
},
deleteTable(row) {
for (let i = 0; i < this.TableValue.length; i++) {
if (this.TableValue[i].id == row.id) {
this.TableValue.splice(i, 1);
break;
}
}
},
},
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