Commit b60da57f by zhengxiaokui

zxk

parent d2607a36
......@@ -34,6 +34,7 @@ export default class Letsel {
trnpentrbp: "", // Label showing stored uncommited transactions for TR/BP .trnpentrbp
ledgrp: {
rec: {
inr: "",
ownref: "", // L/C Reference .ledgrp.rec.ownref
nam: "", // Externally Displayed Name to Identify the Contract .ledgrp.rec.nam
revflg: "", // Revolving Flag .ledgrp.rec.revflg
......
......@@ -94,21 +94,36 @@
<el-tab-pane label="货物描述修改" name="dogpame">
<!-- <m-dogpame :model="model" :codes="codes" /> -->
<c-content>
<m-doxpame :model="model" :codes="codes" :recgrp="'ledgrp'" :ametyp="'lcrgod'"/>
<m-doxpame
:model="model"
:codes="codes"
:recgrp="'ledgrp'"
:ametyp="'lcrgod'"
/>
</c-content>
</el-tab-pane>
<!--PD000102 -->
<!--PD000102 -->
<el-tab-pane label="附加条款修改" name="adcpame">
<c-content>
<m-doxpame :model="model" :codes="codes" :recgrp="'ledgrp'" :ametyp="'adlcnd'"/>
<m-doxpame
:model="model"
:codes="codes"
:recgrp="'ledgrp'"
:ametyp="'adlcnd'"
/>
</c-content>
</el-tab-pane>
<!--PD000098 -->
<el-tab-pane label="单据要求修改" name="dorpame">
<c-content>
<m-doxpame :model="model" :codes="codes" :recgrp="'ledgrp'" :ametyp="'lcrdoc'"/>
<m-doxpame
:model="model"
:codes="codes"
:recgrp="'ledgrp'"
:ametyp="'lcrdoc'"
/>
</c-content>
</el-tab-pane>
......@@ -128,16 +143,34 @@
</el-tab-pane> -->
<!--PD000400 -->
<el-tab-pane v-if="model.ledgrp.rec.spcrcbflg" label="Spc.Pay Conditions for Ban" name="sprpame">
<el-tab-pane
v-if="model.ledgrp.rec.spcrcbflg"
label="Spc.Pay Conditions for Ban"
name="sprpame"
>
<c-content>
<m-doxpame :model="model" :codes="codes" :recgrp="'ledgrp'" :ametyp="'spcrcb'"/>
<m-doxpame
:model="model"
:codes="codes"
:recgrp="'ledgrp'"
:ametyp="'spcrcb'"
/>
</c-content>
</el-tab-pane>
<!--PD000396 -->
<el-tab-pane v-if="model.ledgrp.rec.spcbenflg" label="Spc.Pay Conditions for Ben" name="spbpame">
<el-tab-pane
v-if="model.ledgrp.rec.spcbenflg"
label="Spc.Pay Conditions for Ben"
name="spbpame"
>
<c-content>
<m-doxpame :model="model" :codes="codes" :recgrp="'ledgrp'" :ametyp="'spcben'"/>
<m-doxpame
:model="model"
:codes="codes"
:recgrp="'ledgrp'"
:ametyp="'spcben'"
/>
</c-content>
</el-tab-pane>
</c-tabs>
......@@ -227,7 +260,12 @@ export default {
console.log("进入letame交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
//更新数据
this.updateModel(rtnmsg.data);
//Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
......
......@@ -225,7 +225,7 @@ export default {
if (rtnmsg.respCode == SUCCESS) {
//更新数据
this.updateModel(rtnmsg.data)
Utils.copyValueFromVO(this.model, rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
......
......@@ -131,6 +131,19 @@
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
@select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
<c-grid-ety-prompt-dialog
ref="doxpDialog"
:isPty="false"
:promptData="promptData"
@select-ety="selectMsg"
>
</c-grid-ety-prompt-dialog>
</div>
</c-page>
</template>
......@@ -201,7 +214,12 @@ export default {
console.log("进入letrsv交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
console.log("1111", this.model);
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
......
......@@ -225,9 +225,9 @@
</el-form-item>
</c-col>
<c-col :offset="12" :span="10">
<el-tabs tab-position="right" @tab-click="change">
<el-tabs tab-position="right" @tab-click="onNarBtnClick('9')">
<el-tab-pane v-for="it in meum" :key="it.label" :label="it.label">
<sel-mune :data="it.item" />
<sel-mune :data="it.item" :model="model" />
</el-tab-pane>
</el-tabs>
</c-col>
......@@ -251,15 +251,17 @@ export default {
meum: [
{
label: "L/C",
hotreg: "1",
item: [
{
title: "Pre-Advising/Notifying",
url: "#/business/letrsv",
url: "/business/letrsv",
disabled: false,
},
{
title: "Advising/Confirming",
url: "#/business/letopn",
url: "/business/letopn",
hotsubx: "6",
disabled: false,
},
{ title: "Reservation", url: "#", disabled: false },
......@@ -267,7 +269,8 @@ export default {
{ title: "Confirmation an Export L/C", url: "#", disabled: true },
{
title: "Amending Issuing Bank",
url: "#/business/letame",
url: "/business/letame",
hotsubx: "6",
disabled: false,
},
{
......@@ -335,8 +338,14 @@ export default {
},
{
label: "Transfer",
hotreg: "11",
item: [
{ title: "Opening a Transfer L/C", url: "#", disabled: true },
{
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",
......@@ -386,7 +395,19 @@ export default {
],
};
},
methods: { ...Event, change(tab, event) {} },
methods: {
...Event,
change(tab, event) {},
//各入口按钮请求
async onNarBtnClick(hotreg) {
let rtnmsg = await this.executeRule(`cfgfil.hotreg${hotreg}`);
if ((rtnmsg.respCode = SUCCESS)) {
this.updateModel(rtnmsg.data);
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
},
created: function () {},
};
</script>
......
......@@ -8,25 +8,46 @@
>
<el-table-column prop="title" align="center">
<template slot-scope="scope">
<el-link
<c-button
@click.native="onNarBtnClick(scope.row.url, scope.row.hotsubx)"
:title="scope.row.title"
:disabled="scope.row.disabled"
>{{ scope.row.title }}</c-button
>
<!-- <el-link
:disabled="scope.row.disabled"
:href="scope.row.url"
v-if="scope.row.title"
>{{ scope.row.title }}</el-link
>
> -->
</template>
</el-table-column>
</el-table>
</template>
<script>
import CommonProcess from "~/mixin/CommonProcess";
export default {
props: ["data"],
inject: ["root"],
props: ["data", "model"],
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
cellSttyle: { height: "25px" },
};
},
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);
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
},
};
</script>
......
......@@ -129,7 +129,12 @@ export default {
console.log("进入lttopn交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
console.log("1111", this.model);
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
......
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