Commit cc4eec5a by javaHeight

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs into development-202206
parents 223aa631 f7aed753
......@@ -7,7 +7,10 @@ export default {
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
console.log(rtnmsg.data);
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
this.stmData.data = rtnmsg.data.msgstm.rows;
}
else
{
......
......@@ -471,7 +471,7 @@ export default {
{max: 32,message:"长度不能超过32"}
],
"bopmod.dbbgrp.bas.fcyamt":[
{type: "number", required: false, message: "必输项"} ],
{type: "string", required: false, message: "必输项"} ],
"bopmod.dbbgrp.bas.fcyacc":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
......
......@@ -25,13 +25,13 @@ export default {
"cptp.cleage" :Utils.defaultFunction,
"cptp.evebch" :Utils.defaultFunction,
"cptp.coract" :Utils.defaultFunction,
// "cpdgrp.pye.pts.extkey" :Utils.defaultFunction,
"cpdgrp.pye.pts.extkey" :Utils.defaultFunction,
"cpdgrp.rec.trntyp" :Utils.defaultFunction,
"cpdgrp.orc.pts.adrblk" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction,
"setmod.dspflg" :Utils.defaultFunction,
"setmod.docamt" :Utils.defaultFunction,
// "cpdgrp.rec.orcact" :Utils.defaultFunction,
"cpdgrp.rec.orcact" :Utils.defaultFunction,
"cptp.resbch" :Utils.defaultFunction,
"cptp.secmod" :Utils.defaultFunction,
"trnmod.trndoc.condocstm" :Utils.defaultFunction,
......
......@@ -171,13 +171,13 @@ export default {
"bedgrp.blk.docdis": [
{ type: "string", required: false, message: "必输项" },
{ max: 50, message: "长度不能超过50" }
{ max: 3500, message: "长度不能超过3500" }
],
"bedgrp.blk.intdis": [
{ type: "string", required: false, message: "必输项" },
{ max: 65, message: "长度不能超过65" }
{ max: 1300, message: "长度不能超过1300" }
],
......@@ -200,7 +200,7 @@ export default {
"bedgrp.blk.comcon": [
{ type: "string", required: false, message: "必输项" },
{ max: 65, message: "长度不能超过65" }
{ max: 1300, message: "长度不能超过1300" }
],
"bedgrp.oth.namelc": [
......@@ -222,7 +222,7 @@ export default {
"bedgrp.blk.setinsbe": [
{ type: "string", required: false, message: "必输项" },
{ max: 65, message: "长度不能超过65" }
{ max: 390, message: "长度不能超过390" }
],
"liaall.limmod.ecifno": [
......
......@@ -18,15 +18,15 @@ export default class Letsel{
dsp:"", // Display .selbut.syswrn.dsp
},
},
dsprevnbr:"", // Revolving Done .dsprevnbr
// dsprevnbr:"", // Revolving Done .dsprevnbr
dspltamenbr:"", // Display LT Amendments .dspltamenbr
dsppcrsta:"", // Display LC against Packing Credit .dsppcrsta
dsptrdclsdat:"", // Display Closing Date of Packing Credit .dsptrdclsdat
dspbedclsdat:"", // Display Closing Date of Document Set .dspbedclsdat
dspbpdclsdat:"", // Display Closing Date of Advance .dspbpdclsdat
dspltdclsdat:"", // Diplay Closing Date of Transfer .dspltdclsdat
dspbtdclsdat:"", // Display Closing Date of Docs of Transfer .dspbtdclsdat
dspprenbr:"", // Display Number of Transfer Documents .dspprenbr
dspltamenbr:"", // Display LT Amendments .dspltamenbr
dspbtdclsdat:"", // Display Closing Date of Docs of Transfer .dspbtdclsdat
sptpenltbt_descr:"", // Description for SPTPENLTBT .sptpenltbt_descr
sptpentrbp_descr:"", // Description for SPTPENTRBP .sptpentrbp_descr
trnpenltbt_descr:"", // Description for TRNPENLTBT .trnpenltbt_descr
......
......@@ -19,6 +19,9 @@ export default class Litsel{
dsp:"", // Display .selbut.syswrn.dsp
},
},
dspprenbr:"",
dspbtdclsdat:"",
dspltamenbr:"",
dspbrdclsdat:"", // Display Closing Date of Document Set .dspbrdclsdat
dsptrdclsdat:"", // Display Closeing Date of Loan .dsptrdclsdat
sptpentrbp_descr:"", // Description for SPTPENTRBP .sptpentrbp_descr
......
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/test/trl/queryByPage", data)
}
export function queryById(inr) {
return Api.post(`/test/trl/queryById?inr=${inr}`)
}
export function add(data) {
return Api.post("/test/trl/add", data)
}
export function edit(data) {
return Api.post("/test/trl/edit", data)
}
export function deleteById(inr) {
return Api.post(`/test/trl/deleteById?inr=${inr}`)
}
\ No newline at end of file
import Api from "~/service/Api"
export function queryByPage(data) {
return Api.post("/test/usr/queryByPage", data)
}
export function queryDetailById(inr) {
return Api.post(`/test/usr/queryDetailById?inr=${inr}`)
}
export function add(data) {
return Api.post("/test/usr/add", data)
}
export function edit(data) {
return Api.post("/test/usr/edit", data)
}
export function deleteById(inr) {
return Api.post(`/test/usr/deleteById?inr=${inr}`)
}
// export function addAdrData(inr, data) {
// return Api.post(`/test/usr/addAdrData?inr=${inr}`, data)
// }
//
// export function updateAdrData(inr, data) {
// return Api.post(`/test/usr/updateAdrData?inr=${inr}`, data)
// }
//
// export function deleteAdrData(data) {
// return Api.post(`/test/usr/deleteAdrData`, data)
// }
\ No newline at end of file
......@@ -79,11 +79,12 @@ export default {
columns: [
//{index:3,position:3,width:110,pattern:'date',label:'日期'},
//{index:4,position:4,width:100,pattern:'code',label:'状态',code:this.codes.relstaEN},
'0 1 "申报编号" 150 ',
'1 2 "临时编号" 150',
'2 3 "收付汇日期" 100',
'3 4 "数据类型" 90',
'4 5 "申报类型" 200',
'0 1 "申报编号" 180 ',
'1 2 "临时编号" 180',
//'2 3 "收付汇日期" 100',
{index:2,position:3,width:150,pattern:'date',label:'收付汇日期'},
'3 4 "数据类型" 120',
'4 5 "申报类型" 250',
'5 6 "状态" 80',
],
data: [],
......
......@@ -2,7 +2,7 @@
<div class="eibs">
<c-col :span="24">
<c-col :span="12" style="padding-right: 20px;">
<el-form-item label="申报类型" label-width="120px">
<el-form-item label="申报类型" label-width="120px" prop="bopmod.szflg">
<c-select v-model="model.bopmod.szflg"
style="width:100%"
placeholder="请选择申报类型"
......
......@@ -258,21 +258,20 @@
<el-form-item label="购汇汇率" prop="bopmod.dbagrp.bas.exrate">
<c-fullbox>
<c-input
v-model="model.bopmod.dbagrp.bas.exrate"
placeholder="请输入购汇汇率"
disabled
></c-input>
<template slot="footer">
<c-checkbox
v-model="model.bopmod.dbap.baspp.baspp"
v-model="model.bopmod.dbagrp.bas.exrate"
placeholder="请输入购汇汇率"
disabled
style="margin: 0px 0 0px 10px"
:checked="true"
>确认</c-checkbox
>
</template>
></c-input>
<template slot="footer">
<c-checkbox
v-model="model.bopmod.dbap.baspp.baspp"
disabled
style="margin: 0px 0 0px 10px"
:checked="true"
>确认</c-checkbox
>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
......
......@@ -13,7 +13,7 @@
<c-col :span="24">
<el-form-item label="操作类型" prop="bopmod.dbdgrp.bas.actiontype">
<c-input placeholder="请选择操作类型" v-model="model.bopmod.dbdgrp.bas.actiontype" disabled>
<c-input placeholder="请选择操作类型" v-model="model.bopmod.dbdgrp.bas.actiontype" disabled :code="codes.actiontype">
</c-input>
</el-form-item>
</c-col>
......
......@@ -65,7 +65,7 @@
v-model="model.bopmod.dbbgrp.bas.custnm"
maxlength="63"
show-word-limit
placeholder="请输入款人名称"
placeholder="请输入款人名称"
></c-input>
</el-form-item>
</c-col>
......@@ -110,7 +110,7 @@
<c-select
v-model="model.bopmod.dbbgrp.bas.txccy"
style="width: 100%"
placeholder="请选择款币种及金额"
placeholder="请选择款币种及金额"
:code="codes.curtxt"
disabled
>
......@@ -184,29 +184,26 @@
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
</c-col>
<c-col :span="24"> </c-col>
<c-col :span="24">
<el-form-item label="购汇汇率" prop="bopmod.dbbgrp.bas.exrate">
<c-fullbox>
<c-input
v-model="model.bopmod.dbbgrp.bas.exrate"
placeholder="请输入购汇汇率"
disabled
></c-input>
<template slot="footer">
<c-checkbox
v-model="model.bopmod.dbbp.baspp.baspp"
v-model="model.bopmod.dbbgrp.bas.exrate"
placeholder="请输入购汇汇率"
disabled
style="margin: 0px 0 0px 10px"
:checked="true"
>确认</c-checkbox
>
</template>
></c-input>
<template slot="footer">
<c-checkbox
v-model="model.bopmod.dbbp.baspp.baspp"
disabled
style="margin: 0px 0 0px 10px"
:checked="true"
>确认</c-checkbox
>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -257,7 +254,7 @@ import Api from "~/service/Api";
import Utils from "~/utils/index";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtset/Event";
import Event from "~/model/Cptato/Event";
export default {
inject: ["root"],
......@@ -270,7 +267,7 @@ export default {
created: function () {
this.executeRule("bopmod.dbbp.basp").then((res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(res.data);
this.updateModel(res.data);
}
});
},
......
......@@ -263,7 +263,7 @@ import Api from "~/service/Api";
import Utils from "~/utils/index";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtset/Event";
import Event from "~/model/Cptato/Event";
export default {
inject: ["root"],
......
......@@ -66,16 +66,11 @@
v-model="model.cpdgrp.cbs.nom1.amt"
style="text-align: left; width: 100%"
placeholder="请输入汇款金额"
@keyup.enter.native="
defaultFunction(
'cpdgrp.cbs.nom1.amt',
model.cpdgrp.cbs.nom1.amt
)
"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
......@@ -334,6 +329,7 @@
<el-form-item label="地址信息" prop="cpdgrp.orc.pts.adrblk">
<c-input
type="textarea"
:rows="3"
v-model="model.cpdgrp.orc.pts.adrblk"
maxlength="235"
show-word-limit
......@@ -611,10 +607,12 @@
<el-form-item label="地址信息" prop="cpdgrp.pye.pts.adrblk">
<c-input
type="textarea"
:rows="3"
v-model="model.cpdgrp.pye.pts.adrblk"
maxlength="35"
show-word-limit
placeholder="请输入地址信息"
disabled
></c-input>
</el-form-item>
</c-col>
......
......@@ -37,12 +37,16 @@
</el-tab-pane>
<!-- 报文和面函 -->
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<!--PD000000 -->
<m-docpan :model="model" :codes="codes" />
<m-docpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="附件信息" name="doctre">
<c-content>
<!--附件 -->
<m-doctre :model="model" :codes="codes" />
<m-doctre :model="model" :codes="codes" />
</c-content>>
</el-tab-pane>
</c-tabs>
......@@ -63,7 +67,9 @@ import CodeTable from "~/config/CodeTable";
import Cptato from "~/model/Cptato";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from '~/model/Cptato/Check'
import Pattern from "~/model/Cptato/Pattern";
import Default from "~/model/Cptato/Default";
import Ovwp from "./Ovwp";
import Cnyp from "./Cnyp";
......@@ -100,8 +106,11 @@ export default {
tabVal: "ovwp",
trnName: "cptato",
model: new Cptato().data,
rules: Pattern,
pattern: Pattern,
checkRules: Check,
defaultRules: Default,
activeNames: ["setpan"],
rules: null,
codes: { ...CodeTable },
};
},
......@@ -118,6 +127,7 @@ export default {
console.log("进入cptato交易");
let rtnmsg = await this.init(this.$route.query);
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑
Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
......
......@@ -39,7 +39,7 @@
</c-col>
<c-col :span="24" v-if="model.cptp.qsfysd === '1'">
<el-form-item label="服务提供银行">
<el-form-item label="服务提供银行" prop="cptp.fwtgyh">
<c-input
v-model="model.cptp.fwtgyh"
placeholder=""
......
......@@ -2,7 +2,7 @@
<div class="eibs">
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item label="是否报送跨境人民币2101表" label-width="180px">
<el-form-item label="是否报送跨境人民币2101表" label-width="180px" prop="cnybop.cnyflg">
<c-select
v-model="model.cnybop.cnyflg"
style="width: 100%"
......@@ -20,7 +20,7 @@
</c-col>
<c-col :span="24">
<el-form-item label="是否报送跨境人民币2107表" label-width="180px">
<el-form-item label="是否报送跨境人民币2107表" label-width="180px" prop="cnybop.traflg">
<c-select
v-model="model.cnybop.traflg"
style="width: 100%"
......@@ -59,7 +59,7 @@
</c-col>
<c-col :span="24">
<el-form-item label="是否报送跨境人民币2106表" label-width="180px">
<el-form-item label="是否报送跨境人民币2106表" label-width="180px" prop="cnybop.libflg">
<c-select
v-model="model.cnybop.libflg"
style="width: 100%"
......@@ -77,7 +77,7 @@
</c-col>
<c-col :span="24">
<el-form-item label="是否报送跨境人民币2122表" label-width="180px">
<el-form-item label="是否报送跨境人民币2122表" label-width="180px" prop="cnybop.vouflg">
<c-select
v-model="model.cnybop.vouflg"
placeholder="请选择"
......
......@@ -662,7 +662,6 @@
<c-input
type="textarea"
placeholder=""
readonly
rows="3"
v-model="model.cpdgrp.blk.contag70"
></c-input>
......@@ -730,6 +729,7 @@
v-model="model.cpdgrp.pye.pts.adrblk"
show-word-limit
placeholder="请输入"
:disabled="model.cpdgrp.pye.pts.extkey!=''"
></c-input>
</el-form-item>
</c-col>
......
......@@ -485,7 +485,7 @@ export default {
created: function () {
this.executeRule("bopmod.dbbp.basp").then((res) => {
if (res.respCode == SUCCESS) {
this.copyValueFromVO(res.data);
this.updateModel(res.data);
}
});
},
......
......@@ -9,7 +9,7 @@
</c-col>
<c-col :span="24">
<el-form-item label="贷款业务号" prop="trdgrp.rec.ownref">
<c-input v-model="model.trdgrp.rec.ownref" maxlength="16" placeholder="" disabled></c-input>
<c-input v-model="model.trdgrp.rec.ownref" maxlength="16" placeholder=""></c-input>
</el-form-item>
</c-col>
</c-col>
......
......@@ -119,7 +119,7 @@
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item label="汇款语种">
<el-form-item label="汇款语种" prop="cptp.payuil">
<c-select
v-model="model.cptp.payuil"
placeholder="请选择汇款语种"
......@@ -175,7 +175,7 @@
</c-col>
<c-col :span="24">
<el-form-item label="我行费用负担">
<el-form-item label="我行费用负担" prop="cpdgrp.rec.detchgcod">
<c-select
v-model="model.cpdgrp.rec.detchgcod"
style="width: 100%"
......@@ -365,7 +365,7 @@
<c-col :span="24">
<c-col :span="13">
<el-form-item label="货物类型">
<el-form-item label="货物类型" prop="cpdgrp.rec.stagod">
<c-select
v-model="model.cpdgrp.rec.stagod"
style="width: 100%"
......@@ -384,6 +384,7 @@
<c-col :span="11">
<el-form-item
label="清算模式"
prop="cptp.liqtyp"
v-if="model.cpdgrp.cbs.nom1.cur === 'CNY'"
>
<c-select
......
......@@ -226,6 +226,13 @@ export default {
options: [],
};
},
created: function () {
this.executeRule("cnybop.outp").then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
},
};
</script>
......
......@@ -23,7 +23,7 @@
<c-col :span="12">
<el-form-item label="保函金额" prop="recgrp.bas.guarancurr">
<c-select :code="codes.curtxt1" v-model="model.recgrp.bas.guarancurr" style="width:100%" placeholder="">
<c-select :code="codes.infled_Cur" v-model="model.recgrp.bas.guarancurr" style="width:100%" placeholder="">
</c-select>
</el-form-item>
</c-col>
......@@ -42,7 +42,7 @@
<c-col :span="12">
<el-form-item label="主债务金额" prop="recgrp.bas.maindebtcurr">
<c-select :code="codes.curtxt1" v-model="model.recgrp.bas.maindebtcurr" style="width:100%" placeholder="">
<c-select :code="codes.infled_Cur" v-model="model.recgrp.bas.maindebtcurr" style="width:100%" placeholder="">
</c-select>
</el-form-item>
</c-col>
......@@ -54,7 +54,7 @@
<c-col :span="24">
<el-form-item label="受益人类型" prop="recgrp.bas.bentype">
<c-select v-model="model.recgrp.bas.bentype" style="width:100%" placeholder="">
<c-select :code="bentype" v-model="model.recgrp.bas.bentype" style="width:100%" placeholder="">
</c-select>
</el-form-item>
</c-col>
......@@ -79,7 +79,7 @@
<c-col :span="24">
<el-form-item label="被担保人类型" prop="recgrp.bas.guedtype">
<c-select v-model="model.recgrp.bas.guedtype" style="width:100%" placeholder="">
<c-select :code="codes.debtortype" v-model="model.recgrp.bas.guedtype" style="width:100%" placeholder="">
</c-select>
</el-form-item>
</c-col>
......@@ -151,7 +151,7 @@
<c-col :span="21">
<el-form-item label="发行/上市方式" prop="recgrp.bas.maindebtmanner">
<c-select v-model="model.recgrp.bas.maindebtmanner" style="width:100%" placeholder="">
<c-select :code="maindebtmanner" v-model="model.recgrp.bas.maindebtmanner" style="width:100%" placeholder="">
</c-select>
</el-form-item>
</c-col>
......@@ -173,7 +173,7 @@
<c-col :span="24">
<el-form-item label="被担保人所属行业" prop="recgrp.bas.guedindustrycode">
<c-select v-model="model.recgrp.bas.guedindustrycode" style="width:100%" placeholder="">
<c-select :code="codes.industrycode" v-model="model.recgrp.bas.guedindustrycode" style="width:100%" placeholder="">
</c-select>
</el-form-item>
</c-col>
......@@ -201,6 +201,27 @@ export default {
mixins: [commonProcess],
data(){
return {
bentype: [
{ label: "政府", value: "20001100" },
{ label: "国际金融组织", value: "20001200" },
{ label: "中央银行", value: "20001300" },
{ label: "境外银行", value: "20001401" },
{ label: "中资银行海外分支及附属机构", value: "20001402" },
{ label: "境内银行离岸部", value: "20001403" },
{ label: "境外非银行金融机构", value: "20001501" },
{ label: "中资非银行金融机构海外分支及附属机构", value: "20001502" },
{ label: "境内企业境外母公司", value: "20001601" },
{ label: "境内企业境外分支及附属机构", value: "20001602" },
{ label: "关联企业", value: "20001603" },
{ label: "其他企业", value: "20001699" },
{ label: "个人", value: "20001700" },
{ label: "资本市场", value: "20001800" },
{ label: "其他", value: "20009900" },
],
maindebtmanner:[
{ label: "公开发行", value: "1" },
{ label: "私募发行", value: "2" },
],
}
},
......
......@@ -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);
......
<template>
<el-dialog
:visible.sync="initdialog"
:title="'交易列表'"
append-to-body
:before-close="beforeClose"
@opened="opened"
>
<div class="m-list-btns">
<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 navcode"
v-bind:key="index"
@click.native="onNarBtnClick(item.code, item.index)"
:title="item.title"
:disabled="item.isDis === 'N'"
>{{ item.label }}</c-button
>
<div style="margin-top: 15px; margin-left: 10px">
<div
v-for="(str, idx) in tState"
:key="idx"
style="margin-bottom: 5px; font-weight: bold"
>
{{ str }}
</div>
</div>
</div>
</div>
</div>
</el-dialog>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import _ from "~/utils/Lodash";
export default {
props: {
ownref: {
required: true,
},
trnCode: {
required: true,
},
model: {
required: true,
},
ownrefPath: {
required: false,
default: "didgrp",
},
tabIndex: {
required: false,
default: 1,
},
},
components: {},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
initdialog: false,
navcode: [
// {code:"",label:"",isDis:"",title:""},
],
tState: [],
};
},
methods: {
//各入口按钮请求
async onNarBtnClick(code, i) {
this.model.cfgfil[`subtrn${i}`] = code;
let rtnmsg = await this.executeRule(`cfgfil.hotsub${i}`);
if (rtnmsg.respCode == SUCCESS) {
this.navcode = [];
this.$emit("onChoose", code.toLowerCase());
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
getIndex(module) {
for (let i = 1; i <= 12; i++) {
var temp = this.model.cfgfil[`subtxt${i}`];
if (module == temp) {
return i;
}
}
return 1;
},
opened() {
this.tState = [];
this.$emit("childmethods");
},
beforeClose() {
this.navcode = [];
this.initdialog = false;
},
},
mounted() {
this.trnName = this.trnCode;
this.$nextTick(function () {
this.$on("childmethods", async function () {
let res = await this.executeRule(`cfgfil.hotreg${this.tabIndex}`);
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
this.navcode = [];
//请求按钮数据
let rulePath;
if (this.ownrefPath.endsWith(".ownref")) {
_.set(this.model, this.ownrefPath, this.ownref);
rulePath = this.ownrefPath;
} else {
this.model[this.ownrefPath].rec.ownref = this.ownref;
rulePath = this.ownrefPath + ".rec.ownref";
}
let rtnmsg = await this.executeRule(rulePath); //didgrp_rec_ownref
if (rtnmsg.respCode == SUCCESS) {
//重置数组
this.navcode = [];
this.updateModel(rtnmsg.data);
//this.model.cfgfil.btnstm = rtnmsg.data.cfgfil_btnstm.rows
//给inr赋值,后面弹窗里面的按钮请求会用到
//this.model.didgrp.rec.inr = rtnmsg.data.didgrp_rec_inr
const length = this.model.cfgfil.btnstm.rows.length;
let btnStr = this.model.cfgfil.btnstm.rows;
for (let i = 0; i < length; i++) {
let arr = btnStr[i].split("\t");
var index = this.getIndex(arr[1]);
let newList = {
code: arr[0],
label: arr[1],
isDis: arr[2],
title: arr[3],
index: index,
};
this.navcode.push(newList);
}
// 交易状态信息
const arr = [];
arr.push(this.model.dspbrdclsdat);
this.tState = arr.filter((s) => {
const v = s.trim();
return v !== "";
});
} else {
this.navcode = [];
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
});
});
},
};
</script>
<style>
</style>
......@@ -282,7 +282,7 @@
style="margin-left: 5px"
size="small"
type="primary"
@click="getButtons(scope.row['信用证编号'])"
@click="getButtons(scope.row['信用证编号'], scope.row['关闭日期'])"
>
处理
</c-button>
......@@ -312,7 +312,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infbdd/Event";
import DitselModel from "~/model/Ditsel"
import BusNavbar from "~/views/Public/BusNavbar";
import BusNavbar from "./BusNavbar";
export default {
inject: ["root"],
......@@ -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);
},
......
<template>
<el-dialog
:visible.sync="initdialog"
:title="'交易列表'"
append-to-body
:before-close="beforeClose"
@opened="opened"
>
<div class="m-list-btns">
<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 navcode"
v-bind:key="index"
@click.native="onNarBtnClick(item.code, item.index)"
:title="item.title"
:disabled="item.isDis === 'N'"
>{{ item.label }}</c-button
>
<div style="margin-top: 15px;margin-left: 10px;">
<div v-for="(str,idx) in tState" :key="idx" style="margin-bottom: 5px;font-weight: bold;">
{{str}}
</div>
</div>
</div>
</div>
</div>
</el-dialog>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import _ from "~/utils/Lodash"
export default {
props: {
ownref: {
required: true,
},
trnCode: {
required: true,
},
model: {
required: true,
},
ownrefPath: {
required: false,
default: "didgrp",
},
tabIndex: {
required: false,
default: 1,
},
},
components: {},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
initdialog: false,
navcode: [
// {code:"",label:"",isDis:"",title:""},
],
tState: []
};
},
methods: {
//各入口按钮请求
async onNarBtnClick(code, i) {
this.model.cfgfil[`subtrn${i}`] = code;
let rtnmsg = await this.executeRule(`cfgfil.hotsub${i}`);
if (rtnmsg.respCode == SUCCESS) {
this.navcode = [];
this.$emit("onChoose", code.toLowerCase());
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
getIndex(module) {
for (let i = 1; i <= 12; i++) {
var temp = this.model.cfgfil[`subtxt${i}`];
if (module == temp) {
return i;
}
}
return 1;
},
opened() {
this.tState = []
this.$emit("childmethods");
},
beforeClose() {
this.navcode = [];
this.initdialog = false;
},
},
mounted() {
this.trnName = this.trnCode;
this.$nextTick(function () {
this.$on("childmethods", async function () {
let res = await this.executeRule(`cfgfil.hotreg${this.tabIndex}`);
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
this.navcode = [];
//请求按钮数据
let rulePath
if (this.ownrefPath.endsWith(".ownref")) {
_.set(this.model, this.ownrefPath, this.ownref);
rulePath = this.ownrefPath
} else {
this.model[this.ownrefPath].rec.ownref = this.ownref;
rulePath = this.ownrefPath + ".rec.ownref"
}
let rtnmsg = await this.executeRule(rulePath); //didgrp_rec_ownref
if (rtnmsg.respCode == SUCCESS) {
//重置数组
this.navcode = [];
this.updateModel(rtnmsg.data);
//this.model.cfgfil.btnstm = rtnmsg.data.cfgfil_btnstm.rows
//给inr赋值,后面弹窗里面的按钮请求会用到
//this.model.didgrp.rec.inr = rtnmsg.data.didgrp_rec_inr
const length = this.model.cfgfil.btnstm.rows.length;
let btnStr = this.model.cfgfil.btnstm.rows;
for (let i = 0; i < length; i++) {
let arr = btnStr[i].split("\t");
var index = this.getIndex(arr[1]);
let newList = {
code: arr[0],
label: arr[1],
isDis: arr[2],
title: arr[3],
index: index,
};
this.navcode.push(newList);
}
// 交易状态信息
const arr = []
arr.push(
this.model.dspbedclsdat
)
this.tState = arr.filter(s => {
const v = s.trim()
return v !== ""
})
} else {
this.navcode = [];
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
});
});
},
};
</script>
<style>
</style>
......@@ -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>
......@@ -351,7 +362,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infbed/Event";
import LetselModel from "~/model/Letsel";
import BusNavbar from "~/views/Public/BusNavbar";
import BusNavbar from "./BusNavbar";
export default {
inject: ["root"],
......@@ -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);
},
......
<template>
<el-dialog
:visible.sync="initdialog"
:title="'交易列表'"
append-to-body
:before-close="beforeClose"
@opened="opened"
>
<div class="m-list-btns">
<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 navcode"
v-bind:key="index"
@click.native="onNarBtnClick(item.code, item.index)"
:title="item.title"
:disabled="item.isDis === 'N'"
>{{ item.label }}</c-button
>
<div style="margin-top: 15px; margin-left: 10px">
<div
v-for="(str, idx) in tState"
:key="idx"
style="margin-bottom: 5px; font-weight: bold"
>
{{ str }}
</div>
</div>
</div>
</div>
</div>
</el-dialog>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import _ from "~/utils/Lodash";
export default {
props: {
ownref: {
required: true,
},
trnCode: {
required: true,
},
model: {
required: true,
},
ownrefPath: {
required: false,
default: "didgrp",
},
tabIndex: {
required: false,
default: 1,
},
},
components: {},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
initdialog: false,
navcode: [
// {code:"",label:"",isDis:"",title:""},
],
tState: [],
};
},
methods: {
//各入口按钮请求
async onNarBtnClick(code, i) {
this.model.cfgfil[`subtrn${i}`] = code;
let rtnmsg = await this.executeRule(`cfgfil.hotsub${i}`);
if (rtnmsg.respCode == SUCCESS) {
this.navcode = [];
this.$emit("onChoose", code.toLowerCase());
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
getIndex(module) {
for (let i = 1; i <= 12; i++) {
var temp = this.model.cfgfil[`subtxt${i}`];
if (module == temp) {
return i;
}
}
return 1;
},
opened() {
this.tState = [];
this.$emit("childmethods");
},
beforeClose() {
this.navcode = [];
this.initdialog = false;
},
},
mounted() {
this.trnName = this.trnCode;
this.$nextTick(function () {
this.$on("childmethods", async function () {
let res = await this.executeRule(`cfgfil.hotreg${this.tabIndex}`);
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
this.navcode = [];
//请求按钮数据
let rulePath;
if (this.ownrefPath.endsWith(".ownref")) {
_.set(this.model, this.ownrefPath, this.ownref);
rulePath = this.ownrefPath;
} else {
this.model[this.ownrefPath].rec.ownref = this.ownref;
rulePath = this.ownrefPath + ".rec.ownref";
}
let rtnmsg = await this.executeRule(rulePath); //didgrp_rec_ownref
if (rtnmsg.respCode == SUCCESS) {
//重置数组
this.navcode = [];
this.updateModel(rtnmsg.data);
//this.model.cfgfil.btnstm = rtnmsg.data.cfgfil_btnstm.rows
//给inr赋值,后面弹窗里面的按钮请求会用到
//this.model.didgrp.rec.inr = rtnmsg.data.didgrp_rec_inr
const length = this.model.cfgfil.btnstm.rows.length;
let btnStr = this.model.cfgfil.btnstm.rows;
for (let i = 0; i < length; i++) {
let arr = btnStr[i].split("\t");
var index = this.getIndex(arr[1]);
let newList = {
code: arr[0],
label: arr[1],
isDis: arr[2],
title: arr[3],
index: index,
};
this.navcode.push(newList);
}
// 交易状态信息
const arr = [];
arr.push(this.model.dspbfdclsdat);
this.tState = arr.filter((s) => {
const v = s.trim();
return v !== "";
});
} else {
this.navcode = [];
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
});
});
},
};
</script>
<style>
</style>
......@@ -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);
},
......
<template>
<el-dialog
:visible.sync="initdialog"
:title="'交易列表'"
append-to-body
:before-close="beforeClose"
@opened="opened"
>
<div class="m-list-btns">
<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 navcode"
v-bind:key="index"
@click.native="onNarBtnClick(item.code, item.index)"
:title="item.title"
:disabled="item.isDis === 'N'"
>{{ item.label }}</c-button
>
<div style="margin-top: 15px; margin-left: 10px">
<div
v-for="(str, idx) in tState"
:key="idx"
style="margin-bottom: 5px; font-weight: bold"
>
{{ str }}
</div>
</div>
</div>
</div>
</div>
</el-dialog>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import _ from "~/utils/Lodash";
export default {
props: {
ownref: {
required: true,
},
trnCode: {
required: true,
},
model: {
required: true,
},
ownrefPath: {
required: false,
default: "didgrp",
},
tabIndex: {
required: false,
default: 1,
},
},
components: {},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
initdialog: false,
navcode: [
// {code:"",label:"",isDis:"",title:""},
],
tState: [],
};
},
methods: {
//各入口按钮请求
async onNarBtnClick(code, i) {
this.model.cfgfil[`subtrn${i}`] = code;
let rtnmsg = await this.executeRule(`cfgfil.hotsub${i}`);
if (rtnmsg.respCode == SUCCESS) {
this.navcode = [];
this.$emit("onChoose", code.toLowerCase());
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
getIndex(module) {
for (let i = 1; i <= 12; i++) {
var temp = this.model.cfgfil[`subtxt${i}`];
if (module == temp) {
return i;
}
}
return 1;
},
opened() {
this.tState = [];
this.$emit("childmethods");
},
beforeClose() {
this.navcode = [];
this.initdialog = false;
},
},
mounted() {
this.trnName = this.trnCode;
this.$nextTick(function () {
this.$on("childmethods", async function () {
let res = await this.executeRule(`cfgfil.hotreg${this.tabIndex}`);
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
this.navcode = [];
//请求按钮数据
let rulePath;
if (this.ownrefPath.endsWith(".ownref")) {
_.set(this.model, this.ownrefPath, this.ownref);
rulePath = this.ownrefPath;
} else {
this.model[this.ownrefPath].rec.ownref = this.ownref;
rulePath = this.ownrefPath + ".rec.ownref";
}
let rtnmsg = await this.executeRule(rulePath); //didgrp_rec_ownref
if (rtnmsg.respCode == SUCCESS) {
//重置数组
this.navcode = [];
this.updateModel(rtnmsg.data);
//this.model.cfgfil.btnstm = rtnmsg.data.cfgfil_btnstm.rows
//给inr赋值,后面弹窗里面的按钮请求会用到
//this.model.didgrp.rec.inr = rtnmsg.data.didgrp_rec_inr
const length = this.model.cfgfil.btnstm.rows.length;
let btnStr = this.model.cfgfil.btnstm.rows;
for (let i = 0; i < length; i++) {
let arr = btnStr[i].split("\t");
var index = this.getIndex(arr[1]);
let newList = {
code: arr[0],
label: arr[1],
isDis: arr[2],
title: arr[3],
index: index,
};
this.navcode.push(newList);
}
// 交易状态信息
const arr = [];
arr.push(this.model.dspbrdclsdat);
this.tState = arr.filter((s) => {
const v = s.trim();
return v !== "";
});
} else {
this.navcode = [];
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
});
});
},
};
</script>
<style>
</style>
......@@ -312,7 +312,7 @@
style="margin-left: 5px"
size="small"
type="primary"
@click="getButtons(scope.row['单据编号'])"
@click="getButtons(scope.row['单据编号'],scope.row['关闭日期'])"
>
处理
</c-button>
......@@ -343,7 +343,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infbrd/Event";
import LitselModel from "~/model/Litsel"
import BusNavbar from "~/views/Public/BusNavbar";
import BusNavbar from "./BusNavbar";
export default {
inject: ["root"],
......@@ -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);
},
......
<template>
<el-dialog
:visible.sync="initdialog"
:title="'交易列表'"
append-to-body
:before-close="beforeClose"
@opened="opened"
>
<div class="m-list-btns">
<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 navcode"
v-bind:key="index"
@click.native="onNarBtnClick(item.code, item.index)"
:title="item.title"
:disabled="item.isDis === 'N'"
>{{ item.label }}</c-button
>
<div style="margin-top: 15px;margin-left: 10px;">
<div v-for="(str,idx) in tState" :key="idx" style="margin-bottom: 5px;font-weight: bold;">
{{str}}
</div>
</div>
</div>
</div>
</div>
</el-dialog>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import _ from "~/utils/Lodash"
export default {
props: {
ownref: {
required: true,
},
trnCode: {
required: true,
},
model: {
required: true,
},
ownrefPath: {
required: false,
default: "didgrp",
},
tabIndex: {
required: false,
default: 1,
},
},
components: {},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
initdialog: false,
navcode: [
// {code:"",label:"",isDis:"",title:""},
],
tState: []
};
},
methods: {
//各入口按钮请求
async onNarBtnClick(code, i) {
this.model.cfgfil[`subtrn${i}`] = code;
let rtnmsg = await this.executeRule(`cfgfil.hotsub${i}`);
if (rtnmsg.respCode == SUCCESS) {
this.navcode = [];
this.$emit("onChoose", code.toLowerCase());
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
getIndex(module) {
for (let i = 1; i <= 12; i++) {
var temp = this.model.cfgfil[`subtxt${i}`];
if (module == temp) {
return i;
}
}
return 1;
},
opened() {
this.tState = []
this.$emit("childmethods");
},
beforeClose() {
this.navcode = [];
this.initdialog = false;
},
},
mounted() {
this.trnName = this.trnCode;
this.$nextTick(function () {
this.$on("childmethods", async function () {
let res = await this.executeRule(`cfgfil.hotreg${this.tabIndex}`);
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
this.navcode = [];
//请求按钮数据
let rulePath
if (this.ownrefPath.endsWith(".ownref")) {
_.set(this.model, this.ownrefPath, this.ownref);
rulePath = this.ownrefPath
} else {
this.model[this.ownrefPath].rec.ownref = this.ownref;
rulePath = this.ownrefPath + ".rec.ownref"
}
let rtnmsg = await this.executeRule(rulePath); //didgrp_rec_ownref
if (rtnmsg.respCode == SUCCESS) {
//重置数组
this.navcode = [];
this.updateModel(rtnmsg.data);
//this.model.cfgfil.btnstm = rtnmsg.data.cfgfil_btnstm.rows
//给inr赋值,后面弹窗里面的按钮请求会用到
//this.model.didgrp.rec.inr = rtnmsg.data.didgrp_rec_inr
const length = this.model.cfgfil.btnstm.rows.length;
let btnStr = this.model.cfgfil.btnstm.rows;
for (let i = 0; i < length; i++) {
let arr = btnStr[i].split("\t");
var index = this.getIndex(arr[1]);
let newList = {
code: arr[0],
label: arr[1],
isDis: arr[2],
title: arr[3],
index: index,
};
this.navcode.push(newList);
}
// 交易状态信息
const arr = []
arr.push(
this.model.dspbtdclsdat
)
this.tState = arr.filter(s => {
const v = s.trim()
return v !== ""
})
} else {
this.navcode = [];
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
});
});
},
};
</script>
<style>
</style>
......@@ -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>
......@@ -322,7 +334,7 @@ import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infbtd/Event";
import LetselModel from "~/model/Letsel";
import BusNavbar from "~/views/Public/BusNavbar";
import BusNavbar from "./BusNavbar";
export default {
inject: ["root"],
......@@ -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>
<template>
<el-dialog
:visible.sync="initdialog"
:title="'交易列表'"
append-to-body
:before-close="beforeClose"
@opened="opened"
>
<div class="m-list-btns">
<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 navcode"
v-bind:key="index"
@click.native="onNarBtnClick(item.code, item.index)"
:title="item.title"
:disabled="item.isDis === 'N'"
>{{ item.label }}</c-button
>
<div style="margin-top: 15px;margin-left: 10px;">
<div v-for="(str,idx) in tState" :key="idx" style="margin-bottom: 5px;font-weight: bold;">
{{str}}
</div>
</div>
</div>
</div>
</div>
</el-dialog>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import _ from "~/utils/Lodash"
export default {
props: {
ownref: {
required: true,
},
trnCode: {
required: true,
},
model: {
required: true,
},
ownrefPath: {
required: false,
default: "didgrp",
},
tabIndex: {
required: false,
default: 1,
},
},
components: {},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
initdialog: false,
navcode: [
// {code:"",label:"",isDis:"",title:""},
],
tState: []
};
},
methods: {
//各入口按钮请求
async onNarBtnClick(code, i) {
this.model.cfgfil[`subtrn${i}`] = code;
let rtnmsg = await this.executeRule(`cfgfil.hotsub${i}`);
if (rtnmsg.respCode == SUCCESS) {
this.navcode = [];
this.$emit("onChoose", code.toLowerCase());
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
getIndex(module) {
for (let i = 1; i <= 12; i++) {
var temp = this.model.cfgfil[`subtxt${i}`];
if (module == temp) {
return i;
}
}
return 1;
},
opened() {
this.tState = []
this.$emit("childmethods");
},
beforeClose() {
this.navcode = [];
this.initdialog = false;
},
},
mounted() {
this.trnName = this.trnCode;
this.$nextTick(function () {
this.$on("childmethods", async function () {
let res = await this.executeRule(`cfgfil.hotreg${this.tabIndex}`);
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
this.navcode = [];
//请求按钮数据
let rulePath
if (this.ownrefPath.endsWith(".ownref")) {
_.set(this.model, this.ownrefPath, this.ownref);
rulePath = this.ownrefPath
} else {
this.model[this.ownrefPath].rec.ownref = this.ownref;
rulePath = this.ownrefPath + ".rec.ownref"
}
let rtnmsg = await this.executeRule(rulePath); //didgrp_rec_ownref
if (rtnmsg.respCode == SUCCESS) {
//重置数组
this.navcode = [];
this.updateModel(rtnmsg.data);
//this.model.cfgfil.btnstm = rtnmsg.data.cfgfil_btnstm.rows
//给inr赋值,后面弹窗里面的按钮请求会用到
//this.model.didgrp.rec.inr = rtnmsg.data.didgrp_rec_inr
const length = this.model.cfgfil.btnstm.rows.length;
let btnStr = this.model.cfgfil.btnstm.rows;
for (let i = 0; i < length; i++) {
let arr = btnStr[i].split("\t");
var index = this.getIndex(arr[1]);
let newList = {
code: arr[0],
label: arr[1],
isDis: arr[2],
title: arr[3],
index: index,
};
this.navcode.push(newList);
}
// 交易状态信息
const selbut = this.model ?? {}
const arr = Object.keys(selbut)
.filter(key => key.startsWith("dsp"))
.map(key => selbut[key] || "")
.filter(s => s.trim()!== "")
this.tState = arr
} else {
this.navcode = [];
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
});
});
},
};
</script>
<style>
</style>
......@@ -12,7 +12,7 @@
<c-input
type="textarea"
v-model="model.bedgrp.blk.docdis"
maxlength="50"
maxlength="3500"
show-word-limit
placeholder="请输入不符点"
:disabled="!docdisflg"
......@@ -51,7 +51,7 @@
<c-input
type="textarea"
v-model="model.bedgrp.blk.intdis"
maxlength="65"
maxlength="1300"
show-word-limit
placeholder="请输入不符点"
></c-input>
......@@ -88,7 +88,7 @@
<c-input
type="textarea"
v-model="model.bedgrp.blk.comcon"
maxlength="65"
maxlength="1300"
show-word-limit
placeholder="请输入内容"
></c-input>
......@@ -125,7 +125,7 @@
<c-input
type="textarea"
v-model="model.bedgrp.blk.setinsbe"
maxlength="65"
maxlength="390"
show-word-limit
placeholder="请输入指示内容"
></c-input>
......
......@@ -90,6 +90,7 @@ export default {
return 1;
},
opened() {
this.tState = []
this.$emit("childmethods");
},
beforeClose() {
......
<template>
<m-trl ref="trl" title="dbatrl" type="add"></m-trl>
</template>
<script>
import Dbitrl from "~/views/Statics/Dbitrl";
export default {
name: "StaticsDbatrl",
components: {
"m-trl": Dbitrl
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-usr ref="usr" title="dbausr" type="add"></m-usr>
</template>
<script>
import DbiUsr from "~/views/Statics/Dbiusr";
export default {
name: "StaticsDbausr",
components: {
"m-usr": DbiUsr
},
data() {
return {};
},
mounted() {
// this.$refs.usr.rules['ptaList'] = [
// { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
// ]
}
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-trl title="dbdtrl" type="delete"></m-trl>
</template>
<script>
import Dbitrl from "~/views/Statics/Dbitrl";
export default {
name: "StaticsDbdtrl",
components: {
"m-trl": Dbitrl
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-usr title="dbdusr" type="delete"></m-usr>
</template>
<script>
import DbiUsr from "~/views/Statics/Dbiusr";
export default {
name: "StaticsDbdusr",
components: {
"m-usr": DbiUsr
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-trl title="dbetrl" type="edit"></m-trl>
</template>
<script>
import Dbitrl from "~/views/Statics/Dbitrl";
export default {
name: "StaticsDbetrl",
components: {
"m-trl": Dbitrl
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<m-usr title="dbeusr" type="edit"></m-usr>
</template>
<script>
import DbiUsr from "~/views/Statics/Dbiusr";
export default {
name: "StaticsDbeusr",
components: {
"m-usr": DbiUsr
},
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
export default class Trl {
constructor() {
this.data = {
inr: "",
bchkey: "",
trn: "",
relcur: "",
relamt: "",
ver: "",
relflg: "",
}
}
}
export const Pattern = {
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"bchkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"trn": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"relcur": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"relamt": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,18}(\.\d{1,3})?$/, "message": "整数不能超过18位,小数不能超过3位", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
}
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="bchkey" prop="bchkey">
<c-input v-model="model.bchkey" placeholder="请输入bchkey"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="trn" prop="trn">
<c-input v-model="model.trn" placeholder="请输入trn"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="relcur" prop="relcur">
<c-input v-model="model.relcur" placeholder="请输入relcur"> </c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="relamt" prop="relamt">
<c-input v-model="model.relamt" placeholder="请输入relamt"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ver" prop="ver">
<c-input v-model="model.ver" placeholder="请输入ver"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="relflg" prop="relflg">
<c-input v-model="model.relflg" placeholder="请输入relflg"> </c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
export default {
name: "",
props: ["model"],
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="120px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="交易模式及权限" name="trl">
<c-content>
<m-trl-info :model="model" />
</c-content>
</el-tab-pane>
<!-- <el-tab-pane label="CopyPanl" name="copy">
<c-content>
<m-adr-list :model="model" />
</c-content>
</el-tab-pane> -->
</c-tabs>
</el-form>
<div style="text-align: center">
<c-button
type="primary"
style="margin-right: 10px"
@click="commitAdd"
v-if="type === 'add'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitEdit"
v-if="type === 'edit'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitDelete"
v-if="type === 'delete'"
>提 交</c-button
>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template>
<script>
import Utils from "~/utils";
import Trl, { Pattern } from "./Trl.js";
import TrlInfo from "./TrlInfo.vue";
import { queryById, add, edit, deleteById } from "~/service/test/trl.js";
export default {
name: "StaticsDbitrl",
components: {
"m-trl-info": TrlInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbitrl"
}
},
data() {
return {
model: new Trl().data,
tabVal: "trl",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
queryById(inr).then((res) => {
if (res.inr) {
this.model = res;
} else {
this.$message.error("客户不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack()
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitDelete() {
this.$confirm("是否确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteById(this.model.inr)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新inftrl的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInftrl", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-table :list="model.ubrList" :columnsConfig="columns"></c-table>
</div>
</template>
<script>
export default {
props: ["model"],
data() {
return {
columns: [
{ label: 'inr', prop: 'inr', width: 'auto' },
{ label: 'usrinr', prop: 'usrinr', width: 'auto' },
{ label: 'bussec', prop: 'bussec', width: 'auto' },
{ label: 'relcur', prop: 'relcur', width: 'auto' },
{ label: 'relamt', prop: 'relamt', width: 'auto' },
{ label: 'relamt2nd', prop: 'relamt2nd', width: 'auto' },
{ label: 'relgrp', prop: 'relgrp', width: 'auto' },
{ label: 'trncod', prop: 'trncod', width: 'auto' },
{ label: 'branchinr', prop: 'branchinr', width: 'auto' },
{ label: 'autcur', prop: 'autcur', width: 'auto' },
{ label: 'autamt', prop: 'autamt', width: 'auto' },
],
};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-table :list="model.uclList" :columnsConfig="columns"></c-table>
</div>
</template>
<script>
export default {
props: ["model"],
data() {
return {
columns: [
{ label: 'usrdef', prop: 'usrdef', width: 'auto' },
{ label: 'usr', prop: 'usr', width: 'auto' },
{ label: 'mannam', prop: 'mannam', width: 'auto' },
{ label: 'branchinr', prop: 'branchinr', width: 'auto' },
{ label: 'objlst', prop: 'objlst', width: 'auto' },
{ label: 'assignflg', prop: 'assignflg', width: 'auto' },
],
};
},
};
</script>
<style>
</style>
\ No newline at end of file
export default class Pty {
constructor() {
this.data = {
"inr": "",
"extkey": "",
"nam": "",
"lgiflg": "",
"ssnbegdattim": "",
"ssninr": "",
"ver": "",
"pri": "",
"ety": "",
"usg": "",
"lstdiadat": "",
"relcur": "",
"relamt": "",
"relamt2nd": "",
"relgrp": "",
"tel": "",
"fax": "",
"eml": "",
"quepow": "",
"etyextkey": "",
"oenr": "",
"etaextkey": "",
"resusrflg": "",
"secsta": "",
"letoenr": "",
"ubrList": [],
"uclList": [],
}
}
}
export const Pattern = {
"inr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"extkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"nam": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 40, "message": "最大长度40个字符", "trigger": "blur" }
],
"lgiflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"ssnbegdattim": [ {"type": "string", "trigger": "blur"}
],
"ssninr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"ver": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"pri": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"ety": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"usg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 6, "message": "最大长度6个字符", "trigger": "blur" }
],
"lstdiadat": [
{ "type": "string", "trigger": "blur" }
],
"relcur": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 3, "message": "最大长度3个字符", "trigger": "blur" }
],
"relamt": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,18}(\.\d{1,3})?$/, "message": "整数不能超过18位,小数不能超过3位", "trigger": "blur" }
],
"relamt2nd": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,18}(\.\d{1,3})?$/, "message": "整数不能超过18位,小数不能超过3位", "trigger": "blur" }
],
"relgrp": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"tel": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 30, "message": "最大长度30个字符", "trigger": "blur" }
],
"fax": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 30, "message": "最大长度30个字符", "trigger": "blur" }
],
"eml": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 80, "message": "最大长度80个字符", "trigger": "blur" }
],
"quepow": [
{ "required": true, "message": "必输项", "trigger": "blur" },
{ "pattern": /^-?\d{0,6}(\.\d{1,2})?$/, "message": "整数不能超过6位,小数不能超过2位", "trigger": "blur" }
],
"etyextkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"oenr": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 4, "message": "最大长度4个字符", "trigger": "blur" }
],
"etaextkey": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 8, "message": "最大长度8个字符", "trigger": "blur" }
],
"resusrflg": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
"secsta": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
{ "max": 1, "message": "最大长度1个字符", "trigger": "blur" }
],
}
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="inr" prop="inr">
<c-input
v-model="model.inr"
placeholder="请输入inr"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="extkey" prop="extkey">
<c-input
v-model="model.extkey"
placeholder="请输入extkey"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="nam" prop="nam">
<c-input
v-model="model.nam"
placeholder="请输入nam"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="lgiflg" prop="lgiflg">
<c-input
v-model="model.lgiflg"
placeholder="请输入lgiflg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ssnbegdattim" prop="ssnbegdattim">
<c-date-picker
v-model="model.ssnbegdattim"
placeholder="请输入ssnbegdattim"
>
</c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ssninr" prop="ssninr">
<c-input
v-model="model.ssninr"
placeholder="请输入ssninr"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ver" prop="ver">
<c-input
v-model="model.ver"
placeholder="请输入ver"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="pri" prop="pri">
<c-input
v-model="model.pri"
placeholder="请输入pri"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ety" prop="ety">
<c-input
v-model="model.ety"
placeholder="请输入ety"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="usg" prop="usg">
<c-input
v-model="model.usg"
placeholder="请输入usg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="lstdiadat" prop="lstdiadat">
<c-date-picker
v-model="model.lstdiadat"
placeholder="请输入lstdiadat"
>
</c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="relcur" prop="relcur">
<c-input
v-model="model.relcur"
placeholder="请输入relcur"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="relamt" prop="relamt">
<c-input
v-model="model.relamt"
placeholder="请输入relamt"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="relamt2nd" prop="relamt2nd">
<c-input
v-model="model.relamt2nd"
placeholder="请输入relamt2nd"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="relgrp" prop="relgrp">
<c-input
v-model="model.relgrp"
placeholder="请输入relgrp"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="tel" prop="tel">
<c-input
v-model="model.tel"
placeholder="请输入tel"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="fax" prop="fax">
<c-input
v-model="model.fax"
placeholder="请输入fax"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="eml" prop="eml">
<c-input
v-model="model.eml"
placeholder="请输入eml"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="quepow" prop="quepow">
<c-input
v-model="model.quepow"
placeholder="请输入quepow"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="etyextkey" prop="etyextkey">
<c-input
v-model="model.etyextkey"
placeholder="请输入etyextkey"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="oenr" prop="oenr">
<c-input
v-model="model.oenr"
placeholder="请输入oenr"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="etaextkey" prop="etaextkey">
<c-input
v-model="model.etaextkey"
placeholder="请输入etaextkey"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="resusrflg" prop="resusrflg">
<c-input
v-model="model.resusrflg"
placeholder="请输入resusrflg"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="secsta" prop="secsta">
<c-input
v-model="model.secsta"
placeholder="请输入secsta"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="letoenr" prop="letoenr">
<c-input
v-model="model.letoenr"
placeholder="请输入letoenr"
>
</c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="24">-->
<!-- <el-form-item label="ubrList" prop="ubrList">-->
<!-- <c-input-->
<!-- v-model="model.ubrList"-->
<!-- placeholder="请输入ubrList"-->
<!-- >-->
<!-- </c-input>-->
<!-- </el-form-item>-->
<!-- </c-col>-->
<!-- <c-col :span="24">-->
<!-- <el-form-item label="uclList" prop="uclList">-->
<!-- <c-input-->
<!-- v-model="model.uclList"-->
<!-- placeholder="请输入uclList"-->
<!-- >-->
<!-- </c-input>-->
<!-- </el-form-item>-->
<!-- </c-col>-->
</c-col>
</div>
</template>
<script>
export default {
name: "",
props: ["model"],
data() {
return {};
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page :title="title">
<el-form
ref="modelForm"
label-width="120px"
size="small"
label-position="right"
:model="model"
:rules="rules"
:validate-on-rule-change="false"
:disabled="isDisabled"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="基本信息" name="usr">
<c-content>
<m-usr-info :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="柜员权限信息" name="ubr">
<c-content>
<m-ubr-list :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="柜员组" name="ucl">
<c-content>
<m-ucl-list :model="model" />
</c-content>
</el-tab-pane>
<!-- <el-tab-pane label="联系人信息" name="ptc">-->
<!-- <c-content>-->
<!-- <m-ptc-info :model="model" />-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
<!-- <el-tab-pane label="汇率/费率信息" name="ptyrat,fec,fee">-->
<!-- <c-content>-->
<!-- <m-rat-info :model="model" />-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
</c-tabs>
</el-form>
<div style="text-align: center">
<c-button
type="primary"
style="margin-right: 10px"
@click="commitAdd"
v-if="type === 'add'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitEdit"
v-if="type === 'edit'"
>提 交</c-button
>
<c-button
type="primary"
style="margin-right: 10px"
@click="commitDelete"
v-if="type === 'delete'"
>提 交</c-button
>
<c-button type="primary" @click="goBack">返 回</c-button>
</div>
</c-page>
</div>
</template>
<script>
import Utils from "~/utils";
import Usr, { Pattern } from "./Usr.js";
import UsrInfo from "./UsrInfo";
import UBrInfo from "./UbrInfo";
import UclInfo from "./UclInfo";
import { add, edit, deleteById, queryDetailById } from "~/service/test/usr";
export default {
name: "StaticsDbiusr",
components: {
"m-usr-info": UsrInfo,
"m-ubr-list": UBrInfo,
"m-ucl-list": UclInfo,
},
provide() {
return {
root: this,
};
},
props: {
type: {
type: String,
default: "info"
},
title: {
type: String,
default: "dbiusr"
}
},
data() {
return {
model: new Usr().data,
tabVal: "usr",
rules: Pattern,
};
},
computed: {
isDisabled() {
return this.type === "info" || this.type === "delete";
},
},
created() {
if (this.type !== "add") {
const inr = this.$route.params.inr;
// this.model.inr = this.$route.params.inr;
console.log(inr);
queryDetailById(inr).then((res) => {
if (res.inr) {
this.model = res;
} else {
this.$message.error("柜员不存在")
}
});
}
},
methods: {
commitAdd() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitEdit() {
this.$refs.modelForm.validate((validated) => {
if (validated) {
edit(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack()
})
.catch((err) => {
this.$message.error("保存失败!");
});
} else {
Utils.formValidateTips(this.$refs.modelForm.fields)
}
});
},
commitDelete() {
this.$confirm("是否确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteById(this.model.inr)
.then((res) => {
this.$message.success("删除成功!");
this.goBack(true)
})
.catch((err) => {
this.$message.error("删除失败!");
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
/**
* update 是否更新infusr的查询列表
*/
goBack(update) {
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.push({ name: "StaticsInfusr", params: { update } });
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="bchkey" prop="bchkey">
<c-input v-model="model.bchkey" placeholder="请输入bchkey"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="trn" prop="trn">
<c-input v-model="model.trn" placeholder="请输入trn"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="relcur" prop="relcur">
<c-input v-model="model.relcur" placeholder="请输入relcur"> </c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="relamt" prop="relamt">
<c-input v-model="model.relamt" placeholder="请输入relamt"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="ver" prop="ver">
<c-input v-model="model.ver" placeholder="请输入ver"> </c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="relflg" prop="relflg">
<c-input v-model="model.relflg" placeholder="请输入relflg"> </c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="trlAdd">新增</el-button>
</c-col>
<c-col :span="12" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="onInftrlSearch()"
>查询
</el-button>
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table
:data="trlData"
:columns="trlColumns"
:pageNumber="model.pageNum"
:pageSize="model.pageSize"
:total="model.total"
v-on:queryFunc="queryFunc"
:border="true"
>
<c-table-column fixed="right" prop="op" label="操作" width="240px">
<template slot-scope="{ scope }">
<c-button
style="margin-left: 0"
size="small"
@click="trlInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="trlEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="trlDelete(scope.$index, scope.row)"
>删除</c-button
>
<el-popover placement="top-start" width="50" trigger="click">
<ul class="table-button-item-list">
<li>
<c-button size="small" style="margin-left: 0">指派</c-button>
</li>
<li>
<c-button size="small" style="margin-left: 0">删除</c-button>
</li>
</ul>
<a
slot="reference"
href="javascript:void(0)"
style="margin-left: 5px"
>
<i class="el-icon-more"></i>
</a>
</el-popover>
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import codes from "~/config/CodeTable";
import { queryByPage } from "~/service/test/trl.js";
export default {
name: "",
props: ["model"],
inject: ["root"],
data() {
return {
trlData: [],
trlColumns: [
{ label: "bchkey", prop: "bchkey", width: "auto" },
{ label: "trn", prop: "trn", width: "auto" },
{ label: "relcur", prop: "relcur", width: "auto" },
{ label: "relamt", prop: "relamt", width: "auto" },
{ label: "ver", prop: "ver", width: "auto" },
{ label: "relflg", prop: "relflg", width: "auto" },
],
};
},
computed: {
},
activated() {
const { update } = this.$route.params;
if (update) {
this.onInftrlSearch();
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onInftrlSearch() {
queryByPage(this.model).then((res) => {
/**
* pageNumber: 0
* pageSize: 0
* total: 69
* totalPage: 0
*/
const list = res.list;
this.trlData = list;
this.model.pageNum = res.pageNumber;
this.model.pageSize = res.pageSize;
this.model.total = res.total;
});
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber;
this.model.pageSize = pageSize;
this.onInftrlSearch();
},
trlAdd() {
this.$router.push(`/statics/dbatrl`);
},
trlInfo(index, row) {
this.$router.push(`/statics/dbitrl/${row.inr}`);
},
trlEdit(index, row) {
this.$router.push(`/statics/dbetrl/${row.inr}`);
},
trlDelete(index, row) {
this.$router.push(`/statics/dbdtrl/${row.inr}`);
},
},
};
</script>
<style scoped>
.table-button-item-list {
padding: 0;
margin: 0;
}
.table-button-item-list li {
list-style: none;
padding: 5px 0;
text-align: center;
color: #606266;
cursor: pointer;
}
</style>
<template>
<div class="eContainer">
<c-page title="复核级别查询">
<el-form
:model="model"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<!--PD000039 -->
<el-tab-pane label="复核级别查询" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInftrl",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// trl
bchkey: "",
trn: "",
relcur: "",
relamt: "",
ver: "",
relflg: "",
// paging
pageNum: 1,
pageSize: 5,
total: 0,
},
};
},
};
</script>
<style></style>
<template>
<div class="eibs-tab">
<!-- ----------左 ---------->
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="User-id" prop="extkey">
<c-input
v-model="model.extkey"
placeholder="请输入user-id"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!------------- 右 ---------->
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="Name" prop="name">
<c-input
v-model="model.nam"
placeholder="请输入name"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: left">
<el-button type="primary" size="small" @click="usrAdd">新增</el-button>
</c-col>
<c-col :span="12" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="onInfusrSearch()"
>查询
</el-button>
</c-col>
</c-col>
<c-col :span="24">
<c-paging-table
:data="usrData"
:columns="usrColumns"
:pageNumber="model.pageNum"
:pageSize="model.pageSize"
:total="model.total"
v-on:queryFunc="queryFunc"
:border="true"
>
<c-table-column fixed="right" prop="op" label="操作" width="240px">
<template slot-scope="{ scope }">
<c-button
style="margin-left: 0"
size="small"
@click="usrInfo(scope.$index, scope.row)"
>详情</c-button
>
<c-button
style="margin-left: 5px"
size="small"
type="primary"
@click="usrEdit(scope.$index, scope.row)"
>修改</c-button
>
<c-button
size="small"
style="margin-left: 5px"
@click="usrDelete(scope.$index, scope.row)"
>删除</c-button
>
<!-- <el-popover placement="top-start" width="50" trigger="click">-->
<!-- <ul class="table-button-item-list">-->
<!-- <li>-->
<!-- <c-button size="small" style="margin-left: 0">指派</c-button>-->
<!-- </li>-->
<!-- <li>-->
<!-- <c-button size="small" style="margin-left: 0">删除</c-button>-->
<!-- </li>-->
<!-- </ul>-->
<!-- <a-->
<!-- slot="reference"-->
<!-- href="javascript:void(0)"-->
<!-- style="margin-left: 5px"-->
<!-- >-->
<!-- <i class="el-icon-more"></i>-->
<!-- </a>-->
<!-- </el-popover>-->
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div>
</template>
<script>
import { queryByPage } from "~/service/test/usr.js";
export default {
name: "infsea",
props: ["model"],
inject: ["root"],
data() {
return {
usrData: [],
usrColumns: [
{ label: 'inr', prop: 'inr', width: 'auto' },
{ label: 'extkey', prop: 'extkey', width: 'auto' },
{ label: 'nam', prop: 'nam', width: 'auto' },
{ label: 'lgiflg', prop: 'lgiflg', width: 'auto' },
{ label: 'ssnbegdattim', prop: 'ssnbegdattim', width: 'auto' },
{ label: 'ssninr', prop: 'ssninr', width: 'auto' },
{ label: 'ver', prop: 'ver', width: 'auto' },
{ label: 'pri', prop: 'pri', width: 'auto' },
{ label: 'ety', prop: 'ety', width: 'auto' },
{ label: 'usg', prop: 'usg', width: 'auto' },
{ label: 'lstdiadat', prop: 'lstdiadat', width: 'auto' },
{ label: 'relcur', prop: 'relcur', width: 'auto' },
{ label: 'relamt', prop: 'relamt', width: 'auto' },
{ label: 'relamt2nd', prop: 'relamt2nd', width: 'auto' },
{ label: 'relgrp', prop: 'relgrp', width: 'auto' },
{ label: 'tel', prop: 'tel', width: 'auto' },
{ label: 'fax', prop: 'fax', width: 'auto' },
{ label: 'eml', prop: 'eml', width: 'auto' },
{ label: 'quepow', prop: 'quepow', width: 'auto' },
{ label: 'etyextkey', prop: 'etyextkey', width: 'auto' },
{ label: 'oenr', prop: 'oenr', width: 'auto' },
{ label: 'etaextkey', prop: 'etaextkey', width: 'auto' },
{ label: 'resusrflg', prop: 'resusrflg', width: 'auto' },
{ label: 'secsta', prop: 'secsta', width: 'auto' },
{ label: 'letoenr', prop: 'letoenr', width: 'auto' },
{ label: 'ubrList', prop: 'ubrList', width: 'auto' },
{ label: 'uclList', prop: 'uclList', width: 'auto' },
],
};
},
computed: {
seatypb: {
get: function () {
return this.model.ptytyp === "B";
},
set: function (val) {
this.model.ptytyp = val ? "B" : "";
},
},
seatypc: {
get: function () {
return this.model.ptytyp === "C";
},
set: function (val) {
this.model.ptytyp = val ? "C" : "";
},
},
seatypa: {
get: function () {
return this.model.ptytyp === "A";
},
set: function (val) {
this.model.ptytyp = val ? "A" : "";
},
},
seatypo: {
get: function () {
return this.model.ptytyp === "O";
},
set: function (val) {
this.model.ptytyp = val ? "O" : "";
},
},
seatyph: {
get: function () {
return this.model.ptytyp === "H";
},
set: function (val) {
this.model.ptytyp = val ? "H" : "";
},
},
},
// activated:已进入页面便可触发
activated() {
const { update } = this.$route.params
if (update) {
this.onInfusrSearch()
}
},
methods: {
handleReset() {
this.root.$refs.modelForm.resetFields();
},
onInfusrSearch() {
queryByPage(this.model).then(res => {
/**
* pageNumber: 0
* pageSize: 0
* total:
* totalPage: 0
*/
const list = res.list
this.usrData = list
this.model.pageNum = res.pageNumber
this.model.pageSize = res.pageSize
this.model.total = res.total
})
},
queryFunc(pageNumber, pageSize) {
this.model.pageNum = pageNumber
this.model.pageSize = pageSize
this.onInfusrSearch()
},
// ptytypeChange(val) {
// this.model.ptytyp = val;
// },
// getCodesByKey(key) {
// return codes[key] ?? [];
// },
usrAdd() {
this.$router.push(`/statics/dbausr`)
},
usrInfo(index, row) {
this.$router.push(`/statics/dbiusr/${row.inr}`)
},
usrEdit(index, row) {
this.$router.push(`/statics/dbeusr/${row.inr}`)
},
usrDelete(index, row) {
this.$router.push(`/statics/dbdusr/${row.inr}`)
},
},
};
</script>
<style scoped>
.table-button-item-list {
padding: 0;
margin: 0;
}
.table-button-item-list li {
list-style: none;
padding: 5px 0;
text-align: center;
color: #606266;
cursor: pointer;
}</style>
<template>
<div class="eContainer">
<c-page title="柜员信息查询">
<el-form
:model="model"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
>
<c-tabs v-model="tabVal" ref="elment" type="card">
<!--PD000039 -->
<el-tab-pane label="柜员查询" name="infsea">
<c-content>
<m-infsea :model="model" ref="infsea"/>
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import Infsea from "./Infsea";
export default {
name: "StaticsInfusr",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
data() {
return {
tabVal: "infsea",
model: {
// condition
nam: "",
extkey: "",
// paging
pageNum: 1,
pageSize: 5,
total: 0
},
};
},
};
</script>
<style></style>
......@@ -3,6 +3,16 @@ import Dbipty from "./Dbipty";
import Dbapty from "./Dbapty";
import Dbepty from "./Dbepty";
import Dbdpty from "./Dbdpty";
import Inftrl from "./Inftrl";
import Dbitrl from "./Dbitrl";
import Dbatrl from "./Dbatrl";
import Dbetrl from "./Dbetrl";
import Dbdtrl from "./Dbdtrl";
import Infusr from "./Infusr";
import Dbausr from "./Dbausr";
import Dbiusr from "./Dbiusr";
import Dbeusr from "./Dbeusr";
import Dbdusr from "./Dbdusr";
const StaticsRouter = [
{ path: 'infpty', component: Infpty, name: 'StaticsInfpty', meta: { title: '客户查询' } },
......@@ -10,6 +20,17 @@ const StaticsRouter = [
{ path: 'dbipty/:inr', component: Dbipty, name: 'StaticsDbipty', meta: { title: (tag) => { return '客户详情: ' + tag.params.inr } } },
{ path: 'dbepty/:inr', component: Dbepty, name: 'StaticsDbepty', meta: { title: (tag) => { return '客户修改: ' + tag.params.inr } } },
{ path: 'dbdpty/:inr', component: Dbdpty, name: 'StaticsDbdpty', meta: { title: (tag) => { return '客户删除: ' + tag.params.inr } } },
{ path: 'inftrl', component: Inftrl, name: 'StaticsInftrl', meta: { title: '复核级别查询' } },
{ path: 'dbatrl', component: Dbatrl, name: 'StaticsDbatrl', meta: { title: '复核级别新增' } },
{ path: 'dbitrl/:inr', component: Dbitrl, name: 'StaticsDbitrl', meta: { title: (tag) => { return '复核级别详情: ' + tag.params.inr } } },
{ path: 'dbetrl/:inr', component: Dbetrl, name: 'StaticsDbetrl', meta: { title: (tag) => { return '复核级别修改: ' + tag.params.inr } } },
{ path: 'dbdtrl/:inr', component: Dbdtrl, name: 'StaticsDbdtrl', meta: { title: (tag) => { return '复核级别删除: ' + tag.params.inr } } },
{ path: 'infusr', component: Infusr, name: 'StaticsInfusr', meta: { title: '柜员查询' } },
{ path: 'dbausr', component: Dbausr, name: 'StaticsDbausr', meta: { title: '柜员新增' } },
{ path: 'dbiusr/:inr', component: Dbiusr, name: 'StaticsDbiusr', meta: { title: (tag) => { return '柜员详情: ' + tag.params.inr } } },
{ path: 'dbeusr/:inr', component: Dbeusr, name: 'StaticsDbeusr', meta: { title: (tag) => { return '柜员修改: ' + tag.params.inr } } },
{ path: 'dbdusr/:inr', component: Dbdusr, name: 'StaticsDbdusr', meta: { title: (tag) => { return '柜员删除: ' + tag.params.inr } } },
]
export default StaticsRouter
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