Commit ead02bec by wangren

switsk页面布局

parent 328a8297
......@@ -385,7 +385,7 @@ export default {
font-size: 13px;
padding-left: 5px;
}
.eContainer-table-block .el-table .cell {
.eContainer-table-block >>> .el-table .cell {
white-space: pre-wrap;
}
.buttonDiv{
......
......@@ -6031,6 +6031,15 @@ const CodeTable = {
{label:"IRREVOCABLE TRANSFERABLE",value:"1" },
{label:"REVOCABLE",value:"2" },
{label:"REVOCABLE TRANSFERABLE",value:"3" },
]
],
persontype:[
{label:"对公" ,value:"1"},
{label:"同业" ,value:"2"},
{label:"对私中国居民" ,value:"D"},
{label:"对私中国非居民" ,value:"F"},
],
}
export default CodeTable;
\ No newline at end of file
import Utils from "~/utils"
/**
* Infpty Check规则
*/
let checkObj = {
"seatypo" :null,
"recgrp.rec.hbkaccflg" :null,
"recgrp.hbk.extkey" :null,
"seatypc" :null,
"seatypb" :null,
"recgrp.ptamaa.issbchinf" :null,
"seatypa" :null,
"seatyph" :null,
"recgrp.rec.heqaccflg" :null,
"recgrp.heq.extkey" :null,
"recgrp.rec.extkey" :null,
"recpan.bchkey" :null,
"recgrp.rec.juscod" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Infpty Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"recgrp.hbk.extkey" :Utils.defaultFunction,
"recgrp.rec.extkey" :Utils.defaultFunction,
"recgrp.typh" :Utils.defaultFunction,
"recgrp.typo" :Utils.defaultFunction,
"recgrp.typc" :Utils.defaultFunction,
"recgrp.typa" :Utils.defaultFunction,
"recgrp.typb" :Utils.defaultFunction,
"recpan.bchkey" :Utils.defaultFunction,
"recgrp.adrmaa.tid" :Utils.defaultFunction,
"recgrp.adrmaa.adr2" :Utils.defaultFunction,
"recgrp.adrmaa.adr1" :Utils.defaultFunction,
"recgrp.adrmaa.adr3" :Utils.defaultFunction,
"recgrp.heq.extkey" :Utils.defaultFunction,
"recgrp.adrmaa.loctxt" :Utils.defaultFunction,
"recgrp.adrmaa.nam1" :Utils.defaultFunction,
"infbut.dspstm" :Utils.defaultFunction,
"recgrp.rec.juscod" :Utils.defaultFunction,
"recgrp.rec.nam" :Utils.defaultFunction,
"recgrp.rec.nam1" :Utils.defaultFunction,
"recgrp.adrmaa.pobtxt" :Utils.defaultFunction,
"recgrp.ptamaa.issbchinf" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onInfbutSearow(){
let rtnmsg = await this.executeRule("infbut.searow")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutDsp(){
let rtnmsg = await this.executeRule("infbut.dsp")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutUserow(){
let rtnmsg = await this.executeRule("infbut.userow")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutClr(){
let rtnmsg = await this.executeRule("infbut.clr")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutButprt(){
let rtnmsg = await this.executeRule("infbut.butprt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onExcel(){
let rtnmsg = await this.executeRule("excel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutExi(){
let rtnmsg = await this.executeRule("infbut.exi")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanGetpty(){
let rtnmsg = await this.executeRule("recpan.getpty")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanAltnam(){
let rtnmsg = await this.executeRule("recpan.altnam")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanGet(){
let rtnmsg = await this.executeRule("recpan.get")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"ptysea.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ptysea.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"adrsea.str1":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"adrsea.bic":[
{type: "string", required: false, message: "必输项"},
{max: 11,message:"长度不能超过11"}
],
"adrsea.loctxt":[
{type: "string", required: false, message: "必输项"},
{max: 25,message:"长度不能超过25"}
],
"adrsea.loczip":[
{type: "string", required: false, message: "必输项"},
{max: 10,message:"长度不能超过10"}
],
"shxydm":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
"infbut.dspstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"recpan.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recgrp.rec.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"recpan.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.rec.juscod":[
{type: "string", required: false, message: "必输项"},
{max: 10,message:"长度不能超过10"}
],
"recgrp.rec.nam1":[
{type: "string", required: true, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"recgrp.adrmaa.nam1":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"recgrp.adrmaa.tel1":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"recgrp.adrmaa.tel2":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"recgrp.adrmaa.nam2":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"recgrp.adrmaa.fax1":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"recgrp.adrmaa.fax2":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"recgrp.adrmaa.nam3":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"recgrp.adrmaa.tlx":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"recgrp.adrmaa.str1":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"recgrp.adrmaa.bic":[
{type: "string", required: false, message: "必输项"},
{max: 11,message:"长度不能超过11"}
],
"recgrp.adrmaa.blz":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recgrp.adrmaa.str2":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"recgrp.adrmaa.bid":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"recgrp.adrmaa.loczip":[
{type: "string", required: false, message: "必输项"},
{max: 10,message:"长度不能超过10"}
],
"recgrp.adrmaa.loctxt":[
{type: "string", required: false, message: "必输项"},
{max: 25,message:"长度不能超过25"}
],
"recgrp.adrmaa.tid":[
{type: "string", required: false, message: "必输项"},
{max: 23,message:"长度不能超过23"}
],
"recgrp.adrmaa.loc2":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"recgrp.adrmaa.clc":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"recgrp.adrmaa.pob":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"recgrp.adrmaa.pobtxt":[
{type: "string", required: false, message: "必输项"},
{max: 25,message:"长度不能超过25"}
],
"recgrp.adrmaa.dpt":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"recgrp.ptamaa.issbchinf":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.adrmaa.eml":[
{type: "string", required: false, message: "必输项"},
{max: 80,message:"长度不能超过80"}
],
"recpan.hbkget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recgrp.hbk.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"recpan.hbkget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recgrp.hbk.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.heq.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"recpan.heqget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recpan.heqget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recgrp.heq.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.rec.accusr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recgrp.adrmaa.adr1":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.adrmaa.adr2":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.adrmaa.adr3":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.adrmaa.pobzip":[
{type: "string", required: false, message: "必输项"},
{max: 10,message:"长度不能超过10"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Infpty{
constructor () {
this.data = {
ptysea:{
nam:"", // External Visible Name .ptysea.nam
extkey:"", // Party No. .ptysea.extkey
},
adrsea:{
str1:"", // Street/SWIFT Line 3 .adrsea.str1
bic:"", // BIC .adrsea.bic
loctxt:"", // Textpart of City/Second Part of SWIFT Line 4 .adrsea.loctxt
loczip:"", // ZIP Code .adrsea.loczip
},
seatypb:"", // Bank .seatypb
seatypc:"", // Client .seatypc
seatypa:"", // Own Address .seatypa
seatypo:"", // Other .seatypo
infbut:{
dspstm:"", // display stream .infbut.dspstm
},
seatyph:"", // 海关 .seatyph
persontype:"", // 客户类别 .persontype
zhbchinr:"", // 支行行号 .zhbchinr
shxydm:"", // 统一社会信用代码 .shxydm
jyzt:"", // 交易主体 .jyzt
recgrp:{
rec:{
extkey:"", // Address Number .recgrp.rec.extkey
nam:"", // Party Name .recgrp.rec.nam
adrsta:"", // Address Status .recgrp.rec.adrsta
hbkaccflg:"", // Use Accounting of House Bank .recgrp.rec.hbkaccflg
heqaccflg:"", // Use Accounting of Headquarters .recgrp.rec.heqaccflg
accusr:"", // User ID of Account Officer .recgrp.rec.accusr
nam1:"", // Chinese name .recgrp.rec.nam1
juscod:"", // 组织机构'码 .recgrp.rec.juscod
dshflg:"", // 是否电商 .recgrp.rec.dshflg
},
typb:"", // Bank .recgrp.typb
typc:"", // Client .recgrp.typc
typa:"", // Own Address .recgrp.typa
typo:"", // Other .recgrp.typo
adrmaa:{
nam1:"", // Name 1/SWIFT Line 1 .recgrp.adrmaa.nam1
nam2:"", // Name 2/SWIFT Line 2 .recgrp.adrmaa.nam2
nam3:"", // Name 3 .recgrp.adrmaa.nam3
str1:"", // Street/SWIFT Line 3 .recgrp.adrmaa.str1
str2:"", // Optional Second Line of Street .recgrp.adrmaa.str2
loczip:"", // ZIP Code/First Part of SWIFT Line 4 .recgrp.adrmaa.loczip
loctxt:"", // Textpart of City/Second Part of SWIFT Line 4 .recgrp.adrmaa.loctxt
loc2:"", // Optional Second Line of City .recgrp.adrmaa.loc2
pob:"", // Line with Postbox .recgrp.adrmaa.pob
pobzip:"", // ZIP Code Used when Addressing Postbox .recgrp.adrmaa.pobzip
pobtxt:"", // Textpart of City Used when Addressing Postbox .recgrp.adrmaa.pobtxt
loccty:"", // Country .recgrp.adrmaa.loccty
eml:"", // eMail/Internet .recgrp.adrmaa.eml
tel1:"", // Telephone 1 .recgrp.adrmaa.tel1
tel2:"", // Telephone 2 .recgrp.adrmaa.tel2
fax1:"", // Telefax 1 .recgrp.adrmaa.fax1
fax2:"", // Telefax 2 .recgrp.adrmaa.fax2
tlx:"", // Telex Number .recgrp.adrmaa.tlx
bic:"", // BIC of Address Optional .recgrp.adrmaa.bic
bid:"", // Branch Identification Used in Option B of SWIFT Fieldtags .recgrp.adrmaa.bid
tid:"", // TradeConnect ID .recgrp.adrmaa.tid
blz:"", // Bankleitzahl German Clearing Code .recgrp.adrmaa.blz
clc:"", // Clearing Code for Banks .recgrp.adrmaa.clc
uil:"", // Default Language Code .recgrp.adrmaa.uil
cortyp:"", // Primary Output Chanel of Messages SWT, LET, TLX, TCO .recgrp.adrmaa.cortyp
dpt:"", // Department .recgrp.adrmaa.dpt
adr1:"", // Chinese Address .recgrp.adrmaa.adr1
adr2:"", // .recgrp.adrmaa.adr2
adr3:"", // .recgrp.adrmaa.adr3
},
hbk:{
extkey:"", // Address Number .recgrp.hbk.extkey
nam:"", // External Visible Name .recgrp.hbk.nam
},
heq:{
extkey:"", // Address Number .recgrp.heq.extkey
nam:"", // External Visible Name .recgrp.heq.nam
},
typh:"", // 海关 .recgrp.typh
ptamaa:{
issbchinf:"", // Info of bank .recgrp.ptamaa.issbchinf
},
},
recpan:{
recget:{
sdamod:{
seainf:"", // .recpan.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.recget.sdamod.dadsnd
},
},
hbkget:{
sdamod:{
seainf:"", // .recpan.hbkget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.hbkget.sdamod.dadsnd
},
},
heqget:{
sdamod:{
seainf:"", // .recpan.heqget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.heqget.sdamod.dadsnd
},
},
bchkey:"", // Branch Key .recpan.bchkey
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -115,6 +115,9 @@ import ExamRule from "./ExamRule";
import Gitsel from "./Gitsel"
import Gitset from "./Gitset"
import Gitcrq from "./Gitcrq"
import Infpty from "./Infpty"
/**
* 带有name的才会被添加进顶部的标签页里
*/
......@@ -241,5 +244,8 @@ const BusRouter = [
{ path: 'gitsel', component: Gitsel, name: 'Gitsel', meta: { title: '进口保函查询' } },
{ path: 'gitset', component: Gitset, name: 'Gitset', meta: { title: '进口保函赔付' } },
{ path: 'gitcrq', component: Gitcrq, name: 'Gitcrq', meta: { title: '进口保函索赔登记' } },
{ path: 'Infpty', component: Infpty, name: 'Infpty', meta: { title: 'Infpty' } },
]
export default BusRouter
<template>
<div class="eContainer">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="150px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--PD000039 -->
<el-tab-pane label="Search Panel" name="infsea">
<m-infsea :model="model" :codes="codes" ref="infsea" />
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="Party" name="ptyp0">
<m-ptyp0 :model="model" :codes="codes" ref="ptyp0" />
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Infpty from "~/model/Infpty";
import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Infpty/Check";
import Default from "~/model/Infpty/Default";
import Pattern from "~/model/Infpty/Pattern";
import Infsea from "./Infsea";
import Ptyp0 from "./Ptyp0";
export default {
name: "Infpty",
components: {
"m-infsea": Infsea,
"m-ptyp0": Ptyp0,
},
provide() {
return {
root: this,
};
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "infsea",
trnName: "infpty",
model: new Infpty().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: { ...CodeTable },
};
},
methods: {
myTabClick() {
this.tabClick(tab);
/**
* do it yourself
**/
},
},
created: async function () {
console.log("进入infpty交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
//处理istream的数据
// this.$refs.infsea.stmData.columns = rtnmsg.codeSet['infbut.dspstm']
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
};
</script>
<style>
</style>
......@@ -233,8 +233,7 @@
</el-form>
<c-col :span="24" style="">
<div style="border-bottom: 10px solid rgb(232, 232, 232)">
</div>
<div style="border-bottom: 10px solid rgb(232, 232, 232)"></div>
</c-col>
<!-- </template> -->
<!-- </c-list-search> -->
......@@ -304,7 +303,10 @@
>
<c-table-column fixed="right" prop="op" label="操作" width="165px">
<template slot-scope="{ scope }">
<c-button style="margin-left: 0" size="small" @click="onDetails(scope.$index,scope.row)"
<c-button
style="margin-left: 0"
size="small"
@click="onDetails(scope.$index, scope.row)"
>详情
</c-button>
<c-button
......@@ -319,10 +321,21 @@
<c-button type="primary" size="small">删除</c-button> -->
<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>
<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"
<a
slot="reference"
href="javascript:void(0)"
style="margin-left: 5px"
><i class="el-icon-more"></i
></a>
</el-popover>
......@@ -332,7 +345,6 @@
</c-col>
</el-row>
<!-- <el-row style="margin-top: 2rem">
<c-col :span="24">
<el-card class="box-card">
......@@ -411,7 +423,7 @@ export default {
// detailDialog: false,
// setColumnFlg: false,
// saveColumnFlg: true,
transactionStatus: {
busiNo: "",
modTimes: 0,
......@@ -427,11 +439,24 @@ export default {
'5 2 "业务编号" 300',
'6 3 "交易名称" 150',
//'1 4 "状态" 60 1 tdViewTypeEdit:0 1 SPT:STA',
{index:1,position:4,width:110,pattern:'code',label:'状态',code:this.codes.sptrelstatus},
{
index: 1,
position: 4,
width: 110,
pattern: "code",
label: "状态",
code: this.codes.sptrelstatus,
},
'17 5 "报文类型" 100',
'18 6 "对方银行BIC" 110',
// '7 7 "创建时间" 160 20 DateTime 1',
{index:7,position:7,width:140,pattern:'time',label:'创建时间'},
{
index: 7,
position: 7,
width: 140,
pattern: "time",
label: "创建时间",
},
'19 8 "币种" 50',
'20 9 "金额" 69 2 8 1 16',
......@@ -476,7 +501,7 @@ export default {
this.model[element] = "t";
});
},
...Event,
},
created: function () {
......@@ -500,7 +525,7 @@ export default {
.detailDialogClass >>> .el-dialog {
height: 650px;
} */
.table-button-item-list{
.table-button-item-list {
padding: 0;
margin: 0;
}
......@@ -511,6 +536,4 @@ export default {
color: #606266;
cursor: pointer;
}
</style>
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" tokenKey="modelForm" label-width="140px" size="small" :validate-on-rule-change="false">
<!-- <c-tabs :value="tabVal" ref="elment" type="card" @tab-click="tabClick"> -->
<!-- <el-tab-pane :value="tabVal" label="待办任务查询" name="menu"> -->
<!-- <c-content> -->
<m-menu :model="model" :codes="codes" ref="Menu" />
<!-- </c-content> -->
<!-- </el-tab-pane> -->
<!-- </c-tabs> -->
</el-form>
</div>
<div class="eContainer">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
tokenKey="modelForm"
label-width="140px"
size="small"
:validate-on-rule-change="false"
>
<!-- <c-tabs :value="tabVal" ref="elment" type="card" @tab-click="tabClick"> -->
<!-- <el-tab-pane :value="tabVal" label="待办任务查询" name="menu"> -->
<!-- <c-content> -->
<m-menu :model="model" :codes="codes" ref="Menu" />
<!-- </c-content> -->
<!-- </el-tab-pane> -->
<!-- </c-tabs> -->
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Sptsel from "~/Model/Sptsel"
import commonProcess from "~/mixin/commonProcess.js"
import Pattern from "~/Model/Sptsel/Pattern"
import Utils from "~/utils/index"
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Sptsel from "~/Model/Sptsel";
import commonProcess from "~/mixin/commonProcess.js";
import Pattern from "~/Model/Sptsel/Pattern";
import Utils from "~/utils/index";
import Default from "~/model/Sptsel/Default";
import Check from "~/model/Sptsel/Check";
import Menu from "./Menu"
import Event from "~/model/Sptsel/Event"
import Menu from "./Menu";
import Event from "~/model/Sptsel/Event";
export default {
name: 'Sptsel',
components:{
"m-menu" : Menu,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
computed: {
},
data(){
return {
tabVal: "menu",
trnName:"sptsel",
model:new Sptsel().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules:null,
codes:{
flt:CodeTable.flt,
dflg:CodeTable.dflg,
sptrelstatus:CodeTable.sptrelstatus,
},
}
},
methods:{...Event},
mounted:async function(){
console.log("进入sptsel交易");
const that = this;
that.init(that.model).then(res => {
//TODO 处理数据逻辑
that.model = Utils.copyValueFromVO(that.model, res.data)
// that.$refs.Menu.stmData.columns = res.data.sptstm.rows;
this.$refs.Menu.handleSearch();
})
}
}
name: "Sptsel",
components: {
"m-menu": Menu,
},
provide() {
return {
root: this,
};
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
computed: {},
data() {
return {
tabVal: "menu",
trnName: "sptsel",
model: new Sptsel().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
flt: CodeTable.flt,
dflg: CodeTable.dflg,
sptrelstatus: CodeTable.sptrelstatus,
},
};
},
methods: { ...Event },
mounted: async function () {
console.log("进入sptsel交易");
const that = this;
that.init(that.model).then((res) => {
//TODO 处理数据逻辑
that.model = Utils.copyValueFromVO(that.model, res.data);
// that.$refs.Menu.stmData.columns = res.data.sptstm.rows;
this.$refs.Menu.handleSearch();
});
},
};
</script>
<style>
</style>
......@@ -92,7 +92,7 @@ export default {
created() {},
methods: {
tabClick(tab) {
this.$store.commit("setTaskListTabVal", tab.name)
this.$store.commit("setTaskListTabVal", tab.name);
},
},
components: {
......
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