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;
let rtnmsg = await Api.post("cptadv/cptp_getref",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onCptpGetinf(){ async onCptpGetinf() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("cptp_getinf")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/cptp_getinf",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onCptpGetuetr(){ async onCptpGetuetr() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("cptp_getuetr")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/cptp_getuetr",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onCptpSelbut(){ async onCptpSelbut() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("cptp_selbut")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/cptp_selbut",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onCptpSelbut1(){ async onCptpSelbut1() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("cptp_selbut1")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/cptp_selbut1",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onSndpDet(){ async onSndpDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("sndp_det")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/sndp_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onOripDet(){ async onOripDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("orip_det")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/orip_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onCptpGetmod(){ async onCptpGetmod() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("cptp_getmod")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/cptp_getmod",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onOrcpDet(){ async onOrcpDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("orcp_det")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/orcp_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onPyepDet(){ async onPyepDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("pyep_det")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/pyep_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onCptpSerpty(){ async onCptpSerpty() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("cptp_serpty")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/cptp_serpty",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/setmod_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButshw(){ async onTrndocButshw() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butshw")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/trndoc_butshw",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButadd(){ async onTrndocButadd() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butadd")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/trndoc_butadd",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButnew(){ async onTrndocButnew() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butnew")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/trndoc_butnew",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButattto(){ async onTrndocButattto() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butattto")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/trndoc_butattto",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButdel(){ async onTrndocButdel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butdel")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/trndoc_butdel",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButatt(){ async onTrndocButatt() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butatt")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptadv/trndoc_butatt",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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"
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;
let rtnmsg = await Api.post("cptopn/cptp_getref",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onCptpGetinf(){ onCptpGetinf() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("cptp_getinf")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/cptp_getinf",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onCptpGetuetr(){ onCptpGetuetr() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("cptp_getuetr")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/cptp_getuetr",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onCptpSelbut(){ onCptpSelbut() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("cptp_selbut")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/cptp_selbut",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onCptpSelbut1(){ onCptpSelbut1() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("cptp_selbut1")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/cptp_selbut1",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onSndpDet(){ onSndpDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("sndp_det")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/sndp_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onOripDet(){ onOripDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("orip_det")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/orip_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onCptpGetmod(){ onCptpGetmod() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("cptp_getmod")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/cptp_getmod",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onOrcpDet(){ onOrcpDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("orcp_det")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/orcp_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onPyepDet(){ onPyepDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("pyep_det")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/pyep_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onCptpSerpty(){ onCptpSerpty() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("cptp_serpty")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/cptp_serpty",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onSetmodDet(){ onSetmodDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("setmod_det")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/setmod_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButshw(){ onTrndocButshw() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butshw")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/trndoc_butshw",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButadd(){ onTrndocButadd() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butadd")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/trndoc_butadd",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButnew(){ onTrndocButnew() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butnew")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/trndoc_butnew",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButattto(){ onTrndocButattto() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butattto")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/trndoc_butattto",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButdel(){ onTrndocButdel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butdel")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/trndoc_butdel",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButatt(){ onTrndocButatt() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butatt")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/trndoc_butatt",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onSeainf() { onSeainf() {
}, },
onFippDet(){ onFippDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("fipp_det")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("cptopn/fipp_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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"
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;
let rtnmsg = await Api.post("ditame/ditp_butgetref",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onAplpDet(){ async onAplpDet() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("aplp_det")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/aplp_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ 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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/benp_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/defdet_buttxmsel",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/preper_buttxmsel",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/lcrgod_buttxmsel",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/lcrdoc_buttxmsel",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/adlcnd_buttxmsel",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/insbnk_buttxmsel",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onSav(){ async onSav() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("sav")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/sav",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onUsrcon(){ async onUsrcon() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("usrcon")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/usrcon",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onChk(){ async onChk() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("chk")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/chk",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onUsrchk(){ async onUsrchk() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("usrchk")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/usrchk",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/syswrn_butshw",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onPen(){ async onPen() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("pen")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/pen",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onCan(){ async onCan() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("can")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/can",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onLcrgodameButtxmsel(){ async onLcrgodameButtxmsel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("lcrgodame_buttxmsel")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/lcrgodame_buttxmsel",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onLcrdocameButtxmsel(){ async onLcrdocameButtxmsel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("lcrdocame_buttxmsel")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/lcrdocame_buttxmsel",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onAdlcndameButtxmsel(){ async onAdlcndameButtxmsel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("adlcndame_buttxmsel")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/adlcndame_buttxmsel",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/liaall_butmisamt",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/liaall_butmissig",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onLiaccvAdd(){ async onLiaccvAdd() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("liaccv_add")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/liaccv_add",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onLiaccvDel(){ async onLiaccvDel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("liaccv_del")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/liaccv_del",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/setmod_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButshw(){ async onTrndocButshw() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butshw")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/trndoc_butshw",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButadd(){ async onTrndocButadd() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butadd")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/trndoc_butadd",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButnew(){ async onTrndocButnew() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butnew")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/trndoc_butnew",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButattto(){ async onTrndocButattto() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butattto")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/trndoc_butattto",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButdel(){ async onTrndocButdel() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butdel")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/trndoc_butdel",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onTrndocButatt(){ async onTrndocButatt() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("trndoc_butatt")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/trndoc_butatt",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/wrkp_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/othp_det",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/limpts_get1",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/limpts_get2",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("ditame/limmod_trycal",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
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,11 +25,8 @@ export default { ...@@ -25,11 +25,8 @@ 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)
return;
let rtnmsg = await Api.post("ditopn/benp_det", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -37,13 +34,9 @@ export default { ...@@ -37,13 +34,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/revclause_buttxmsel", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -51,13 +44,9 @@ export default { ...@@ -51,13 +44,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/lcrgod_buttxmsel", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -65,13 +54,9 @@ export default { ...@@ -65,13 +54,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/lcrdoc_buttxmsel", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -79,13 +64,9 @@ export default { ...@@ -79,13 +64,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/adlcnd_buttxmsel", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -93,13 +74,9 @@ export default { ...@@ -93,13 +74,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/insbnk_buttxmsel", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -107,13 +84,9 @@ export default { ...@@ -107,13 +84,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/rmbp_det", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -121,13 +94,9 @@ export default { ...@@ -121,13 +94,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/defdet_buttxmsel", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -135,13 +104,9 @@ export default { ...@@ -135,13 +104,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/preper_buttxmsel", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -149,13 +114,9 @@ export default { ...@@ -149,13 +114,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/setmod_det", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -163,13 +124,9 @@ export default { ...@@ -163,13 +124,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/liaall_butmisamt", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -177,13 +134,9 @@ export default { ...@@ -177,13 +134,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/liaall_butmissig", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -191,13 +144,9 @@ export default { ...@@ -191,13 +144,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/wrkp_det", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -205,13 +154,9 @@ export default { ...@@ -205,13 +154,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/othp_det", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -219,13 +164,9 @@ export default { ...@@ -219,13 +164,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/limpts_get1", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -233,13 +174,9 @@ export default { ...@@ -233,13 +174,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/limpts_get2", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -247,13 +184,9 @@ export default { ...@@ -247,13 +184,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("ditopn/limmod_trycal", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -261,49 +194,22 @@ export default { ...@@ -261,49 +194,22 @@ export default {
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
...@@ -341,13 +247,13 @@ export default { ...@@ -341,13 +247,13 @@ export default {
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,
}) })
} }
...@@ -356,23 +262,23 @@ export default { ...@@ -356,23 +262,23 @@ export default {
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,46 +305,45 @@ export default { ...@@ -399,46 +305,45 @@ 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);
} }
} }
......
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;
let rtnmsg = await Api.post("infpta/infbut_searow",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onInfbutDsp(){ async onInfbutDsp() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("infbut_dsp")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("infpta/infbut_dsp",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onInfbutUserow(){ async onInfbutUserow() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("infbut_userow")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("infpta/infbut_userow",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onInfbutClr(){ async onInfbutClr() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("infbut_clr")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("infpta/infbut_clr",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onInfbutButprt(){ async onInfbutButprt() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("infbut_butprt")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("infpta/infbut_butprt",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onInfbutExi(){ async onInfbutExi() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("infbut_exi")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("infpta/infbut_exi",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onRecpanLnkinfptm(){ async onRecpanLnkinfptm() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("recpan_lnkinfptm")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("infpta/recpan_lnkinfptm",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //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)
return;
let rtnmsg = await Api.post("sptsel/usfmod_shwflt", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -13,13 +10,9 @@ export default { ...@@ -13,13 +10,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("sptsel/butypt", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -27,13 +20,9 @@ export default { ...@@ -27,13 +20,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("sptsel/dlmft", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -41,13 +30,9 @@ export default { ...@@ -41,13 +30,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("sptsel/dlaxq", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -55,13 +40,9 @@ export default { ...@@ -55,13 +40,9 @@ export default {
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)
return;
let rtnmsg = await Api.post("sptsel/butimg", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -69,17 +50,16 @@ export default { ...@@ -69,17 +50,16 @@ export default {
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 => {
if (!valid)
return;
const that = this.root; 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 => {
if (!valid)
return;
const that = this.root; 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,13 +45,9 @@ export default { ...@@ -73,13 +45,9 @@ 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)
return;
let rtnmsg = await Api.post("trnrel/imgmod_newimg", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -87,13 +55,9 @@ export default { ...@@ -87,13 +55,9 @@ export default {
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,18 +85,13 @@ export default { ...@@ -129,18 +85,13 @@ 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 => {
if (!valid)
return;
that.model.trncorco.selinr = { that.model.trncorco.selinr = {
"rows": that.multipleSelection.map(idx => that.model.trncorco.trnstm.rows[idx]) "rows": that.multipleSelection.map(idx => that.model.trncorco.trnstm.rows[idx])
} }
const data = this.wrapper() let rtnmsg = await this.executeRule("relrow")
let rtnmsg = await Api.post("/trnrel/executeRule/relrow", data)
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -156,7 +107,6 @@ export default { ...@@ -156,7 +107,6 @@ export default {
else { else {
that.$notify.error({ title: '错误', message: '服务请求失败!' }); 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