Commit 8f257b05 by 潘际乾

表单校验规则与变化监听

parent 281009cd
<template>
<div class="eContainer-table-block">
<el-table :data="tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)" style="width: 100%" class="eContainer-table" :header-cell-style="{background: 'eef1f6', color: '#606266'}">
<el-table-column
v-for="(item, key) in tableColumns"
:key="key"
:prop="item.prop"
:label="item.label"
:width="item.width"
></el-table-column>
</el-table>
<el-pagination
class="eContainer-pagination"
layout="prev, pager, next, jumper"
:page-sizes="pageSizes"
:page-size="pageSize"
:current-page="currentPage"
:total="tableData.length"
@size-change="sizeChange"
@current-change="currentChange"
></el-pagination>
<div class="paginationLable">当前显示第 {{(currentPage - 1) * pageSize + 1}}-{{currentPage * pageSize > tableData.length ? tableData.length : currentPage * pageSize}} 条,共 {{tableData.length}}</div>
</div>
</template>
<script>
export default {
props: {
columns: {
type: Array,
default: () => {
return [];
},
},
list: {
type: Array,
default: () => {
return [];
},
},
},
computed: {
tableColumns() {
const arr = [];
for (let i = 0; i < this.columns.length; i++) {
const column = this.columns[i];
const label = column.split("\"")[1]
const newStr = column.replace(`\"${label}\"`, "label")
const vals = newStr.split(" ")
// "P VERTLINES TRUE"
if (vals.length <= 3) break;
arr.push({
prop: vals[0],
label: label,
width: vals[3],
});
}
return arr;
},
tableData() {
return this.list.map((row) => {
const res = {}
const vals = row.split("\t");
for (let i = 0; i < vals.length; i++) {
res[i] = vals[i];
}
return res;
});
},
},
data() {
return {
currentPage: 1,
pageSizes: [5, 10, 20, 30, 40, 50, 100],
pageSize: 5
};
},
mounted: {},
methods: {
sizeChange(size) {
this.pageSize = size;
},
currentChange(currentPage) {
this.currentPage = currentPage;
}
}
};
</script>
<style>
.eContainer-table-block .paginationLable{
font-size: 12px;
color: #808080;
height: 26px;
line-height: 26px;
float:right;
margin-top:20px;
}
.eContainer-table-block .el-table__body-wrapper {
overflow: auto;
}
.el-table .warning-row {
background: oldlace;
}
.el-table .success-row {
background: #f0f9eb;
}
</style>
\ No newline at end of file
......@@ -9,6 +9,7 @@ import Button from './Button.vue'
import DatePicker from './DatePicker.vue'
import Checkbox from './Checkbox.vue'
import Table from "./Table"
import IStreamTable from "./IStreamTable.vue"
import Radio from "./Radio"
import InputNumber from "./InputNumber"
import PrintButton from "./PrintButton"
......@@ -46,6 +47,7 @@ export default {
Vue.component("c-docshow", DocShow)
Vue.component("c-UnicodePicker", UnicodePicker)
Vue.component("c-table", Table)
Vue.component("c-istream-table", IStreamTable)
Vue.component("c-radio", Radio)
Vue.component("c-input-number", InputNumber)
Vue.component("c-print-button", PrintButton)
......
import AmlCheckModel from "~/model/widget/Aml/AmlCheckModel"
export default {
data () {
return {
amlCheckModel: new AmlCheckModel().data,
amlTempData: this.$route.query.routeParams && this.$route.query.routeParams.amlTempData || undefined
}
},
computed: {
amlProps () {
return {
trigger: this.process == '0' || !this.isReview,//是否触发筛查,仅在受理中心经办触发筛查
amlCheckModel: new AmlCheckModel().data, //反洗钱筛查模型
txSriNo: this.serialNo
}
}
},
methods: {
reSubmit() {
this.amlCheckModel.flag = true;
this.handleStart(); //再次调用原交易界面提交按钮
},
showAml() {
this.aml()
let params = {
head: this.genRequestHead(),
body: {
amlCheckVo: this.amlCheckModel
}
}
this.$refs.aml && this.$refs.aml.handleClick(this.amlProps.trigger, this.amlProps.txSriNo, params)
},
}
}
\ No newline at end of file
import Utils from "~/utils";
export default {
methods: {
// 校验公共表单
// checkCommonForm () {
// return Promise((resolve, reject) => {
// return this.handleCommonFormValiate()
// })
// },
async checkCommonForm () {
console.log(this.$refs)
let tasks = []
let self = this
Object.keys(this.$refs).forEach(ref => {
if (self.$refs[ref]) {
Object.keys(self.$refs[ref].$refs).forEach(item => {
if (item.indexOf('commonform_') !== -1) {
console.log(self.$refs[ref].$refs[item])
tasks.push(Utils.getFormPromise(self.$refs[ref].$refs[item].$refs['commonform']))
}
})
}
})
if(tasks.length > 0) {
let res = await Promise.all(tasks).then(res => {
let flag = res.every(item => {
return item
})
console.log(flag)
if (flag) {
return true
} else {
return false
}
}).catch(err => {
return false
})
return res
} else {
return true
}
},
scrollToCheckError () {
//定位到报错的地方
let errElems = document.getElementsByClassName('el-form-item__error')
let id
let declareId
if (errElems && errElems[0]) {
let target = errElems[0]
while(target && target.parentElement) {
if (target.parentElement.classList.contains('el-tab-pane')) {
if (target.parentElement.id.indexOf('decl_') !== -1) {
declareId = target.parentElement.id
target = target.parentElement
} else {
id = target.parentElement.id
break
}
} else {
target = target.parentElement
}
}
}
if (id && id.split('-')[1]) {
this.activeName = id.split('-')[1]
if (declareId && this.activeName) {
let declareActiveName = declareId.split('-')[1] || ''
this.$refs[this.activeName].activeName = declareActiveName
}
this.$nextTick(() => {
errElems[0].scrollIntoView(false)
})
}
}
}
}
\ No newline at end of file
//import moment from "moment";
export default {
computed: {
diaryModel:function() {
return {
prKeyId: "",
status: "1",
busiTypeNo: this.declareParams.txCode.slice(0,4),
busiNo: this.declareParams.busiNo,
belongInstNo: this.declareParams.marketInstNo,
txCode: this.declareParams.txCode,
txName: this.declareParams.txName,
currCode: this.declareParams.currCode,
custNo: this.declareParams.custNo,
custNm: this.declareParams.custNm,
amt: this.declareParams.amt,
remindTime: moment().format("YYYYMMDD"),
}
}
}
}
\ No newline at end of file
export default {
methods: {
handleAccUpdate: function (arr, type) {
let obj
//保证金帐务赋值
if (type == 'fingrt' && this.accParams && this.accParams.accSelectVos) {
this.accParams.accSelectVos.forEach(item => {
if (item.accSelectType == 'M') {
obj = item
}
})
if(arr[2]==0.00){
this.accParams.accSelectVos.length=0
}else{
if (obj) {
Object.assign(obj, {
accSelectType: arr[0],
acctNo:arr[3],
acctType:0,
amt:arr[2],
curr:arr[1],
})
} else {
this.accParams.accSelectVos.push({
accSelectType: arr[0],
acctNo:arr[3],
acctType:0,
amt:arr[2],
curr:arr[1],
})
}
}
}
// //垫款、受托支付赋值
// if (type == 'pay' && this.accParams && this.accParams.accSelectVos) {
// switch(arr[0]){
// case "P":
// this.accParams.accSelectVos.forEach(item => {
// if (item.accSelectType == 'P' || item.accSelectType == 'F' ) {
// obj = item
// }
// })
// if(arr[2]==0.00){
// this.accParams.accSelectVos.length=0
// }else{
// if (obj) {
// Object.assign(obj, {
// accSelectType: arr[0],
// acctNo:arr[3],
// acctType:1,
// amt:arr[2],
// curr:arr[1],
// busCode:"",
// })
// } else {
// this.accParams.accSelectVos.push({
// accSelectType: arr[0],
// acctNo:arr[3],
// acctType:1,
// amt:arr[2],
// curr:arr[1],
// busCode:"",
// })
// }
// }
// break;
// case "F":
// console.log(arr[4]);
// this.accParams.accSelectVos.forEach(item => {
// if (item.accSelectType == 'P' || item.accSelectType == 'F' ) {
// obj = item
// }
// })
// if(arr[2]==0.00){
// this.accParams.accSelectVos.length=0
// }else{
// if (obj) {
// Object.assign(obj, {
// accSelectType: arr[0],
// acctNo:arr[3],
// acctType:0,
// amt:arr[2],
// curr:arr[1],
// busCode:arr[4],
// })
// } else {
// this.accParams.accSelectVos.push({
// accSelectType: arr[0],
// acctNo:arr[3],
// acctType:0,
// amt:arr[2],
// curr:arr[1],
// busCode:arr[4],
// })
// }
// }
// break;
// default:
// break;
// }
// }
}
}
}
\ No newline at end of file
export default {
data: function () {
return{
images: []
}
},
computed: {
imageProps:function() {
return {
images: this.images,
reqSource: '03',//请求来源
otherImages: [],//外系统影像列表,按以下格式提供
txSriNo: this.serialNo || '',
stepFlag: this.taskFlag!='4'&&(!this.isReview || (this.process == '0' || this.process == '3'))? true: false,
isReturned: (this.process == '3' || this.process == '4')? '1': '0',
}
}
},
methods: {
//组件中调用,更新影像列表
setImage(images) {
this.images = images
this.otherImages = []
},
imagesBodyWrapper(body) {
body.imageLst = this.images
}
}
}
\ No newline at end of file
export default {
methods: {
setTemplateData(busiCommitData) {
let busiModel = JSON.parse(busiCommitData)
let arr = ['gedgrp', 'gfdgrp', 'bcdgrp', 'dedgrp', 'bmdgrp', 'cpdgrp',
'didgrp', 'bddgrp', 'gidgrp', 'gcdgrp', 'bodgrp', 'lidgrp', 'brdgrp', 'ledgrp', 'bedgrp']
arr.forEach(item => {
if (busiModel && busiModel[item] && busiModel[item].rec && busiModel[item].rec.ownref) {
busiModel[item].rec.ownref = ''
}
})
Object.assign(this.model, busiModel)
// 给业务留口子,可以自己清数据
this.getTemplateData && this.getTemplateData(busiModel)
}
}
}
\ No newline at end of file
// 第一手交易需要先生成交易流水號
import {getSerialNo, validateSerialNo} from '~/service/public/serialNo';
// import {
// getSerialNo,
// validateSerialNo
// } from "~/service/public/cheSeal";
export default {
data () {
return {
serialNo: ''
}
},
created: function () {
if (this.$route.path.indexOf('review') == -1) {
// // 输出txCode
// console.log('txCode为:', this.declareParams.txCode)
// // 路由中有流水号,需要校验是否通过电子验印
// console.log('this.$route.query.serialno', this.$route.query.serialno)
// if (this.$route.query.serialno) {
// validateSerialNo(this.$route.query.serialno).then(res => {
// if (res && res.code == '000000' && res.data && res.data.cheSealResult == '1') {
// //校验通过
// console.log('res.data.txSriNo', res.data.txSriNo)
// this.serialNo = res.data.txSriNo
// } else {
// // 校验不通过,跳转到电子验印页面
// this.$router.push({
// path: '/business/public/query/che-seal',
// query: {
// path: '/business/para-manage/currency',
// serialno: this.$route.query.serialno,
// txCode: this.declareParams.txCode
// }
// })
// }
// })
// } else {
// //没有交易流水号,先获取流水号,跳转到电子验印页面
// getSerialNo().then(res => {
// if (res && res.code == '000000' && res.data) {
// console.log('serialno', res.data)
// this.$router.push({
// path: '/business/public/query/che-seal',
// query: {
// path: '/business/para-manage/currency',
// serialno: res.data,
// txCode: this.declareParams.txCode
// }
// })
// }
// })
// };
// 路由中有流水号,需要校验是否通过电子验印
// if (this.$route.query.serialno) {
// validateSerialNo({
// current: 0,
// size: 0,
// data: {
// txSriNo: this.$route.query.serialno
// }
// }).then(res => {
// if (res && res.code == '000000' && res.data && res.data.cheSealResult == '1') {
// //校验通过
// this.serialNo = res.data.txSriNo
// } else {
// // 校验不通过,跳转到电子验印页面
// this.$router.push({
// path: '/business/public/query/che-seal',
// query: {
// path: '/business/remit/outward/register',
// serialno: this.$route.query.serialno,
// txCode: '',
// }
// })
// }
// })
// } else {
// // 没有交易流水号,先获取流水号,跳转到电子验印页面
// getSerialNo().then(res => {
// if (res) {
// this.$router.push({
// path: '/business/public/query/che-seal',
// query: {
// path: '/business/remit/outward/register',
// serialno: res,
// txCode: '',
// }
// })
// }
// })
// }
// 菜单处进入 business 页面,需要前端生成 serialNo
getSerialNo().then(res => {
if (res && res.code == '000000' && res.data) {
this.serialNo = res.data
}
})
}
},
methods: {
genRequestSerialNo (requestParams) {
// 给查询参数生成交易流水号
if (this.$route.path.indexOf('review') == -1 && this.serialNo) {
requestParams.serialNo = this.serialNo
}
}
}
}
\ No newline at end of file
import Api from "~/service/Api"
export default {
data () {
return {
requestParam: '',
mode: this.$store.state.Status.mode,
model: undefined
}
},
created: async function () {
if (this.mode === 'display') {
console.log('获取 display 页面数据')
const res = await Api.get('/display/get/' + this.requestParam)
if (res.retcod === "200") {
this.model = res.result
}
}
}
}
\ No newline at end of file
import BankDocSet from "~/model/rcpmis/bankDocSetFin";
export default {
data () {
return {
BankDocSetModel: new BankDocSet().data.docset
}
}
}
\ No newline at end of file
import Din from "~/model/Safe/Bop/Din"
export default {
data () {
return {
DinModel: new Din().data,
}
}
}
\ No newline at end of file
import Dpy from "~/model/Safe/Bop/Dpy"
export default {
data () {
return {
DpyModel: new Dpy().data
}
}
}
\ No newline at end of file
import Drt from "~/model/Safe/Bop/Drt"
export default {
data () {
return {
DrtModel: new Drt().data
}
}
}
\ No newline at end of file
import transboupayout from "~/model/rcpmis/transboupayout"
export default {
data () {
return {
ExpnModel: new transboupayout().data,
}
}
}
\ No newline at end of file
import Extguarb from "~/model/Safe/Cfa/Extguarb";
export default {
data () {
return {
ExtguarbModel: new Extguarb().data.extguarb,
}
}
}
\ No newline at end of file
import Extguars from "~/model/Safe/Cfa/Extguars";
export default {
data () {
return {
ExtguarsModel: new Extguars().data.extguars,
}
}
}
\ No newline at end of file
import Flc from "~/model/Safe/Exd/Flc";
export default {
data() {
return {
FlcModel: new Flc().data,
}
}
}
\ No newline at end of file
import guaranteeenroll from "~/model/Rcpmis/guaranteeenroll";
export default {
data () {
return {
GuaenrInfoModel: new guaranteeenroll().data,
}
}
}
\ No newline at end of file
import transbouIncomeBase from "~/model/rcpmis/transbouIncomeBase"
export default {
data () {
return {
IncomeModel: new transbouIncomeBase().data,
}
}
}
\ No newline at end of file
import Oin from "~/model/Safe/Bop/Oin"
export default {
data () {
return {
OinModel: new Oin().data,
}
}
}
\ No newline at end of file
import Opy from "~/model/Safe/Bop/Opy"
export default {
data () {
return {
OpyModel: new Opy().data
}
}
}
\ No newline at end of file
import Ort from "~/model/Safe/Bop/Ort"
export default {
data () {
return {
OrtModel: new Ort().data,
}
}
}
\ No newline at end of file
import FeeModel from "~/model/Public/Fee"
export default {
data () {
return {
feeModel: new FeeModel().data,
}
}
}
\ No newline at end of file
......@@ -336,7 +336,5 @@ export default {
}
})
},
onSeainf(){
},
}
\ No newline at end of file
......@@ -2,204 +2,79 @@
/**
* Office Default规则
*/
import Api from "~/service/Api";
export default {
"hotavi" :defaultHotavi,
"hotcalc" :defaultHotcalc,
"hotadr" :defaultHotadr,
"hotrat" :defaultHotrat,
"hotdr4l" :defaultHotdr4l,
"hotdr4r" :defaultHotdr4r,
"hotcalc" :defaultHotcalc,
"hotavi" :defaultHotavi,
"hotdr5l" :defaultHotdr5l,
"hotdr5r" :defaultHotdr5r,
"hotdr6r" :defaultHotdr6r,
"hotdr1l" :defaultHotdr1l,
"hotdr5r" :defaultHotdr5r,
"hotdr1r" :defaultHotdr1r,
"hotdr6r" :defaultHotdr6r,
"hotdr2l" :defaultHotdr2l,
"hotdr2r" :defaultHotdr2r,
"dattd" :defaultDattd,
"hotrat" :defaultHotrat,
"hotdr3l" :defaultHotdr3l,
"hotdr3r" :defaultHotdr3r,
"hotsta" :defaultHotsta,
"hotstd" :defaultHotstd,
"dattd" :defaultDattd,
}
function defaultHotavi()
function defaultHotadr()
{
<!--
if(!office.defaultHotaviN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotcalc()
function defaultHotdr4l()
{
<!--
if(!office.defaultHotcalcN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotadr()
function defaultHotdr4r()
{
<!--
if(!office.defaultHotadrN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotrat()
function defaultHotcalc()
{
<!--
if(!office.defaultHotratN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotdr4l()
function defaultHotavi()
{
<!--
if(!office.defaultHotdr4lN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotdr4r()
function defaultHotdr5l()
{
<!--
if(!office.defaultHotdr4rN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotdr5l()
function defaultHotdr1l()
{
<!--
if(!office.defaultHotdr5lN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotdr5r()
{
<!--
if(!office.defaultHotdr5rN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotdr1r()
{
}
function defaultHotdr6r()
{
<!--
if(!office.defaultHotdr6rN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotdr1l()
function defaultHotdr2l()
{
<!--
if(!office.defaultHotdr1lN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotdr1r()
function defaultHotdr2r()
{
<!--
if(!office.defaultHotdr1rN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotdr2l()
function defaultDattd()
{
<!--
if(!office.defaultHotdr2lN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotdr2r()
function defaultHotrat()
{
<!--
if(!office.defaultHotdr2rN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotdr3l()
{
<!--
if(!office.defaultHotdr3lN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotdr3r()
{
<!--
if(!office.defaultHotdr3rN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotsta()
{
<!--
if(!office.defaultHotstaN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultHotstd()
{
<!--
if(!office.defaultHotstdN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultDattd()
{
<!--
if(!office.defaultDattdN100(ctx,100) )
{
return false;
}
return true;
-->
}
import Api from "~/service/Api"
export default {
}
\ No newline at end of file
import Api from "~/service/Api";
export default class Office{
constructor () {
this.data = {
......
......@@ -2,140 +2,47 @@
/**
* Sptsel Default规则
*/
import Api from "~/service/Api";
export default {
"sptstm" :defaultSptstm,
"dlaxq" :defaultDlaxq,
"usfmod.labtxt" :defaultUsfmodLabtxt,
"usfmod.flt" :defaultUsfmodFlt,
"usfmod.shwflt" :defaultUsfmodShwflt,
"dlmft" :defaultDlmft,
"butimg" :defaultButimg,
"dflg" :defaultDflg,
"dlmft" :defaultDlmft,
"yptinf" :defaultYptinf,
"usfmod.flt" :defaultUsfmodFlt,
"sptstm" :defaultSptstm,
"dlaxq" :defaultDlaxq,
"usfmod.usr.extkey" :defaultUsfmodUsrExtkey,
"usfmod.shwflt" :defaultUsfmodShwflt,
}
function defaultUsfmodLabtxt()
function defaultSptstm()
{
<!--
if(!sptsel.getUsfmod().defaultLabtxtN100(ctx,100) )
{
return false;
}
if(!sptsel.getUsfmod().defaultLabtxtN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultButimg()
function defaultDlaxq()
{
<!--
if(!sptsel.defaultButimgN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultDflg()
function defaultUsfmodLabtxt()
{
<!--
if(!sptsel.defaultDflgN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultDlmft()
function defaultUsfmodFlt()
{
<!--
if(!sptsel.defaultDlmftN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultYptinf()
function defaultUsfmodShwflt()
{
<!--
if(!sptsel.defaultYptinfN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultUsfmodFlt()
function defaultDlmft()
{
<!--
if(!sptsel.defaultUsfmodFltN100(ctx,100) )
{
return false;
}
if(!sptsel.getUsfmod().defaultFltN1200(ctx,1200) )
{
return false;
}
if(!sptsel.getUsfmod().defaultFltN1200(ctx,1200) )
{
return false;
}
return true;
-->
}
function defaultSptstm()
function defaultButimg()
{
<!--
if(!sptsel.defaultSptstmN100(ctx,100) )
{
return false;
}
if(!sptsel.defaultSptstmN801(ctx,801) )
{
return false;
}
return true;
-->
}
function defaultDlaxq()
function defaultDflg()
{
<!--
if(!sptsel.defaultDlaxqN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultUsfmodUsrExtkey()
function defaultYptinf()
{
<!--
if(!sptsel.getUsfmod().getUsrget().defaultUsrExtkeyN1003(ctx,1003) )
{
return false;
}
if(!sptsel.getUsfmod().getUsrget().defaultUsrExtkeyN1003(ctx,1003) )
{
return false;
}
return true;
-->
}
function defaultUsfmodShwflt()
function defaultUsfmodUsrExtkey()
{
<!--
if(!sptsel.getUsfmod().defaultShwfltN100(ctx,100) )
{
return false;
}
if(!sptsel.getUsfmod().defaultShwfltN100(ctx,100) )
{
return false;
}
return true;
-->
}
......@@ -80,7 +80,5 @@ export default {
}
})
},
tabClick(){
}
}
\ No newline at end of file
export default {
"selobj":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
......@@ -8,6 +16,8 @@ export default {
{max: 32,message:"长度不能超过32"}
],
"inidatfro":[
{type: "date", required: false, message: "输入正确的日期"}
],
......@@ -15,16 +25,20 @@ export default {
{type: "date", required: false, message: "输入正确的日期"}
],
"usfmod.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"usfmod.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"sptstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
......@@ -33,4 +47,8 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
}
\ No newline at end of file
import Api from "~/service/Api";
export default class Sptsel{
constructor () {
this.data = {
chkinc:"", // Incoming .chkinc
chkpen:"", // Pending .chkpen
chkcor:"", // Correction .chkcor
chkaut:"", // Automatic .chkaut
selobj:"", // Reference .selobj
seltxt:"", // Selection Name .seltxt
usfmod:{
labtxt:"", // Text of Label .usfmod.labtxt
usftxt:"", // Text of Selection Text .usfmod.usftxt
flt:"", // Filter .usfmod.flt
selusg:"", // Selected User Group .usfmod.selusg
selusgset:"", // Selected User Group Set .usfmod.selusgset
usr:{
extkey:"", // User ID .usfmod.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .usfmod.usrget.sdamod.seainf
},
},
selusb:"", // Select user branch .usfmod.selusb
},
chkdel:"", // Deleted .chkdel
sptstm:"", // List of SPT records .sptstm
yptinf:"", // 退回原因 .yptinf
chkypt:"", // 云平台 .chkypt
inidatfro:"", // Date of entry of Transaction .inidatfro
inidattil:"", // Date of entry of Transaction until .inidattil
routxt:"", // 已转报 .routxt
dflg:"", // 国内国际标志 .dflg
chktco:"", // 网银 .chktco
chkcan:"", // 归档 .chkcan
chkdzt:"", // E-Trade .chkdzt
constructor () {
this.data = {
chkinc:"", // Incoming .chkinc
chkpen:"", // Pending .chkpen
chkcor:"", // Correction .chkcor
chkaut:"", // Automatic .chkaut
selobj:"", // Reference .selobj
seltxt:"", // Selection Name .seltxt
usfmod:{
labtxt:"", // Text of Label .usfmod.labtxt
usftxt:"", // Text of Selection Text .usfmod.usftxt
flt:"", // Filter .usfmod.flt
selusg:"", // Selected User Group .usfmod.selusg
selusgset:"", // Selected User Group Set .usfmod.selusgset
usr:{
extkey:"", // User ID .usfmod.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .usfmod.usrget.sdamod.seainf
},
},
selusb:"", // Select user branch .usfmod.selusb
},
chkdel:"", // Deleted .chkdel
sptstm:"", // List of SPT records .sptstm
yptinf:"", // 退回原因 .yptinf
chkypt:"", // 云平台 .chkypt
inidatfro:"", // Date of entry of Transaction .inidatfro
inidattil:"", // Date of entry of Transaction until .inidattil
routxt:"", // 已转报 .routxt
dflg:"", // 国内国际标志 .dflg
chktco:"", // 网银 .chktco
chkcan:"", // 归档 .chkcan
chkdzt:"", // E-Trade .chkdzt
}
}
}
}
\ No newline at end of file
......@@ -16,14 +16,6 @@ export default {
*/
function checkTrnInrN1500()
{
// checkrule to finally check whether contents in the keyfield has been resolved.
if( ! Utils.isEmpty( model.trn.inr ) && Utils.len( model.trn.inr ) < 8 && Utils.isEmpty( model.dissel ) )
{
Utils.error( model.trn.inr, "#CT000003" );
}
}
/**
* source:atpget.@0001.script
......@@ -31,14 +23,6 @@ function checkTrnInrN1500()
*/
function checkAtpgetSdamodDadsndN100()
{
//! check whether take is allowed on Drag&Drop sender
if( Utils.isEmpty( model.atp.inr ) )
{
Utils.errorMessage( "#CT000001" );
}
}
/**
* source:txmmod.@0009.script
......@@ -46,18 +30,6 @@ function checkAtpgetSdamodDadsndN100()
*/
function checkTrnInftxtN100()
{
//! Set error, if block contains an Asterisk and is enabled
//! ZL add for swift standards relese 2018
//占位符“*”给为占位符“~”
//add tby
// `if IsEnabled( TXMBLOCK ) then ` does not work with TRADE2 yet. Thus use the following line instead:
if( Utils.IsEnabled( Utils.getField( Utils.getAttributeText( model.txmblock, tdAttrFullName ) ) ) )
{
Utils.errorAsterisk( model.txmblock );
}
}
/**
* source:atpget.@0001.script
......@@ -65,14 +37,6 @@ function checkTrnInftxtN100()
*/
function checkRecpanAtpgetSdamodDadsndN100()
{
//! check whether take is allowed on Drag&Drop sender
if( Utils.isEmpty( model.atp.inr ) )
{
Utils.errorMessage( "#CT000001" );
}
}
/**
* source:trnget.@0001.script
......@@ -80,12 +44,4 @@ function checkRecpanAtpgetSdamodDadsndN100()
*/
function checkRecpanRecgetSdamodDadsndN100()
{
//! check whether take is allowed on Drag&Drop sender
if( Utils.isEmpty( model.trn.inr ) )
{
Utils.errorMessage( "#CT000001" );
}
}
......@@ -2,349 +2,123 @@
/**
* Trnrel Default规则
*/
import Api from "~/service/Api";
export default {
"relcor" :defaultRelcor,
"recpan.butspt" :defaultRecpanButspt,
"recpan.ackstm" :defaultRecpanAckstm,
"seaown" :defaultSeaown,
"trn.inftxt" :defaultTrnInftxt,
"trncorco.trnstm" :defaultTrncorcoTrnstm,
"recpan.det" :defaultRecpanDet,
"numtrn" :defaultNumtrn,
"trncorco.dflg" :defaultTrncorcoDflg,
"recpan.usr.extkey" :defaultRecpanUsrExtkey,
"atptxt" :defaultAtptxt,
"trn.inr" :defaultTrnInr,
"recpan.ackstm" :defaultRecpanAckstm,
"imgmod.newhisimg" :defaultImgmodNewhisimg,
"recpan.cpltxt" :defaultRecpanCpltxt,
"recpan.butord" :defaultRecpanButord,
"recpan.incben" :defaultRecpanIncben,
"imgmod.hisimg" :defaultImgmodHisimg,
"orddsp" :defaultOrddsp,
"recpan.butspt" :defaultRecpanButspt,
"seaown" :defaultSeaown,
"recpan.inftxt.buttxmsel" :defaultRecpanInftxtButtxmsel,
"usrcon" :defaultUsrcon,
"recpan.inc" :defaultRecpanInc,
"recpan.imgmod.image" :defaultRecpanImgmodImage,
"relcor" :defaultRelcor,
"seajbh" :defaultSeajbh,
"syswrn.butshw" :defaultSyswrnButshw,
"printe" :defaultPrinte,
"trn.infdsp" :defaultTrnInfdsp,
"recpan.incben" :defaultRecpanIncben,
"usrcon" :defaultUsrcon,
"imgmod.hisimg" :defaultImgmodHisimg,
"recpan.con" :defaultRecpanCon,
"seajbh" :defaultSeajbh,
"recpan.det" :defaultRecpanDet,
"trncorco.trnstm" :defaultTrncorcoTrnstm,
"imgmod.newhisimg" :defaultImgmodNewhisimg,
"recpan.cpltxt" :defaultRecpanCpltxt,
"trncorco.dflg" :defaultTrncorcoDflg,
"orddsp" :defaultOrddsp,
"recpan.usr.extkey" :defaultRecpanUsrExtkey,
"atptxt" :defaultAtptxt,
"recpan.ackgrp.rec.sndref" :defaultRecpanAckgrpRecSndref,
"syswrn.butshw" :defaultSyswrnButshw,
"imgmod.newimg" :defaultImgmodNewimg,
"recpan.inc" :defaultRecpanInc,
"printe" :defaultPrinte,
"trn.inr" :defaultTrnInr,
"imgmod.image" :defaultImgmodImage,
}
function defaultTrnInftxt()
function defaultRelcor()
{
<!--
if(!trnrel.getRecpan().defaultTrnInftxtN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultTrncorcoTrnstm()
function defaultRecpanButspt()
{
<!--
if(!trnrel.defaultTrncorcoTrnstmN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultRecpanDet()
function defaultRecpanAckstm()
{
<!--
if(!trnrel.getRecpan().defaultDetN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultNumtrn()
function defaultSeaown()
{
<!--
if(!trnrel.defaultNumtrnN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultTrncorcoDflg()
function defaultTrnInftxt()
{
<!--
if(!trnrel.defaultTrncorcoDflgN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultRecpanUsrExtkey()
function defaultNumtrn()
{
<!--
if(!trnrel.getRecpan().defaultUsrExtkeyN900(ctx,900) )
{
return false;
}
if(!trnrel.getRecpan().getUsrget().defaultUsrExtkeyN1003(ctx,1003) )
{
return false;
}
return true;
-->
}
function defaultAtptxt()
function defaultRecpanButord()
{
<!--
if(!trnrel.defaultAtptxtN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultTrnInr()
function defaultRecpanInftxtButtxmsel()
{
<!--
if(!trnrel.defaultRecpanTrnInrN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultRecpanAckstm()
function defaultTrnInfdsp()
{
<!--
if(!trnrel.getRecpan().defaultAckstmN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultImgmodNewhisimg()
function defaultRecpanIncben()
{
<!--
if(!trnrel.defaultImgmodNewhisimgN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultRecpanCpltxt()
function defaultUsrcon()
{
<!--
if(!trnrel.getRecpan().defaultCpltxtN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultRecpanButord()
function defaultImgmodHisimg()
{
<!--
if(!trnrel.getRecpan().defaultButordN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultRecpanIncben()
function defaultRecpanCon()
{
<!--
if(!trnrel.getRecpan().defaultIncbenN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultImgmodHisimg()
function defaultSeajbh()
{
<!--
if(!trnrel.defaultImgmodHisimgN100(ctx,100) )
{
return false;
}
if(!trnrel.getImgmod().defaultHisimgN1100(ctx,1100) )
{
return false;
}
if(!trnrel.getImgmod().defaultHisimgN1100(ctx,1100) )
{
return false;
}
return true;
-->
}
function defaultOrddsp()
function defaultRecpanDet()
{
<!--
if(!trnrel.defaultOrddspN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultRecpanButspt()
function defaultTrncorcoTrnstm()
{
<!--
if(!trnrel.getRecpan().defaultButsptN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultSeaown()
function defaultImgmodNewhisimg()
{
<!--
if(!trnrel.defaultSeaownN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultRecpanInftxtButtxmsel()
function defaultRecpanCpltxt()
{
<!--
if(!trnrel.getRecpan().getInftxt().defaultButtxmselN999(ctx,999) )
{
return false;
}
return true;
-->
}
function defaultUsrcon()
function defaultTrncorcoDflg()
{
<!--
if(!trnrel.defaultUsrconN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultRecpanInc()
function defaultOrddsp()
{
<!--
if(!trnrel.getRecpan().defaultIncN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultRecpanImgmodImage()
function defaultRecpanUsrExtkey()
{
<!--
if(!trnrel.getRecpan().defaultImgmodImageN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultRelcor()
function defaultAtptxt()
{
<!--
if(!trnrel.defaultRelcorN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultSeajbh()
function defaultRecpanAckgrpRecSndref()
{
<!--
if(!trnrel.defaultSeajbhN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultSyswrnButshw()
{
<!--
if(!trnrel.getRecpan().defaultSyswrnButshwN10000(ctx,10000) )
{
return false;
}
return true;
-->
}
function defaultPrinte()
function defaultImgmodNewimg()
{
<!--
if(!trnrel.defaultPrinteN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultTrnInfdsp()
function defaultRecpanInc()
{
<!--
if(!trnrel.getRecpan().defaultTrnInfdspN100(ctx,100) )
{
return false;
}
if(!trnrel.getRecpan().defaultTrnInfdspN3000(ctx,3000) )
{
return false;
}
return true;
-->
}
function defaultRecpanCon()
function defaultPrinte()
{
<!--
if(!trnrel.getRecpan().defaultConN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultRecpanAckgrpRecSndref()
function defaultTrnInr()
{
<!--
if(!trnrel.getRecpan().defaultAckgrpRecSndrefN100(ctx,100) )
{
return false;
}
return true;
-->
}
function defaultImgmodNewimg()
function defaultImgmodImage()
{
<!--
if(!trnrel.defaultImgmodNewimgN100(ctx,100) )
{
return false;
}
if(!trnrel.getImgmod().defaultNewimgN1101(ctx,1101) )
{
return false;
}
if(!trnrel.getImgmod().defaultNewimgN1101(ctx,1101) )
{
return false;
}
return true;
-->
}
......@@ -336,11 +336,11 @@ export default {
}
})
},
onImgmod1Image(){
onImgmodImage(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("trnrel/imgmod1_image",{data:this.model})
let rtnmsg = await Api.post("trnrel/imgmod_image",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
......@@ -384,7 +384,5 @@ export default {
}
})
},
onSeainf(){
}
}
\ No newline at end of file
......@@ -93,10 +93,10 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
// "recpan.atp.cod":[
// {type: "string", required: false, message: "必输项"},
// {max: 6,message:"长度不能超过6"}
// ],
"recpan.atp.cod":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"trn.reloricur":[
{type: "string", required: false, message: "必输项"},
......
import Api from "~/service/Api";
export default class Trnrel{
constructor () {
this.data = {
trncorco:{
ownref:"", // Reference .trncorco.ownref
relflg:"", // Status .trncorco.relflg
inidatfro:"", // Date of entry of Transaction .trncorco.inidatfro
inidattil:"", // Date of entry of Transaction until .trncorco.inidattil
trnstm:"", // List of transaction sfor display .trncorco.trnstm
dflg:"", // 国内证标志 .trncorco.dflg
},
atp:{
cod:"", // Transaction Type .atp.cod
},
atpget:{
sdamod:{
seainf:"", // .atpget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .atpget.sdamod.dadsnd
},
},
atptxt:"", // Transaction Text .atptxt
numtrn:"", // # of transactions .numtrn
orddsp:"", // >> .orddsp
bchcon:"", // Branch .bchcon
usrcon:"", // User .usrcon
recpan:{
cpltxt:"", // Completion text .recpan.cpltxt
spt:{
sta:"", // Status .recpan.spt.sta
},
ord:{
sta:"", // Status .recpan.ord.sta
},
recget:{
sdamod:{
seainf:"", // Ident No. .recpan.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.recget.sdamod.dadsnd
},
},
atp:{
cod:"", // Transaction ID .recpan.atp.cod
},
atpget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .recpan.atpget.sdamod.dadsnd
seainf:"", // Transaction .recpan.atpget.sdamod.seainf
},
},
smhstm:"", // Documents .recpan.smhstm
usr:{
extkey:"", // User ID .recpan.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .recpan.usrget.sdamod.seainf
},
},
trsstm:"", // Signatures .recpan.trsstm
con:"", // Reference .recpan.con
cretrs:{
usr:"", // Entered by .recpan.cretrs.usr
dattim:"", // Timestamp .recpan.cretrs.dattim
},
ackgrp:{
rec:{
sndref:"", // Send to SOP/CASmf reference .recpan.ackgrp.rec.sndref
},
},
wfestm:"", // WFEs for transaction for display .recpan.wfestm
evthisstm:"", // stream of history of transactions .recpan.evthisstm
evtstm:"", // stream of events .recpan.evtstm
ackstm:"", // ACKs for transaction .recpan.ackstm
trostm:"", // TROs for transaction for display .recpan.trostm
prtgleblk:"", // XMLPanel prtgle的内置block .recpan.prtgleblk
prtpanblk:"", // XMLPanel prtpan的内置block .recpan.prtpanblk
},
trn:{
ownref:"", // Reference .trn.ownref
inr:"", // Transaction Key .trn.inr
objnam:"", // External Readable Object Identification .trn.objnam
reloricur:"", // Relevant Amount .trn.reloricur
reloriamt:"", // Relevant Amount for Release in Original Currency .trn.reloriamt
relflg:"", // Release Status of Transaction .trn.relflg
usr:"", // Responsible .trn.usr
usg:"", // Responsible Group .trn.usg
relreq:"", // Signatures Required/Obtained .trn.relreq
relres:"", // Applied Signatures .trn.relres
cortrninr:"", // Based on Ident No. .trn.cortrninr
exedat:"", // Execution Date .trn.exedat
inftxt:"", // Infotext .trn.inftxt
infdsp:"", // Infoflag .trn.infdsp
},
wfmmod:{
wfs:{
objnam:"", // External Readable Object Identification .wfmmod.wfs.objnam
objtyp:"", // Table Used to Store Associated Object .wfmmod.wfs.objtyp
objinr:"", // Object .wfmmod.wfs.objinr
},
},
docimm:{
prtswtpblk:"", // XMLPanel prtswtp的内置block .docimm.prtswtpblk
xmldocblk:"", // XMLPanel xmldoc的内置block .docimm.xmldocblk
prtswtrpblk:"", // XMLPanel prtswtrp的内置block .docimm.prtswtrpblk
docbol:{
prtpblk:"", // XMLPanel prtp的内置block .docimm.docbol.prtpblk
},
},
constructor () {
this.data = {
trncorco:{
ownref:"", // Reference .trncorco.ownref
relflg:"", // Status .trncorco.relflg
inidatfro:"", // Date of entry of Transaction .trncorco.inidatfro
inidattil:"", // Date of entry of Transaction until .trncorco.inidattil
trnstm:"", // List of transaction sfor display .trncorco.trnstm
dflg:"", // 国内证标志 .trncorco.dflg
},
atp:{
cod:"", // Transaction Type .atp.cod
},
atpget:{
sdamod:{
seainf:"", // .atpget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .atpget.sdamod.dadsnd
},
},
atptxt:"", // Transaction Text .atptxt
numtrn:"", // # of transactions .numtrn
orddsp:"", // >> .orddsp
bchcon:"", // Branch .bchcon
usrcon:"", // User .usrcon
recpan:{
cpltxt:"", // Completion text .recpan.cpltxt
spt:{
sta:"", // Status .recpan.spt.sta
},
ord:{
sta:"", // Status .recpan.ord.sta
},
recget:{
sdamod:{
seainf:"", // Ident No. .recpan.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.recget.sdamod.dadsnd
},
},
atp:{
cod:"", // Transaction ID .recpan.atp.cod
},
atpget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .recpan.atpget.sdamod.dadsnd
seainf:"", // Transaction .recpan.atpget.sdamod.seainf
},
},
smhstm:"", // Documents .recpan.smhstm
usr:{
extkey:"", // User ID .recpan.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .recpan.usrget.sdamod.seainf
},
},
trsstm:"", // Signatures .recpan.trsstm
con:"", // Reference .recpan.con
cretrs:{
usr:"", // Entered by .recpan.cretrs.usr
dattim:"", // Timestamp .recpan.cretrs.dattim
},
ackgrp:{
rec:{
sndref:"", // Send to SOP/CASmf reference .recpan.ackgrp.rec.sndref
},
},
wfestm:"", // WFEs for transaction for display .recpan.wfestm
evthisstm:"", // stream of history of transactions .recpan.evthisstm
evtstm:"", // stream of events .recpan.evtstm
ackstm:"", // ACKs for transaction .recpan.ackstm
trostm:"", // TROs for transaction for display .recpan.trostm
prtgleblk:"", // XMLPanel prtgle的内置block .recpan.prtgleblk
prtpanblk:"", // XMLPanel prtpan的内置block .recpan.prtpanblk
},
trn:{
ownref:"", // Reference .trn.ownref
inr:"", // Transaction Key .trn.inr
objnam:"", // External Readable Object Identification .trn.objnam
reloricur:"", // Relevant Amount .trn.reloricur
reloriamt:"", // Relevant Amount for Release in Original Currency .trn.reloriamt
relflg:"", // Release Status of Transaction .trn.relflg
usr:"", // Responsible .trn.usr
usg:"", // Responsible Group .trn.usg
relreq:"", // Signatures Required/Obtained .trn.relreq
relres:"", // Applied Signatures .trn.relres
cortrninr:"", // Based on Ident No. .trn.cortrninr
exedat:"", // Execution Date .trn.exedat
inftxt:"", // Infotext .trn.inftxt
infdsp:"", // Infoflag .trn.infdsp
},
wfmmod:{
wfs:{
objnam:"", // External Readable Object Identification .wfmmod.wfs.objnam
objtyp:"", // Table Used to Store Associated Object .wfmmod.wfs.objtyp
objinr:"", // Object .wfmmod.wfs.objinr
},
},
docimm:{
prtswtpblk:"", // XMLPanel prtswtp的内置block .docimm.prtswtpblk
xmldocblk:"", // XMLPanel xmldoc的内置block .docimm.xmldocblk
prtswtrpblk:"", // XMLPanel prtswtrp的内置block .docimm.prtswtrpblk
docbol:{
prtpblk:"", // XMLPanel prtp的内置block .docimm.docbol.prtpblk
},
},
}
}
}
}
\ No newline at end of file
......@@ -362,7 +362,7 @@ import CommonProcess from "~/mixin/CommonProcess"
export default {
props:["model","codes"],
mixins: [CommonProcess],
// mixins: [CommonProcess],
data(){
return {
declareParams:{"fileName":"ditopn.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/ditopn/getElcsRef"},
......
......@@ -92,7 +92,9 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Ditopn from "~/Model/Ditopn"
import CommonProcess from "~/mixin/CommonProcess"
import Pattern from "~/model/Ditopn/Pattern"
import Pattern from "~/Model/Ditopn/Pattern"
import Default from "~/model/Ditopn/Default";
import Check from "~/model/Ditopn/Check";
import Ovwp from "./Ovwp"
import Revp from "./Revp"
import Tk from "./Tk"
......@@ -138,8 +140,10 @@ export default {
data(){
return {
model:new Ditopn().data,
//defaultRule:Default,
rules:Pattern,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules:null,
codes:{
},
declareParams:{"fileName":"ditopn.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/ditopn/init"},
......
......@@ -108,63 +108,71 @@
</template>
<script>
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess"
import Pattern from "~/Model/Office/Pattern"
import Default from "~/model/Office/Default";
import Check from "~/model/Office/Check";
import CodeTable from "~/config/CodeTable"
import s_todo from "./TodoItem"
export default {
components:{"s-todo":s_todo},
mixins: [CommonProcess],
computed: {
},
data(){
return {
todoActive:"WAT",
codes:{
dsp:CodeTable.dsp,
busflg:CodeTable.busflg,
actiontype:CodeTable.actiontype,
cur:CodeTable.cur,
ptytyp:CodeTable.ptytyp,
staflg:CodeTable.staflg,
paytyp:CodeTable.paytyp,
payattr:CodeTable.payattr,
balancemode:CodeTable.balancemode,
bopcustype:CodeTable.bopcustype,
payeeattr:CodeTable.payeeattr,
boppaytype:CodeTable.boppaytype,
debcdtflg:CodeTable.debcdtflg,
acttyp:CodeTable.acttyp,
payflg:CodeTable.payflg,
buscod:CodeTable.buscod,
datsrc:CodeTable.datsrc,
sndselflg:CodeTable.sndselflg,
relflg:CodeTable.relflg,
payacttyp:CodeTable.payacttyp,
curtxt:CodeTable.curtxt,
dbfmethod:CodeTable.dbfmethod,
bustyp:CodeTable.bustyp,
todo:CodeTable.todo,
swftyp:CodeTable.swftyp,
payeraccttype:CodeTable.payeraccttype,
oratyp:CodeTable.oratyp,
chato:CodeTable.chato,
opertype:CodeTable.opertype,
bopyesno:CodeTable.bopyesno,
custyp:CodeTable.custyp,
selten:CodeTable.selten,
dsp2:CodeTable.dsp2,
liqtyp:CodeTable.liqtyp,
},
model:{
offp:{
todotyp:[], // 待办类型 .offp.todotyp
todolst:[], // .offp.todolst
selten:"", // .offp.selten
xrtlst:[], // .offp.xrtlst
iralst:[], // .offp.iralst
},
},
rules:{}
todoActive:"WAT",
codes:{
dsp:CodeTable.dsp,
busflg:CodeTable.busflg,
actiontype:CodeTable.actiontype,
cur:CodeTable.cur,
ptytyp:CodeTable.ptytyp,
staflg:CodeTable.staflg,
paytyp:CodeTable.paytyp,
payattr:CodeTable.payattr,
balancemode:CodeTable.balancemode,
bopcustype:CodeTable.bopcustype,
payeeattr:CodeTable.payeeattr,
boppaytype:CodeTable.boppaytype,
debcdtflg:CodeTable.debcdtflg,
acttyp:CodeTable.acttyp,
payflg:CodeTable.payflg,
buscod:CodeTable.buscod,
datsrc:CodeTable.datsrc,
sndselflg:CodeTable.sndselflg,
relflg:CodeTable.relflg,
payacttyp:CodeTable.payacttyp,
curtxt:CodeTable.curtxt,
dbfmethod:CodeTable.dbfmethod,
bustyp:CodeTable.bustyp,
todo:CodeTable.todo,
swftyp:CodeTable.swftyp,
payeraccttype:CodeTable.payeraccttype,
oratyp:CodeTable.oratyp,
chato:CodeTable.chato,
opertype:CodeTable.opertype,
bopyesno:CodeTable.bopyesno,
custyp:CodeTable.custyp,
selten:CodeTable.selten,
dsp2:CodeTable.dsp2,
liqtyp:CodeTable.liqtyp,
},
model:{
offp:{
todotyp:[], // 待办类型 .offp.todotyp
todolst:[], // .offp.todolst
selten:"", // .offp.selten
xrtlst:[], // .offp.xrtlst
iralst:[], // .offp.iralst
},
},
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules:null
}
},
methods:{
......
......@@ -181,7 +181,7 @@ import CommonProcess from "~/mixin/CommonProcess"
export default {
props:["model","codes"],
mixins: [CommonProcess],
// mixins: [CommonProcess],
data(){
return {
declareParams:{"fileName":"sptsel.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/sptsel/sptstm"},
......
......@@ -14,7 +14,9 @@ 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 Pattern from "~/Model/Sptsel/Pattern"
import Default from "~/model/Sptsel/Default";
import Check from "~/model/Sptsel/Check";
import Menu from "./Menu"
import Event from "~/model/Sptsel/Event"
......@@ -28,9 +30,11 @@ export default {
},
data(){
return {
model:new Sptsel().data,
//defaultRule:Default,
rules:Pattern,
model:new Sptsel().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules:null,
codes:{
},
declareParams:{"fileName":"sptsel.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/sptsel/init"},
......
......@@ -339,6 +339,8 @@
>
</el-table-column>
</c-table>
<c-istream-table :list="testJson.data" :columns="testJson.columns"></c-istream-table>
</div>
</template>
......@@ -350,13 +352,49 @@ import Event from "~/model/Trnrel/Event"
export default {
props:["model","codes"],
mixins: [CommonProcess],
components: {
},
data(){
return {
declareParams:{"fileName":"trnrel.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/trnrel/seaown"},
testJson: {
columns: [
"10 1 \"TRN\" 50 1 tdViewTypeEdit:0 3 ATPTXT",
"11 2:1 \"Own Reference\" 112",
"17 2:2 \"Addtional Text\" 112",
"12 3 \"Cur\" 37",
"13 4 \"Relevant Amount\" 101 2 8:1 2 5",
"14 5 \"Entry\" 104 20 DateTime 1",
"9 6:1 \"Req\" 39",
"2 6:2 \"Sig\" 35",
"6 8:1 \"Rq0\" 40",
"3 8:2 \"Rel0\" 40",
"7 9:1 \"Rq1\" 40",
"4 9:2 \"Rel1\" 40",
"8 10:1 \"Rq2\" 40",
"5 10:2 \"Rel2\" 40",
"15 13 \"Branch\" 142",
"16 11:1 \"User\" 62",
"18 11:2 \"\" 62",
"0 12 \"Status\" 54 1 tdViewTypeEdit:0 1 RELSTA",
"P COLORED TRUE",
"P VERTLINES TRUE",
"P HORZLINES TRUE"
],
data: [
"DITOPN\t10.00 13213 2000007350 GUONEI\t00000101\t2021-04-23 11:26:54.444\tZL \tKZ3500210003AA \t10\tW\tNN \tOA \tNN \tNN \tCNY\t北京分行 \tO \tNN \tZHL \tNA \tNN ",
"BTTSND\t \t00000100\t2020-06-19 16:10:57.739\tZL \tBP3500200002AAT \t20000\tW\tNN \tOA \tNN \tNN \tUSD\t北京分行 \tO \tNN \tZHL \tNA \tNN ",
"BTTDCK\t \t00000099\t2020-06-19 16:03:34.871\tZL \tBP3500200002AAT \t20000\tW\tNN \tOA \tNN \tNN \tUSD\t北京分行 \tO \tNN \tZHL \tNA \tNN ",
"LTTDCK\t \t00000098\t2020-06-19 15:58:24.007\tZL \tBP3500200002AAT \t16000\tW\tNN \tOA \tNN \tNN \tUSD\t北京分行 \tO \tNN \tZHL \tNA \tNN ",
"LTTOPN\t \t00000096\t2020-06-19 15:54:14.219\tZL \tTC3500200001AA \t66000\tW\tNN \tOA \tNN \tNN \tUSD\t北京分行 \tO \tNN \tZHL \tNA \tNN ",
"LETOPN\t100,000.00\t00000095\t2020-06-19 15:42:45.222\tZL \tAD3500200002AA \t110000\tW\tNN \tOB \tNN \tNN \tUSD\t北京分行 \tO \tNN \tZHL \tNB \tNN ",
"BDTDCK\tGUONEI\t00000094\t2020-06-11 09:25:30.824\tZL \tDD3500190001AA02\t6\tW\tNN \tOA \tNN \tNN \tCNY\t北京分行 \tO \tNN \tZHL \tNA \tNN ",
"BDTDCR\tGUONEI\t00000093\t2020-06-11 09:12:19.237\tZL \tDD3500190001AA02\t8\tW\tNN \tOA \tNN \tNN \tCNY\t北京分行 \tO \tNN \tZHL \tNA \tNN ",
"BDTDCK\tGUONEI\t00000092\t2020-06-11 09:10:27.276\tZL \tDD3500190001AA02\t8\tW\tNN \tOA \tNN \tNN \tCNY\t北京分行 \tO \tNN \tZHL \tNA \tNN ",
"DITDCK\t0.00 北京三优机电设备有限公司 2000007350 GUONEI\t00000091\t2020-06-10 18:04:40.818\tZL \tDD3500190001AA02\t10\tW\tNN \tOA \tNN \tNN \tCNY\t北京分行 \tO \tNN \tZHL \tNA \tNN ",
"DITOPN\t100,000.00 北京宇宙中心第一家有限公司 2000007350 GUONEI\t00000087\t2020-06-10 15:42:44.7\tZL \tKZ3500200002AA \t100000\tW\tNN \tOA \tNN \tNN \tCNY\t北京分行 \tO \tNN \tZHL \tNA \tNN "
]
}
}
},
methods:{...Event},
......
......@@ -17,6 +17,8 @@ import CodeTable from "~/config/CodeTable"
import Trnrel from "~/Model/Trnrel"
import CommonProcess from "~/mixin/CommonProcess"
import Pattern from "~/Model/Trnrel/Pattern"
import Default from "~/model/Trnrel/Default";
import Check from "~/model/Trnrel/Check";
import Inftrnps from "./Inftrnps"
import Trnp0 from "./Trnp0"
import Trnpwfm from "./Trnpwfm"
......@@ -45,10 +47,13 @@ export default {
},
data(){
return {
model:new Trnrel().data,
rules:Pattern,
codes:{
},
model: new Trnrel().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
declareParams:{"fileName":"trnrel.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/trnrel/init"},
}
......
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