Commit feda776f by mabaofu

更新前段

parents 582b42c8 df6ee642
...@@ -13,25 +13,25 @@ export default { ...@@ -13,25 +13,25 @@ export default {
return Api.post(this.declareParams.trnName+"/init",{params}) return Api.post(this.declareParams.trnName+"/init",{params})
}, },
save(params){ save(params){
return Api.post(this.declareParams.trnName+"/saveData", Utils.getRequestDataFn.call(this, params)) return Api.post(this.declareParams.trnName+"/saveData", this.wrapper(params))
}, },
exeuteCheck(rulePath,params){ exeuteCheck(rulePath,params){
return Api.post(this.declareParams.trnName+"/executeCheck/"+rulePath, Utils.getRequestDataFn.call(this, params)) return Api.post(this.declareParams.trnName+"/executeCheck/"+rulePath, this.wrapper(params))
}, },
executeDefault(rulePath,params) executeDefault(rulePath,params)
{ {
return Api.post(this.declareParams.trnName+"/executeDefault/"+rulePath, Utils.getRequestDataFn.call(this, params)) return Api.post(this.declareParams.trnName+"/executeDefault/"+rulePath, this.wrapper(params))
}, },
executeRule(rulePath,params) executeRule(rulePath,params)
{ {
return Api.post(this.declareParams.trnName+"/executeRule/"+rulePath, Utils.getRequestDataFn.call(this, params)) return Api.post(this.declareParams.trnName+"/executeRule/"+rulePath, this.wrapper(params))
}, },
async checkAll(params){ async checkAll(params){
const res = await Api.post(this.declareParams.trnName+"/checkAll", Utils.getRequestDataFn.call(this, params)) const res = await Api.post(this.declareParams.trnName+"/checkAll", this.wrapper(params))
return res return res
}, },
pedding(params){ pedding(params){
return Api.post(this.declareParams.trnName+"/pending", Utils.getRequestDataFn.call(this, params)) return Api.post(this.declareParams.trnName+"/pending", this.wrapper(params))
}, },
async restoreDisplay() async restoreDisplay()
{ {
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
}, },
executeNotify(params) executeNotify(params)
{ {
return Api.post(this.declareParams.trnName+"/executeNotify", Utils.getRequestDataFn.call(this, params)) return Api.post(this.declareParams.trnName+"/executeNotify", this.wrapper(params))
}, },
} }
} }
\ No newline at end of file
...@@ -45,7 +45,8 @@ export default { ...@@ -45,7 +45,8 @@ export default {
ruleCheck() { ruleCheck() {
if(!this.pattern) if(!this.pattern)
return return
const keySet = new Set(Object.keys(this.pattern).concat(Object.keys(this.checkRules).concat(Object.keys(this.defaultRules)))) // const keySet = new Set(Object.keys(this.pattern).concat(Object.keys(this.checkRules).concat(Object.keys(this.defaultRules))))
const keySet = new Set(Object.keys(this.pattern).concat(Object.keys(this.defaultRules)))
const res = {}; const res = {};
const that = this; const that = this;
for (let key of keySet.keys()) { for (let key of keySet.keys()) {
...@@ -54,22 +55,22 @@ export default { ...@@ -54,22 +55,22 @@ export default {
rule.push(...that.pattern[key]) rule.push(...that.pattern[key])
} }
const triggerType = that.getTriggerType(key) const triggerType = that.getTriggerType(key)
if(that.checkRules[key]){ // if(that.checkRules[key]){
if (Array.isArray(that.checkRules[key])) { // if (Array.isArray(that.checkRules[key])) {
for (let j = 0; j < that.checkRules[key].length; j++) { // for (let j = 0; j < that.checkRules[key].length; j++) {
const check = that.checkRules[key][j]; // const check = that.checkRules[key][j];
rule.push({ // rule.push({
validator: check.bind(that), // validator: check.bind(that),
trigger: triggerType // trigger: triggerType
}) // })
} // }
} else { // } else {
rule.push({ // rule.push({
validator: that.checkRules[key].bind(that), // validator: that.checkRules[key].bind(that),
trigger: triggerType // trigger: triggerType
}) // })
} // }
} // }
if (that.defaultRules[key]) { if (that.defaultRules[key]) {
rule.push({ rule.push({
validator: that.defaultRules[key].bind(that), validator: that.defaultRules[key].bind(that),
...@@ -97,6 +98,26 @@ export default { ...@@ -97,6 +98,26 @@ export default {
return "blur"; return "blur";
}, },
/** /**
* 以函数形式获取model(请求参数),保证取到的是最新赋值的
* @param {any} params 参数
* @returns
*/
wrapper(params) {
params = params || {}
const fn = async () => {
const that = this;
const data = await new Promise(resolve => {
// 保证前一次请求结果赋值VO完成
setTimeout(() => {
const d = Utils.flatObject(that.model)
resolve(d)
}, 0)
})
return {...data, params}
}
return fn;
},
/**
* 更新Model * 更新Model
* @param {any} data model数据 * @param {any} data model数据
*/ */
......
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(){ 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("cptopn/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("cptopn/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("cptopn/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("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: '服务请求失败!'}); 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("cptopn/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("cptopn/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("cptopn/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("cptopn/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("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: '服务请求失败!'}); 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("cptopn/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("cptopn/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("cptopn/setmod_det",{data:this.model}) async onSeainf() {
if(rtnmsg.retcod == SUCCESS)
{ },
//TODO 处理数据逻辑 async 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
...@@ -771,7 +771,7 @@ function checkDidgrpRecAvbbyN100(rule, value, callback) { ...@@ -771,7 +771,7 @@ function checkDidgrpRecAvbbyN100(rule, value, callback) {
const that = this; const that = this;
that.exeuteCheck("didgrp.rec.avbby").then(res => { that.exeuteCheck("didgrp.rec.avbby").then(res => {
//TODO //TODO
if (res.respCode == "AAAAAA"){ if (res.respCode == SUCCESS){
Utils.copyValueFromVO(that.model, res.data); Utils.copyValueFromVO(that.model, res.data);
} }
}) })
......
...@@ -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", Utils.getRequestDataFn.call(this)) let rtnmsg = await this.executeRule("ditp.butgetref")
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == SUCCESS) {
//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,8 +16,8 @@ export default { ...@@ -16,8 +16,8 @@ export default {
} }
}, },
async onAplpDet() { async onAplpDet() {
let rtnmsg = await Api.post("ditopn/executeRule/ditp.aplp.det", Utils.getRequestDataFn.call(this)) let rtnmsg = await this.executeRule("ditp.aplp.det")
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
// console.log(rtnmsg.data); // console.log(rtnmsg.data);
} }
...@@ -25,287 +25,193 @@ export default { ...@@ -25,287 +25,193 @@ 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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/benp_det", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/revclause_buttxmsel", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/lcrgod_buttxmsel", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/lcrdoc_buttxmsel", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/adlcnd_buttxmsel", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/insbnk_buttxmsel", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/rmbp_det", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/defdet_buttxmsel", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/preper_buttxmsel", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/setmod_det", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/liaall_butmisamt", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/liaall_butmissig", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/wrkp_det", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/othp_det", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/limpts_get1", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/limpts_get2", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/limmod_trycal", Utils.getRequestDataFn.call(this))
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", Utils.getRequestDataFn.call(this))
// if (rtnmsg.respCode == "AAAAAA") {
// //TODO 处理数据逻辑
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
// })
let rtnmsg = await Api.post("ditopn/executeRule/liaall.liaccv.add", Utils.getRequestDataFn.call(this))
//const that = this.root; //const that = this.root;
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == SUCCESS) {
//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", Utils.getRequestDataFn.call(this))
// if (rtnmsg.respCode == "AAAAAA") {
// //TODO 处理数据逻辑
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
// })
let rtnmsg = await Api.post("ditopn/executeRule/liaall.liaccv.del", Utils.getRequestDataFn.call(this))
//const that = this.root; //const that = this.root;
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
debugger; debugger;
this.$message({ this.$message({
...@@ -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 {
...@@ -344,53 +250,53 @@ export default { ...@@ -344,53 +250,53 @@ export default {
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: Utils.getRequestDataFn.call(this) }) 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
const params = { const params = {
index: index index: index
} }
rtnmsg = await Api.post("ditopn/executeDocpan", Utils.getRequestDataFn.call(this, params)) rtnmsg = await Api.post("ditopn/executeDocpan", this.wrapper(params))
} }
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == SUCCESS) {
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
} }
...@@ -398,18 +304,18 @@ export default { ...@@ -398,18 +304,18 @@ 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", { ...Utils.getRequestDataFn.call(this), params }) let rtnmsg = await Api.post("ditopn/executeDocpanDetail", this.wrapper(params))
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.title = row.pandsc this.title = row.pandsc
this.centerDialogVisible = true, this.centerDialogVisible = true,
...@@ -417,47 +323,46 @@ export default { ...@@ -417,47 +323,46 @@ export default {
this.index = index this.index = index
} }
}, },
async BlurBennam(e){ async BlurBennam(e) {
let rtnmsg = await Api.post("ditopn/executeDefault/ditp.remark", Utils.getRequestDataFn.call(this)) let rtnmsg = await this.executeDefault("ditp.remark")
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == SUCCESS) {
//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", Utils.getRequestDataFn.call(this)) let rtnmsg = await this.executeDefault("ditp.remark")
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == SUCCESS) {
//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", Utils.getRequestDataFn.call(this)) let rtnmsg = await this.executeDefault("ditp.remark")
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == SUCCESS) {
//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 == SUCCESS) {
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",{...Utils.getRequestDataFn.call(this)}) if (rtnmsg.respCode == SUCCESS) {
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("sptsel/usfmod_shwflt", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("sptsel/butypt", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("sptsel/dlmft", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("sptsel/dlaxq", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("sptsel/butimg", Utils.getRequestDataFn.call(this))
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 == SUCCESS) {
//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", Utils.getRequestDataFn.call(this))
// 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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/seactr", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/searow", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/dsp", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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 == SUCCESS) {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("trnrel/imgmod_newimg", Utils.getRequestDataFn.call(this))
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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/imgmod_newhisimg", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/diacon_butdia", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/imgmod_hisimg", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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 == SUCCESS) {
} //TODO 处理数据逻辑
const data = Utils.getRequestDataFn.call(this)
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,47 +115,36 @@ export default { ...@@ -165,47 +115,36 @@ export default {
}, ms) }, ms)
}) })
}, },
onPrinte() { async onPrinte() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("printe")
if (!valid) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/printe", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/reprow", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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 => { let rtnmsg = await Api.post("trnrel/rejrow", this.wrapper())
// if (!valid) if (rtnmsg.respCode == SUCCESS) {
// return;
let rtnmsg = await Api.post("trnrel/rejrow", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
// var cacheFileName = rtnmsg.data.cacheFileName; // var cacheFileName = rtnmsg.data.cacheFileName;
// let rejrowRtnmsg = await Api.post("trncor/init", {params:{"cacheFileName":cacheFileName}}) // let rejrowRtnmsg = await Api.post("trncor/init", {params:{"cacheFileName":cacheFileName}})
// if(rejrowRtnmsg.respCode == "AAAAAA"){ // if(rejrowRtnmsg.respCode == SUCCESS){
// this.$message({ // this.$message({
// type: 'success', // type: 'success',
// message: 'Reject成功!' // message: 'Reject成功!'
...@@ -225,162 +164,117 @@ export default { ...@@ -225,162 +164,117 @@ 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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/relcor", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/exi", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/recpan_det", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//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.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/syswrn_butshw", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/recpan_notmap", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/recpan_butspt", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/recpan_inc", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/recpan_butord", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/imgmod_image", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/recpan_incben", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
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) if (rtnmsg.respCode == SUCCESS) {
return;
let rtnmsg = await Api.post("trnrel/inftxt_buttxmsel", Utils.getRequestDataFn.call(this))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onSeainf() { onSeainf() {
......
...@@ -142,22 +142,6 @@ export default class Utils { ...@@ -142,22 +142,6 @@ export default class Utils {
return output.join(''); return output.join('');
} }
static getRequestDataFn(params) {
params = params||{}
const fn = async () => {
const that = this;
const data = await new Promise(resolve => {
// 保证前一次请求结果赋值VO完成
setTimeout(() => {
const d = Utils.flatObject(that.model)
resolve(d)
}, 0)
})
return {...data, params}
}
return fn;
}
static positioningErrorMsg(fieldErrors, formFields) { static positioningErrorMsg(fieldErrors, formFields) {
let firstErrorItem = null let firstErrorItem = null
for (let i = 0; i < formFields.length; i++) { for (let i = 0; i < formFields.length; i++) {
......
...@@ -360,39 +360,36 @@ import Utils from "~/utils/index" ...@@ -360,39 +360,36 @@ import Utils from "~/utils/index"
export default { export default {
inject: ['root'], inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
components: { SetpanDialog }, components: { SetpanDialog },
data() { data() {
return { return {
dialogVisible2: false,
dialogVisible2: false, dialog2: {
feetxtinf:"",
dialog2: { feetxt:"",
feetxtinf:"", },
feetxt:"", index: 0,
}, data:[]
index: 0, };
data:[] },
}; methods: {
}, ...Event,
methods: { dispDefault(){
...Event, this.executeDefault("mac").then(res=>{
dispDefault(){ Utils.copyValueFromVO(this.model, res.data)
Api.post("cptopn/executeDefault/mac",Utils.getRequestDataFn.call(this)).then(res=>{
Utils.copyValueFromVO(this.model, res.data)
}) })
}, },
detail2(index, row) { detail2(index, row) {
Api.post("cptopn/executeRule/det",Utils.getRequestDataFn.call(this)).then(res=>{ this.executeRule("det").then(res=>{
this.dialogVisible2 = true; this.dialogVisible2 = true;
this.index = index; this.index = index;
this.dialog2 = row this.dialog2 = row
}) })
}, },
}, },
created: function () {}, created: function () {},
}; };
</script> </script>
<style> <style>
......
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
if (label === "Settlement") { if (label === "Settlement") {
this.executeRule("setmod.setpan").then(res => { this.executeRule("setmod.setpan").then(res => {
if (res.respCode == "AAAAAA"){ if (res.respCode == SUCCESS){
const data = res.data; const data = res.data;
Utils.copyValueFromVO(this.model, data) Utils.copyValueFromVO(this.model, data)
} }
...@@ -149,7 +149,7 @@ export default { ...@@ -149,7 +149,7 @@ export default {
} }
if (label === "Messages") { if (label === "Messages") {
this.executeRule("trnmod.trndoc.docpan").then(res => { this.executeRule("trnmod.trndoc.docpan").then(res => {
if (res.respCode == "AAAAAA"){ if (res.respCode == SUCCESS){
const data = res.data; const data = res.data;
Utils.copyValueFromVO(this.model, data) Utils.copyValueFromVO(this.model, data)
var stm = []; var stm = [];
...@@ -165,7 +165,7 @@ export default { ...@@ -165,7 +165,7 @@ export default {
} }
if (label === "Attachments") { if (label === "Attachments") {
this.executeRule("trnmod.trndoc.doctre").then(res => { this.executeRule("trnmod.trndoc.doctre").then(res => {
if (res.respCode == "AAAAAA"){ if (res.respCode == SUCCESS){
const data = res.data; const data = res.data;
Utils.copyValueFromVO(this.model, data) Utils.copyValueFromVO(this.model, data)
} }
......
...@@ -147,20 +147,18 @@ export default { ...@@ -147,20 +147,18 @@ export default {
this.model.didgrp.rec.tenmaxday = 0; this.model.didgrp.rec.tenmaxday = 0;
this.model.didgrp.blk.defdet = ""; this.model.didgrp.blk.defdet = "";
} }
const arg = Utils.getRequestDataFn.call(this); this.executeCheck("didgrp.rec.avbby").then(
Api.post("ditopn/executeCheck/didgrp.rec.avbby", arg).then(
(res) => { (res) => {
if (res.respCode == "AAAAAA"){ if (res.respCode == SUCCESS){
Utils.copyValueFromVO(this.model, res.data); Utils.copyValueFromVO(this.model, res.data);
} }
} }
); );
}, },
recTenmaxdayEvent(){ recTenmaxdayEvent(){
const arg = Utils.getRequestDataFn.call(this); this.executeDefault("didgrp.rec.tenmaxday").then(
Api.post("ditopn/executeDefault/didgrp.rec.tenmaxday", arg).then(
(res) => { (res) => {
if (res.respCode = "AAAAAA"){ if (res.respCode = SUCCESS){
Utils.copyValueFromVO(this.model, res.data); Utils.copyValueFromVO(this.model, res.data);
} }
} }
......
...@@ -528,16 +528,14 @@ export default { ...@@ -528,16 +528,14 @@ export default {
this.centerDialogVisible = false; this.centerDialogVisible = false;
console.log(this.model); console.log(this.model);
this.model.trnmod.trndoc.doceot.splice(this.index, 1, this.dialog); this.model.trnmod.trndoc.doceot.splice(this.index, 1, this.dialog);
let res = Api.post( this.executeRule("trnmod.trndoc.doccur.butaddok").then(res => {
"ditopn/executeRule/trnmod.trndoc.doccur.butaddok", if(res.data.respCode==SUCCESS){
Utils.getRequestDataFn.call(this) //TODO
); }else{
if(res.data.respCode=="AAAAAA"){ this.$notify.error({ title: '错误', message: '服务请求失败!' });
//TODO }
})
}else{
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}, },
}, },
created: function () {}, created: function () {},
......
...@@ -734,10 +734,9 @@ export default { ...@@ -734,10 +734,9 @@ export default {
} }
}, },
nom1CurEvent(){ nom1CurEvent(){
const data = Utils.flatObject(this.model); this.executeDefault("didgrp.cbs.nom1.cur").then(
Api.post("ditopn/executeDefault/didgrp.cbs.nom1.cur", Utils.getRequestDataFn.call(this)).then(
(res) => { (res) => {
if (res.respCode = "AAAAAA"){ if (res.respCode = SUCCESS){
Utils.copyValueFromVO(this.model, res.data); Utils.copyValueFromVO(this.model, res.data);
} }
} }
......
...@@ -433,26 +433,26 @@ export default { ...@@ -433,26 +433,26 @@ export default {
}, },
// 第二个表格 // 第二个表格
detail1(index, row) { detail1(index, row) {
Api.post("ditopn/executeDefault/det",Utils.getRequestDataFn.call(this)).then(res=>{ this.executeDefault("det").then(res=>{
this.dialogVisible = true; this.dialogVisible = true;
this.dialog = row; this.dialog = row;
this.index = index; this.index = index;
}) })
}, },
dispDefault(){ dispDefault(){
Api.post("ditopn/executeDefault/mac",Utils.getRequestDataFn.call(this)).then(res=>{ this.executeDefault("mac").then(res=>{
Utils.copyValueFromVO(this.model, res.data) Utils.copyValueFromVO(this.model, res.data)
}) })
}, },
// 第三个表格 // 第三个表格
detail2(index, row) { detail2(index, row) {
Api.post("ditopn/executeRule/det",Utils.getRequestDataFn.call(this)).then(res=>{ this.executeRule("det").then(res=>{
this.dialogVisible2 = true; this.dialogVisible2 = true;
this.index = index; this.index = index;
this.dialog2 = row this.dialog2 = row
}) })
}, },
}, },
created: function () {}, created: function () {},
......
...@@ -2012,7 +2012,7 @@ export default { ...@@ -2012,7 +2012,7 @@ export default {
created: async function () { created: async function () {
console.log("进入ditame交易"); console.log("进入ditame交易");
let rtnmsg = await Api.post("ditame/init", { params: {} }); let rtnmsg = await Api.post("ditame/init", { params: {} });
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
Utils.copyValueFromVO(this.model, rtnmsg.data); Utils.copyValueFromVO(this.model, rtnmsg.data);
} else { } else {
......
...@@ -147,20 +147,18 @@ export default { ...@@ -147,20 +147,18 @@ export default {
this.model.didgrp.rec.tenmaxday = 0; this.model.didgrp.rec.tenmaxday = 0;
this.model.didgrp.blk.defdet = ""; this.model.didgrp.blk.defdet = "";
} }
const arg = Utils.getRequestDataFn.call(this); this.executeCheck("didgrp.rec.avbby").then(
Api.post("ditopn/executeCheck/didgrp.rec.avbby", arg).then(
(res) => { (res) => {
if (res.respCode == "AAAAAA"){ if (res.respCode == SUCCESS){
Utils.copyValueFromVO(this.model, res.data); Utils.copyValueFromVO(this.model, res.data);
} }
} }
); );
}, },
recTenmaxdayEvent(){ recTenmaxdayEvent(){
const arg = Utils.getRequestDataFn.call(this); this.executeDefault("didgrp.rec.tenmaxday").then(
Api.post("ditopn/executeDefault/didgrp.rec.tenmaxday", arg).then(
(res) => { (res) => {
if (res.respCode = "AAAAAA"){ if (res.respCode = SUCCESS){
Utils.copyValueFromVO(this.model, res.data); Utils.copyValueFromVO(this.model, res.data);
} }
} }
......
...@@ -528,16 +528,14 @@ export default { ...@@ -528,16 +528,14 @@ export default {
this.centerDialogVisible = false; this.centerDialogVisible = false;
console.log(this.model); console.log(this.model);
this.model.trnmod.trndoc.doceot.splice(this.index, 1, this.dialog); this.model.trnmod.trndoc.doceot.splice(this.index, 1, this.dialog);
let res = Api.post( this.executeRule("trnmod.trndoc.doccur.butaddok").then(res => {
"ditopn/executeRule/trnmod.trndoc.doccur.butaddok", if(res.data.respCode==SUCCESS){
Utils.getRequestDataFn.call(this) //TODO
);
if(res.data.respCode=="AAAAAA"){
//TODO
}else{ }else{
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
}, },
created: function () {}, created: function () {},
......
...@@ -713,10 +713,9 @@ export default { ...@@ -713,10 +713,9 @@ export default {
} }
}, },
nom1CurEvent(){ nom1CurEvent(){
const data = Utils.flatObject(this.model); this.executeDefault("didgrp.cbs.nom1.cur").then(
Api.post("ditopn/executeDefault/didgrp.cbs.nom1.cur", Utils.getRequestDataFn.call(this)).then(
(res) => { (res) => {
if (res.respCode = "AAAAAA"){ if (res.respCode = SUCCESS){
Utils.copyValueFromVO(this.model, res.data); Utils.copyValueFromVO(this.model, res.data);
} }
} }
......
...@@ -432,26 +432,26 @@ export default { ...@@ -432,26 +432,26 @@ export default {
}, },
// 第二个表格 // 第二个表格
detail1(index, row) { detail1(index, row) {
Api.post("ditopn/executeDefault/det",Utils.getRequestDataFn.call(this)).then(res=>{ this.executeDefault("det").then(res=>{
this.dialogVisible = true; this.dialogVisible = true;
this.dialog = row; this.dialog = row;
this.index = index; this.index = index;
}) })
}, },
dispDefault(){ dispDefault(){
Api.post("ditopn/executeDefault/mac",Utils.getRequestDataFn.call(this)).then(res=>{ this.executeDefault("mac").then(res=>{
Utils.copyValueFromVO(this.model, res.data) Utils.copyValueFromVO(this.model, res.data)
}) })
}, },
// 第三个表格 // 第三个表格
detail2(index, row) { detail2(index, row) {
Api.post("ditopn/executeRule/det",Utils.getRequestDataFn.call(this)).then(res=>{ this.executeRule("det").then(res=>{
this.dialogVisible2 = true; this.dialogVisible2 = true;
this.index = index; this.index = index;
this.dialog2 = row this.dialog2 = row
}) })
}, },
}, },
created: function () {}, created: function () {},
......
...@@ -190,7 +190,7 @@ export default { ...@@ -190,7 +190,7 @@ export default {
} }
if (name === "setpan") { if (name === "setpan") {
this.executeRule("setmod.setpan").then(res => { this.executeRule("setmod.setpan").then(res => {
if (res.respCode == "AAAAAA"){ if (res.respCode == SUCCESS){
const data = res.data; const data = res.data;
Utils.copyValueFromVO(this.model, data) Utils.copyValueFromVO(this.model, data)
} }
...@@ -198,7 +198,7 @@ export default { ...@@ -198,7 +198,7 @@ export default {
} }
if (name === "docpan") { if (name === "docpan") {
this.executeRule("trnmod.trndoc.docpan").then(res => { this.executeRule("trnmod.trndoc.docpan").then(res => {
if (res.respCode == "AAAAAA"){ if (res.respCode == SUCCESS){
const data = res.data; const data = res.data;
Utils.copyValueFromVO(this.model, data) Utils.copyValueFromVO(this.model, data)
var stm = []; var stm = [];
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ export default {
} }
if (name === "limitbody") { if (name === "limitbody") {
this.executeRule("liaall.limmod.limitbody").then(res => { this.executeRule("liaall.limmod.limitbody").then(res => {
if (res.respCode == "AAAAAA"){ if (res.respCode == SUCCESS){
const data = res.data; const data = res.data;
Utils.copyValueFromVO(this.model, data) Utils.copyValueFromVO(this.model, data)
} }
......
...@@ -541,7 +541,7 @@ export default { ...@@ -541,7 +541,7 @@ export default {
created: async function () { created: async function () {
console.log("进入ditsel交易"); console.log("进入ditsel交易");
let rtnmsg = await Api.post("ditsel/init", { params: {} }); let rtnmsg = await Api.post("ditsel/init", { params: {} });
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
Utils.copyValueFromVO(this.model,rtnmsg.data) Utils.copyValueFromVO(this.model,rtnmsg.data)
} else { } else {
......
...@@ -194,7 +194,7 @@ export default { ...@@ -194,7 +194,7 @@ export default {
console.log("进入office交易"); console.log("进入office交易");
if(1) return if(1) return
let rtnmsg = await Api.post("office/init",Utils.getRequestDataFn.call(this, {})) let rtnmsg = await this.init()
console.log(rtnmsg) console.log(rtnmsg)
if(rtnmsg.code == SUCCESS) if(rtnmsg.code == SUCCESS)
{ {
......
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
}); });
if (this.model.docXML != "") if (this.model.docXML != "")
Api.post("pdf", { xml: this.model.docXML }).then((res) => { Api.post("pdf", { xml: this.model.docXML }).then((res) => {
if (res.respCode == "AAAAAA") { if (res.respCode == SUCCESS) {
this.pdf += res.data; this.pdf += res.data;
} }
}); });
......
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