Commit af947ea2 by 潘际乾

Event.js的请求方式修改

parent 4b48e871
import Api from "~/service/Api" import Api from "~/service/Api"
export default { export default {
onCptpGetref(){ async onCptpGetref() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("cptp_getref")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("cptadv/cptp_getref",{data:this.model})
if(rtnmsg.retcod == SUCCESS) }
{ else {
//TODO 处理数据逻辑 this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} },
else async onCptpGetinf() {
{ let rtnmsg = await this.executeRule("cptp_getinf")
this.$notify.error({title: '错误',message: '服务请求失败!'}); if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
})
}, }
onCptpGetinf(){ else {
this.root.$refs.modelForm.validate(async valid => { this.$notify.error({ title: '错误', message: '服务请求失败!' });
if(!valid) }
return; },
let rtnmsg = await Api.post("cptadv/cptp_getinf",{data:this.model}) async onCptpGetuetr() {
if(rtnmsg.retcod == SUCCESS) let rtnmsg = await this.executeRule("cptp_getuetr")
{ if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}) async onCptpSelbut() {
}, let rtnmsg = await this.executeRule("cptp_selbut")
onCptpGetuetr(){ if (rtnmsg.retcod == SUCCESS) {
this.root.$refs.modelForm.validate(async valid => { //TODO 处理数据逻辑
if(!valid)
return; }
let rtnmsg = await Api.post("cptadv/cptp_getuetr",{data:this.model}) else {
if(rtnmsg.retcod == SUCCESS) this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
//TODO 处理数据逻辑 },
async onCptpSelbut1() {
} let rtnmsg = await this.executeRule("cptp_selbut1")
else if (rtnmsg.retcod == SUCCESS) {
{ //TODO 处理数据逻辑
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}) else {
}, this.$notify.error({ title: '错误', message: '服务请求失败!' });
onCptpSelbut(){ }
this.root.$refs.modelForm.validate(async valid => { },
if(!valid) async onSndpDet() {
return; let rtnmsg = await this.executeRule("sndp_det")
let rtnmsg = await Api.post("cptadv/cptp_selbut",{data:this.model}) if (rtnmsg.retcod == SUCCESS) {
if(rtnmsg.retcod == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑 }
else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
else }
{ },
this.$notify.error({title: '错误',message: '服务请求失败!'}); async onOripDet() {
} let rtnmsg = await this.executeRule("orip_det")
}) if (rtnmsg.retcod == SUCCESS) {
}, //TODO 处理数据逻辑
onCptpSelbut1(){
this.root.$refs.modelForm.validate(async valid => { }
if(!valid) else {
return; this.$notify.error({ title: '错误', message: '服务请求失败!' });
let rtnmsg = await Api.post("cptadv/cptp_selbut1",{data:this.model}) }
if(rtnmsg.retcod == SUCCESS) },
{ async onCptpGetmod() {
//TODO 处理数据逻辑 let rtnmsg = await this.executeRule("cptp_getmod")
if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
else
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
}) }
}, },
onSndpDet(){ async onOrcpDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("orcp_det")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("cptadv/sndp_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS) }
{ else {
//TODO 处理数据逻辑 this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} },
else async onPyepDet() {
{ let rtnmsg = await this.executeRule("pyep_det")
this.$notify.error({title: '错误',message: '服务请求失败!'}); if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
})
}, }
onOripDet(){ else {
this.root.$refs.modelForm.validate(async valid => { this.$notify.error({ title: '错误', message: '服务请求失败!' });
if(!valid) }
return; },
let rtnmsg = await Api.post("cptadv/orip_det",{data:this.model}) async onCptpSerpty() {
if(rtnmsg.retcod == SUCCESS) let rtnmsg = await this.executeRule("cptp_serpty")
{ if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}) async onSetmodDet() {
}, let rtnmsg = await this.executeRule("setmod_det")
onCptpGetmod(){ if (rtnmsg.retcod == SUCCESS) {
this.root.$refs.modelForm.validate(async valid => { //TODO 处理数据逻辑
if(!valid)
return; }
let rtnmsg = await Api.post("cptadv/cptp_getmod",{data:this.model}) else {
if(rtnmsg.retcod == SUCCESS) this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
//TODO 处理数据逻辑 },
async onTrndocButshw() {
} let rtnmsg = await this.executeRule("trndoc_butshw")
else if (rtnmsg.retcod == SUCCESS) {
{ //TODO 处理数据逻辑
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}) else {
}, this.$notify.error({ title: '错误', message: '服务请求失败!' });
onOrcpDet(){ }
this.root.$refs.modelForm.validate(async valid => { },
if(!valid) async onTrndocButadd() {
return; let rtnmsg = await this.executeRule("trndoc_butadd")
let rtnmsg = await Api.post("cptadv/orcp_det",{data:this.model}) if (rtnmsg.retcod == SUCCESS) {
if(rtnmsg.retcod == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑 }
else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
else }
{ },
this.$notify.error({title: '错误',message: '服务请求失败!'}); async onTrndocButnew() {
} let rtnmsg = await this.executeRule("trndoc_butnew")
}) if (rtnmsg.retcod == SUCCESS) {
}, //TODO 处理数据逻辑
onPyepDet(){
this.root.$refs.modelForm.validate(async valid => { }
if(!valid) else {
return; this.$notify.error({ title: '错误', message: '服务请求失败!' });
let rtnmsg = await Api.post("cptadv/pyep_det",{data:this.model}) }
if(rtnmsg.retcod == SUCCESS) },
{ async onTrndocButattto() {
//TODO 处理数据逻辑 let rtnmsg = await this.executeRule("trndoc_butattto")
if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
else
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
}) }
}, },
onCptpSerpty(){ async onTrndocButdel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butdel")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("cptadv/cptp_serpty",{data:this.model})
if(rtnmsg.retcod == SUCCESS) }
{ else {
//TODO 处理数据逻辑 this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} },
else async onTrndocButatt() {
{ let rtnmsg = await this.executeRule("trndoc_butatt")
this.$notify.error({title: '错误',message: '服务请求失败!'}); if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
})
}, }
onSetmodDet(){ else {
this.root.$refs.modelForm.validate(async valid => { this.$notify.error({ title: '错误', message: '服务请求失败!' });
if(!valid) }
return; },
let rtnmsg = await Api.post("cptadv/setmod_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButshw(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("cptadv/trndoc_butshw",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButadd(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("cptadv/trndoc_butadd",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButnew(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("cptadv/trndoc_butnew",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButattto(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("cptadv/trndoc_butattto",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButdel(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("cptadv/trndoc_butdel",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButatt(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("cptadv/trndoc_butatt",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
export default { export default {
onCptpGetref(){ onCptpGetref() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("cptp_getref")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("cptopn/cptp_getref",{data:this.model})
if(rtnmsg.retcod == SUCCESS) }
{ else {
//TODO 处理数据逻辑 this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} },
else onCptpGetinf() {
{ let rtnmsg = await this.executeRule("cptp_getinf")
this.$notify.error({title: '错误',message: '服务请求失败!'}); if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
})
}, }
onCptpGetinf(){ else {
this.root.$refs.modelForm.validate(async valid => { this.$notify.error({ title: '错误', message: '服务请求失败!' });
if(!valid) }
return; },
let rtnmsg = await Api.post("cptopn/cptp_getinf",{data:this.model}) onCptpGetuetr() {
if(rtnmsg.retcod == SUCCESS) let rtnmsg = await this.executeRule("cptp_getuetr")
{ if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}) onCptpSelbut() {
}, let rtnmsg = await this.executeRule("cptp_selbut")
onCptpGetuetr(){ if (rtnmsg.retcod == SUCCESS) {
this.root.$refs.modelForm.validate(async valid => { //TODO 处理数据逻辑
if(!valid)
return; }
let rtnmsg = await Api.post("cptopn/cptp_getuetr",{data:this.model}) else {
if(rtnmsg.retcod == SUCCESS) this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
//TODO 处理数据逻辑 },
onCptpSelbut1() {
} let rtnmsg = await this.executeRule("cptp_selbut1")
else if (rtnmsg.retcod == SUCCESS) {
{ //TODO 处理数据逻辑
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}) else {
}, this.$notify.error({ title: '错误', message: '服务请求失败!' });
onCptpSelbut(){ }
this.root.$refs.modelForm.validate(async valid => { },
if(!valid) onSndpDet() {
return; let rtnmsg = await this.executeRule("sndp_det")
let rtnmsg = await Api.post("cptopn/cptp_selbut",{data:this.model}) if (rtnmsg.retcod == SUCCESS) {
if(rtnmsg.retcod == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑 }
else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
else }
{ },
this.$notify.error({title: '错误',message: '服务请求失败!'}); onOripDet() {
} let rtnmsg = await this.executeRule("orip_det")
}) if (rtnmsg.retcod == SUCCESS) {
}, //TODO 处理数据逻辑
onCptpSelbut1(){
this.root.$refs.modelForm.validate(async valid => { }
if(!valid) else {
return; this.$notify.error({ title: '错误', message: '服务请求失败!' });
let rtnmsg = await Api.post("cptopn/cptp_selbut1",{data:this.model}) }
if(rtnmsg.retcod == SUCCESS) },
{ onCptpGetmod() {
//TODO 处理数据逻辑 let rtnmsg = await this.executeRule("cptp_getmod")
if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
else
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
}) }
}, },
onSndpDet(){ onOrcpDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("orcp_det")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("cptopn/sndp_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS) }
{ else {
//TODO 处理数据逻辑 this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} },
else onPyepDet() {
{ let rtnmsg = await this.executeRule("pyep_det")
this.$notify.error({title: '错误',message: '服务请求失败!'}); if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
})
}, }
onOripDet(){ else {
this.root.$refs.modelForm.validate(async valid => { this.$notify.error({ title: '错误', message: '服务请求失败!' });
if(!valid) }
return; },
let rtnmsg = await Api.post("cptopn/orip_det",{data:this.model}) onCptpSerpty() {
if(rtnmsg.retcod == SUCCESS) let rtnmsg = await this.executeRule("cptp_serpty")
{ if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}) onSetmodDet() {
}, let rtnmsg = await this.executeRule("setmod_det")
onCptpGetmod(){ if (rtnmsg.retcod == SUCCESS) {
this.root.$refs.modelForm.validate(async valid => { //TODO 处理数据逻辑
if(!valid)
return; }
let rtnmsg = await Api.post("cptopn/cptp_getmod",{data:this.model}) else {
if(rtnmsg.retcod == SUCCESS) this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
//TODO 处理数据逻辑 },
onTrndocButshw() {
} let rtnmsg = await this.executeRule("trndoc_butshw")
else if (rtnmsg.retcod == SUCCESS) {
{ //TODO 处理数据逻辑
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}) else {
}, this.$notify.error({ title: '错误', message: '服务请求失败!' });
onOrcpDet(){ }
this.root.$refs.modelForm.validate(async valid => { },
if(!valid) onTrndocButadd() {
return; let rtnmsg = await this.executeRule("trndoc_butadd")
let rtnmsg = await Api.post("cptopn/orcp_det",{data:this.model}) if (rtnmsg.retcod == SUCCESS) {
if(rtnmsg.retcod == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑 }
else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
else }
{ },
this.$notify.error({title: '错误',message: '服务请求失败!'}); onTrndocButnew() {
} let rtnmsg = await this.executeRule("trndoc_butnew")
}) if (rtnmsg.retcod == SUCCESS) {
}, //TODO 处理数据逻辑
onPyepDet(){
this.root.$refs.modelForm.validate(async valid => { }
if(!valid) else {
return; this.$notify.error({ title: '错误', message: '服务请求失败!' });
let rtnmsg = await Api.post("cptopn/pyep_det",{data:this.model}) }
if(rtnmsg.retcod == SUCCESS) },
{ onTrndocButattto() {
//TODO 处理数据逻辑 let rtnmsg = await this.executeRule("trndoc_butattto")
if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
else
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
}) }
}, },
onCptpSerpty(){ onTrndocButdel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butdel")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("cptopn/cptp_serpty",{data:this.model})
if(rtnmsg.retcod == SUCCESS) }
{ else {
//TODO 处理数据逻辑 this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} },
else onTrndocButatt() {
{ let rtnmsg = await this.executeRule("trndoc_butatt")
this.$notify.error({title: '错误',message: '服务请求失败!'}); if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
})
}, }
onSetmodDet(){ else {
this.root.$refs.modelForm.validate(async valid => { this.$notify.error({ title: '错误', message: '服务请求失败!' });
if(!valid) }
return; },
let rtnmsg = await Api.post("cptopn/setmod_det",{data:this.model}) onSeainf() {
if(rtnmsg.retcod == SUCCESS)
{ },
//TODO 处理数据逻辑 onFippDet() {
let rtnmsg = await this.executeRule("fipp_det")
} if (rtnmsg.retcod == SUCCESS) {
else //TODO 处理数据逻辑
{
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} else {
}) this.$notify.error({ title: '错误', message: '服务请求失败!' });
}, }
onTrndocButshw(){ },
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("cptopn/trndoc_butshw",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButadd(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("cptopn/trndoc_butadd",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButnew(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("cptopn/trndoc_butnew",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButattto(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("cptopn/trndoc_butattto",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButdel(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("cptopn/trndoc_butdel",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButatt(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("cptopn/trndoc_butatt",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onSeainf() {
},
onFippDet(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("cptopn/fipp_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
export default { export default {
onDitpButgetref(){ async onDitpButgetref() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("ditp_butgetref")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditame/ditp_butgetref",{data:this.model})
if(rtnmsg.retcod == SUCCESS) }
{ else {
//TODO 处理数据逻辑 this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} },
else async onAplpDet() {
{ let rtnmsg = await this.executeRule("aplp_det")
this.$notify.error({title: '错误',message: '服务请求失败!'}); if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
})
}, }
onAplpDet(){ else {
this.root.$refs.modelForm.validate(async valid => { this.$notify.error({ title: '错误', message: '服务请求失败!' });
if(!valid) }
return; },
let rtnmsg = await Api.post("ditame/aplp_det",{data:this.model}) async onBenpDet() {
if(rtnmsg.retcod == SUCCESS) let rtnmsg = await this.executeRule("benp_det")
{ if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}) async onDefdetButtxmsel() {
}, let rtnmsg = await this.executeRule("defdet_buttxmsel")
onBenpDet(){ if (rtnmsg.retcod == SUCCESS) {
this.root.$refs.modelForm.validate(async valid => { //TODO 处理数据逻辑
if(!valid)
return; }
let rtnmsg = await Api.post("ditame/benp_det",{data:this.model}) else {
if(rtnmsg.retcod == SUCCESS) this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
//TODO 处理数据逻辑 },
async onPreperButtxmsel() {
} let rtnmsg = await this.executeRule("preper_buttxmsel")
else if (rtnmsg.retcod == SUCCESS) {
{ //TODO 处理数据逻辑
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}) else {
}, this.$notify.error({ title: '错误', message: '服务请求失败!' });
onDefdetButtxmsel(){ }
this.root.$refs.modelForm.validate(async valid => { },
if(!valid) async onLcrgodButtxmsel() {
return; let rtnmsg = await this.executeRule("lcrgod_buttxmsel")
let rtnmsg = await Api.post("ditame/defdet_buttxmsel",{data:this.model}) if (rtnmsg.retcod == SUCCESS) {
if(rtnmsg.retcod == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑 }
else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
else }
{ },
this.$notify.error({title: '错误',message: '服务请求失败!'}); async onLcrdocButtxmsel() {
} let rtnmsg = await this.executeRule("lcrdoc_buttxmsel")
}) if (rtnmsg.retcod == SUCCESS) {
}, //TODO 处理数据逻辑
onPreperButtxmsel(){
this.root.$refs.modelForm.validate(async valid => { }
if(!valid) else {
return; this.$notify.error({ title: '错误', message: '服务请求失败!' });
let rtnmsg = await Api.post("ditame/preper_buttxmsel",{data:this.model}) }
if(rtnmsg.retcod == SUCCESS) },
{ async onAdlcndButtxmsel() {
//TODO 处理数据逻辑 let rtnmsg = await this.executeRule("adlcnd_buttxmsel")
if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
else
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
}) }
}, },
onLcrgodButtxmsel(){ async onInsbnkButtxmsel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("insbnk_buttxmsel")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditame/lcrgod_buttxmsel",{data:this.model})
if(rtnmsg.retcod == SUCCESS) }
{ else {
//TODO 处理数据逻辑 this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} },
else async onSav() {
{ let rtnmsg = await this.executeRule("sav")
this.$notify.error({title: '错误',message: '服务请求失败!'}); if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
})
}, }
onLcrdocButtxmsel(){ else {
this.root.$refs.modelForm.validate(async valid => { this.$notify.error({ title: '错误', message: '服务请求失败!' });
if(!valid) }
return; },
let rtnmsg = await Api.post("ditame/lcrdoc_buttxmsel",{data:this.model}) async onUsrcon() {
if(rtnmsg.retcod == SUCCESS) let rtnmsg = await this.executeRule("usrcon")
{ if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}) async onChk() {
}, let rtnmsg = await this.executeRule("chk")
onAdlcndButtxmsel(){ if (rtnmsg.retcod == SUCCESS) {
this.root.$refs.modelForm.validate(async valid => { //TODO 处理数据逻辑
if(!valid)
return; }
let rtnmsg = await Api.post("ditame/adlcnd_buttxmsel",{data:this.model}) else {
if(rtnmsg.retcod == SUCCESS) this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
//TODO 处理数据逻辑 },
async onUsrchk() {
} let rtnmsg = await this.executeRule("usrchk")
else if (rtnmsg.retcod == SUCCESS) {
{ //TODO 处理数据逻辑
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}) else {
}, this.$notify.error({ title: '错误', message: '服务请求失败!' });
onInsbnkButtxmsel(){ }
this.root.$refs.modelForm.validate(async valid => { },
if(!valid) async onSyswrnButshw() {
return; let rtnmsg = await this.executeRule("syswrn_butshw")
let rtnmsg = await Api.post("ditame/insbnk_buttxmsel",{data:this.model}) if (rtnmsg.retcod == SUCCESS) {
if(rtnmsg.retcod == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑 }
else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
else }
{ },
this.$notify.error({title: '错误',message: '服务请求失败!'}); async onPen() {
} let rtnmsg = await this.executeRule("pen")
}) if (rtnmsg.retcod == SUCCESS) {
}, //TODO 处理数据逻辑
onSav(){
this.root.$refs.modelForm.validate(async valid => { }
if(!valid) else {
return; this.$notify.error({ title: '错误', message: '服务请求失败!' });
let rtnmsg = await Api.post("ditame/sav",{data:this.model}) }
if(rtnmsg.retcod == SUCCESS) },
{ async onCan() {
//TODO 处理数据逻辑 let rtnmsg = await this.executeRule("can")
if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
else
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
}) }
}, },
onUsrcon(){ async onLcrgodameButtxmsel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("lcrgodame_buttxmsel")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditame/usrcon",{data:this.model})
if(rtnmsg.retcod == SUCCESS) }
{ else {
//TODO 处理数据逻辑 this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} },
else async onLcrdocameButtxmsel() {
{ let rtnmsg = await this.executeRule("lcrdocame_buttxmsel")
this.$notify.error({title: '错误',message: '服务请求失败!'}); if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
})
}, }
onChk(){ else {
this.root.$refs.modelForm.validate(async valid => { this.$notify.error({ title: '错误', message: '服务请求失败!' });
if(!valid) }
return; },
let rtnmsg = await Api.post("ditame/chk",{data:this.model}) async onAdlcndameButtxmsel() {
if(rtnmsg.retcod == SUCCESS) let rtnmsg = await this.executeRule("adlcndame_buttxmsel")
{ if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}) async onLiaallButmisamt() {
}, let rtnmsg = await this.executeRule("liaall_butmisamt")
onUsrchk(){ if (rtnmsg.retcod == SUCCESS) {
this.root.$refs.modelForm.validate(async valid => { //TODO 处理数据逻辑
if(!valid)
return; }
let rtnmsg = await Api.post("ditame/usrchk",{data:this.model}) else {
if(rtnmsg.retcod == SUCCESS) this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
//TODO 处理数据逻辑 },
async onLiaallButmissig() {
} let rtnmsg = await this.executeRule("liaall_butmissig")
else if (rtnmsg.retcod == SUCCESS) {
{ //TODO 处理数据逻辑
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}) else {
}, this.$notify.error({ title: '错误', message: '服务请求失败!' });
onSyswrnButshw(){ }
this.root.$refs.modelForm.validate(async valid => { },
if(!valid) async onLiaccvAdd() {
return; let rtnmsg = await this.executeRule("liaccv_add")
let rtnmsg = await Api.post("ditame/syswrn_butshw",{data:this.model}) if (rtnmsg.retcod == SUCCESS) {
if(rtnmsg.retcod == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑 }
else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
else }
{ },
this.$notify.error({title: '错误',message: '服务请求失败!'}); async onLiaccvDel() {
} let rtnmsg = await this.executeRule("liaccv_del")
}) if (rtnmsg.retcod == SUCCESS) {
}, //TODO 处理数据逻辑
onPen(){
this.root.$refs.modelForm.validate(async valid => { }
if(!valid) else {
return; this.$notify.error({ title: '错误', message: '服务请求失败!' });
let rtnmsg = await Api.post("ditame/pen",{data:this.model}) }
if(rtnmsg.retcod == SUCCESS) },
{ async onSetmodDet() {
//TODO 处理数据逻辑 let rtnmsg = await this.executeRule("setmod_det")
if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
else
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
}) }
}, },
onCan(){ async onTrndocButshw() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butshw")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditame/can",{data:this.model})
if(rtnmsg.retcod == SUCCESS) }
{ else {
//TODO 处理数据逻辑 this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} },
else async onTrndocButadd() {
{ let rtnmsg = await this.executeRule("trndoc_butadd")
this.$notify.error({title: '错误',message: '服务请求失败!'}); if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
})
}, }
onLcrgodameButtxmsel(){ else {
this.root.$refs.modelForm.validate(async valid => { this.$notify.error({ title: '错误', message: '服务请求失败!' });
if(!valid) }
return; },
let rtnmsg = await Api.post("ditame/lcrgodame_buttxmsel",{data:this.model}) async onTrndocButnew() {
if(rtnmsg.retcod == SUCCESS) let rtnmsg = await this.executeRule("trndoc_butnew")
{ if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}) async onTrndocButattto() {
}, let rtnmsg = await this.executeRule("trndoc_butattto")
onLcrdocameButtxmsel(){ if (rtnmsg.retcod == SUCCESS) {
this.root.$refs.modelForm.validate(async valid => { //TODO 处理数据逻辑
if(!valid)
return; }
let rtnmsg = await Api.post("ditame/lcrdocame_buttxmsel",{data:this.model}) else {
if(rtnmsg.retcod == SUCCESS) this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
//TODO 处理数据逻辑 },
async onTrndocButdel() {
} let rtnmsg = await this.executeRule("trndoc_butdel")
else if (rtnmsg.retcod == SUCCESS) {
{ //TODO 处理数据逻辑
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}) else {
}, this.$notify.error({ title: '错误', message: '服务请求失败!' });
onAdlcndameButtxmsel(){ }
this.root.$refs.modelForm.validate(async valid => { },
if(!valid) async onTrndocButatt() {
return; let rtnmsg = await this.executeRule("trndoc_butatt")
let rtnmsg = await Api.post("ditame/adlcndame_buttxmsel",{data:this.model}) if (rtnmsg.retcod == SUCCESS) {
if(rtnmsg.retcod == SUCCESS) //TODO 处理数据逻辑
{
//TODO 处理数据逻辑 }
else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
else }
{ },
this.$notify.error({title: '错误',message: '服务请求失败!'}); async onWrkpDet() {
} let rtnmsg = await this.executeRule("wrkp_det")
}) if (rtnmsg.retcod == SUCCESS) {
}, //TODO 处理数据逻辑
onLiaallButmisamt(){
this.root.$refs.modelForm.validate(async valid => { }
if(!valid) else {
return; this.$notify.error({ title: '错误', message: '服务请求失败!' });
let rtnmsg = await Api.post("ditame/liaall_butmisamt",{data:this.model}) }
if(rtnmsg.retcod == SUCCESS) },
{ async onOthpDet() {
//TODO 处理数据逻辑 let rtnmsg = await this.executeRule("othp_det")
if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
else
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); else {
} this.$notify.error({ title: '错误', message: '服务请求失败!' });
}) }
}, },
onLiaallButmissig(){ async onLimptsGet1() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("limpts_get1")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditame/liaall_butmissig",{data:this.model})
if(rtnmsg.retcod == SUCCESS) }
{ else {
//TODO 处理数据逻辑 this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
} },
else async onLimptsGet2() {
{ let rtnmsg = await this.executeRule("limpts_get2")
this.$notify.error({title: '错误',message: '服务请求失败!'}); if (rtnmsg.retcod == SUCCESS) {
} //TODO 处理数据逻辑
})
}, }
onLiaccvAdd(){ else {
this.root.$refs.modelForm.validate(async valid => { this.$notify.error({ title: '错误', message: '服务请求失败!' });
if(!valid) }
return; },
let rtnmsg = await Api.post("ditame/liaccv_add",{data:this.model}) async onLimmodTrycal() {
if(rtnmsg.retcod == SUCCESS) let rtnmsg = await this.executeRule("limmod_trycal")
{ if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
})
},
onLiaccvDel(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("ditame/liaccv_del",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onSetmodDet(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("ditame/setmod_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButshw(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("ditame/trndoc_butshw",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButadd(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("ditame/trndoc_butadd",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButnew(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("ditame/trndoc_butnew",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButattto(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("ditame/trndoc_butattto",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButdel(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("ditame/trndoc_butdel",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onTrndocButatt(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("ditame/trndoc_butatt",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onWrkpDet(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("ditame/wrkp_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onOthpDet(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("ditame/othp_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onLimptsGet1(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("ditame/limpts_get1",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onLimptsGet2(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("ditame/limpts_get2",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onLimmodTrycal(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("ditame/limmod_trycal",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
} }
\ No newline at end of file
...@@ -2,10 +2,10 @@ import Api from "~/service/Api" ...@@ -2,10 +2,10 @@ import Api from "~/service/Api"
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
async onDitpButgetref() { async onDitpButgetref() {
let rtnmsg = await Api.post("ditopn/executeRule/ditp.butgetref", this.wrapper()) let rtnmsg = await this.executeRule("ditp.butgetref")
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.model.didgrp.rec.ownref=rtnmsg.data.didgrp_rec_ownref this.model.didgrp.rec.ownref = rtnmsg.data.didgrp_rec_ownref
this.$message({ this.$message({
type: 'success', type: 'success',
message: '获取成功!' message: '获取成功!'
...@@ -16,7 +16,7 @@ export default { ...@@ -16,7 +16,7 @@ export default {
} }
}, },
async onAplpDet() { async onAplpDet() {
let rtnmsg = await Api.post("ditopn/executeRule/ditp.aplp.det", this.wrapper()) let rtnmsg = await this.executeRule("ditp.aplp.det")
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
// console.log(rtnmsg.data); // console.log(rtnmsg.data);
...@@ -25,285 +25,191 @@ export default { ...@@ -25,285 +25,191 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}, },
onBenpDet() { async onBenpDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("benp_det")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/benp_det", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onRevclauseButtxmsel() { async onRevclauseButtxmsel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("revclause_buttxmsel")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/revclause_buttxmsel", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onLcrgodButtxmsel() { async onLcrgodButtxmsel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("lcrgod_buttxmsel")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/lcrgod_buttxmsel", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onLcrdocButtxmsel() { async onLcrdocButtxmsel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("lcrdoc_buttxmsel")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/lcrdoc_buttxmsel", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onAdlcndButtxmsel() { async onAdlcndButtxmsel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("adlcnd_buttxmsel")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/adlcnd_buttxmsel", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onInsbnkButtxmsel() { async onInsbnkButtxmsel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("insbnk_buttxmsel")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/insbnk_buttxmsel", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onRmbpDet() { async onRmbpDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("rmbp_det")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/rmbp_det", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onDefdetButtxmsel() { async onDefdetButtxmsel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("defdet_buttxmsel")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/defdet_buttxmsel", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onPreperButtxmsel() { async onPreperButtxmsel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("preper_buttxmsel")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/preper_buttxmsel", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onSetmodDet() { async onSetmodDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("setmod_det")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/setmod_det", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onLiaallButmisamt() { async onLiaallButmisamt() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("liaall_butmisamt")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/liaall_butmisamt", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onLiaallButmissig() { async onLiaallButmissig() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("liaall_butmissig")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/liaall_butmissig", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onWrkpDet() { async onWrkpDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("wrkp_det")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/wrkp_det", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onOthpDet() { async onOthpDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("othp_det")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/othp_det", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onLimptsGet1() { async onLimptsGet1() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("limpts_get1")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/limpts_get1", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onLimptsGet2() { async onLimptsGet2() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("limpts_get2")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/limpts_get2", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onLimmodTrycal() { async onLimmodTrycal() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("limmod_trycal")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/limmod_trycal", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
async onLiaccvAdd() { async onLiaccvAdd() {
// this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("liaall.liaccv.add")
// if (!valid)
// return;
// let rtnmsg = await Api.post("ditopn/liaccv_add", this.wrapper())
// if (rtnmsg.respCode == "AAAAAA") {
// //TODO 处理数据逻辑
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
// })
let rtnmsg = await Api.post("ditopn/executeRule/liaall.liaccv.add", this.wrapper())
//const that = this.root; //const that = this.root;
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
debugger; debugger;
this.stmData.data = rtnmsg.data.liaall_liaccv_stgstm.rows; this.stmData.data = rtnmsg.data.liaall_liaccv_stgstm.rows;
this.dialogTableVisible = true; this.dialogTableVisible = true;
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}, },
async onLiaccvDel() { async onLiaccvDel() {
// this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("liaall.liaccv.del")
// if (!valid)
// return;
// let rtnmsg = await Api.post("ditopn/executeRule/liaall.liaccv.del", this.wrapper())
// if (rtnmsg.respCode == "AAAAAA") {
// //TODO 处理数据逻辑
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
// })
let rtnmsg = await Api.post("ditopn/executeRule/liaall.liaccv.del", this.wrapper())
//const that = this.root; //const that = this.root;
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -313,7 +219,7 @@ export default { ...@@ -313,7 +219,7 @@ export default {
message: '删除成功!' message: '删除成功!'
}); });
//this.model.liaall.liaccv.liaccvg = []; //this.model.liaall.liaccv.liaccvg = [];
Utils.copyValueFromVO(this.model,rtnmsg.data); Utils.copyValueFromVO(this.model, rtnmsg.data);
} }
else { else {
...@@ -323,12 +229,12 @@ export default { ...@@ -323,12 +229,12 @@ export default {
onSeainf() { onSeainf() {
}, },
async handleDisplay(index, row){ async handleDisplay(index, row) {
let cortyp = row.cortyp let cortyp = row.cortyp
let rtnmsg let rtnmsg
if (cortyp == 'SWT'|| cortyp == 'FMT' || cortyp == 'CMT') { if (cortyp == 'SWT' || cortyp == 'FMT' || cortyp == 'CMT') {
this.model.setmod.msgmod.doccod = row.id this.model.setmod.msgmod.doccod = row.id
rtnmsg = await Api.post('cptopn/msgmod_butshw', { data: this.wrapper() }) rtnmsg = await Api.post('cptopn/msgmod_butshw', this.wrapper())
} else { } else {
this.model.trnmod.trndoc.doccod = row.id this.model.trnmod.trndoc.doccod = row.id
this.model.trnmod.trndoc.cortyp = cortyp this.model.trnmod.trndoc.cortyp = cortyp
...@@ -339,40 +245,40 @@ export default { ...@@ -339,40 +245,40 @@ export default {
} }
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
if (cortyp == 'SWT' || cortyp == 'FMT' || cortyp == 'CMT') { if (cortyp == 'SWT' || cortyp == 'FMT' || cortyp == 'CMT') {
let viewurl = rtnmsg.data.setmod_msgmod_docpth; let viewurl = rtnmsg.data.setmod_msgmod_docpth;
this.viewurl = viewurl this.viewurl = viewurl
this.title="报文" this.title = "报文"
//window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'); //window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
} }
else if(cortyp == 'ELC') else if (cortyp == 'ELC') {
{ Modal.info({
Modal.info({title:'电证报文',content:<div style={{height:400,overflow:'auto'}}><ELCMessage mty={row.id} message={rtnmsg.data["\\trnmod\\trndoc\\docinf"]}/></div>, title: '电证报文', content: <div style={{ height: 400, overflow: 'auto' }}><ELCMessage mty={row.id} message={rtnmsg.data["\\trnmod\\trndoc\\docinf"]} /></div>,
width:1000, width: 1000,
}) })
} }
else { else {
// let url = rtnmsg.data.trnmod_trndoc_smh_docpth; // let url = rtnmsg.data.trnmod_trndoc_smh_docpth;
this.title = "面函" this.title = "面函"
let viewurl = "/#/docpan/show"; let viewurl = "/#/docpan/show";
let XMLdata; let XMLdata;
if(row.pandsc=="国内信用证"){ if (row.pandsc == "国内信用证") {
window.sessionStorage.docTXT = '' window.sessionStorage.docTXT = ''
window.sessionStorage.docXML = rtnmsg.data.litbenl1blk; window.sessionStorage.docXML = rtnmsg.data.litbenl1blk;
} }
else if(row.pandsc=="开立国内信用证备查表"){ else if (row.pandsc == "开立国内信用证备查表") {
window.sessionStorage.docTXT = '' window.sessionStorage.docTXT = ''
window.sessionStorage.docXML= rtnmsg.data.litapll1blk window.sessionStorage.docXML = rtnmsg.data.litapll1blk
} }
else if(row.pandsc=="elcs.101.001.01"){ else if (row.pandsc == "elcs.101.001.01") {
window.sessionStorage.docXML = '' window.sessionStorage.docXML = ''
window.sessionStorage.docTXT = '' window.sessionStorage.docTXT = ''
rtnmsg.data.trnmod_trndoc_doceot[index].doctxt.rows.forEach(element => { rtnmsg.data.trnmod_trndoc_doceot[index].doctxt.rows.forEach(element => {
window.sessionStorage.docTXT +=element+"\r\n" window.sessionStorage.docTXT += element + "\r\n"
}); });
} }
else if(row.pandsc=="MT799"){ else if (row.pandsc == "MT799") {
window.sessionStorage.docTXT = '' window.sessionStorage.docTXT = ''
XMLdata = rtnmsg.data.litbenl1blk XMLdata = rtnmsg.data.litbenl1blk
} }
...@@ -380,17 +286,17 @@ export default { ...@@ -380,17 +286,17 @@ export default {
// console.log( window.sessionStorage.docXML); // console.log( window.sessionStorage.docXML);
window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'); window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
} }
this.dialogOpen=true this.dialogOpen = true
} }
else { else {
this.$notify.error({title: '错误',message: '服务请求失败!'}) this.$notify.error({ title: '错误', message: '服务请求失败!' })
} }
}, },
async handleDetail(index, row){ async handleDetail(index, row) {
const params = { const params = {
index: index index: index
} }
let rtnmsg = await Api.post("ditopn/executeDocpanDetail", { ...this.wrapper(), params }) let rtnmsg = await Api.post("ditopn/executeDocpanDetail", this.wrapper(params))
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.title = row.pandsc this.title = row.pandsc
...@@ -399,47 +305,46 @@ export default { ...@@ -399,47 +305,46 @@ export default {
this.index = index this.index = index
} }
}, },
async BlurBennam(e){ async BlurBennam(e) {
let rtnmsg = await Api.post("ditopn/executeDefault/ditp.remark", this.wrapper()) let rtnmsg = await this.executeDefault("ditp.remark")
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.model.ditp.remark = rtnmsg.data.ditp_remark this.model.ditp.remark = rtnmsg.data.ditp_remark
} }
}, },
async BlurAplname(e){ async BlurAplname(e) {
let rtnmsg = await Api.post("ditopn/executeDefault/ditp.remark", this.wrapper()) let rtnmsg = await this.executeDefault("ditp.remark")
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.model.ditp.remark = rtnmsg.data.ditp_remark this.model.ditp.remark = rtnmsg.data.ditp_remark
} }
}, },
async BlurSignam(e){ async BlurSignam(e) {
let rtnmsg = await Api.post("ditopn/executeDefault/ditp.remark", this.wrapper()) let rtnmsg = await this.executeDefault("ditp.remark")
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.model.ditp.remark = rtnmsg.data.ditp_remark this.model.ditp.remark = rtnmsg.data.ditp_remark
} }
}, },
async onExtkey(e){ async onExtkey(e) {
}, },
async pickDepItem(row){ async pickDepItem(row) {
debugger; debugger;
var params = {'selsptinr':row[0]}; var params = { 'selsptinr': row[0] };
//{params:{'selsptinr':row[0]}} //{params:{'selsptinr':row[0]}}
let rtnmsg = await Api.post("ditopn/executeRule/liaall.liaccv.add",{...Utils.flatObject(this.model),params}) let rtnmsg = await this.executeRule("liaall.liaccv.add", { params })
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
this.dialogTableVisible = false; this.dialogTableVisible = false;
Utils.copyValueFromVO(this.model,rtnmsg.data); Utils.copyValueFromVO(this.model, rtnmsg.data);
} }
}, },
// didgrp.iss.pts.extkey // didgrp.iss.pts.extkey
async changeExtkey( ){ async changeExtkey() {
let rtnmsg = await this.executeRule("didgrp.iss.pts.extkey")
let rtnmsg = await Api.post("ditopn/executeRule/didgrp.iss.pts.extkey",{...this.wrapper()})
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
Utils.copyValueFromVO(this.model,rtnmsg.data); Utils.copyValueFromVO(this.model, rtnmsg.data);
} }
} }
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
export default { export default {
onInfbutSearow(){ async onInfbutSearow() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("infbut_searow")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("infpta/infbut_searow",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}) async onInfbutDsp() {
}, let rtnmsg = await this.executeRule("infbut_dsp")
onInfbutDsp(){ if (rtnmsg.retcod == SUCCESS) {
this.root.$refs.modelForm.validate(async valid => { //TODO 处理数据逻辑
if(!valid)
return;
let rtnmsg = await Api.post("infpta/infbut_dsp",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}) async onInfbutUserow() {
}, let rtnmsg = await this.executeRule("infbut_userow")
onInfbutUserow(){ if (rtnmsg.retcod == SUCCESS) {
this.root.$refs.modelForm.validate(async valid => { //TODO 处理数据逻辑
if(!valid)
return;
let rtnmsg = await Api.post("infpta/infbut_userow",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}) async onInfbutClr() {
}, let rtnmsg = await this.executeRule("infbut_clr")
onInfbutClr(){ if (rtnmsg.retcod == SUCCESS) {
this.root.$refs.modelForm.validate(async valid => { //TODO 处理数据逻辑
if(!valid)
return;
let rtnmsg = await Api.post("infpta/infbut_clr",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}) async onInfbutButprt() {
}, let rtnmsg = await this.executeRule("infbut_butprt")
onInfbutButprt(){ if (rtnmsg.retcod == SUCCESS) {
this.root.$refs.modelForm.validate(async valid => { //TODO 处理数据逻辑
if(!valid)
return;
let rtnmsg = await Api.post("infpta/infbut_butprt",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}) async onInfbutExi() {
}, let rtnmsg = await this.executeRule("infbut_exi")
onInfbutExi(){ if (rtnmsg.retcod == SUCCESS) {
this.root.$refs.modelForm.validate(async valid => { //TODO 处理数据逻辑
if(!valid)
return;
let rtnmsg = await Api.post("infpta/infbut_exi",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
}) async onRecpanLnkinfptm() {
}, let rtnmsg = await this.executeRule("recpan_lnkinfptm")
onRecpanLnkinfptm(){ if (rtnmsg.retcod == SUCCESS) {
this.root.$refs.modelForm.validate(async valid => { //TODO 处理数据逻辑
if(!valid)
return;
let rtnmsg = await Api.post("infpta/recpan_lnkinfptm",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
})
},
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
onUsfmodShwflt() { async onUsfmodShwflt() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("usfmod_shwflt")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("sptsel/usfmod_shwflt", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onButypt() { async onButypt() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("butypt")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("sptsel/butypt", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onDlmft() { async onDlmft() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("dlmft")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("sptsel/dlmft", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onDlaxq() { async onDlaxq() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("dlaxq")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("sptsel/dlaxq", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onButimg() { async onButimg() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("butimg")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("sptsel/butimg", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
tabClick() { tabClick() {
}, },
async continueEdit(row){ async continueEdit(row) {
//let rtnmsg = await Api.post("sptsel/getPendingData",{params:{'selsptinr':row[0]}}) //let rtnmsg = await Api.post("getPendingData",{params:{'selsptinr':row[0]}})
//if (rtnmsg.respCode == "AAAAAA") { //if (rtnmsg.respCode == "AAAAAA") {
//var cacheFileName = rtnmsg.data.cacheFileName; //var cacheFileName = rtnmsg.data.cacheFileName;
let viewurl ="/business/ditopn?selsptinr="+row[0]; let viewurl = "/business/ditopn?selsptinr=" + row[0];
this.$router.push(viewurl); this.$router.push(viewurl);
//} //}
} }
......
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
onSeaown() { async onSeaown() {
this.root.$refs.modelForm.validate(async valid => { const that = this.root;
if (!valid)
return;
const that = this.root;
that.executeRule("searow").then(res => { that.executeRule("searow").then(res => {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows; that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
this.model.trncorco.trnstm = res.data.trncorco_trnstm; this.model.trncorco.trnstm = res.data.trncorco_trnstm;
}) })
// let rtnmsg = await Api.post("trnrel/executeRule/searow", this.wrapper())
// if (rtnmsg.respCode == "AAAAAA") {
// //TODO 处理数据逻辑
// this.stmData.data = rtnmsg.data.trncorco_trnstm.rows;
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
})
}, },
onSeajbh() { async onSeajbh() {
this.root.$refs.modelForm.validate(async valid => { const that = this.root;
if (!valid)
return;
const that = this.root;
that.executeRule("seajbh").then(res => { that.executeRule("seajbh").then(res => {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows; that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
}) })
})
}, },
onSeactr() { async onSeactr() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("seactr")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/seactr", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -44,14 +25,9 @@ export default { ...@@ -44,14 +25,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onSearow() { async onSearow() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("searow")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/searow", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -59,13 +35,9 @@ export default { ...@@ -59,13 +35,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onDsp() { async onDsp() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("dsp")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/dsp", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -73,27 +45,19 @@ export default { ...@@ -73,27 +45,19 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onImgmodNewimg() { async onImgmodNewimg() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("imgmod_newimg")
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("trnrel/imgmod_newimg", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onImgmodNewhisimg() { async onImgmodNewhisimg() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("imgmod_newhisimg")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/imgmod_newhisimg", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -101,13 +65,9 @@ export default { ...@@ -101,13 +65,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onDiaconButdia() { async onDiaconButdia() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("diacon_butdia")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/diacon_butdia", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -115,13 +75,9 @@ export default { ...@@ -115,13 +75,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onImgmodHisimg() { async onImgmodHisimg() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("imgmod_hisimg")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/imgmod_hisimg", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -129,34 +85,28 @@ export default { ...@@ -129,34 +85,28 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onRelrow() { async onRelrow() {
const that = this const that = this
that.root.$refs.modelForm.validate(async valid => { that.model.trncorco.selinr = {
if (!valid) "rows": that.multipleSelection.map(idx => that.model.trncorco.trnstm.rows[idx])
return; }
that.model.trncorco.selinr = { let rtnmsg = await this.executeRule("relrow")
"rows": that.multipleSelection.map(idx => that.model.trncorco.trnstm.rows[idx]) if (rtnmsg.respCode == "AAAAAA") {
} //TODO 处理数据逻辑
const data = this.wrapper()
let rtnmsg = await Api.post("/trnrel/executeRule/relrow", data)
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
this.$message({ this.$message({
type: 'success', type: 'success',
message: 'Release成功!' message: 'Release成功!'
}); });
await this.sleep(2000); await this.sleep(2000);
this.$router.go(0); this.$router.go(0);
}
else { }
that.$notify.error({ title: '错误', message: '服务请求失败!' }); else {
} that.$notify.error({ title: '错误', message: '服务请求失败!' });
}) }
}, },
sleep (ms) { sleep (ms) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
...@@ -165,11 +115,8 @@ export default { ...@@ -165,11 +115,8 @@ export default {
}, ms) }, ms)
}) })
}, },
onPrinte() { async onPrinte() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("printe")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/printe", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -177,13 +124,9 @@ export default { ...@@ -177,13 +124,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onReprow() { async onReprow() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("reprow")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/reprow", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -191,15 +134,11 @@ export default { ...@@ -191,15 +134,11 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onRejrow() { async onRejrow() {
console.log(this.getSelectedData()) console.log(this.getSelectedData())
this.model.trncorco.selinr['rows'] = this.getSelectedData(); this.model.trncorco.selinr['rows'] = this.getSelectedData();
this.root.$refs.modelForm.validate(async valid => {
// if (!valid)
// return;
let rtnmsg = await Api.post("trnrel/rejrow", this.wrapper()) let rtnmsg = await Api.post("trnrel/rejrow", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -225,13 +164,9 @@ export default { ...@@ -225,13 +164,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onRelcor() { async onRelcor() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("relcor")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/relcor", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -239,13 +174,9 @@ export default { ...@@ -239,13 +174,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onExi() { async onExi() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("exi")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/exi", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -253,14 +184,10 @@ export default { ...@@ -253,14 +184,10 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onRecpanDet() { async onRecpanDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("recpan_det")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/recpan_det", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -268,13 +195,9 @@ export default { ...@@ -268,13 +195,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onSyswrnButshw() { async onSyswrnButshw() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("syswrn_butshw")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/syswrn_butshw", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -282,13 +205,9 @@ export default { ...@@ -282,13 +205,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onRecpanNotmap() { async onRecpanNotmap() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("recpan_notmap")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/recpan_notmap", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -296,13 +215,9 @@ export default { ...@@ -296,13 +215,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onRecpanButspt() { async onRecpanButspt() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("recpan_butspt")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/recpan_butspt", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -310,13 +225,9 @@ export default { ...@@ -310,13 +225,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onRecpanInc() { async onRecpanInc() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("recpan_inc")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/recpan_inc", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -324,13 +235,9 @@ export default { ...@@ -324,13 +235,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onRecpanButord() { async onRecpanButord() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("recpan_butord")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/recpan_butord", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -338,13 +245,9 @@ export default { ...@@ -338,13 +245,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onImgmodImage() { async onImgmodImage() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("imgmod_image")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/imgmod_image", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -352,13 +255,9 @@ export default { ...@@ -352,13 +255,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onRecpanIncben() { async onRecpanIncben() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("recpan_incben")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/recpan_incben", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -366,13 +265,9 @@ export default { ...@@ -366,13 +265,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onInftxtButtxmsel() { async onInftxtButtxmsel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("inftxt_buttxmsel")
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/inftxt_buttxmsel", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -380,7 +275,6 @@ export default { ...@@ -380,7 +275,6 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onSeainf() { onSeainf() {
......
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