Commit 840697d3 by WF1020

litdck修改

parent 44906d0b
...@@ -172,6 +172,5 @@ export default { ...@@ -172,6 +172,5 @@ export default {
return return
} }
}, },
onSeainf() {},
}, },
}; };
export default { import Utils from '~/utils';
'brtp.lidget.sdamod.dadsnd':[
{type: 'string', required: false, message: '必输项'}, /**
{max: 16,message:'长度不能超过16'}
],
'lidgrp.rec.ownref':[
{type: 'string', required: false, message: '必输项'},
{max: 16,message:'长度不能超过16'}
],
'brtp.lidget.sdamod.seainf':[
{type: 'string', required: false, message: '必输项'},
{max: 3,message:'长度不能超过3'}
],
'lidgrp.rec.nam':[
{type: 'string', required: false, message: '必输项'},
{max: 40,message:'长度不能超过40'}
],
// 'lidgrp.cbs.nom1.amt':[
// {type: 'number', required: false, },
// {max: 18,message:'整数位不能超过14位'},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: '小数位不能超过3位' }
// ],
'brdgrp.apl.pts.ref':[
{type: 'string', required: false, message: '必输项'},
{max: 16,message:'长度不能超过16'}
],
'lidgrp.cbs.opn1.cur':[
{type: 'string', required: false, message: '必输项'},
{max: 3,message:'长度不能超过3'}
],
// 'lidgrp.cbs.opn1.amt':[
// {type: 'number', required: false,},
// {max: 18,message:'整数位不能超过14位'},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: '小数位不能超过3位' }
// ],
'brdgrp.apl.pts.nam':[
{type: 'string', required: false, message: '必输项'},
{max: 40,message:'长度不能超过40'}
],
'lidgrp.avbnam':[
{type: 'string', required: false, message: '必输项'},
{max: 40,message:'长度不能超过40'}
],
'brdgrp.ben.pts.ref':[
{type: 'string', required: false, message: '必输项'},
{max: 16,message:'长度不能超过16'}
],
'brdgrp.ben.pts.nam':[
{type: 'string', required: false, message: '必输项'},
{max: 40,message:'长度不能超过40'}
],
'lidgrp.rec.opndat':[
{type: 'string', required: false, message: '输入正确的日期'}
],
'lidgrp.rec.shpdat':[
{type: 'string', required: false, message: '输入正确的日期'}
],
'brdgrp.prb.pts.ref':[
{type: 'string', required: true, message: '必输项'},
{max: 16,message:'长度不能超过16'}
],
'lidgrp.rec.expdat':[
{type: 'string', required: false, message: '输入正确的日期'}
],
'lidgrp.rec.expplc':[
{type: 'string', required: false, message: '必输项'},
{max: 29,message:'长度不能超过29'}
],
'brdgrp.prb.pts.nam':[
{type: 'string', required: false, message: '必输项'},
{max: 40,message:'长度不能超过40'}
],
'brtp.recget.sdamod.dadsnd':[
{type: 'string', required: false, message: '必输项'},
{max: 16,message:'长度不能超过16'}
],
'brdgrp.rec.ownref':[
{type: 'string', required: true, message: '必输项'},
{max: 16,message:'长度不能超过16'}
],
'brtp.recget.sdamod.seainf':[
{type: 'string', required: false, message: '必输项'},
{max: 3,message:'长度不能超过3'}
],
'brdgrp.rec.nam':[
{type: 'string', required: false, message: '必输项'},
{max: 40,message:'长度不能超过40'}
],
// 'brdgrp.cbs.max.amt':[
// {type: 'number', required: false},
// {max: 18,message:'整数位不能超过14位'},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: '小数位不能超过3位' }
// ],
'brtp.prbp.ptsget.sdamod.dadsnd':[
{type: 'string', required: false, message: '必输项'},
{max: 16,message:'长度不能超过16'}
],
// 'brdgrp.cbs.max2.amt':[
// {type: 'number', required: false},
// {max: 18,message:'整数位不能超过14位'},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: '小数位不能超过3位' }
// ],
'brdgrp.prb.pts.extkey':[
{type: 'string', required: true, message: '必输项'},
{max: 16,message:'长度不能超过16'}
],
'brtp.prbp.ptsget.sdamod.seainf':[
{type: 'string', required: false, message: '必输项'},
{max: 3,message:'长度不能超过3'}
],
'brdgrp.prb.namelc':[
{type: 'string', required: false, message: '必输项'},
{max: 35,message:'长度不能超过35'}
],
'brdgrp.prb.pts.adrblk':[
{type: 'string', required: true, message: '必输项'},
{max: 300,message:'长度不能超过300'}
],
'brdgrp.prb.dbfadrblkcn':[
{type: 'string', required: false, message: '必输项'},
{max: 35,message:'长度不能超过35'}
],
'brdgrp.rec.rcvdat':[
{type: 'string', required: false, message: '输入正确的日期'}
],
'brdgrp.rec.predat':[
{type: 'string', required: true, message: '输入正确的日期'}
],
'brdgrp.prb.adrelc':[
{type: 'string', required: false, message: '必输项'},
{max: 35,message:'长度不能超过35'}
],
'brdgrp.rec.orddat':[
{type: 'string', required: false, message: '输入正确的日期'}
],
'brdgrp.rec.shpdat':[
{type: 'string', required: false, message: '输入正确的日期'}
],
'brdgrp.rec.matdat':[
{type: 'string', required: false, message: '输入正确的日期'}
],
'brdgrp.rec.docsta':[
{type: 'string', required: false, message: '必输项'},
{max: 1,message:'长度不能超过1'}
],
'brdgrp.blk.matper':[
{type: 'string', required: false, message: '必输项'},
{max: 65,message:'长度不能超过65'}
],
// 'lidgrp.rec.utlnbr':[
// {type: 'string', required: false, message: '必输项'},
// {max: 3,message:'长度不能超过3'}
// ],
'brdgrp.rec.docflg':[
{required: true, message: '必输项'}
],
' brdgrp.cbs.max.cur':[
{required: true, message: '必输项'}
],
'brdgrp.blk.docdis':[
{type: 'string', required: false, message: '必输项'},
{max: 500,message:'长度不能超过500'}
],
'brdgrp.rec.totdat':[
{type: 'string', required: false, message: '输入正确的日期'}
],
'brdgrp.rec.disdat':[
{type: 'string', required: false, message: '输入正确的日期'}
],
'brdgrp.blk.comcon':[
{type: 'string', required: false, message: '必输项'},
{max: 65,message:'长度不能超过65'}
],
'brdgrp.blk.setinsbr':[
{type: 'string', required: false, message: '必输项'},
{max: 500,message:'长度不能超过500'}
],
'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'}
],
'brdgrp.rec.rptref':[
{ required: true, message: '必输项'},
],
// 'mtabut.coninf.oitinf.oit.inftxt':[
// {type: 'string', required: false, message: '必输项'},
// {max: 60,message:'长度不能超过60'}
// ],
// 'mtabut.coninf.oitset.oit.inftxt':[
// {type: 'string', required: false, message: '必输项'},
// {max: 60,message:'长度不能超过60'}
// ],
// 'mtabut.coninf.conexedat':[
// {type: 'string', 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: false, 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'}
],
'liaall.limmod.ecifno':[
{type: 'string', required: false, message: '必输项'},
{max: 22,message:'长度不能超过22'}
],
'liaall.limmod.ownref':[
{type: 'string', required: false, message: '必输项'},
{max: 16,message:'长度不能超过16'}
],
'liaall.limmod.wrkp.ptsget.sdamod.dadsnd':[
{type: 'string', required: false, message: '必输项'},
{max: 16,message:'长度不能超过16'}
],
'liaall.limmod.othp.ptsget.sdamod.dadsnd':[
{type: 'string', required: false, message: '必输项'},
{max: 16,message:'长度不能超过16'}
],
'liaall.limmod.limpts.wrk.pts.extkey':[
{type: 'string', required: false, message: '必输项'},
{max: 16,message:'长度不能超过16'}
],
'liaall.limmod.wrkp.ptsget.sdamod.seainf':[
{type: 'string', required: false, message: '必输项'},
{max: 3,message:'长度不能超过3'}
],
'liaall.limmod.limpts.oth.pts.extkey':[
{type: 'string', required: false, message: '必输项'},
{max: 16,message:'长度不能超过16'}
],
'liaall.limmod.othp.ptsget.sdamod.seainf':[
{type: 'string', required: false, message: '必输项'},
{max: 3,message:'长度不能超过3'}
],
'liaall.limmod.comamt':[
{type: 'number', required: false, message: '必输项'},
{max: 18,message:'整数位不能超过14位'},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: '小数位不能超过3位' }
],
'liaall.limmod.limpts.wrk.pts.nam':[
{type: 'string', required: false, message: '必输项'},
{max: 40,message:'长度不能超过40'}
],
'liaall.limmod.limpts.oth.pts.nam':[
{type: 'string', required: false, message: '必输项'},
{max: 40,message:'长度不能超过40'}
],
'liaall.limmod.ccvamt':[
{type: 'number', required: false, message: '必输项'},
{max: 18,message:'整数位不能超过14位'},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: '小数位不能超过3位' }
],
'liaall.limmod.limpts.pfcod1':[
{type: 'string', required: false, message: '必输项'},
{max: 14,message:'长度不能超过14'}
],
'liaall.limmod.limpts.pfcod2':[
{type: 'string', required: false, message: '必输项'},
{max: 14,message:'长度不能超过14'}
],
'brdgrp.srm.djuusr':[
{type: 'string', required: false,},
],
'brdgrp.srm.djudat':[
{type: 'string', required: false, }
],
'brdgrp.srm.djuref':[
{type: 'string', required: false, },
],
'invtyp':[
{type: 'string', required: true, message: '必输项'}
],
'szflg':[
{type: 'string', required: true, message: '必输项'}
],
'acttyp':[
{type: 'string', required: false, message: '必输项'}
],
'brdgrp.srm.djutyp':[
{type: 'string', required: true, message: '必输项'}
],
/**
* Litdck Check规则 * Litdck Check规则
*/ */
'invtyp': null, let checkObj = {
'acttyp': null, invtyp: null,
'szflg' : null, 'outlen.acttyp': null,
'outlen.szflg': null,
'liaall.misamt': null, 'liaall.misamt': null,
'liaall.limmod.limpts.oth.pts.extkey': null, 'liaall.limmod.limpts.oth.pts.extkey': null,
'liaall.limmod.ownref': null, 'liaall.limmod.ownref': null,
'liaall.limmod.ecifno': null, 'liaall.limmod.ecifno': null,
'brdgrp.prb.adrelc': null, 'brdgrp.prb.adrelc': null,
'brdgrp.rec.ownref': null, 'brdgrp.rec.ownref': null,
'brdgrp.srm.djutyp': null,
'brdgrp.cbs.max.amt': null, 'brdgrp.cbs.max.amt': null,
'brdgrp.blk.docdis': null, 'brdgrp.blk.docdis': null,
'brdgrp.srm.djuref': null, 'brdgrp.srm.djuref': null,
...@@ -383,4 +42,366 @@ export default { ...@@ -383,4 +42,366 @@ export default {
'brdgrp.blk.setinsbr': null, 'brdgrp.blk.setinsbr': null,
'brdgrp.rec.docprbrol': null, 'brdgrp.rec.docprbrol': null,
'brdgrp.blk.comcon': null, 'brdgrp.blk.comcon': null,
'brtp.lidget.sdamod.dadsnd': [
{ type: 'string', required: false, message: '必输项' },
{ max: 16, message: '长度不能超过16' },
],
'lidgrp.rec.ownref': [
{ type: 'string', required: false, message: '必输项' },
{ max: 16, message: '长度不能超过16' },
],
'brtp.lidget.sdamod.seainf': [
{ type: 'string', required: false, message: '必输项' },
{ max: 3, message: '长度不能超过3' },
],
'lidgrp.rec.nam': [
{ type: 'string', required: false, message: '必输项' },
{ max: 40, message: '长度不能超过40' },
],
"lidgrp.cbs.nom1.amt":[
// {type: "string", required: false, },
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
'brdgrp.apl.pts.ref': [
{ type: 'string', required: false, message: '必输项' },
{ max: 16, message: '长度不能超过16' },
],
'lidgrp.cbs.opn1.cur': [
{ type: 'string', required: false, message: '必输项' },
{ max: 3, message: '长度不能超过3' },
],
"lidgrp.cbs.opn1.amt":[
// {type: "string", required: false,},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
'brdgrp.apl.pts.nam': [
{ type: 'string', required: false, message: '必输项' },
{ max: 40, message: '长度不能超过40' },
],
'lidgrp.avbnam': [
{ type: 'string', required: false, message: '必输项' },
{ max: 40, message: '长度不能超过40' },
],
'brdgrp.ben.pts.ref': [
{ type: 'string', required: false, message: '必输项' },
{ max: 16, message: '长度不能超过16' },
],
'brdgrp.ben.pts.nam': [
{ type: 'string', required: false, message: '必输项' },
{ max: 40, message: '长度不能超过40' },
],
'lidgrp.rec.opndat': [
{ type: 'string', required: false, message: '输入正确的日期' },
],
'lidgrp.rec.shpdat': [
{ type: 'string', required: false, message: '输入正确的日期' },
],
'brdgrp.prb.pts.ref': [
{ type: 'string', required: true, message: '必输项' },
{ max: 16, message: '长度不能超过16' },
],
'lidgrp.rec.expdat': [
{ type: 'string', required: false, message: '输入正确的日期' },
],
'lidgrp.rec.expplc': [
{ type: 'string', required: false, message: '必输项' },
{ max: 29, message: '长度不能超过29' },
],
'brdgrp.prb.pts.nam': [
{ type: 'string', required: false, message: '必输项' },
{ max: 40, message: '长度不能超过40' },
],
'brtp.recget.sdamod.dadsnd': [
{ type: 'string', required: false, message: '必输项' },
{ max: 16, message: '长度不能超过16' },
],
'brdgrp.rec.ownref': [
{ type: 'string', required: true, message: '必输项' },
{ max: 16, message: '长度不能超过16' },
],
'brtp.recget.sdamod.seainf': [
{ type: 'string', required: false, message: '必输项' },
{ max: 3, message: '长度不能超过3' },
],
'brdgrp.rec.nam': [
{ type: 'string', required: false, message: '必输项' },
{ max: 40, message: '长度不能超过40' },
],
"brdgrp.cbs.max.amt":[
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
'brtp.prbp.ptsget.sdamod.dadsnd': [
{ type: 'string', required: false, message: '必输项' },
{ max: 16, message: '长度不能超过16' },
],
"brdgrp.cbs.max2.amt":[
{type: "string", required: false},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
'brdgrp.prb.pts.extkey': [
{ type: 'string', required: true, message: '必输项' },
{ max: 16, message: '长度不能超过16' },
],
'brtp.prbp.ptsget.sdamod.seainf': [
{ type: 'string', required: false, message: '必输项' },
{ max: 3, message: '长度不能超过3' },
],
'brdgrp.prb.namelc': [
{ type: 'string', required: false, message: '必输项' },
{ max: 35, message: '长度不能超过35' },
],
'brdgrp.prb.pts.adrblk': [
{ type: 'string', required: true, message: '必输项' },
{ max: 300, message: '长度不能超过300' },
],
'brdgrp.prb.dbfadrblkcn': [
{ type: 'string', required: false, message: '必输项' },
{ max: 35, message: '长度不能超过35' },
],
'brdgrp.rec.rcvdat': [
{ type: 'string', required: false, message: '输入正确的日期' },
],
'brdgrp.rec.predat': [
{ type: 'string', required: true, message: '输入正确的日期' },
],
'brdgrp.prb.adrelc': [
{ type: 'string', required: false, message: '必输项' },
{ max: 35, message: '长度不能超过35' },
],
'brdgrp.rec.orddat': [
{ type: 'string', required: false, message: '输入正确的日期' },
],
'brdgrp.rec.shpdat': [
{ type: 'string', required: false, message: '输入正确的日期' },
],
'brdgrp.rec.matdat': [
{ type: 'string', required: false, message: '输入正确的日期' },
],
'brdgrp.rec.docsta': [
{ type: 'string', required: false, message: '必输项' },
{ max: 1, message: '长度不能超过1' },
],
'brdgrp.blk.matper': [
{ type: 'string', required: false, message: '必输项' },
{ max: 65, message: '长度不能超过65' },
],
"lidgrp.rec.utlnbr":[
// {type: "string", required: false, message: "必输项"},
// {max: 3,message:"长度不能超过3"}
],
'brdgrp.rec.docflg': [{ required: true, message: '必输项' }],
' brdgrp.cbs.max.cur': [{ required: true, message: '必输项' }],
'brdgrp.blk.docdis': [
{ type: 'string', required: false, message: '必输项' },
{ max: 500, message: '长度不能超过500' },
],
'brdgrp.rec.totdat': [
{ type: 'string', required: false, message: '输入正确的日期' },
],
'brdgrp.rec.disdat': [
{ type: 'string', required: false, message: '输入正确的日期' },
],
'brdgrp.blk.comcon': [
{ type: 'string', required: false, message: '必输项' },
{ max: 65, message: '长度不能超过65' },
],
'brdgrp.blk.setinsbr': [
{ type: 'string', required: false, message: '必输项' },
{ max: 500, message: '长度不能超过500' },
],
'liaall.outamt': [
{ type: 'string', 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: 'string', required: false, message: '必输项' },
{ max: 18, message: '整数位不能超过14位' },
{
pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/,
message: '小数位不能超过3位',
},
],
'liaall.exttotamt': [
{ type: 'string', 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: 'string', 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' },
],
'brdgrp.rec.rptref': [{ required: true, message: '必输项' }],
'mtabut.coninf.oitinf.oit.inftxt': [
{ type: 'string', required: false, message: '必输项' },
{ max: 60, message: '长度不能超过60' },
],
'mtabut.coninf.oitset.oit.inftxt': [
{ type: 'string', required: false, message: '必输项' },
{ max: 60, message: '长度不能超过60' },
],
'mtabut.coninf.conexedat': [
{ type: 'string', 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: false, 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' },
],
'liaall.limmod.ecifno': [
{ type: 'string', required: false, message: '必输项' },
{ max: 22, message: '长度不能超过22' },
],
'liaall.limmod.ownref': [
{ type: 'string', required: false, message: '必输项' },
{ max: 16, message: '长度不能超过16' },
],
'liaall.limmod.wrkp.ptsget.sdamod.dadsnd': [
{ type: 'string', required: false, message: '必输项' },
{ max: 16, message: '长度不能超过16' },
],
'liaall.limmod.othp.ptsget.sdamod.dadsnd': [
{ type: 'string', required: false, message: '必输项' },
{ max: 16, message: '长度不能超过16' },
],
'liaall.limmod.limpts.wrk.pts.extkey': [
{ type: 'string', required: false, message: '必输项' },
{ max: 16, message: '长度不能超过16' },
],
'liaall.limmod.wrkp.ptsget.sdamod.seainf': [
{ type: 'string', required: false, message: '必输项' },
{ max: 3, message: '长度不能超过3' },
],
'liaall.limmod.limpts.oth.pts.extkey': [
{ type: 'string', required: false, message: '必输项' },
{ max: 16, message: '长度不能超过16' },
],
'liaall.limmod.othp.ptsget.sdamod.seainf': [
{ type: 'string', required: false, message: '必输项' },
{ max: 3, message: '长度不能超过3' },
],
'liaall.limmod.comamt': [
{ type: 'string', required: false, message: '必输项' },
{ max: 18, message: '整数位不能超过14位' },
{
pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/,
message: '小数位不能超过3位',
},
],
'liaall.limmod.limpts.wrk.pts.nam': [
{ type: 'string', required: false, message: '必输项' },
{ max: 40, message: '长度不能超过40' },
],
'liaall.limmod.limpts.oth.pts.nam': [
{ type: 'string', required: false, message: '必输项' },
{ max: 40, message: '长度不能超过40' },
],
'liaall.limmod.ccvamt': [
{ type: 'string', required: false, message: '必输项' },
{ max: 18, message: '整数位不能超过14位' },
{
pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/,
message: '小数位不能超过3位',
},
],
'liaall.limmod.limpts.pfcod1': [
{ type: 'string', required: false, message: '必输项' },
{ max: 14, message: '长度不能超过14' },
],
'liaall.limmod.limpts.pfcod2': [
{ type: 'string', required: false, message: '必输项' },
{ max: 14, message: '长度不能超过14' },
],
'brdgrp.srm.djuusr': [{ type: 'string', required: false }],
'brdgrp.srm.djudat': [{ type: 'string', required: false }],
'brdgrp.srm.djuref': [{ type: 'string', required: false }],
invtyp: [{ type: 'string', required: true, message: '必输项' }],
'outlen.szflg': [{ type: 'string', required: true, message: '必输项' }],
'outlen.acttyp': [{ type: 'string', required: false, message: '必输项' }],
'brdgrp.srm.djutyp': [{ type: 'string', required: true, message: '必输项' }],
};
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key);
}
} }
export default checkObj;
...@@ -3,13 +3,16 @@ import Pub from '~/components/business/commonModel/index.js'; ...@@ -3,13 +3,16 @@ import Pub from '~/components/business/commonModel/index.js';
export default class Litdck { export default class Litdck {
constructor() { constructor() {
this.data = { this.data = {
outlen:{
szflg: ''
},
brdgrp: { brdgrp: {
blk: { blk: {
matper: '', matper: '',
docdisflg: '', docdisflg: '',
setinsbr: '', setinsbr: '',
docdis: '', docdis: '',
comcon: '' comcon: '',
}, },
prb: { prb: {
pts: new Pts().data, pts: new Pts().data,
...@@ -34,19 +37,19 @@ export default class Litdck { ...@@ -34,19 +37,19 @@ export default class Litdck {
stadat: '', stadat: '',
dscinsflg: '', dscinsflg: '',
nam: '', nam: '',
docprbrol: '' docprbrol: '',
}, },
cbs: { cbs: {
opn2: { opn2: {
cur: '' cur: '',
}, },
max: { max: {
cur: '', cur: '',
amt: '' amt: '',
}, },
max2: { max2: {
amt: '' amt: '',
} },
}, },
ben: { ben: {
pts: new Pts().data, pts: new Pts().data,
...@@ -58,29 +61,32 @@ export default class Litdck { ...@@ -58,29 +61,32 @@ export default class Litdck {
djuusr: '', djuusr: '',
djuref: '', djuref: '',
djudat: '', djudat: '',
djutyp: '' djutyp: '',
} },
}, },
zcsdrq: '', zcsdrq: '',
brtp: { brtp: {
docgrdm:{
docgrd: ''
},
cre732flg: '', cre732flg: '',
prbp: { prbp: {
ptsget: { ptsget: {
sdamod: { sdamod: {
seainf: '' seainf: '',
} },
} },
}, },
aammod: { aammod: {
addamtflg: '' addamtflg: '',
} },
}, },
acttyp: '', acttyp: '',
szflg: '', szflg: '',
invtyp: '', invtyp: '',
lidgrp: { lidgrp: {
rec: { rec: {
branchinr:'00000047', branchinr: '00000047',
revflg: '', revflg: '',
expdat: '', expdat: '',
expplc: '', expplc: '',
...@@ -91,23 +97,23 @@ export default class Litdck { ...@@ -91,23 +97,23 @@ export default class Litdck {
nam: '', nam: '',
utlnbr: '', utlnbr: '',
opndat: '', opndat: '',
redclsflg: '' redclsflg: '',
}, },
cbs: { cbs: {
opn1: { opn1: {
cur: '', cur: '',
amt: '' amt: '',
}, },
nom1: { nom1: {
cur: '', cur: '',
amt: '' amt: '',
} },
}, },
avbnam: '', avbnam: '',
apl:{ apl: {
pts: new Pts().data, pts: new Pts().data,
}, },
adv:{ adv: {
pts: new Pts().data, pts: new Pts().data,
}, },
ben: { ben: {
......
<template>
<div class="eibs-tab" >
<el-collapse v-model="activeNames">
<el-collapse-item title="备查表" name="addbcb1">
<m-addbcb1 :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import event from '../event'
import Addbcb1 from "./Addbcb1";
import Coninfp from "~/views/Public/Coninfp";
export default {
components: {
"m-addbcb1": Addbcb1,
"m-coninfp": Coninfp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["addbcb1"],
};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
size="small" size="small"
type="primary" type="primary"
icon="el-icon-more" icon="el-icon-more"
@click="showGridPromptDialog('brtp.docdis.buttxmsel', null, null,{TXT: 'brdgrp.blk.docdis'}, {TXT: false},'doxpDialog')"
:disabled="this.typ1" :disabled="this.typ1"
> >
...@@ -56,6 +57,7 @@ ...@@ -56,6 +57,7 @@
size="small" size="small"
type="primary" type="primary"
icon="el-icon-more" icon="el-icon-more"
@click="showGridPromptDialog('brtp.setinstxm.buttxmsel', null, null,{TXT: 'brdgrp.blk.setinsbr'}, {TXT: false},'doxpDialog')"
> >
</c-button> </c-button>
...@@ -156,35 +158,37 @@ ...@@ -156,35 +158,37 @@
</div> </div>
</template> </template>
<script> <script>
import event from '../event'; import Api from "~/service/Api";
import Docpre from '~/views/Public/Docpre'; import CodeTable from "~/config/CodeTable";
import Docpre from "~/views/Public/Docpre";
import event from '../event'
export default { export default {
components: { components: {
'c-docpre': Docpre, "c-docpre": Docpre,
}, },
inject: ['root'], inject: ["root"],
props: ['model', 'codes'], props: ["model", "codes"],
mixins: [event], mixins: [event],
data() { data() {
return { return {
typ1: true, typ1: true,
}; };
}, },
watch: { // watch: {
'model.brdgrp.blk.docdisflg': { // "model.brdgrp.blk.docdisflg": {
immediate: true, // immediate: true,
handler(val, oldval) { // handler(val, oldval) {
if (this.model.brdgrp.blk.docdisflg != 'X') { // if (this.model.brdgrp.blk.docdisflg != "X") {
this.typ1 = true; // this.typ1 = true;
this.model.brdgrp.blk.docdis = ''; // this.model.brdgrp.blk.docdis = "";
this.changeFormItemRequired('brdgrp.blk.docdis', false); // this.changeFormItemRequired("brdgrp.blk.docdis", false);
} else { // } else {
this.typ1 = false; // this.typ1 = false;
this.changeFormItemRequired('brdgrp.blk.docdis', true); // this.changeFormItemRequired("brdgrp.blk.docdis", true);
} // }
}, // },
}, // },
}, // },
methods: { methods: {
}, },
created: function () {}, created: function () {},
......
<template>
<div class="eibs-tab">
<!-- 左边-->
<c-col :span="8">
<!-- line2 -->
<c-row>
<c-col :span="24">
<el-form-item
label="额度主体"
prop="liaall.limmod.limpts.wrk.pts.extkey"
style="width: 100%"
>
<c-fullbox>
<c-input
v-model="model.liaall.limmod.limpts.wrk.pts.extkey"
maxlength="16"
placeholder="请输入地址编码"
style="width: 100%"
:disabled="true"
></c-input>
<template slot="footer">
<c-button
style="margin: 0 5px 0 10px; padding: 0 12px"
size="small"
type="primary"
icon="el-icon-search"
@click="onSeainf"
:disabled="true"
/>
<c-button
style="margin: 0 0"
size="small"
type="primary"
icon="el-icon-info"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</c-row>
<!-- line3 -->
<c-row>
<c-col :span="24">
<el-form-item
label="主体名称"
prop="liaall.limmod.limpts.wrk.pts.nam"
>
<c-input
v-model="model.liaall.limmod.limpts.wrk.pts.nam"
maxlength="16"
placeholder=""
:disabled="true"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
</c-row>
<!-- line4 -->
<c-row>
<c-col :span="24" style="text-align: right">
<el-form-item label="额度类型" prop="liaall.limmod.limpts.nonrevflg1">
<c-fullbox>
<c-select
v-model="model.liaall.limmod.limpts.nonrevflg1"
style="width: 100%"
placeholder="请选择额度类型"
@change="nonrevflg1Change"
:disabled="true"
>
<el-option
v-for="item in codes.nonrevflg1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
<template slot="footer">
<c-button
style="padding: 0 12px"
size="small"
type="primary"
icon="el-icon-search"
:disabled="true"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</c-row>
<!-- line5 -->
<c-row>
<c-col :span="24">
<el-form-item label="合同流水号" prop="liaall.limmod.limpts.pfcod1">
<c-input
v-model="model.liaall.limmod.limpts.pfcod1"
maxlength="14"
placeholder="请输入合同流水号"
:disabled="this.model.liaall.limmod.limpts.nonrevflg1 != '2'"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
</c-row>
</c-col>
<!-- 中间 -->
<!-- 随event方法改变 -->
<c-col :span="8" v-show="same" @change="show">
<!-- line2 -->
<c-row>
<c-col :span="24">
<el-form-item
label="对公账户"
prop="liaall.limmod.limpts.oth.pts.extkey"
style="width: 100%"
>
<c-fullbox>
<c-input
v-model="model.liaall.limmod.limpts.oth.pts.extkey"
maxlength="16"
placeholder="请输入地址编号"
style="width: 100%"
></c-input>
<template slot="footer">
<c-button
style="margin: 0 5px 0 10px; padding: 0 12px"
size="small"
type="primary"
icon="el-icon-search"
@click="onSeainf"
/>
<c-button
style="margin: 0 0"
size="small"
type="primary"
icon="el-icon-info"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</c-row>
<!-- line3 -->
<c-row>
<c-col :span="24">
<el-form-item
label="主体名称"
prop="liaall.limmod.limpts.oth.pts.nam"
>
<c-input
v-model="model.liaall.limmod.limpts.oth.pts.nam"
maxlength="16"
placeholder=""
:disabled="true"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
</c-row>
<!-- line4 -->
<c-row>
<c-col :span="24" style="text-align: right">
<el-form-item label="额度类型" prop="liaall.limmod.limpts.nonrevflg2">
<c-fullbox>
<c-select
v-model="model.liaall.limmod.limpts.nonrevflg2"
style="width: 100%"
placeholder="请选择额度类型"
@change="nonrevflg2Change"
>
<el-option
v-for="item in codes.nonrevflg2"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
<template slot="footer">
<c-button
style="padding: 0 12px"
size="small"
type="primary"
icon="el-icon-search"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</c-row>
<!-- line5 -->
<c-row>
<c-col :span="24">
<el-form-item label="合同流水号" prop="liaall.limmod.limpts.pfcod2">
<c-input
v-model="model.liaall.limmod.limpts.pfcod2"
maxlength="14"
placeholder="请输入合同流水号"
:disabled="this.model.liaall.limmod.limpts.nonrevflg2 != '2'"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
</c-row>
</c-col>
<!-- 右边-->
<c-col :span="8">
<!-- line1 -->
<c-row>
<c-col :span="24">
<el-form-item label="业务编号" prop="liaall.limmod.ownref">
<c-input
v-model="model.liaall.limmod.ownref"
maxlength="16"
placeholder="请输入国结业务编号"
:disabled="true"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="业务余额" prop="liaall.limmod.comamt">
<c-input
v-model="model.liaall.limmod.comamt"
placeholder="请输入业务余额"
:disabled="true"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
</c-row>
<!-- line1 -->
<c-row>
<c-col :span="24">
<el-form-item label="保证金余额" prop="liaall.limmod.ccvamt">
<c-input
v-model="model.liaall.limmod.ccvamt"
placeholder="请输入保证金余额"
:disabled="true"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24" style="text-align: right">
<c-button size="small" type="primary">
试算
</c-button>
</c-col>
</c-row>
</c-col>
<br /><br /><br /><br /><br />
<c-col :span="24" style="">
<c-table :list="model.liaall.limmod.limgrd" :border="true">
<el-table-column prop="flg" label="可否串用" width="70px">
</el-table-column>
<el-table-column prop="shxh" label="序号" width="50px">
</el-table-column>
<el-table-column prop="limtyp" label="额度类型" width="70px">
</el-table-column>
<el-table-column prop="ruzhjg" label="入账机构" width="70px">
</el-table-column>
<el-table-column prop="limref" label="额度编号" width="70px">
</el-table-column>
<el-table-column prop="infref" label="额度明细编号" width="100px">
</el-table-column>
<el-table-column prop="limcodsave" label="额度品种代码" width="100px">
</el-table-column>
<el-table-column prop="limcod" label="品种代码描述" width="100px">
</el-table-column>
<el-table-column prop="cur" label="额度明细币种" width="100px">
</el-table-column>
<el-table-column prop="ccvpct" label="保证金比例" width="100px">
</el-table-column>
<el-table-column prop="cpsxed" label="产品授信额度" width="100px">
</el-table-column>
<el-table-column prop="balamt" label="产品可用额度" width="100px">
</el-table-column>
<el-table-column prop="useamt" label="产品已用额度" width="100px">
</el-table-column>
<el-table-column prop="cpsxck" label="产品授信敞口" width="100px">
</el-table-column>
<el-table-column prop="cpkyck" label="产品可用敞口" width="100px">
</el-table-column>
<el-table-column prop="cpyyck" label="产品已用敞口" width="100px">
</el-table-column>
<el-table-column prop="bxh" label="是否可循环" width="90px">
</el-table-column>
<el-table-column prop="bcy" label="是否可串用" width="90px">
</el-table-column>
<el-table-column prop="cyremark" label="串用说明" width="100px">
</el-table-column>
<el-table-column prop="credat" label="产品额度生效日期" width="120px">
</el-table-column>
<el-table-column prop="matdat" label="产品额度到期日" width="120px">
</el-table-column>
<el-table-column prop="lcpsta" label="额度产品状态" width="100px">
</el-table-column>
<el-table-column prop="fentyp" label="暴露分类" width="100px">
</el-table-column>
<el-table-column prop="fentxt" label="暴露分类说明" width="100px">
</el-table-column>
<el-table-column prop="limcur" label="额度币种" width="90px">
</el-table-column>
<el-table-column prop="bfx" label="是否低风险" width="90px">
</el-table-column>
</c-table>
</c-col>
<!-- <c-col :span="24" style="" v-if="false">
<c-table :list="model.liaall.limmod.lmegrd" :border="true">
<el-table-column label="可否串用" width="auto">
</el-table-column>
<el-table-column label="序号" width="auto"> </el-table-column>
<el-table-column label="额度类型" width="auto">
</el-table-column>
<el-table-column label="入账机构" width="auto">
</el-table-column>
<el-table-column label="额度编号" width="auto">
</el-table-column>
<el-table-column label="额度明细编号" width="auto">
</el-table-column>
<el-table-column label="额度品种代码" width="auto">
</el-table-column>
<el-table-column label="品种代码描述" width="auto">
</el-table-column>
<el-table-column label="" width="auto"> </el-table-column>
</c-table>
</c-col> -->
</div>
</template>
<script>
import event from '../event';
export default {
inject: ['root'],
props: ['model', 'codes'],
mixins: [event],
data() {
return {
tableData: {},
same:false
};
},
methods: {
nonrevflg1Change() {
if (this.model.liaall.limmod.limpts.nonrevflg1 == '1') {
this.model.liaall.limmod.limpts.pfcod1 = '';
}
},
nonrevflg2Change() {
if (this.model.liaall.limmod.limpts.nonrevflg2 == '1') {
this.model.liaall.limmod.limpts.pfcod2 = '';
}
},
show(){
let len1 = this.model.liaall.limmod.tygrd['rows'].length||[];
let len2 = this.model.liaall.limmod.dggrd['rows'].length||[];
if(len1>0&&len2>0){
this.same = true;
}
}
},
created: function () {},
};
</script>
<style>
</style>
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
size="small" size="small"
style="margin-left: 10px; padding: 0 10px" style="margin-left: 10px; padding: 0 10px"
type="primary" type="primary"
@click="onSeainf"
> >
<i class="el-icon-info"></i> <i class="el-icon-info"></i>
</c-button> </c-button>
...@@ -139,7 +138,6 @@ ...@@ -139,7 +138,6 @@
></c-date-picker> ></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="到期地址" prop="lidgrp.rec.expplc"> <el-form-item label="到期地址" prop="lidgrp.rec.expplc">
<c-input <c-input
...@@ -176,7 +174,6 @@ ...@@ -176,7 +174,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf"
icon="el-icon-search" icon="el-icon-search"
> >
</c-button> </c-button>
...@@ -184,7 +181,6 @@ ...@@ -184,7 +181,6 @@
style="margin: 0 0" style="margin: 0 0"
size="small" size="small"
type="primary" type="primary"
@click="getBrdgrpOwnRef"
:disabled="model.brdgrp.rec.ownref !== ''" :disabled="model.brdgrp.rec.ownref !== ''"
> >
获取 获取
...@@ -215,9 +211,9 @@ ...@@ -215,9 +211,9 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="申报类型" prop="szflg"> <el-form-item label="申报类型" prop="outlen.szflg">
<c-select <c-select
v-model="model.szflg" v-model="model.outlen.szflg"
style="width: 100%" style="width: 100%"
:code="codes.szflg" :code="codes.szflg"
> >
...@@ -327,7 +323,7 @@ ...@@ -327,7 +323,7 @@
<el-form-item label="款项去向" prop="outlen.acttyp"> <el-form-item label="款项去向" prop="outlen.acttyp">
<c-select <c-select
:disabled="this.flag1" :disabled="this.flag1"
v-model="model.acttyp" v-model="model.outlen.acttyp"
:code="codes.acttyp" :code="codes.acttyp"
></c-select> ></c-select>
</el-form-item> </el-form-item>
...@@ -494,9 +490,6 @@ ...@@ -494,9 +490,6 @@
v-model="model.brdgrp.prb.pts.extkey" v-model="model.brdgrp.prb.pts.extkey"
maxlength="16" maxlength="16"
placeholder="请输入地址编码" placeholder="请输入地址编码"
@keyup.enter.native="
showGridPromptDialog('brdgrp.prb.pts.extkey')
"
:disabled="model.brdgrp.rec.docprbrol != 'PRB'" :disabled="model.brdgrp.rec.docprbrol != 'PRB'"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
...@@ -504,6 +497,7 @@ ...@@ -504,6 +497,7 @@
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="model.brtp.prbp.ptsget.sdamod.seainf"
icon="el-icon-search" icon="el-icon-search"
> >
</c-button> </c-button>
...@@ -562,11 +556,13 @@ ...@@ -562,11 +556,13 @@
</div> </div>
</template> </template>
<script> <script>
import event from '../event'; import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import event from '../event'
export default { export default {
inject: ['root'], inject: ["root"],
props: ['model', 'codes'], props: ["model", "codes"],
mixins: [event], mixins: [event],
data() { data() {
return { return {
...@@ -576,30 +572,30 @@ export default { ...@@ -576,30 +572,30 @@ export default {
}; };
}, },
watch: { watch: {
'model.szflg': { "model.outlen.szflg": {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if (this.model.szflg == '1') { if (this.model.outlen.szflg == "1") {
this.flag1 = false; this.flag1 = false;
} else { } else {
this.flag1 = true; this.flag1 = true;
} }
}, },
}, },
'model.brdgrp.rec.matdat': { "model.brdgrp.rec.matdat": {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if (this.model.brdgrp.rec.matdat != '') { if (this.model.brdgrp.rec.matdat != "") {
this.flag2 = true; this.flag2 = true;
} else { } else {
this.flag2 = false; this.flag2 = false;
} }
}, },
}, },
'model.brdgrp.rec.docflg': { "model.brdgrp.rec.docflg": {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if (this.model.brdgrp.rec.docflg == 'P') { if (this.model.brdgrp.rec.docflg == "P") {
this.flag3 = true; this.flag3 = true;
this.flag2 = true; this.flag2 = true;
} else { } else {
...@@ -608,10 +604,10 @@ export default { ...@@ -608,10 +604,10 @@ export default {
} }
}, },
}, },
'model.brdgrp.blk.matper': { "model.brdgrp.blk.matper": {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if (this.model.brdgrp.blk.matper != '') { if (this.model.brdgrp.blk.matper != "") {
this.flag3 = true; this.flag3 = true;
} else { } else {
this.flag3 = false; this.flag3 = false;
...@@ -619,15 +615,15 @@ export default { ...@@ -619,15 +615,15 @@ export default {
}, },
}, },
}, },
methods: {}, methods: { },
created: function () {}, created: function () {},
dscinsflgChang() { // dscinsflgChang() {
if (this.model.brdgrp.rec.dscinsflg === 'X') { // if (this.model.brdgrp.rec.dscinsflg === "X") {
this.model.brdgrp.rec.docsta = 'H'; // this.model.brdgrp.rec.docsta = "H";
} else { // } else {
this.model.brdgrp.rec.docsta = 'G'; // this.model.brdgrp.rec.docsta = "G";
} // }
}, // },
}; };
</script> </script>
<style> <style>
......
...@@ -14,26 +14,27 @@ ...@@ -14,26 +14,27 @@
</div> </div>
</template> </template>
<script> <script>
import event from '../event'; import Api from "~/service/Api";
import Litdckp from './Litdckp'; import CodeTable from "~/config/CodeTable";
import Docpre from './Docpre'; import Litdckp from "./Litdckp";
import Srmp from './Srmp'; import Docpre from "./Docpre";
import Srmp from "./Srmp";
import event from '../event'
export default { export default {
components:{ components:{
'm-litdckp': Litdckp, "m-litdckp": Litdckp,
'm-docpre': Docpre, "m-docpre": Docpre,
'm-srmp': Srmp, "m-srmp": Srmp,
}, },
inject: ['root'], inject: ["root"],
props: ['model', 'codes'], props: ["model", "codes"],
mixins: [event], mixins: [event],
data() { data() {
return { return {
activeNames: ['litdckp'], activeNames: ["litdckp"],
}; };
}, },
methods: {}, methods: { },
created: function () {}, created: function () {},
}; };
</script> </script>
......
...@@ -29,60 +29,53 @@ ...@@ -29,60 +29,53 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
</el-col> </el-col>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import event from '../event' import event from '../event'
import commonProcess from '~/mixin/commonProcess';
export default { export default {
inject: ['root'], inject: ['root'],
props:['model','codes'], props:["model","codes"],
mixins: [commonProcess,event], mixins: [event],
data(){ data(){
return { return {
typ1:true typ1:true
} }
}, },
watch:{ // watch:{
'model.brdgrp.srm.djutyp':{ // "model.brdgrp.srm.djutyp":{
immediate:true, // immediate:true,
handler(val,oldval){ // handler(val,oldval){
if(this.model.brdgrp.srm.djutyp == 'D'){ // if(this.model.brdgrp.srm.djutyp == 'D'){
this.typ1 = true // this.typ1 = true
// ommonProcess里的 changeFormItemRequired (property,Boolean) // // ommonProcess里的 changeFormItemRequired (property,Boolean)
this.changeFormItemRequired('brdgrp.srm.djuusr', false) // this.changeFormItemRequired('brdgrp.srm.djuusr', false)
this.changeFormItemRequired('brdgrp.srm.djudat', false) // this.changeFormItemRequired('brdgrp.srm.djudat', false)
this.changeFormItemRequired('brdgrp.srm.djuref', false) // this.changeFormItemRequired('brdgrp.srm.djuref', false)
this.model.brdgrp.srm.djuusr ='' // this.model.brdgrp.srm.djuusr =''
this.model.brdgrp.srm.djudat ='' // this.model.brdgrp.srm.djudat =''
this.model.brdgrp.srm.djuref ='' // this.model.brdgrp.srm.djuref =''
}else if(this.model.brdgrp.srm.djutyp == ''){ // }else if(this.model.brdgrp.srm.djutyp == ''){
this.typ1 = true // this.typ1 = true
this.changeFormItemRequired('brdgrp.srm.djuusr', false) // this.changeFormItemRequired('brdgrp.srm.djuusr', false)
this.changeFormItemRequired('brdgrp.srm.djudat', false) // this.changeFormItemRequired('brdgrp.srm.djudat', false)
this.changeFormItemRequired('brdgrp.srm.djuref', false) // this.changeFormItemRequired('brdgrp.srm.djuref', false)
} // }
else{ // else{
this.typ1 = false // this.typ1 = false
this.changeFormItemRequired('brdgrp.srm.djuusr', true) // this.changeFormItemRequired('brdgrp.srm.djuusr', true)
this.changeFormItemRequired('brdgrp.srm.djudat', true) // this.changeFormItemRequired('brdgrp.srm.djudat', true)
this.changeFormItemRequired('brdgrp.srm.djuref', true) // this.changeFormItemRequired('brdgrp.srm.djuref', true)
} // }
} // }
} // }
}, // },
methods:{}, methods:{ },
created:function(){
}
} }
</script> </script>
<style> <style>
......
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
<el-button size="small">智能提示</el-button> <el-button size="small">智能提示</el-button>
/div> /div>
--> -->
<el-form <el-form
:model="model" :model="model"
:rules="rules" :rules="rules"
...@@ -40,20 +42,11 @@ ...@@ -40,20 +42,11 @@
</el-tab-pane> </el-tab-pane>
<!--PD000027 --> <!--PD000027 -->
<el-tab-pane label="表外记账" name="engp"> <el-tab-pane label="费用/账务" name="setpan">
<c-content>
<!-- 表外记账 -->
<m-engp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="费用/账务" name="setmod">
<c-content> <c-content>
<m-setmod <m-setmod
:model="model" :model="model"
:codes="codes" :codes="codes"
@changeSetmodModel="changeSetmodModel"
/> />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
...@@ -65,6 +58,13 @@ ...@@ -65,6 +58,13 @@
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000510 -->
<!-- <el-tab-pane label="备查/附言" name="addbcb">
<c-content>
<m-addbcb :model="model" :codes="codes" />
</c-content>
</el-tab-pane> -->
<!--PD000000 --> <!--PD000000 -->
<el-tab-pane label="附言" name="coninfp"> <el-tab-pane label="附言" name="coninfp">
<c-content> <c-content>
...@@ -87,10 +87,16 @@ ...@@ -87,10 +87,16 @@
<m-doctre :model="model" :codes="codes" /> <m-doctre :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash"> <c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn> </c-function-btn>
<!-- 选择数据的表格弹框 -->
<c-grid-ety-prompt-dialog <c-grid-ety-prompt-dialog
ref="etyDialog" ref="etyDialog"
:promptData="promptData" :promptData="promptData"
...@@ -101,63 +107,52 @@ ...@@ -101,63 +107,52 @@
</div> </div>
</template> </template>
<script> <script>
import CodeTable from '~/config/CodeTable'; import event from '../event'
import formRules from '../model/check'; import Api from "~/service/Api";
import operationFunc from '~/mixin/operationFunc'; import CodeTable from "~/config/CodeTable";
import Ovwp from './Ovwp'; import Ovwp from "./Ovwp";
import Litdck from '../model'; import Litdckp from "./Litdckp";
import event from '../event'; import Docpre from "./Docpre";
import Srmp from "./Srmp";
import Litdckp from './Litdckp'; import Engp from "~/components/business/engp/views";
import Docpre from './Docpre'; import Coninfp from "~/components/business/coninfp/views";
// import Engp from './Engp' import Doctre from "~/views/Public/Doctre";
// import Setpan from './Setpan' import Limitbody from "~/views/Public/Limitbody"
// import Coninfp from './Coninfp' import Setmod from "~/components/business/setmod/views";
// import Docpan from './Docpan' import Glentry from "~/components/business/glentry/views";
// import Doctre from './Doctre' import Docpan from "~/components/business/docpan/views";
// import Limitbody from './Limitbody'; import operationFunc from "~/mixin/operationFunc";
import Srmp from './Srmp'; import formRules from '../model/check'
import Litdck from "../model";
import Engp from '~/components/business/engp/views';
import Ccvpan from '~/components/business/ccvpan/views';
import Coninfp from '~/components/business/coninfp/views';
import Docpan from '~/components/business/docpan/views';
import Doctre from '~/components/business/doctre/views';
import Setmod from '~/components/business/setmod/views';
import Glentry from '~/components/business/glentry/views';
// import Limitbody from './Limitbody';
import Limitbody from '~/components/business/limitbody/views';
export default { export default {
name: 'Litdck', name: "Litdck",
components: { components: {
'm-ovwp': Ovwp, "m-ovwp": Ovwp,
'm-litdckp': Litdckp, "m-litdckp": Litdckp,
'm-docpre': Docpre, "m-docpre": Docpre,
'm-engp': Engp, "m-engp": Engp,
'm-ccvpan': Ccvpan, "m-coninfp": Coninfp,
'm-coninfp': Coninfp, "m-doctre": Doctre,
'm-docpan': Docpan, "m-limitbody": Limitbody,
'm-doctre': Doctre, "m-srmp": Srmp,
'm-limitbody': Limitbody, "m-setmod": Setmod,
'm-setmod': Setmod, "m-glentry": Glentry,
'm-glentry': Glentry, "m-docpan": Docpan
'm-srmp': Srmp,
}, },
provide() { provide() {
return { return {
root: this, root: this,
}; };
}, },
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理 mixins: [event,operationFunc], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: 'ovwp', tabVal: "ovwp",
trnName: 'litdck', trnName: "litdck",
model: new Litdck().data, model: new Litdck().data,
rules: formRules, rules: formRules,
codes: { ...CodeTable }, codes: { ...CodeTable },
activeNames: ['engp'], activeNames: ["engp"],
promptData: { promptData: {
title: 'Select a Party', title: 'Select a Party',
columns: [ columns: [
...@@ -199,12 +194,15 @@ export default { ...@@ -199,12 +194,15 @@ export default {
} }
], ],
data: [] data: []
}, }
}; };
}, },
methods: {
},
mounted () { mounted () {
this.init() this.init()
}, },
}; };
</script> </script>
<style> <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