Commit 112e655e by liuxin

detsel补充单据部分

parent 5a085abd
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"bfdgrp.cbs.max.amt":[ "bfdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
...@@ -228,7 +228,7 @@ export default { ...@@ -228,7 +228,7 @@ export default {
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"bfdgrp.cbs.opn1.amt":[ "bfdgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
......
<template> <template>
<c-row> <c-row>
<c-col :span="24"> <c-col :span="24">
<c-col :span="11"> <c-col :span="12">
<el-form-item label="信用证编号" prop="dedgrp.rec.ownref"> <el-form-item label="信用证编号" prop="dedgrp.rec.ownref">
<c-fullbox> <c-fullbox>
<c-input <c-input
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</c-fullbox> </c-fullbox>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="11" :offset="1"> <c-col :span="12">
<el-form-item label="摘要" prop="dedgrp.rec.nam"> <el-form-item label="摘要" prop="dedgrp.rec.nam">
<c-input <c-input
v-model="model.dedgrp.rec.nam" v-model="model.dedgrp.rec.nam"
...@@ -36,206 +36,316 @@ ...@@ -36,206 +36,316 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<!-- 信用证 -->
<div v-if="hotreg == 1 || hotreg == 2">
<c-col :span="24">
<c-col :span="12">
<c-col :span="24">
<el-form-item label="信用证金额" prop="dedgrp.cbs.nom1.cur">
<c-input
v-model="model.dedgrp.cbs.nom1.cur"
maxlength="3"
placeholder="请输入信用证金额"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="信用证余额" prop="dedgrp.cbs.opn1.cur">
<c-input
v-model="model.dedgrp.cbs.opn1.cur"
maxlength="3"
placeholder="请输入Open Amount"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="指定银行" prop="dedgrp.avbnam">
<c-input
v-model="model.dedgrp.avbnam"
maxlength="40"
placeholder="请输入Available with"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="兑付方式" prop="dedgrp.rec.avbby">
<c-select
v-model="model.dedgrp.rec.avbby"
style="width: 100%"
placeholder="请选择Available by "
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="13">
<el-form-item label="开证日期" prop="dedgrp.rec.opndat">
<c-date-picker
type="date"
v-model="model.dedgrp.rec.opndat"
style="width: 95%"
placeholder="请选择Date Issued"
disabled
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24"> <c-col :span="11">
<c-col :span="11"> <el-form-item
<c-col :span="24"> label="最迟装运日期"
<el-form-item label="信用证金额" prop="dedgrp.cbs.nom1.cur"> label-width="110px"
<c-input prop="dedgrp.rec.shpdat"
v-model="model.dedgrp.cbs.nom1.cur"
maxlength="3"
placeholder="请输入信用证金额"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="信用证余额" prop="dedgrp.cbs.opn1.cur">
<c-input
v-model="model.dedgrp.cbs.opn1.cur"
maxlength="3"
placeholder="请输入Open Amount"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="指定银行" prop="dedgrp.avbnam">
<c-input
v-model="model.dedgrp.avbnam"
maxlength="40"
placeholder="请输入Available with"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="兑付方式" prop="dedgrp.rec.avbby">
<c-select
v-model="model.dedgrp.rec.avbby"
style="width: 100%"
placeholder="请选择Available by "
disabled
> >
</c-select> <c-date-picker
</el-form-item> type="date"
</c-col> v-model="model.dedgrp.rec.shpdat"
<c-col :span="13"> style="width: 100%"
<el-form-item label="开证日期" prop="dedgrp.rec.opndat"> placeholder="请选择Shipment Date"
<c-date-picker disabled
type="date" ></c-date-picker>
v-model="model.dedgrp.rec.opndat" </el-form-item>
style="width: 95%" </c-col>
placeholder="请选择Date Issued"
disabled
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="11"> <c-col :span="13">
<el-form-item <el-form-item
label="最迟装运日期" label="最迟交单日期/交单地"
label-width="110px" prop="dedgrp.rec.expdat"
prop="dedgrp.rec.shpdat" >
> <c-date-picker
<c-date-picker type="date"
type="date" v-model="model.dedgrp.rec.expdat"
v-model="model.dedgrp.rec.shpdat" style="width: 95%"
style="width: 100%" placeholder="请选择Date/Place of Expiry"
placeholder="请选择Shipment Date" disabled
disabled ></c-date-picker>
></c-date-picker> </el-form-item>
</el-form-item> </c-col>
<c-col :span="11">
<el-form-item
label=""
label-width="0px"
prop="dedgrp.rec.expplc"
>
<c-input
v-model="model.dedgrp.rec.expplc"
maxlength="29"
placeholder="请输入Date/Place of Expiry"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="信用证类型" prop="dedgrp.rec.lcrtyp">
<c-select
v-model="model.dedgrp.rec.lcrtyp"
style="width: 100%"
placeholder="请选择转让标志"
disabled
:code="codes.lcrtyp"
>
</c-select>
</el-form-item>
</c-col>
</c-col> </c-col>
<c-col :span="13"> <c-col :span="12">
<el-form-item <c-col :span="24">
label="最迟交单日期/交单地" <el-form-item
prop="dedgrp.rec.expdat" label="受益人参考号"
> prop="dedgrp.ben.pts.ref"
<c-date-picker
type="date"
v-model="model.dedgrp.rec.expdat"
style="width: 95%"
placeholder="请选择Date/Place of Expiry"
disabled
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item
label=""
label-width="0px"
prop="dedgrp.rec.expplc"
>
<c-input
v-model="model.dedgrp.rec.expplc"
maxlength="29"
placeholder="请输入Date/Place of Expiry"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="信用证类型" prop="dedgrp.rec.lcrtyp">
<c-select
v-model="model.dedgrp.rec.lcrtyp"
style="width: 100%"
placeholder="请选择转让标志"
disabled
:code="codes.lcrtyp"
> >
</c-select> <c-input
</el-form-item> v-model="model.dedgrp.ben.pts.ref"
</c-col> maxlength="16"
</c-col> placeholder="请输入Beneficiary"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1"> <c-col :span="24">
<c-col :span="24"> <el-form-item label="受益人名称" prop="dedgrp.ben.pts.nam">
<el-form-item <c-input
label="受益人参考号" v-model="model.dedgrp.ben.pts.nam"
prop="dedgrp.ben.pts.ref" maxlength="40"
> placeholder="请输入Name of Party"
<c-input disabled
v-model="model.dedgrp.ben.pts.ref" ></c-input>
maxlength="16" </el-form-item>
placeholder="请输入Beneficiary" </c-col>
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="受益人名称" prop="dedgrp.ben.pts.nam"> <el-form-item
<c-input label="开证行参考号"
v-model="model.dedgrp.ben.pts.nam" prop="dedgrp.iss.pts.ref"
maxlength="40" >
placeholder="请输入Name of Party" <c-input
disabled v-model="model.dedgrp.iss.pts.ref"
></c-input> maxlength="16"
</el-form-item> placeholder="请输入Issuing Bank"
</c-col> disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="开证行名称" prop="dedgrp.iss.pts.nam">
<c-input
v-model="model.dedgrp.iss.pts.nam"
maxlength="40"
placeholder="请输入Name of Party"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item
label="开证行参考号" label="申请人参考号"
prop="dedgrp.iss.pts.ref" prop="dedgrp.apl.pts.ref"
> >
<c-input <c-input
v-model="model.dedgrp.iss.pts.ref" v-model="model.dedgrp.apl.pts.ref"
maxlength="16" maxlength="16"
placeholder="请输入Issuing Bank" placeholder="请输入Applicant"
disabled disabled
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="开证行名称" prop="dedgrp.iss.pts.nam"> <el-form-item label="申请人名称" prop="dedgrp.apl.pts.nam">
<c-input <c-input
v-model="model.dedgrp.iss.pts.nam" v-model="model.dedgrp.apl.pts.nam"
maxlength="40" maxlength="40"
placeholder="请输入Name of Party" placeholder="请输入Name of Party"
disabled disabled
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Confirmation text" prop="cnftxt">
<c-input
v-model="model.cnftxt"
maxlength="40"
placeholder="请输入Confirmation text"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col> </c-col>
</c-col>
</div>
<c-col :span="24"> <!-- 单据 -->
<el-form-item <div v-if="hotreg == 3 || hotreg == 4">
label="申请人参考号" <c-col :span="24">
prop="dedgrp.apl.pts.ref" <!-- Left -->
> <c-col :span="12">
<c-input <c-col :span="24">
v-model="model.dedgrp.apl.pts.ref" <el-form-item label="单据业务编号" prop="bfdgrp.rec.ownref">
maxlength="16" <c-input v-model="model.bfdgrp.rec.ownref" maxlength="16" @keyup.enter.native="showGridPromptDialog('bfdgrp.rec.ownref')" placeholder="请输入单据业务编号"></c-input>
placeholder="请输入Applicant" </el-form-item>
disabled </c-col>
></c-input> <c-col :span="24">
</el-form-item> <c-col :span="12">
<el-form-item label="单据金额" prop="bfdgrp.cbs.max.cur">
<c-input v-model="model.bfdgrp.cbs.max.cur" maxlength="3" placeholder="请输入单据金额"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="5px" prop="bfdgrp.cbs.max.amt">
<c-input
v-model="model.bfdgrp.cbs.max.amt"
placeholder="请输入Balance"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="单据金额" prop="bfdgrp.cbs.opn1.cur">
<c-input v-model="model.bfdgrp.cbs.opn1.cur" maxlength="3" placeholder="请输入单据金额"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="5px" prop="bfdgrp.cbs.opn1.amt">
<c-input
v-model="model.bfdgrp.cbs.opn1.amt"
placeholder="请输入Balance"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
<c-input v-model="model.bfdgrp.rec.doctypcod" maxlength="1" placeholder="请输入单据类型"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="远期单据到期日" prop="bfdgrp.rec.orddat">
<c-date-picker type="date" v-model="model.bfdgrp.rec.orddat" style="width:100%" placeholder="请选择远期单据到期日"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="寄单日期" prop="dfdgrp.rec.opndat">
<c-date-picker type="date" v-model="model.dfdgrp.rec.opndat" style="width:100%" placeholder="请选择代付日期"></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="到单日期" prop="bfdgrp.rec.rcvdat">
<c-date-picker type="date" v-model="model.bfdgrp.rec.rcvdat" style="width:100%" placeholder="请选择到单日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="提示日期" prop="bfdgrp.rec.predat">
<c-date-picker type="date" v-model="model.bfdgrp.rec.predat" style="width:100%" placeholder="请选择Presentation Date"></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="单据状态" prop="bfdgrp.rec.docsta">
<c-input v-model="model.bfdgrp.rec.docsta" maxlength="40" placeholder="请输入单据状态"></c-input>
</el-form-item>
</c-col>
</c-col> </c-col>
<c-col :span="24">
<el-form-item label="申请人名称" prop="dedgrp.apl.pts.nam"> <!-- Right -->
<c-input <c-col :span="12">
v-model="model.dedgrp.apl.pts.nam" <c-col :span="24">
maxlength="40" <el-form-item label="摘要" prop="bfdgrp.rec.nam">
placeholder="请输入Name of Party" <c-input v-model="model.bfdgrp.rec.nam" maxlength="40" placeholder="请输入Externally Displayed Name to Identify the Contract"></c-input>
disabled </el-form-item>
></c-input> </c-col>
</el-form-item> <c-col :span="24">
</c-col> <c-ptsmsg
<c-col :span="24"> :model="model"
<el-form-item label="Confirmation text" prop="cnftxt"> :argadr="{ title: '交单行', grp: 'bfdgrp', rol: 'prb' }"
<c-input ></c-ptsmsg>
v-model="model.cnftxt" </c-col>
maxlength="40" <c-col :span="24">
placeholder="请输入Confirmation text" <c-ptsmsg
disabled :model="model"
></c-input> :argadr="{ title: '开证行', grp: 'bfdgrp', rol: 'iss' }"
</el-form-item> ></c-ptsmsg>
</c-col>
<c-col :span="24">
<c-ptsmsg
:model="model"
:argadr="{ title: '申请人', grp: 'bfdgrp', rol: 'apl' }"
></c-ptsmsg>
</c-col>
</c-col> </c-col>
</c-col> </c-col>
</c-col> </div>
<!-- ========================操作菜单================== --> <!-- ========================操作菜单================== -->
<c-col :span="23"> <c-col :span="23">
<el-form-item> <el-form-item>
...@@ -246,10 +356,10 @@ ...@@ -246,10 +356,10 @@
<el-tabs tab-position="right" @tab-click="onTabClick"> <el-tabs tab-position="right" @tab-click="onTabClick">
<el-tab-pane <el-tab-pane
v-for="it in meum" v-for="it in meum"
:key="it.label" :key="it.key"
:label="it.label" :label="it.label"
> >
<sel-mune :data="it.item" :model="model" /> <sel-mune :data="meumItem" :model="model" />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</c-col> </c-col>
...@@ -261,9 +371,14 @@ import commonProcess from "~/mixin/commonProcess"; ...@@ -261,9 +371,14 @@ import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letsel/Event"; import Event from "~/model/Letsel/Event";
import SelMune from "./SelMune.vue"; import SelMune from "./SelMune.vue";
import Ptsmsg from "~/views/Public/Ptsmsg";
export default { export default {
components: { SelMune }, components: {
SelMune,
"c-ptsmsg": Ptsmsg,
},
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
...@@ -272,267 +387,57 @@ export default { ...@@ -272,267 +387,57 @@ export default {
hotreg: "1", hotreg: "1",
meum: [ meum: [
{ {
label: "信用证", label:'信用证',
item: [ key:1
{
title: "Pre-Advising/Notifying",
url: "/business/letrsv",
disabled: false,
},
{
title: "Advising/Confirming",
url: "/business/letopn",
hotsubx: "6",
disabled: false,
},
{ title: "Reservation", url: "#", disabled: false },
{
title: "Resevation & Receving Docs",
url: "#",
disabled: false,
},
{
title: "Confirmation an Export L/C",
url: "#",
disabled: true,
},
{
title: "Amending Issuing Bank",
url: "/business/letame",
hotsubx: "6",
disabled: false,
},
{
title: "Changing Issuing Bank",
url: "#",
disabled: true,
},
{ title: "Receiving Docs", url: "#", disabled: true },
],
},
{
label: "Others",
item: [
{
title: "Charge Settlement",
url: "#",
disabled: true,
},
{ title: "Attachment", url: "#", disabled: true },
{
title: "Editing References",
url: "#",
disabled: true,
},
{ title: "Common Message", url: "#", disabled: true },
{ title: "Cancelling", url: "#", disabled: true },
{ title: "Re_Opening", url: "#", disabled: true },
],
}, },
{ {
label: "Docs", label:'信用证其他',
item: [ key:2
{ title: "Correct Drawing", url: "#", disabled: true },
{
title: "Processing Discrepant Docs",
url: "#",
disabled: true,
},
{
title: "Sending Documents",
url: "#",
disabled: true,
},
{
title: "Changing Maturity",
url: "#",
disabled: true,
},
{ title: "Funds Settlement", url: "#", disabled: true },
{ title: "Reimbursement", url: "#", disabled: true },
],
}, },
{ {
label: "Oth.Docs", label:'单据',
item: [ key:3
{
title: "Charge Settlement",
url: "#",
disabled: true,
},
{ title: "Attachment", url: "#", disabled: true },
{
title: "Confirmation Limit Canclling",
url: "#",
disabled: true,
},
{
title: "Editing Reference",
url: "#",
disabled: true,
},
{ title: "Common Message", url: "#", disabled: true },
{ title: "Cancelling", url: "#", disabled: true },
{ title: "Re_Opening", url: "#", disabled: true },
],
}, },
{ {
label: "Advance", label:'单据其他',
item: [ key:4
{
title: "Creating an Advance",
url: "#",
disabled: true,
},
{
title: "Amending an Advance",
url: "#",
disabled: true,
},
{
title: "Setting an Advance",
url: "#",
disabled: true,
},
{ title: "递延收益冲销", url: "#", disabled: true },
{
title: "资产转卖收入或损失确认",
url: "#",
disabled: true,
},
{ title: "Cancelling", url: "#", disabled: true },
],
}, },
{ {
label: "Oth.Advance", label:'融资',
item: [ key:5
{
title: "Charge Settlement",
url: "#",
disabled: true,
},
{ title: "Attachment", url: "#", disabled: true },
{
title: "Editing References",
url: "#",
disabled: true,
},
{
title: "Engagement Adjustment",
url: "#",
disabled: true,
},
{ title: "Common Messages", url: "#", disabled: true },
],
}, },
{ {
label: "Transfer", label:'融资其他',
item: [ key:6
{
title: "Opening a Transfer L/C",
url: "/business/lttopn",
hotsubx: "1",
disabled: false,
},
{
title: "Amenting a Transfer L/C",
url: "#",
disabled: true,
},
{
title: "Receiving Docs from 2nd Benfic",
url: "#",
disabled: true,
},
],
}, },
{ {
label: "Oth.Transfer", label:'同业代付',
item: [ key:7
{
title: "Charge Settlement",
url: "#",
disabled: true,
},
{ title: "Attachment", url: "#", disabled: true },
{
title: "Editing References",
url: "#",
disabled: true,
},
{ title: "Common Messages", url: "#", disabled: true },
{ title: "Cancelling", url: "#", disabled: true },
{ title: "Re_Opening", url: "#", disabled: true },
],
}, },
{ {
label: "L/T Docs", label:'其他',
item: [ key:8
{ }
title: "Receiving Docs from 1st Benfic",
url: "#",
disabled: true,
},
{ title: "Correct Drawing", url: "#", disabled: true },
{
title: "Processing discrepant Docs",
url: "#",
disabled: true,
},
{
title: "Sending Documents",
url: "#",
disabled: true,
},
{
title: "Changing Maturity",
url: "#",
disabled: true,
},
{ title: "funds Settlement", url: "#", disabled: true },
{
title: "Reimbursement Clain",
url: "#",
disabled: true,
},
],
},
{
label: "Oth.L/T Docs",
item: [
{
title: "Charge Settlement",
url: "#",
disabled: true,
},
{ title: "Attachment", url: "#", disabled: true },
{
title: "Editing References",
url: "#",
disabled: true,
},
{ title: "Common Messages", url: "#", disabled: true },
{ title: "Cancelling", url: "#", disabled: true },
{ title: "Re_Opening", url: "#", disabled: true },
],
},
], ],
}; };
}, },
methods: { methods: {
...Event, ...Event,
//各入口按钮请求 //各入口按钮请求
async onTabClick(tab, event) { async onTabClick(tab) {
switch (tab.label) { var label = tab.label;
case "Transfer": var key = 1;
this.hotreg = "9"; var meum = this.meum;
break; for(let i = 0; i < meum.length; i++){
default: if(meum[i].label == label){
this.hotreg = "1"; key = meum[i].key;
break;
}
} }
let rtnmsg = await this.executeRule(`cfgfil.hotreg${this.hotreg}`); this.hotreg = key;
let rtnmsg = await this.executeRule(`cfgfil.hotreg${key}`);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data); this.updateModel(rtnmsg.data)
} else { } else {
this.$notify.error({ this.$notify.error({
title: "错误", title: "错误",
...@@ -541,7 +446,11 @@ export default { ...@@ -541,7 +446,11 @@ export default {
} }
}, },
}, },
created: function () {}, computed: {
meumItem() {
return this.model.cfgfil.btnstm.rows || []
}
}
}; };
</script> </script>
<style> <style>
......
<template> <template>
<el-table <el-table
:data="data" :data="tableData"
border border
stripe stripe
:show-header="false" :show-header="false"
:cell-style="cellSttyle" :cell-style="cellSttyle"
> >
<el-table-column prop="title" align="center"> <el-table-column prop="label" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<c-button <c-button
@click.native="onNarBtnClick(scope.row.url, scope.row.hotsubx)" @click.native="onNarBtnClick(scope.row.url)"
:title="scope.row.title" :label="scope.row.label"
:disabled="scope.row.disabled" :disabled="scope.row.disabled"
>{{ scope.row.title }}</c-button >{{ scope.row.label }}</c-button
> >
<!-- <el-link <!-- <el-link
:disabled="scope.row.disabled" :disabled="scope.row.disabled"
:href="scope.row.url" :href="scope.row.url"
v-if="scope.row.title" v-if="scope.row.title"
>{{ scope.row.title }}</el-link >{{ scope.row.title }}</el-link
> --> > -->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</template> </template>
<script> <script>
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["data", "model"], props: ["data", "model"],
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
cellSttyle: { height: "25px" }, cellSttyle: { height: "25px" },
}; meumItem: [],
}, };
methods: { },
//各入口按钮请求 methods: {
async onNarBtnClick(href, hotsubx) { //各入口按钮请求
let rtnmsg = await this.executeRule(`cfgfil.hotsub${hotsubx}`); async onNarBtnClick(url) {
console.log("cfgfil.code:" + this.model.cfgfil[`subtrn${hotsubx}`]); let rtnmsg = await this.executeRule("dedgrp.rec.ownref,cfgfil.hotsub7");
if ((rtnmsg.respCode == SUCCESS)) { if (rtnmsg.respCode == SUCCESS) {
this.$router.history.push(href); this.updateModel(rtnmsg.data);
} else { this.$router.history.push("/business/" + url);
this.$notify.error({ title: "错误", message: "服务请求失败!" }); } else {
} this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
// let rtnmsg = await this.executeRule(`cfgfil.hotsub${hotsubx}`);
// console.log("cfgfil.code:" + this.model.cfgfil[`subtrn${hotsubx}`]);
// if (rtnmsg.respCode == SUCCESS) {
// this.$router.history.push(href);
// } else {
// this.$notify.error({
// title: "错误",
// message: "服务请求失败!",
// });
// }
},
},
computed: {
tableData() {
const arr = [];
var data = this.data;
for (let i = 0; i < data.length; i++) {
const items = data[i].split("\t");
arr.push({
url: items[0],
label: items[1],
disabled: items[2] == "N" ? true : false,
other: items[3],
});
}
console.log(arr);
return arr;
},
}, },
},
}; };
</script> </script>
<style> <style>
a { a {
text-decoration-line: none; text-decoration-line: none;
color: #606266; color: #606266;
} }
a:hover { a:hover {
color: blue; color: blue;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<div class="eibs-tab"> <!-- <div class="eibs-tab"> -->
<div>
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="argadr.title + '编号'" :prop="argadr.url + 'ref'"> <el-form-item :label="argadr.title + '编号'" :prop="'${argadr.grp}.${argadr.rol}.pts.ref'">
<c-input <c-input
v-model="model[argadr.url + 'ref']" v-model="model[argadr.grp][argadr.rol].pts.ref"
maxlength="16" maxlength="16"
:placeholder="'请输入' + argadr.title + '编号'" :placeholder="'请输入' + argadr.title + '编号'"
:disabled="disabled" :disabled="disabled"
...@@ -12,9 +13,9 @@ ...@@ -12,9 +13,9 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="argadr.title + '名称'" :prop="argadr.url + 'nam'"> <el-form-item :label="argadr.title + '名称'" :prop="'${argadr.grp}.${argadr.rol}.pts.nam'">
<c-input <c-input
v-model="model[argadr.url + 'nam']" v-model="model[argadr.grp][argadr.rol].pts.nam"
maxlength="40" maxlength="40"
:placeholder="'请输入' + argadr.title + '名称'" :placeholder="'请输入' + argadr.title + '名称'"
:disabled="disabled" :disabled="disabled"
......
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