Commit d7c6404d by sheyinchen

bttdcr交易修改提交测试

parent 45f52371
......@@ -3010,6 +3010,22 @@ const CodeTable = {
{ label: "Other Type of Advice, wait for documents", value: "O" },
{ label: "文件被拒绝并退回", value: "R" },
],
docsta3: [
{ label: "已寄单索款", value: "A" },
{ label: "已到单", value: "B" },
{ label: "已到期付款确认", value: "C" },
{ label: "待付款", value: "D" },
{ label: "付款成功", value: "E" },
{ label: "已拒付", value: "F" },
{ label: "已退单", value: "G" },
{ label: "Clean documents received", value: "H" },
{ label: "Discrepant documents received", value: "I" },
{ label: "Documents settled free of payment", value: "J" },
{ label: "Goods released, documents received", value: "K" },
{ label: "Documents sent on approval basis", value: "L" },
{ label: "Documents taken up", value: "M" },
{ label: "Documents settled free of payment", value: "N" },
],
doctyp: [
{ label: "买方单据", value: "BDD" },
{ label: "进口代收", value: "BCD" },
......
......@@ -4,14 +4,15 @@ import Utils from "~/utils"
* Bttdcr Check规则
*/
let checkObj = {
"liaall.misamt" :null,
"btdgrp.blk.disdoc" :null,
"btdgrp.blk.docdis" :null,
"bttp0.recget.sdamod.dadsnd" :null,
"bttp0.ltdget.sdamod.dadsnd" :null,
"setmod.dspflg" :null,
"furide" :null,
"btdgrp.rec.disdat" :null,
"mtabut.coninf.conexedat" :null,
"btdgrp.blk.docins" :null,
"bttp0.ledget.sdamod.dadsnd" :null,
"setmod.docamt" :null,
"mtabut.clsflg" :null,
}
......
......@@ -7,15 +7,28 @@ import Utils from "~/utils/index"
export default {
"btdgrp.blk.docdis" :Utils.defaultFunction,
"btdgrp.be2.pts.nam" :Utils.defaultFunction,
"btdgrp.rec.ownref" :Utils.defaultFunction,
"ltdgrp.rec.ownref" :Utils.defaultFunction,
"btdgrp.be1.pts.nam" :Utils.defaultFunction,
"setmod.glemod.gleshwstm" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction,
"setmod.dspflg" :Utils.defaultFunction,
"setmod.docamt" :Utils.defaultFunction,
"trnmod.trndoc.condocstm" :Utils.defaultFunction,
"trnmod.trndoc.shwinc" :Utils.defaultFunction,
"trnmod.trndoc.shwout" :Utils.defaultFunction,
"ledgrp.rec.ownref" :Utils.defaultFunction,
"btdgrp.cbs.max.cur" :Utils.defaultFunction,
"btdgrp.cbs.max.amt" :Utils.defaultFunction,
"mtabut.clsflg" :Utils.defaultFunction,
"btdgrp.blk.disdoc" :Utils.defaultFunction,
"btdgrp.rec.ownref" :Utils.defaultFunction,
"btdgrp.be1.pts.nam" :Utils.defaultFunction,
"setmod.glemod.gleshwstm" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inflev" :Utils.defaultFunction,
"btdgrp.be2.pts.nam" :Utils.defaultFunction,
"ltdgrp.rec.ownref" :Utils.defaultFunction,
"mtabut.coninf.usr.extkey" :Utils.defaultFunction,
"liaall.misamt" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inflev" :Utils.defaultFunction,
"mtabut.clsflg" :Utils.defaultFunction,
"mtabut.coninf.conexedat" :Utils.defaultFunction,
}
//你可以添加自动default处理
......@@ -38,5 +38,113 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onLiaallButmisamt(){
let rtnmsg = await this.executeRule("liaall.butmisamt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onLiaallButmissig(){
let rtnmsg = await this.executeRule("liaall.butmissig")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSetmodDet(){
let rtnmsg = await this.executeRule("setmod.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButshw(){
let rtnmsg = await this.executeRule("trndoc.butshw")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButadd(){
let rtnmsg = await this.executeRule("trndoc.butadd")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButnew(){
let rtnmsg = await this.executeRule("trndoc.butnew")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButattto(){
let rtnmsg = await this.executeRule("trndoc.butattto")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButdel(){
let rtnmsg = await this.executeRule("trndoc.butdel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButatt(){
let rtnmsg = await this.executeRule("trndoc.butatt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
......@@ -69,17 +69,17 @@ export default {
],
"btdgrp.rec.matdat":[
{type: "date", required: false, message: "输入正确的日期"}
{type: "string", required: false, message: "输入正确的日期"}
],
"btdgrp.be2.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"btdgrp.rec.rcvdatbe2":[
{type: "date", required: false, message: "输入正确的日期"}
{type: "string", required: false, message: "输入正确的日期"}
],
"btdgrp.rec.rcvdatbe1":[
{type: "date", required: false, message: "输入正确的日期"}
{type: "string", required: false, message: "输入正确的日期"}
],
"btdgrp.be2.pts.nam":[
{type: "string", required: false, message: "必输项"},
......@@ -117,8 +117,117 @@ export default {
"btdgrp.rec.disdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"liaall.outamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.outpct":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"liaall.concur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"liaall.misamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotoldamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"setmod.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"setmod.docamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"setmod.zmqacc":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"setmod.glemod.gleshwstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"mtabut.coninf.oitinf.oit.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"mtabut.coninf.oitset.oit.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"mtabut.coninf.conexedat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"mtabut.coninf.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"trnmod.trndoc.advnam":[
{type: "string", required: false, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"trnmod.trndoc.amdapl":[
{type: "string", required: true, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"trnmod.trndoc.advdoc":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.filrecv":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"trnmod.trndoc.doctrestm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.condocstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.rcvatt.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
import Pub from "../Public"
import Pub from "~/model/Public";
export default class Bttdcr{
constructor () {
......@@ -11,7 +11,7 @@ export default class Bttdcr{
dadsnd:"", // Drag Drop Sender .bttp0.ltdget.sdamod.dadsnd
seainf:"", // .bttp0.ltdget.sdamod.seainf
},
},
},
ledget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .bttp0.ledget.sdamod.dadsnd
......@@ -30,11 +30,7 @@ export default class Bttdcr{
aammod:{
addamtflg:"", // Add. Amount .bttp0.aammod.addamtflg
},
},
mtabut: new Pub().data.Mtabut,
setmod: new Pub().data.Setmod,
liaall: new Pub().data.Liaall,
},
ltdgrp:{
rec:{
ownref:"", // Transfer Reference .ltdgrp.rec.ownref
......@@ -82,8 +78,80 @@ export default class Bttdcr{
},
rejpenins:"", // Rejection pending instructions .rejpenins
advdisflg:"", // Send Advice of Discrepancies .advdisflg
// mtabut:{
// clsflg:"", // Close Flag .mtabut.clsflg
// coninf:{
// oitinf:{
// labinftxt:"", // Label for INFTXT .mtabut.coninf.oitinf.labinftxt
// oit:{
// inftxt:"", // Infotext .mtabut.coninf.oitinf.oit.inftxt
// inflev:"", // Infotext Level .mtabut.coninf.oitinf.oit.inflev
// },
// },
// oitset:{
// labinftxt:"", // Label for INFTXT .mtabut.coninf.oitset.labinftxt
// oit:{
// inftxt:"", // Infotext .mtabut.coninf.oitset.oit.inftxt
// inflev:"", // Infotext Level .mtabut.coninf.oitset.oit.inflev
// },
// },
// conexedat:"", // 执行日期 .mtabut.coninf.conexedat
// usr:{
// extkey:"", // User ID .mtabut.coninf.usr.extkey
// },
// },
// },
mtabut: new Pub().data.Mtabut,
accdisflg:"", // Accept to 2ben bank .accdisflg
furide:"", // (History) .furide
// liaall:{
// misamt:"", // Amount not yet assigned .liaall.misamt
// concur:"", // External Booking Amount .liaall.concur
// outpct:"", // Sight Amount Percentage .liaall.outpct
// outamt:"", // Sight Amount .liaall.outamt
// exttotoldamt:"", // Old Amount booked externally .liaall.exttotoldamt
// exttotamt:"", // Total booking amount external assinged .liaall.exttotamt
// },
liaall: new Pub().data.Liaall,
// setmod:{
// docamttyplab:"", // settled amount description as label .setmod.docamttyplab
// retmsg:"", // Label showing Retry overflow condition .setmod.retmsg
// ref:"", // our reference .setmod.ref
// doccur:"", // document currency .setmod.doccur
// docamt:"", // document amount .setmod.docamt
// dspflg:"", // Type of settlement .setmod.dspflg
// xreflg:"", // Recalculate Rates .setmod.xreflg
// setglg:{
// labdspflg:"", // Label for Type of Settlement .setmod.setglg.labdspflg
// },
// zmqacclab:"", // 主�'�号LABEL .setmod.zmqacclab
// zmqacc:"", // 自�'�区主�'�号 .setmod.zmqacc
// glemod:{
// gleshwstm:"", // Booking stream to Display .setmod.glemod.gleshwstm
// },
// },
setmod: new Pub().data.Setmod,
// trnmod:{
// trndoc:{
// advlabel:"", // ADVLABEL .trnmod.trndoc.advlabel
// amdnam:"", // AMDNAM .trnmod.trndoc.amdnam
// advdoc:"", // 国内证通知书 .trnmod.trndoc.advdoc
// advnam:"", // 国内证落款 .trnmod.trndoc.advnam
// amdapl:"", // 修改申请人名称 .trnmod.trndoc.amdapl
// doclbl:"", // Lable for CONDOCSTM .trnmod.trndoc.doclbl
// doctrestm:"", // Document tree .trnmod.trndoc.doctrestm
// shwinc:"", // Show Incoming Messages .trnmod.trndoc.shwinc
// shwout:"", // Show Outgoing Messages .trnmod.trndoc.shwout
// condocstm:"", // Connected Documents .trnmod.trndoc.condocstm
// rcvatt:{
// seainf:"", // .trnmod.trndoc.rcvatt.seainf
// },
// filrecv:"", // File Receiver .trnmod.trndoc.filrecv
// },
// },
mtabut: new Pub().data.Mtabut,
bttbe1l1blk:"",
bttbe2l1blk:"",
pageId: "" // ctx的key
}
}
......
......@@ -26,8 +26,8 @@
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="" prop="bttp0.ltdget.sdamod.seainf">
<c-input v-model="model.bttp0.ltdget.sdamod.seainf" placeholder="请输入" disabled></c-input>
<el-form-item label="" prop="btdgrp.rec.nam">
<c-input v-model="model.btdgrp.rec.nam" placeholder="请输入" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
......@@ -61,21 +61,21 @@
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="65px" prop="btdgrp.cbs.opn1.cur">
<c-input v-model="model.btdgrp.cbs.opn1.cur" placeholder="请输入余额" disabled></c-input>
<el-form-item label="" label-width="65px" prop="btdgrp.cbs.opn1.amt">
<c-input v-model="model.btdgrp.cbs.opn1.amt" placeholder="请输入余额" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="单据类型" prop="btdgrp.rec.doctypcod">
<c-input v-model="model.btdgrp.rec.doctypcod" maxlength="1" placeholder="请输入单据类型" disabled></c-input>
<c-select v-model="model.btdgrp.rec.doctypcod" maxlength="1" placeholder="请输入单据类型" :code="codes.doctypcod" disabled></c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="到期日" prop="btdgrp.rec.matdat">
<c-date-picker type="date" v-model="model.btdgrp.rec.matdat" style="width:100%" placeholder="请选择到期日"
<c-date-picker type="string" v-model="model.btdgrp.rec.matdat" style="width:100%" placeholder="请选择到期日"
disabled></c-date-picker>
</el-form-item>
</c-col>
......@@ -83,13 +83,13 @@
<c-col :span="24">
<c-col :span="12">
<el-form-item label="从第二受益人那收到单据日期" prop="btdgrp.rec.rcvdatbe2">
<c-date-picker type="date" v-model="model.btdgrp.rec.rcvdatbe2" style="width:100%" placeholder="请选择从第二受益人那收到单据日期"
<c-date-picker type="string" v-model="model.btdgrp.rec.rcvdatbe2" style="width:100%" placeholder="请选择从第二受益人那收到单据日期"
disabled="disabled"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="从第一受益人那收到单据日期" prop="btdgrp.rec.rcvdatbe1">
<c-date-picker type="date" v-model="model.btdgrp.rec.rcvdatbe1" style="width:100%" placeholder="请选择从第一受益人那收到单据日期"
<c-date-picker type="string" v-model="model.btdgrp.rec.rcvdatbe1" style="width:100%" placeholder="请选择从第一受益人那收到单据日期"
disabled="disabled"></c-date-picker>
</el-form-item>
</c-col>
......@@ -97,7 +97,7 @@
<c-col :span="24">
<el-form-item label="单据状态" prop="btdgrp.rec.docsta">
<c-input v-model="model.btdgrp.rec.docsta" maxlength="40" placeholder="请输入单据状态" disabled></c-input>
<c-select v-model="model.btdgrp.rec.docsta" maxlength="40" placeholder="请输入单据状态" :code="codes.docsta3" disabled></c-select>
</el-form-item>
</c-col>
......@@ -109,9 +109,13 @@
</el-form-item>
</c-col>
<c-col :span="2">
<c-button size="small" class="point" type="primary" @click="onIntdisButtxmsel">
...
</c-button>
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="showGridPromptDialog('docdis.buttxmsel', null, null,{TXT:'btdgrp.blk.docdis'}, {TXT: false},'doxpDialog')">
...
</c-button>
</c-col>
......@@ -161,9 +165,13 @@
</el-form-item>
</c-col>
<c-col :span="2">
<c-button size="small" class="point" type="primary" @click="onIntdisButtxmsel">
...
</c-button>
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="showGridPromptDialog('docins.buttxmsel', null, null,{TXT:'btdgrp.blk.docins'}, {TXT: false},'doxpDialog')">
...
</c-button>
</c-col>
</c-col>
......@@ -175,22 +183,36 @@
</el-form-item>
</c-col>
<c-col :span="2">
<c-button size="small" class="point" type="primary" @click="onIntdisButtxmsel">
...
</c-button>
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="showGridPromptDialog('disdoc.buttxmsel', null, null,{TXT:'btdgrp.blk.disdoc'}, {TXT: false},'doxpDialog')">
...
</c-button>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.mtabut.clsflg">关闭标志</c-checkbox>
<c-col :span="10">
<c-checkbox v-model="model.rejpenins" @change="selectOrCheckboxRule('rejpenins')">向第二受益人发拒付通知</c-checkbox>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.accdisflg">给第二受益人发接受不符点通知</c-checkbox>
<c-col :span="10" :offset="2">
<c-checkbox v-model="model.accdisflg" @change="selectOrCheckboxRule('accdisflg')">给第二受益人发接受不符点通知</c-checkbox>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.accdisflg">给第二受益人发接受不符点通知</c-checkbox>
<c-checkbox v-model="model.advdisflg">通知开证行有不符点</c-checkbox>
</c-col>
<c-col :span="24">
<el-form-item label="进一步鉴定MT752" prop="btdgrp.furide" >
<c-select v-model="model.furide" maxlength="40" placeholder="请输入进一步鉴定MT752" :code="codes.furide" disabled></c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="不符点通知的日期" prop="btdgrp.rec.disdat" >
<c-select v-model="model.btdgrp.rec.disdat" maxlength="40" placeholder="请输入不符点通知的日期" disabled></c-select>
</el-form-item>
</c-col>
</c-col>
</c-col>
</c-row>
......
......@@ -15,39 +15,71 @@
<el-button size="small">智能提示</el-button>
</c-function-btn>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="left" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<el-form :model="model"
:rules="rules"
ref="modelForm"
label-width="120px"
label-position="left" size="small"
:validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--PD000009 -->
<el-tab-pane label="拒单" name="betdcrs">
<c-content>
<m-betdcrs :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="表外" name="engp">
<c-content>
<m-engp :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="费用及账务" name="setpan">
<c-content>
<m-setpan :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="保证金" name="ccvpan">
<m-ccvpan :model="model" :codes="codes"/>
<el-tab-pane label="分录" name="glepan">
<c-content>
<m-glepan :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<el-tab-pane label="附言" name="coninfp">
<c-content>
<m-coninfp :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--PD000529 -->
<el-tab-pane label="面函及报文" name="docpan">
<c-content>
<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"/>
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<!--点击触发回填-->
<c-grid-ety-prompt-dialog
ref="doxpDialog"
:isPty="false"
:promptData="promptData"
@select-ety="selectMsg" >
</c-grid-ety-prompt-dialog>
</div>
</template>
<script>
......@@ -55,16 +87,19 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Bttdcr from "~/model/Bttdcr"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Bttdcr/Check"
import Default from "~/model/Bttdcr/Default"
import Pattern from "~/model/Bttdcr/Pattern"
import Betdcrs from "./Betdcrs"
import Utils from "~/utils";
import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
import Ccvpan from "~/views/Public/Ccvpan";
import Glepan from "~/views/Public/Glepan";
import Docpan from "~/views/Public/Docpan";
import Coninfp from "~/views/Public/Coninfp";
import Doctre from "~/views/Public/Doctre";
export default {
......@@ -72,16 +107,18 @@ export default {
"m-betdcrs" : Betdcrs,
"m-engp" : Engp,
"m-setpan" : Setpan,
"m-ccvpan" : Ccvpan,
"m-glepan" : Glepan,
"m-docpan" : Docpan,
"m-coninfp" : Coninfp,
"m-doctre" : Doctre,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
//mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "betdcrs",
......@@ -91,23 +128,29 @@ export default {
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
codes: {...CodeTable
},
}
},
methods:{
tabClick(){
}
myTabClick(tab) {
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入bttdcr交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
console.log("进入bttdck交易");
//let rtnmsg = await this.init({})
let rtnmsg = await this.init(this.$route.query);
if (rtnmsg.respCode == SUCCESS) {
//更新数据
Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
}else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
......@@ -115,5 +158,7 @@ export default {
}
</script>
<style>
.el-form-item__label-wrap {
margin-left: 0px !important;
}
</style>
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