Commit 78d429f4 by wangna

关闭交易状态显示

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