Commit b9ad97f2 by wangna

gitsel

parent 2f1137e3
......@@ -95,6 +95,7 @@ export default class Gitsel{
clsflg:"", // which contracts to show .gcdget.clsflg
},
cfgfil:{
btnstm:[],
bitmap:"", // Bitmap for folder .cfgfil.bitmap
regside1:"", // Regside .cfgfil.regside1
regside2:"", // Regside .cfgfil.regside2
......
......@@ -75,6 +75,7 @@ export default class Infgid{
},
gidgrp:{
rec:{
inr:"",
ownref:"", // Reference .gidgrp.rec.ownref
resflg:"", // Reserved Contract .gidgrp.rec.resflg
rejflg:"", // Direct rejection .gidgrp.rec.rejflg
......
<template>
<el-table
:data="tableData"
border
stripe
:show-header="false"
:cell-style="cellSttyle"
>
<el-table-column prop="label" align="center">
<template slot-scope="scope">
<c-button
@click="onNarBtnClick(scope.row.url, scope.row.label)"
:label="scope.row.label"
:disabled="scope.row.disabled"
>{{ scope.row.label }}</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 {
inject: ["root"],
props: ["data", "model"],
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
cellSttyle: { height: "25px" },
meumItem: [],
};
},
methods: {
//各入口按钮请求
async onNarBtnClick(url, label) {
let key = 0;
for(let i = 1; i <= 11 ; i++){
let temp_label = this.model.cfgfil['subtxt'+i];
if(temp_label == label){
key = i;
break;
}
}
let rtnmsg = await this.executeRule("cfgfil.hotsub"+key);
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
url = url.toLowerCase();
this.$router.history.push("/business/" + url);
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
},
},
computed: {
tableData() {
const arr = [];
var data = this.data;
for (let i = 0; i < data.length; i++) {
const items = data[i].split("\t");
arr.push({
url: items[0],
label: items[1],
disabled: items[2] == "N" ? true : false,
other: items[3],
});
}
return arr;
},
},
};
</script>
<style>
a {
text-decoration-line: none;
color: #606266;
}
a:hover {
color: blue;
}
</style>
\ No newline at end of file
......@@ -639,11 +639,11 @@ export default {
methods: { ...Event,
async getButtons(ownref){
this.initdialog = true
this.ownref = ownref
console.log("ownref:" +ownref);
setTimeout(()=>{
this.$refs.childs.$emit("childmethods")
},10)
// this.ownref = ownref
// console.log("ownref:" +ownref);
// setTimeout(()=>{
// this.$refs.childs.$emit("childmethods")
// },10)
},
async onChoose(code){
//跳转交易
......
<template>
<div class="busnavbar">
<div class="busnavbar-items">
<c-button
style="margin-left:7px;"
size="medium"
type="primary"
class="medium_bcs"
v-for="(item,index) in codeList"
v-bind:key="index"
@click.native="onNarBtnClick(item.code,index)"
:title="item.title"
:disabled="item.isDis==='N'"
>{{item.label}}</c-button>
<c-button style="margin-left:7px;" size="medium" type="primary" class="medium_bcs" v-for="(item,index) in codeList" v-bind:key="index" @click.native="onNarBtnClick(item.code,index)" :title="item.title" :disabled="item.isDis==='N'">{{item.label}}</c-button>
</div>
</div>
</template>
......@@ -83,20 +73,20 @@ export default {
this.model.gidgrp.rec.ownref = this.ownref
console.log("ownref:" + this.ownref );
let rtnmsg = await this.executeRule("gidgrp.rec.ownref");// gidgrp_rec_ownref
let rtnmsg = await this.executeRule("gidgrp.rec.ownref");//gidgrp_rec_ownref
if(rtnmsg.respCode == SUCCESS){
//重置数组
this.navcode = []
this.updateModel(rtnmsg.data)
//this.model.cfgfil.btnstm = rtnmsg.data.cfgfil_btnstm.rows
//给inr赋值,后面弹窗里面的按钮请求会用到
//this.model. gidgrp.rec.inr = rtnmsg.data. gidgrp_rec_inr
console.log("ownref:" + this.ownref );
//this.model.gidgrp.rec.inr = rtnmsg.data.gidgrp_rec_inr
const length = this.model.cfgfil.btnstm.rows.length
let btnStr = this.model.cfgfil.btnstm.rows
let j = 0;
let m = 0;
const buttonIndex = ['国内证通知','国内证修改通知','收单']
// const buttonIndex = ['保证金收取','保证金注销','保证金调整','开立信用证','信用证修改','减额修改接受','修改通知行','到单']
const buttonIndex = ['信用证修改','减额修改接受','到单','修改通知行']
for(let i=0; i < length; i++){
//获取数组中每行的数据
if(!( btnStr[i].indexOf("保证金") >= 0) && !(btnStr[i].indexOf("开立信用证") >= 0)){
......@@ -117,6 +107,8 @@ export default {
}
}
}else{
this.navcode = []
this.$notify.error({ title: "错误", message: "服务请求失败!" });
......
<template>
<div class="eibs-tab">
<<<<<<< HEAD:src/views/Business/Infgid/Cbeinfp.vue
<c-col :span="12">
<el-form-item label="stream of CBEs" prop="infcon.cbestm">
<c-input v-model="model.infcon.cbestm" placeholder="请输入stream of CBEs"></c-input>
</el-form-item>
</c-col>
</div>
=======
</div>
>>>>>>> 76ea812e7d5f5e9cbd030eb58098ca831ca35b43:src/views/Business/Letsel/Regp.vue
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
<<<<<<< HEAD:src/views/Business/Infgid/Cbeinfp.vue
import Event from "~/model/Infgid/Event"
=======
import Event from "~/model/Letsel/Event"
>>>>>>> 76ea812e7d5f5e9cbd030eb58098ca831ca35b43:src/views/Business/Letsel/Regp.vue
export default {
inject: ['root'],
......
......@@ -139,7 +139,7 @@
>
<c-select
v-model="model.infcon.relflg"
style="width:100%"
style="width: 100%"
placeholder="请选择Release Status"
>
<el-option
......@@ -159,7 +159,7 @@
>
<c-select
v-model="model.infcon.hndtyp"
style="width:100%"
style="width: 100%"
placeholder="请选择Handling Type"
>
<el-option
......@@ -182,7 +182,7 @@
>
<c-select
v-model="model.infcon.searol"
style="width:100%"
style="width: 100%"
placeholder="请选择Role"
>
<el-option
......@@ -215,7 +215,7 @@
>
<c-select
v-model="model.infcon.seasta"
style="width:100%"
style="width: 100%"
placeholder="请选择Status"
>
<el-option
......@@ -258,7 +258,7 @@
>
<c-select
v-model="model.infcon.cxmflg"
style="width:100%"
style="width: 100%"
placeholder="请选择是否显示查询码"
>
<el-option
......@@ -326,7 +326,7 @@
>
<c-select
v-model="model.seahndtyp"
style="width:100%"
style="width: 100%"
placeholder="请选择Handling Type"
>
<el-option
......@@ -346,7 +346,7 @@
>
<c-select
v-model="model.seagtyp"
style="width:100%"
style="width: 100%"
placeholder="请选择Undertaking Type"
>
</c-select>
......@@ -363,7 +363,7 @@
>
<c-select
v-model="model.infcon.segtyp"
style="width:100%"
style="width: 100%"
placeholder="请选择特殊保函类型"
>
</c-select>
......@@ -377,7 +377,7 @@
>
<c-select
v-model="model.fromflg"
style="width:100%"
style="width: 100%"
placeholder="请选择电子渠道类型"
>
<el-option
......@@ -397,7 +397,7 @@
>
<c-select
v-model="model.fenlishi"
style="width:100%"
style="width: 100%"
placeholder="请选择是否分离式保函"
>
<el-option
......@@ -415,23 +415,19 @@
<c-col :span="8">
<el-form-item
label=""
style="margin-left:110px;"
style="margin-left: 110px"
prop="model.cmtflg"
>
<c-checkbox
v-model="model.cmtflg"
>跨境人民币保函</c-checkbox>
<c-checkbox v-model="model.cmtflg">跨境人民币保函</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label=""
style="margin-left:110px;"
style="margin-left: 110px"
prop="model.fingua"
>
<c-checkbox
v-model="model.fingua"
>融资性对外担保</c-checkbox>
<c-checkbox v-model="model.fingua">融资性对外担保</c-checkbox>
</el-form-item>
</c-col>
</c-col>
......@@ -446,7 +442,8 @@
size="medium"
type="primary"
@click="toGitopn"
>开立进口保函</c-button>
>开立进口保函</c-button
>
</c-col>
<c-col :span="24" style="text-align: right; height: 100px">
......@@ -468,7 +465,14 @@
trigger="click"
:ref="'popover_' + scope.row.IDX"
>
<div style="text-align: right; margin-top: -30px; margin-right: 5px; font-size: 16px;">
<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)"
......@@ -481,7 +485,8 @@
style="margin-left: 0"
size="small"
@click="display(scope.row['INR'])"
>详情</c-button>
>详情</c-button
>
</template>
</el-table-column>
</c-istream-table>
......@@ -490,14 +495,16 @@
size="small"
@click="getTrnInfo(scope.$index, scope.row)"
slot="reference"
>详情</c-button>
>详情</c-button
>
</el-popover>
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'])"
>处理</c-button>
>处理</c-button
>
</template>
</el-table-column>
</c-istream-table>
......@@ -505,15 +512,12 @@
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn
ref="childs"
:ownref="ownref"
@onChoose="onChoose"
>11</m-busbtn>
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
>11</m-busbtn
>
</div>
</el-dialog>
<!-- <c-col :span="12">
<el-form-item label="Own Reference" prop="infcon.seaownref">
<c-input v-model="model.infcon.seaownref" maxlength="16" placeholder="请输入Own Reference"></c-input>
......@@ -689,6 +693,7 @@
</div>
</template>
<script>
import Utils from "~/utils/index";
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
......@@ -697,13 +702,13 @@ import Event from "~/model/Infgid/Event";
import BusNavbar from "~/views/Business/Infgid/BusNavbar";
export default {
inject: ['root'],
props:["model","codes"],
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
components: { "m-busbtn": BusNavbar },
data(){
data() {
return {
ownref:"",
ownref: "",
initdialog: false,
dialogTableVisible: false,
trnData: {
......@@ -740,29 +745,28 @@ export default {
'19 16 "Cur" 150',
'20 19 "Open Amount" 150',
'21 17 "Cur" 150',
'22 15 "Open Amount(RMB)" 150'
'22 15 "Open Amount(RMB)" 150',
],
data: [],
},
};
},
methods:{
methods: {
...Event,
async getButtons(ownref){
async getButtons(ownref) {
this.initdialog = true;
this.ownref = ownref;
console.log("ownref:" +ownref);
setTimeout(()=>{
console.log("ownref:" + ownref);
setTimeout(() => {
this.$refs.childs.$emit("childmethods")
},10);
}, 10)
},
async onChoose(code){
async onChoose(code) {
//跳转交易
this.$router.history.push("/business/" + code);
this.initdialog = false;
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
this.model.gidgrp.rec.inr = row["INR"];
......@@ -781,9 +785,15 @@ export default {
toGitopn() {
this.$router.history.push("/business/gitopn");
},
handleReset: function () {
this.model = {
instNo: "",
instName: "",
};
},
created:function() {},
}
},
created: function () {},
};
</script>
<style>
.el-dialog__body {
......
......@@ -7,7 +7,6 @@ import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Letsel/Event"
import Event from "~/model/Letsel/Event"
export default {
inject: ['root'],
......
......@@ -135,9 +135,10 @@ export default {
{ inifrm: "examRule", ininam: "智能审单规则配置", pntmiu: "12" },
//进口保函
{ inifrm: "13", ininam: "进口保函", pntmiu: "" },
{ inifrm: "gitsel", ininam: "进口保函查询", pntmiu: "13" },
{ inifrm: "gitset", ininam: "进口保函赔付", pntmiu: "13" },
{ inifrm: "gitcrq", ininam: "进口保函索赔登记", pntmiu: "13" },
{ inifrm: "infgid", ininam: "进口保函入口交易", pntmiu: "13" },
// { inifrm: "gitsel", ininam: "进口保函查询", pntmiu: "13" },
// { inifrm: "gitset", ininam: "进口保函赔付", pntmiu: "13" },
// { inifrm: "gitcrq", ininam: "进口保函索赔登记", pntmiu: "13" },
{ inifrm: "14", ininam: "服务管理", pntmiu: "" },
{ inifrm: "switsk", ininam: "Switsk", pntmiu: "14" },
{ inifrm: "mgrtsk", ininam: "Mgrtsk", pntmiu: "14" },
......
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