Commit 78d429f4 by wangna

关闭交易状态显示

parent c4f8908e
......@@ -152,7 +152,7 @@
<c-button style="margin-left: 0" size="small" @click="getTrnInfo(scope.$index, scope.row)"
slot="reference">详情</c-button>
</el-popover>
<c-button style="margin-left: 5px" size="small" type="primary" @click="getButtons(scope.row['代收编号'])">处理
<c-button style="margin-left: 5px" size="small" type="primary" @click="getButtons(scope.row['代收编号'], scope.row['关闭日期'])">处理
</c-button>
</template>
</el-table-column>
......@@ -213,7 +213,7 @@ export
"14 11 \"托收行\" 200",
"5 12 \"货物类型\" 130 1 0 1 GODCOD",
"3 13 \"开立日期\" 150 4 7",
"4 14 \"闭日期\" 150 4 7",
"4 14 \"闭日期\" 150 4 7",
"15 15 \"金额币种\" 150",
"16 16 \"代收金额\" 120 2 8 1 15",
"17 17 \"余额币种\" 150",
......@@ -226,8 +226,8 @@ export
},
methods: {
...Event,
async getButtons(ownref) {
this.BctselModel.clsflg = 'C'
async getButtons(ownref, closedDate) {
this.BctselModel.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
this.$refs.childs.initdialog = true
this.ownref = ownref
console.log("ownref:" + ownref);
......
......@@ -282,7 +282,7 @@
style="margin-left: 5px"
size="small"
type="primary"
@click="getButtons(scope.row['信用证编号'])"
@click="getButtons(scope.row['信用证编号'], scope.row['关闭日期'])"
>
处理
</c-button>
......@@ -370,9 +370,9 @@ export default {
},
methods: {
...Event,
async getButtons(ownref){
async getButtons(ownref, closedDate){
this.ownref = ownref
this.ditselModel.didget.clsflg = 'C'
this.ditselModel.didget.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
},
......
......@@ -90,6 +90,7 @@ export default {
return 1;
},
opened() {
this.tState = []
this.$emit("childmethods");
},
beforeClose() {
......
......@@ -155,7 +155,7 @@
style="width: 100%"
>
<c-select
v-model="model.infcon.searol"
v-model="model.infcon.searol"
style="width: 100%"
placeholder="请选择当事人角色"
:code="codes.rolall"
......@@ -247,7 +247,12 @@
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="" prop="infcon.forflg" label-width="20px" style="margin-left:110px;">
<el-form-item
label=""
prop="infcon.forflg"
label-width="20px"
style="margin-left: 110px"
>
<c-checkbox v-model="model.infcon.forflg"
>转卖单据</c-checkbox
>
......@@ -261,7 +266,11 @@
<el-row>
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true"
>
<el-table-column fixed="right" prop="op" width="150px">
<template slot="header">
<c-col :span="11" style="text-align: center"
......@@ -322,7 +331,9 @@
style="margin-left: 5px"
size="small"
type="primary"
@click="getButtons(scope.row['单据编号'])"
@click="
getButtons(scope.row['单据编号'], scope.row['关闭日期'])
"
>
处理
</c-button>
......@@ -368,14 +379,14 @@ export default {
'1 1 "编号" 150',
'2 2 "交易名称" 195',
'3 3 "条目" 80 4 7',
{
index: 4,
position: 4,
width: 100,
pattern: "code",
label: "状态",
code: this.codes.relstaEN,
},
{
index: 4,
position: 4,
width: 100,
pattern: "code",
label: "状态",
code: this.codes.relstaEN,
},
'5 5 "币种" 80',
'6 6 "相关金额" 150 2 8 1 5',
'7 7 "标识" 100',
......@@ -412,8 +423,9 @@ export default {
},
methods: {
...Event,
async getButtons(ownref) {
async getButtons(ownref, closedDate) {
this.ownref = ownref;
this.letselModel.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
this.$refs.childs.initdialog = true;
console.log("ownref:" + ownref);
},
......
......@@ -159,7 +159,7 @@
<c-button style="margin-left: 0" size="small" @click="getTrnInfo(scope.$index, scope.row)"
slot="reference">详情</c-button>
</el-popover>
<c-button style="margin-left: 5px" size="small" type="primary" @click="getButtons(scope.row['托收编号'])">处理
<c-button style="margin-left: 5px" size="small" type="primary" @click="getButtons(scope.row['托收编号'],scope.row['关闭日期'])">处理
</c-button>
</template>
</el-table-column>
......@@ -231,10 +231,10 @@ export default {
},
methods: {
...Event,
async getButtons(ownref) {
async getButtons(ownref, closedDate) {
this.$refs.childs.initdialog = true
this.ownref = ownref
this.BotselModel.clsflg = 'C'
this.BotselModel.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
console.log("ownref:" + ownref);
},
async onChoose(code) {
......
......@@ -332,11 +332,11 @@
</el-form> </template
></c-list-search>
<c-col :span="24" style="margin-top: 10px;">
<c-col :span="24" style="margin-top: 10px">
<c-button
class="medium_bcs"
size="medium"
style="margin-left: 0px;padding: 20px 16px"
style="margin-left: 0px; padding: 20px 16px"
type="primary"
@click="toBptopn"
>出口融资放款</c-button
......@@ -344,10 +344,16 @@
</c-col>
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true"
>
<el-table-column fixed="right" prop="op" width="140px">
<template slot="header">
<c-col :span="11" style="text-align: center"><span>操作</span></c-col>
<c-col :span="11" style="text-align: center"
><span>操作</span></c-col
>
<!-- <c-col :span="12" style="text-align: right"
><c-button icon="el-icon-s-tools"></c-button
></c-col> -->
......@@ -401,7 +407,9 @@
style="margin-left: 5px"
size="small"
type="primary"
@click="getButtons(scope.row['出口融资编号'])"
@click="
getButtons(scope.row['出口融资编号'], scope.row['关闭日期'])
"
>
处理
</c-button>
......@@ -457,7 +465,7 @@ export default {
code: this.codes.fintyp_bpd,
},
'3 4 "Parent Contract" 140',
'4 5 "执行利率" 120',
'4 5 "执行利率" 120',
'22 6 "Pta .No" 120',
'23 7 "当事人编号" 200',
'24 8 "Advanced Party" 200',
......@@ -511,9 +519,9 @@ export default {
},
methods: {
...Event,
async getButtons(ownref) {
async getButtons(ownref, closedDate) {
this.ownref = ownref;
this.BptselModel.clsflg = 'C'
this.BptselModel.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
this.$refs.childs.initdialog = true;
console.log("ownref:" + ownref);
},
......
......@@ -312,7 +312,7 @@
style="margin-left: 5px"
size="small"
type="primary"
@click="getButtons(scope.row['单据编号'])"
@click="getButtons(scope.row['单据编号'],scope.row['关闭日期'])"
>
处理
</c-button>
......@@ -418,9 +418,9 @@ export default {
},
methods: {
...Event,
async getButtons(ownref){
async getButtons(ownref,closedDate){
this.ownref = ownref
this.litselModel.lidget.clsflg = 'C'
this.litselModel.lidget.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
},
......
......@@ -90,6 +90,7 @@ export default {
return 1;
},
opened() {
this.tState = []
this.$emit("childmethods");
},
beforeClose() {
......
......@@ -58,7 +58,11 @@
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="业务简略信息" prop="infcon.nam" style="width: 100%">
<el-form-item
label="业务简略信息"
prop="infcon.nam"
style="width: 100%"
>
<c-input
v-model="model.infcon.nam"
maxlength="40"
......@@ -236,12 +240,18 @@
</c-list-search>
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true"
>
<!-- 自定义组件里加了最右边的一列”操作“ -->
<el-table-column fixed="right" prop="op" width="140px">
<template slot="header">
<!-- 插槽里放了一个文字 一个按钮 -->
<c-col :span="11" style="text-align: center"><span>操作</span></c-col>
<c-col :span="11" style="text-align: center"
><span>操作</span></c-col
>
<!-- <c-col :span="12" style="text-align: right"
><c-button icon="el-icon-s-tools"></c-button
></c-col> -->
......@@ -294,7 +304,9 @@
style="margin-left: 5px"
size="small"
type="primary"
@click="getButtons(scope.row['信用证编号'])"
@click="
getButtons(scope.row['信用证编号'], scope.row['关闭日期'])
"
>
处理
</c-button>
......@@ -337,20 +349,19 @@ export default {
dialogTableVisible: false,
trnData: {
columns: [
'0 8 "交易ID" 100',
'1 1 "信用证编号" 150',
'2 2 "交易名称" 195',
'3 3 "条目" 80 4 7',
// '4 4 "业务状态" 65 1 0 1 RELSTA',
{
index: 4,
position: 4,
width: 100,
pattern: "code",
label: "业务状态",
code: this.codes.relstaEN,
},
// '4 4 "业务状态" 65 1 0 1 RELSTA',
{
index: 4,
position: 4,
width: 100,
pattern: "code",
label: "业务状态",
code: this.codes.relstaEN,
},
'5 5 "币种" 80',
'6 6 "相关金额" 150 2 8 1 5',
'7 7 "标识" 100',
......@@ -381,9 +392,9 @@ export default {
methods: {
...Event,
async getButtons(ownref) {
async getButtons(ownref, closedDate) {
this.ownref = ownref;
this.letselModel.clsflg = 'C'
this.letselModel.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
this.$refs.childs.initdialog = true;
console.log("ownref:" + ownref);
},
......@@ -417,7 +428,6 @@ export default {
toLttopn() {
this.$router.history.push("/business/lttopn");
},
},
created: function () {},
};
......
......@@ -99,7 +99,9 @@
maxlength="16"
placeholder="请输入当事人编号"
:disabled="model.infcon.seapty != ''"
@keyup.enter.native="showGridPromptDialog('infcon.pty.extkey')"
@keyup.enter.native="
showGridPromptDialog('infcon.pty.extkey')
"
></c-input>
</el-form-item>
</c-col>
......@@ -271,7 +273,11 @@
>
</c-col>
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true"
>
<el-table-column fixed="right" prop="op" label="操作" width="140px">
<template slot="header">
<c-col :span="11" style="text-align: center">
......@@ -329,7 +335,9 @@
style="margin-left: 5px"
size="small"
type="primary"
@click="getButtons(scope.row['光票托收编号'])"
@click="
getButtons(scope.row['光票托收编号'], scope.row['关闭日期'])
"
>
处理</c-button
>
......@@ -438,9 +446,9 @@ export default {
},
methods: {
...Event,
async getButtons(ownref) {
async getButtons(ownref, closedDate) {
this.ownref = ownref;
this.cctselModel.clsflg = 'C'
this.cctselModel.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
this.$refs.childs.initdialog = true;
console.log("ownref:" + ownref);
},
......
......@@ -96,6 +96,7 @@
return 1;
},
opened() {
this.tState = []
this.$emit("childmethods");
},
beforeClose() {
......
......@@ -162,7 +162,7 @@
slot="reference">详情</c-button>
</el-popover>
<c-button style="margin-left: 5px" size="small" type="primary"
@click="getButtons(scope.row['打包托收编号'],scope.row['打包托收余额'], scope.row['编号'],scope.row['开立日期'])">处理
@click="getButtons(scope.row['打包托收编号'],scope.row['打包托收余额'], scope.row['编号'],scope.row['开立日期'],scope.row['关闭日期'])">处理
</c-button>
</template>
</el-table-column>
......@@ -236,8 +236,8 @@ export default {
},
methods: {
...Event,
async getButtons(ownref,amt,inr,opndat) {
this.CltselModel.clsflg = 'C'
async getButtons(ownref,amt,inr,opndat,closedDate) {
this.CltselModel.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
this.$refs.childs.initdialog = true
this.ownref = ownref
this.amt = amt;
......
......@@ -50,7 +50,11 @@
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="简略信息" prop="infcon.nam" style="width: 100%">
<el-form-item
label="简略信息"
prop="infcon.nam"
style="width: 100%"
>
<c-input
v-model="model.infcon.nam"
maxlength="40"
......@@ -174,11 +178,7 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item
label="状态"
prop="infcon.seasta"
style="width: 100%"
>
<el-form-item label="状态" prop="infcon.seasta" style="width: 100%">
<c-select
v-model="model.infcon.seasta"
style="width: 100%"
......@@ -189,11 +189,7 @@
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="币种"
prop="infcon.seacur"
style="width: 100%"
>
<el-form-item label="币种" prop="infcon.seacur" style="width: 100%">
<c-select
v-model="model.infcon.seacur"
style="width: 100%"
......@@ -232,11 +228,7 @@
<c-col :span="24">
<c-col :span="8">
<el-form-item
label="支付类型"
prop="seapaytyp"
style="width: 100%"
>
<el-form-item label="支付类型" prop="seapaytyp" style="width: 100%">
<c-select
v-model="model.seapaytyp"
style="width: 100%"
......@@ -349,7 +341,9 @@
>
<el-table-column fixed="right" prop="op" width="140px">
<template slot="header">
<c-col :span="11" style="text-align: center"><span>操作</span></c-col>
<c-col :span="11" style="text-align: center"
><span>操作</span></c-col
>
</template>
<template slot-scope="scope">
<el-popover
......@@ -399,7 +393,7 @@
style="margin-left: 5px"
size="small"
type="primary"
@click="getButtons(scope.row['汇款编号'])"
@click="getButtons(scope.row['汇款编号'], scope.row['关闭日期'])"
>
处理
</c-button>
......@@ -554,9 +548,9 @@ export default {
callback();
}, 1000);
}, */
async getButtons(ownref) {
async getButtons(ownref, closedDate) {
this.ownref = ownref;
this.cptselModel.clsflg = 'C'
this.cptselModel.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
this.$refs.childs.initdialog = true;
console.log("ownref:" + ownref);
},
......
......@@ -281,10 +281,16 @@
</c-col>
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true"
>
<el-table-column fixed="right" prop="op" label="操作" width="140px">
<template slot="header">
<c-col :span="11" style="text-align: center"><span>操作</span></c-col>
<c-col :span="11" style="text-align: center"
><span>操作</span></c-col
>
<!-- <c-col :span="12" style="text-align: right"
><c-button icon="el-icon-s-tools"></c-button
></c-col> -->
......@@ -336,7 +342,9 @@
style="margin-left: 5px"
size="small"
type="primary"
@click="getButtons(scope.row['信用证编号'])"
@click="
getButtons(scope.row['信用证编号'], scope.row['关闭日期'])
"
>
处理
</c-button>
......@@ -345,9 +353,15 @@
</c-istream-table>
</c-col>
<m-busbtn ref="childs" :ownref="ownref" trnCode="detsel" ownrefPath="dedgrp" :model="detselModel" @onChoose="onChoose"
>11</m-busbtn
>
<m-busbtn
ref="childs"
:ownref="ownref"
trnCode="detsel"
ownrefPath="dedgrp"
:model="detselModel"
@onChoose="onChoose"
>11</m-busbtn
>
</div>
</template>
<script>
......@@ -356,7 +370,7 @@ import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infdet/Event";
import DetselModel from "~/model/Detsel"
import DetselModel from "~/model/Detsel";
//交易跳转逻辑
import BusNavbar from "~/views/Public/BusNavbar";
......@@ -367,7 +381,7 @@ export default {
components: { "m-busbtn": BusNavbar },
data() {
return {
detselModel:new DetselModel().data,
detselModel: new DetselModel().data,
ownref: "",
dialogTableVisible: false,
trnData: {
......@@ -376,7 +390,14 @@ export default {
'2 2 "交易名称" 100',
'3 3 "日期" 200',
// '4 4 "状态" 50',
{ index: 4, position: 4, width: 100, pattern: 'code', label: '状态', code: this.codes.relstaEN },
{
index: 4,
position: 4,
width: 100,
pattern: "code",
label: "状态",
code: this.codes.relstaEN,
},
'5 5 "币种" 80',
'6 6 "金额" 80',
],
......@@ -405,25 +426,25 @@ export default {
},
};
},
methods: {
...Event,
async getButtons(ownref){
this.ownref = ownref
this.detselModel.clsflg = 'C'
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
async getButtons(ownref, closedDate) {
this.ownref = ownref;
this.detselModel.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
this.$refs.childs.initdialog = true;
console.log("ownref:" + ownref);
},
async onChoose(code) {
//跳转交易
this.$router.history.push("/business/" + code);
this.$refs.childs.initdialog = false;
},
async getDitSelInfo(code) {
//跳转交易
this.$router.history.push("/business/" + code);
this.$refs.childs.initdialog = false;
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
......@@ -440,7 +461,7 @@ export default {
closeTrn(refId) {
this.$refs[refId].doClose();
},
toDetopn() {
this.$router.history.push("/business/detopn");
},
......
......@@ -360,7 +360,7 @@
style="margin-left: 5px"
size="small"
type="primary"
@click="getButtons(scope.row['信用证编号'])"
@click="getButtons(scope.row['信用证编号'],scope.row['关闭日期'])"
>
处理
</c-button>
......@@ -434,9 +434,9 @@ export default {
},
methods: {
...Event,
async getButtons(ownref){
async getButtons(ownref,closedDate){
this.ownref = ownref
this.ditselModel.didget.clsflg = 'C'
this.ditselModel.didget.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
},
......
......@@ -109,7 +109,11 @@
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="业务简略信息" prop="infcon.nam" style="width: 100%">
<el-form-item
label="业务简略信息"
prop="infcon.nam"
style="width: 100%"
>
<c-input
v-model="model.infcon.nam"
maxlength="40"
......@@ -288,76 +292,81 @@
进口信用证开立
</c-button>
</c-col>
<div style="height:90%">
<c-col :span="24">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true"
>
<!-- 自定义组件里加了最右边的一列”操作“ -->
<el-table-column fixed="right" prop="op" label="操作" width="140px">
<template slot="header">
<c-col :span="11" style="text-align: center"><span>操作</span></c-col>
<div style="height: 90%">
<c-col :span="24">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true"
>
<!-- 自定义组件里加了最右边的一列”操作“ -->
<el-table-column fixed="right" prop="op" label="操作" width="140px">
<template slot="header">
<c-col :span="11" style="text-align: center"
><span>操作</span></c-col
>
</template>
<template slot-scope="scope">
<!-- 申请一个弹出主键放在插槽,加工已渲染的数据 -->
<el-popover
placement="top-start"
title="历史信息"
width="800"
trigger="click"
:ref="'popover_' + scope.row.IDX"
>
<div
style="
text-align: right;
margin-top: -30px;
margin-right: 5px;
font-size: 16px;
"
<template slot-scope="scope">
<!-- 申请一个弹出主键放在插槽,加工已渲染的数据 -->
<el-popover
placement="top-start"
title="历史信息"
width="800"
trigger="click"
:ref="'popover_' + scope.row.IDX"
>
<span
class="el-icon-close"
@click="closeTrn('popover_' + scope.row.IDX)"
/>
</div>
<c-istream-table :list="trnData.data" :columns="trnData.columns">
<el-table-column prop="op" label="操作" width="0">
<template slot-scope="scope">
<c-button
style="margin-left: 0"
size="small"
@click="display(scope.row['INR'])"
>
详情
</c-button>
</template>
</el-table-column>
</c-istream-table>
<div
style="
text-align: right;
margin-top: -30px;
margin-right: 5px;
font-size: 16px;
"
>
<span
class="el-icon-close"
@click="closeTrn('popover_' + scope.row.IDX)"
/>
</div>
<c-istream-table
:list="trnData.data"
:columns="trnData.columns"
>
<el-table-column prop="op" label="操作" width="0">
<template slot-scope="scope">
<c-button
style="margin-left: 0"
size="small"
@click="display(scope.row['INR'])"
>
详情
</c-button>
</template>
</el-table-column>
</c-istream-table>
<c-button
style="margin-left: 0"
size="small"
@click="getTrnInfo(scope.$index, scope.row)"
slot="reference"
>
详情
</c-button>
</el-popover>
<c-button
style="margin-left: 0"
style="margin-left: 5px"
size="small"
@click="getTrnInfo(scope.$index, scope.row)"
slot="reference"
type="primary"
@click="
getButtons(scope.row['信用证编号'], scope.row['关闭日期'])
"
>
详情
处理
</c-button>
</el-popover>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="getButtons(scope.row['信用证编号'])"
>
处理
</c-button>
</template>
</el-table-column>
</c-istream-table>
</c-col>
</template>
</el-table-column>
</c-istream-table>
</c-col>
</div>
<m-busbtn
......@@ -366,8 +375,9 @@
trnCode="litsel"
:model="litselModel"
ownrefPath="lidget.lid.ownref"
@onChoose="onChoose">
</m-busbtn>
@onChoose="onChoose"
>
</m-busbtn>
</div>
</template>
<script>
......@@ -377,7 +387,7 @@ import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Inflid/Event";
import LitselModel from "~/model/Litsel"
import LitselModel from "~/model/Litsel";
import BusNavbar from "~/views/Public/BusNavbar";
export default {
......@@ -421,7 +431,7 @@ export default {
//'18 16 "余额币种" 100',
'19 5 "余额" 130 2 8 1 18',
//'5 11 "Opened" 500 4 7',
//'5 11 "Opened" 500 4 7',
{
index: 5,
position: 6,
......@@ -437,7 +447,6 @@ export default {
//'14 8 "受益人编号" 165',
'15 10 "受益人名称" 165',
//'6 12 "Expired" 500 4 7',
{
index: 6,
......@@ -447,14 +456,9 @@ export default {
label: "到期日",
},
'3 12 "远期期限" 120 ',
'3 12 "远期期限" 120 ',
// '4 4 "货物类型" 100 ',
{
index: 4,
position: 13,
......@@ -463,7 +467,7 @@ export default {
label: "货物类型",
code: "godcod",
},
//'7 13 "Closed" 500 4 7',
{
index: 7,
......@@ -474,8 +478,6 @@ export default {
},
'8 15 "分行名称" 160',
//'9 18 "PTA NO." 150',
],
data: [],
},
......@@ -488,9 +490,10 @@ export default {
methods: {
...Event,
async getButtons(ownref) {
async getButtons(ownref, closedDate) {
this.ownref = ownref;
// this.litselModel.lidget.clsflg = 'C'
this.litselModel.lidget.clsflg =
(closedDate ?? "").trim() === "" ? "" : "C";
this.$refs.childs.initdialog = true;
console.log("ownref:" + ownref);
},
......@@ -524,14 +527,12 @@ export default {
toLitopn() {
this.$router.history.push("/business/litopn");
},
},
created: function () {},
};
</script>
<style>
.m-table-search {
padding: 20px 0px 10px 0px;
padding: 20px 0px 10px 0px;
}
</style>
......@@ -90,6 +90,7 @@ export default {
return 1;
},
opened() {
this.tState = []
this.$emit("childmethods");
},
beforeClose() {
......
......@@ -58,7 +58,11 @@
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="业务简略信息" prop="infcon.nam" style="width: 100%">
<el-form-item
label="业务简略信息"
prop="infcon.nam"
style="width: 100%"
>
<c-input
v-model="model.infcon.nam"
maxlength="40"
......@@ -71,7 +75,11 @@
<el-row v-show="searchSlot.searchToggle">
<c-col :span="8">
<el-form-item label="当事人参考号" prop="infcon.searef" style="width: 100%">
<el-form-item
label="当事人参考号"
prop="infcon.searef"
style="width: 100%"
>
<c-input
v-model="model.infcon.searef"
maxlength="16"
......@@ -79,44 +87,87 @@
></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="当事人编号" prop="infcon.pty.extkey" style="width: 100%">
<c-input v-model="model.infcon.pty.extkey" maxlength="24" placeholder="请输入当事人编号" ></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="当事人名称" prop="infcon.pty.nam" style="width: 100%">
<c-input v-model="model.infcon.pty.nam" maxlength="40" placeholder="请输入当事人名称" disabled></c-input>
</el-form-item>
</c-col>
<el-form-item
label="当事人编号"
prop="infcon.pty.extkey"
style="width: 100%"
>
<c-input
v-model="model.infcon.pty.extkey"
maxlength="24"
placeholder="请输入当事人编号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="当事人BIC编码" prop="infcon.seapty" style="width: 100%">
<c-input v-model="model.infcon.seapty" maxlength="24" placeholder="请输入当事人BIC编码"></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="当事人角色" prop="infcon.searol" style="width: 100%">
<c-select v-model="model.infcon.searol" style="width:100%" placeholder="请选择当事人角色">
<el-option
v-for="item in codes.searol1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="当事人名称"
prop="infcon.pty.nam"
style="width: 100%"
>
<c-input
v-model="model.infcon.pty.nam"
maxlength="40"
placeholder="请输入当事人名称"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="客户经理" disabled prop="infcon.usr.extkey" style="width: 100%">
<c-input v-model="model.infcon.usr.extkey" maxlength="8" placeholder="请输入客户经理" disabled></c-input>
</el-form-item>
</c-col>
<el-form-item
label="当事人BIC编码"
prop="infcon.seapty"
style="width: 100%"
>
<c-input
v-model="model.infcon.seapty"
maxlength="24"
placeholder="请输入当事人BIC编码"
></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="当事人角色"
prop="infcon.searol"
style="width: 100%"
>
<c-select
v-model="model.infcon.searol"
style="width: 100%"
placeholder="请选择当事人角色"
>
<el-option
v-for="item in codes.searol1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="客户经理"
disabled
prop="infcon.usr.extkey"
style="width: 100%"
>
<c-input
v-model="model.infcon.usr.extkey"
maxlength="8"
placeholder="请输入客户经理"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
......@@ -187,14 +238,20 @@
</el-form>
</template>
</c-list-search>
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true"
>
<!-- 自定义组件里加了最右边的一列”操作“ -->
<el-table-column fixed="right" prop="op" width="140px">
<template slot="header">
<!-- 插槽里放了一个文字 一个按钮 -->
<c-col :span="11" style="text-align: center"><span>操作</span></c-col>
<c-col :span="11" style="text-align: center"
><span>操作</span></c-col
>
<!-- <c-col :span="12" style="text-align: right"
><c-button icon="el-icon-s-tools"></c-button
></c-col> -->
......@@ -247,7 +304,9 @@
style="margin-left: 5px"
size="small"
type="primary"
@click="getButtons(scope.row['信用证编号'])"
@click="
getButtons(scope.row['信用证编号'], scope.row['关闭日期'])
"
>
处理
</c-button>
......@@ -294,15 +353,15 @@ export default {
'1 1 "信用证编号" 150',
'2 2 "交易名称" 195',
'3 3 "条目" 80 4 7',
// '4 4 "业务状态" 65 1 0 1 RELSTA',
{
index: 4,
position: 4,
width: 100,
pattern: "code",
label: "业务状态",
code: this.codes.relstaEN,
},
// '4 4 "业务状态" 65 1 0 1 RELSTA',
{
index: 4,
position: 4,
width: 100,
pattern: "code",
label: "业务状态",
code: this.codes.relstaEN,
},
'5 5 "币种" 80',
'6 6 "相关金额" 150 2 8 1 5',
'7 7 "标识" 100',
......@@ -311,24 +370,24 @@ export default {
},
stmData: {
columns: [
'1 1 \"信用证编号\" 120',
'2 2 \"客户经理\" 100',
'3 12 \"开立日期\" 150 4 7',
'4 13 \"到期日\" 150 4 7',
'5 14 \"关闭日期\" 150 4 7',
'6 3 \"分行名称\" 140',
'7 9 \"PTA编号\" 100',
'8 4 \"第一当事人编号\" 133',
'9 5 \"第一受益人名称\" 133',
'10 6 \"第一国内受益人名称\" 191',
'11 7 \"第二当事人编号\" 133',
'12 8 \"第二受益人名称\" 133',
'13 10 \"第三当事人编号\" 133',
'14 11 \"通知行\" 133',
'15 15 \"金额币种\" 100',
'16 17 \"金额\" 100 2 8 1 15',
'17 16 \"余额币种\" 100',
'18 18 \"余额\" 100 2 8 1 17'
'1 1 "信用证编号" 120',
'2 2 "客户经理" 100',
'3 12 "开立日期" 150 4 7',
'4 13 "到期日" 150 4 7',
'5 14 "关闭日期" 150 4 7',
'6 3 "分行名称" 140',
'7 9 "PTA编号" 100',
'8 4 "第一当事人编号" 133',
'9 5 "第一受益人名称" 133',
'10 6 "第一国内受益人名称" 191',
'11 7 "第二当事人编号" 133',
'12 8 "第二受益人名称" 133',
'13 10 "第三当事人编号" 133',
'14 11 "通知行" 133',
'15 15 "金额币种" 100',
'16 17 "金额" 100 2 8 1 15',
'17 16 "余额币种" 100',
'18 18 "余额" 100 2 8 1 17',
],
data: [],
},
......@@ -337,9 +396,9 @@ export default {
methods: {
...Event,
async getButtons(ownref) {
async getButtons(ownref, closedDate) {
this.ownref = ownref;
this.letselModel.clsflg = 'C'
this.letselModel.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
this.$refs.childs.initdialog = true;
console.log("ownref:" + ownref);
},
......
......@@ -90,6 +90,7 @@ export default {
return 1;
},
opened() {
this.tState = []
this.$emit("childmethods");
},
beforeClose() {
......
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