Commit fb1c394f by liaoxing

infccd添加

parent 04ff74af
import Utils from "~/utils"
/**
* Infccd Check规则
*/
let checkObj = {
"trnmod.cipmod.cskfzh" :null,
"trnmod.cipmod.zjg1mc" :null,
"trnmod.cipmod.fkrdz3" :null,
"trnmod.trndoc.dtemod.dtetagm07" :null,
"trnmod.cipmod.fkrdz4" :null,
"trnmod.trndoc.dtemod.dtetagm08" :null,
"trnmod.cipmod.fkrdz2" :null,
"trnmod.cipmod.skkhdz" :null,
"trnmod.trndoc.dtemod.dtetagm06" :null,
"trnmod.cipmod.fkrdz7" :null,
"trnmod.cipmod.fufeih" :null,
"trnmod.cipmod.fkrdz5" :null,
"trnmod.cipmod.fkrdz6" :null,
"trnmod.cipmod.skrdz7" :null,
"trnmod.cipmod.skrdz6" :null,
"trnmod.cipmod.cfkrgj" :null,
"infcon.ord.inr" :null,
"trnmod.cipmod.skrdz3" :null,
"trnmod.cipmod.skrdz2" :null,
"trnmod.cipmod.skrdz5" :null,
"trnmod.cipmod.skrdz4" :null,
"trnmod.cipmod.feiyon" :null,
"trnmod.cipmod.zjg2mc" :null,
"trnmod.cipmod.fuyns3" :null,
"trnmod.cipmod.fuyns4" :null,
"trnmod.cipmod.fuyns1" :null,
"trnmod.cipmod.fuyns2" :null,
"trnmod.cipmod.feecod" :null,
"trnmod.cipmod.csfdz1" :null,
"trnmod.cipmod.cffdz7" :null,
"trnmod.cipmod.skkhhh" :null,
"trnmod.cipmod.feiyn2" :null,
"trnmod.cipmod.cffdz1" :null,
"trnmod.cipmod.cffdz2" :null,
"trnmod.cipmod.cffdz3" :null,
"trnmod.cipmod.cffdz4" :null,
"trnmod.cipmod.cffdz5" :null,
"trnmod.cipmod.cffdz6" :null,
"trnmod.cipmod.skkhhm" :null,
"infcon.ord.extkey" :null,
"trnmod.cipmod.pyebchnam" :null,
"trnmod.cipmod.fkrkhh" :null,
"trnmod.cipmod.fkhkhh" :null,
"trnmod.cipmod.cfkfzh" :null,
"trnmod.cipmod.recsehbchnam" :null,
"trnmod.cipmod.fkhdzh" :null,
"trnmod.cipmod.staonebchnam" :null,
"trnmod.cipmod.pyebchkey" :null,
"trnmod.cipmod.cskzjh" :null,
"trnmod.cipmod.cskrzj" :null,
"trnmod.cipmod.zjg2hh" :null,
"trnmod.cipmod.stasehbch" :null,
"infcon.seaamtto" :null,
"infcon.ordp0.recget.sdamod.dadsnd" :null,
"trnmod.cipmod.fkkhmc" :null,
"trnmod.cipmod.ffeih2" :null,
"trnmod.cipmod.csfdz7" :null,
"trnmod.cipmod.csfdz6" :null,
"trnmod.cipmod.csfdz5" :null,
"trnmod.cipmod.csfdz4" :null,
"trnmod.cipmod.csfdz3" :null,
"trnmod.cipmod.csfdz2" :null,
"trnmod.cipmod.fuynh4" :null,
"trnmod.cipmod.fuynh2" :null,
"trnmod.cipmod.fuynh3" :null,
"ccdgrp.blk.setins" :null,
"trnmod.cipmod.cskrgj" :null,
"trnmod.cipmod.recsehbch" :null,
"trnmod.cipmod.cfkrzj" :null,
"trnmod.cipmod.stasehbchnam" :null,
"trnmod.cipmod.cfkzjh" :null,
"trnmod.cipmod.zjg1hh" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Infccd Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"infcon.usr.extkey" :Utils.defaultFunction,
"infcon.sptcor" :Utils.defaultFunction,
"infcon.sptreg" :Utils.defaultFunction,
"infcon.sptdel" :Utils.defaultFunction,
"infcon.sptinc" :Utils.defaultFunction,
"infcon.sptpen" :Utils.defaultFunction,
"infcon.seapty" :Utils.defaultFunction,
"infcon.pty.extkey" :Utils.defaultFunction,
"infcon.fepfeecod" :Utils.defaultFunction,
"infcon.fepdsp" :Utils.defaultFunction,
"trnmod.cipmod.ddbhao" :Utils.defaultFunction,
"infcon.sepdelflg" :Utils.defaultFunction,
"infcon.setflg" :Utils.defaultFunction,
"infcon.smhdatfrom" :Utils.defaultFunction,
"infcon.smhdir" :Utils.defaultFunction,
"infcon.chktrn" :Utils.defaultFunction,
"infcon.smhdatto" :Utils.defaultFunction,
"infcon.smhcortyp" :Utils.defaultFunction,
"infbut.dspstm" :Utils.defaultFunction,
"trnmod.cipmod.cskfzh" :Utils.defaultFunction,
"infcon.ord.inr" :Utils.defaultFunction,
"infcon.seatrninr" :Utils.defaultFunction,
"infcon.seabucdatto" :Utils.defaultFunction,
"infcon.seabucdatfro" :Utils.defaultFunction,
"trnmod.cipmod.feecod" :Utils.defaultFunction,
"infcon.trnstm" :Utils.defaultFunction,
"infcon.diasta" :Utils.defaultFunction,
"infcon.diadatfrom" :Utils.defaultFunction,
"infcon.diadatto" :Utils.defaultFunction,
"trnmod.cipmod.ddmisu" :Utils.defaultFunction,
"infcon.fcpdsp" :Utils.defaultFunction,
"trnmod.cipmod.ddmsu1" :Utils.defaultFunction,
"infcon.chksubcon" :Utils.defaultFunction,
"infcon.chktrnsta" :Utils.defaultFunction,
"trnmod.cipmod.covflg" :Utils.defaultFunction,
"infcon.cbctxt" :Utils.defaultFunction,
"infcon.ordstm" :Utils.defaultFunction,
"trnmod.cipmod.cfkzjl" :Utils.defaultFunction,
"infcon.ord.extkey" :Utils.defaultFunction,
"trnmod.cipmod.cfkfzh" :Utils.defaultFunction,
"trnmod.cipmod.cskzjl" :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 处理数据逻辑
console.log("111111111111",rtnmsg);
}
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 onInfbutExi(){
let rtnmsg = await this.executeRule("infbut.exi")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfconButshw(){
let rtnmsg = await this.executeRule("infcon.butshw")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfconButshword(){
let rtnmsg = await this.executeRule("infcon.butshword")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOrdp0Butore(){
let rtnmsg = await this.executeRule("ordp0.butore")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOrdp0Butsmh(){
let rtnmsg = await this.executeRule("ordp0.butsmh")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTxmdtetagm06Buttxmsel(){
let rtnmsg = await this.executeRule("txmdtetagm06.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTxmdtetagm07Buttxmsel(){
let rtnmsg = await this.executeRule("txmdtetagm07.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTxmdtetagm08Buttxmsel(){
let rtnmsg = await this.executeRule("txmdtetagm08.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSetinsButtxmsel(){
let rtnmsg = await this.executeRule("setins.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async handleSearch() {
this.stmData.data = [];
let opndatfrom = this.model.infcon.opndatfrom;
if(!opndatfrom || opndatfrom == ''){
this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
return;
}
let opndatto = this.model.infcon.opndatto;
if(!opndatto || opndatto == ''){
this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
return;
}
let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) {
this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async handleReset() {
this.model.infcon.seaownref = ""
this.model.infcon.opndatfrom = "";
// this.model.infcon.opndatfrom = new Date();
// this.model.infcon.opndatto = new Date();
this.model.infcon.opndatto = "";
this.model.infcon.nam = "";
this.model.infcon.searef = "";
this.model.infcon.pty.extkey = "";
this.model.infcon.pty.nam = "";
this.model.infcon.seapty = "";
this.model.infcon.searol = "";
this.model.infcon.usr.extkey = "";
this.model.infcon.seasta = "";
this.model.infcon.seacur = "";
this.model.infcon.seaamtfr = "";
this.model.infcon.seaamtto = "";
this.model.seadoctypcod = "";
},
}
\ No newline at end of file
<template>
<div class="eContainer">
<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">
<c-content>
<m-infsea :model="model" :codes="codes" ref="infsea" />
</c-content>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Infccd from "~/model/Infccd";
import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Infccd/Check";
import Default from "~/model/Infccd/Default";
import Pattern from "~/model/Infccd/Pattern";
import Infsea from "./Infsea";
export default {
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this,
};
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "",
trnName: "infccd",
model: new Infccd().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
...CodeTable,
},
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
},
},
created: async function () {
console.log("进入infccd交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
};
</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