Commit 5c527616 by liushikai

merge

parents d34b4c26 6472ef2a
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
tableColumns() { tableColumns() {
const columnArr = [] const columnArr = []
const lines = this.columns; const lines = this.columns;
const etyReg = /\"(\w*\s?\w*)\"/ const etyReg = /\"(\w*(\s?|\/?)\w*)\"/
const obj = {} const obj = {}
for (let i = 0; i < lines.length; i++) { for (let i = 0; i < lines.length; i++) {
const line = lines[i]; const line = lines[i];
......
...@@ -8,8 +8,8 @@ export default{ ...@@ -8,8 +8,8 @@ export default{
computed:{ computed:{
declareParams(){ declareParams(){
return { return {
version:this.version, version: this.version,
trnName:this.trnName, trnName: this.root ? this.root.trnName : this.trnName,
} }
} }
} }
......
...@@ -46,6 +46,7 @@ export default { ...@@ -46,6 +46,7 @@ export default {
} }
const triggerType = that.getTriggerType(key) const triggerType = that.getTriggerType(key)
if(that.checkRules[key]){ if(that.checkRules[key]){
if (Array.isArray(that.checkRules[key])) {
for (let j = 0; j < that.checkRules[key].length; j++) { for (let j = 0; j < that.checkRules[key].length; j++) {
const check = that.checkRules[key][j]; const check = that.checkRules[key][j];
rule.push({ rule.push({
...@@ -53,6 +54,12 @@ export default { ...@@ -53,6 +54,12 @@ export default {
trigger: triggerType trigger: triggerType
}) })
} }
} else {
rule.push({
validator: that.checkRules[key].bind(that),
trigger: triggerType
})
}
} }
if (that.defaultRules[key]) { if (that.defaultRules[key]) {
rule.push({ rule.push({
......
...@@ -142,6 +142,7 @@ export default class Cptopn{ ...@@ -142,6 +142,7 @@ export default class Cptopn{
payeecountcode:"", // 收款人常驻国家/地区代码 .cptp.payeecountcode payeecountcode:"", // 收款人常驻国家/地区代码 .cptp.payeecountcode
uetr:"", // Uetr .cptp.uetr uetr:"", // Uetr .cptp.uetr
}, },
setmod:{ setmod:{
docamttyplab:"", // settled amount description as label .setmod.docamttyplab docamttyplab:"", // settled amount description as label .setmod.docamttyplab
retmsg:"", // Label showing Retry overflow condition .setmod.retmsg retmsg:"", // Label showing Retry overflow condition .setmod.retmsg
...@@ -152,12 +153,19 @@ export default class Cptopn{ ...@@ -152,12 +153,19 @@ export default class Cptopn{
xreflg:"", // Recalculate Rates .setmod.xreflg xreflg:"", // Recalculate Rates .setmod.xreflg
setglg:{ setglg:{
labdspflg:"", // Label for Type of Settlement .setmod.setglg.labdspflg labdspflg:"", // Label for Type of Settlement .setmod.setglg.labdspflg
setgll:[]
}, },
zmqacclab:"", // 主�'�号LABEL .setmod.zmqacclab zmqacclab:"", // 主�'�号LABEL .setmod.zmqacclab
zmqacc:"", // 自�'�区主�'�号 .setmod.zmqacc zmqacc:"", // 自�'�区主�'�号 .setmod.zmqacc
glemod:{ setfog:{
gleshwstm:"", // Booking stream to Display .setmod.glemod.gleshwstm setfol:[]
},
setfeg:{
setfel:[]
}, },
glemod:{
}
}, },
mtabut:{ mtabut:{
coninf:{ coninf:{
......
...@@ -216,7 +216,20 @@ export default class Utils { ...@@ -216,7 +216,20 @@ export default class Utils {
Utils.copyValueFromVO(this.model, data) Utils.copyValueFromVO(this.model, data)
callback() callback()
} }
}) })
} }
static reflectCheck(key){
return async function(rule, value, callback){
//调用具体的check
const res = await this.exeuteCheck(key)
if (res.respCode == SUCCESS){
if (Object.hasOwnProperty.call(res.fieldErrors, key)) {
callback(res.fieldErrors[key])
} else {
callback();
}
}
}
}
} }
\ No newline at end of file
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
<el-col :span="22" style="margin-bottom: 18px" :offset="1"> <el-col :span="22" style="margin-bottom: 18px" :offset="1">
<c-table <c-table
style="text-align: center" style="text-align: center"
:list="data" :list="model.setmod.setfeg.setfel"
:paginationShow="false" :paginationShow="false"
:border="true" :border="true"
> >
......
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