Commit 73c69653 by denyu

reject

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