Commit 73c69653 by denyu

reject

parent c3644195
...@@ -173,10 +173,13 @@ export default { ...@@ -173,10 +173,13 @@ export default {
}) })
}, },
onRejrow() { onRejrow() {
console.log(this.getSelectedData())
this.model.trncorco.selinr['rows'] = this.getSelectedData();
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if (!valid) // if (!valid)
return; // return;
let rtnmsg = await Api.post("trnrel/rejrow", Utils.flatObject(this.model)) let rtnmsg = await Api.post("trnrel/executeRule/rejrow", Utils.flatObject(this.model))
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
......
...@@ -93,11 +93,6 @@ export default { ...@@ -93,11 +93,6 @@ export default {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"recpan.atp.cod":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"trn.reloricur":[ "trn.reloricur":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
......
...@@ -9,7 +9,7 @@ export default class Trnrel{ ...@@ -9,7 +9,7 @@ export default class Trnrel{
inidattil:"", // Date of entry of Transaction until .trncorco.inidattil inidattil:"", // Date of entry of Transaction until .trncorco.inidattil
trnstm:"", // List of transaction sfor display .trncorco.trnstm trnstm:"", // List of transaction sfor display .trncorco.trnstm
dflg:"", // 国内证标志 .trncorco.dflg dflg:"", // 国内证标志 .trncorco.dflg
selinr: "" selinr: {},
}, },
atp:{ atp:{
cod:"", // Transaction Type .atp.cod cod:"", // Transaction Type .atp.cod
......
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<c-button size="small" type="primary" disabled="disabled" @click="onReprow"> <c-button size="small" type="primary" disabled="disabled" @click="onReprow">
Repair Repair
</c-button> </c-button>
<c-button size="small" type="primary" disabled="disabled" @click="onRejrow"> <c-button size="small" type="primary" :disabled="relrowDisabled" @click="onRejrow">
Reject Reject
</c-button> </c-button>
<c-button size="small" type="primary" @click="onExi"> <c-button size="small" type="primary" @click="onExi">
...@@ -283,6 +283,9 @@ export default { ...@@ -283,6 +283,9 @@ export default {
this.relrowDisabled = !(val.length > 0); this.relrowDisabled = !(val.length > 0);
this.multipleSelection = val; this.multipleSelection = val;
}, },
getSelectedData() {
return this.multipleSelection.map(idx => this.stmData.data[idx])
},
...Event ...Event
}, },
created:function(){ created:function(){
......
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