Commit 6245f58a by liuxin

Merge remote-tracking branch 'origin/master'

parents 3f60d0dc 4017802d
...@@ -238,7 +238,7 @@ function defaultDidgrpCbsNom1Cur() ...@@ -238,7 +238,7 @@ function defaultDidgrpCbsNom1Cur()
} }
function defaultDidgrpCbsNom1Amt(newVal, oldVal) { function defaultDidgrpCbsNom1Amt(newVal, oldVal) {
const that = this; const that = this;
that.executeDefault("didgrp.cbs.max.amt", Utils.flatObject(this.model)).then(res => { that.executeDefault("didgrp.cbs.max.amt").then(res => {
that.model.didgrp.cbs.max.amt = res.data.didgrp_cbs_max_amt; that.model.didgrp.cbs.max.amt = res.data.didgrp_cbs_max_amt;
}) })
} }
......
...@@ -15,19 +15,15 @@ export default { ...@@ -15,19 +15,15 @@ export default {
} }
}) })
}, },
onAplpDet() { async onAplpDet() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { let rtnmsg = await Api.post("ditopn/executeRule/ditp.aplp.det", Utils.flatObject(this.model))
if (!valid)
return;
let rtnmsg = await Api.post("ditopn/aplp_det", Utils.flatObject(this.model))
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
console.log(rtnmsg.data);
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onBenpDet() { onBenpDet() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
......
...@@ -170,7 +170,7 @@ export default { ...@@ -170,7 +170,7 @@ export default {
} }
}, },
methods:{ methods:{
tabClick(){ tabClick(vm){
this.$refs.modelForm.validate(valid => { this.$refs.modelForm.validate(valid => {
if (valid){ if (valid){
console.log(1) console.log(1)
...@@ -178,7 +178,19 @@ export default { ...@@ -178,7 +178,19 @@ export default {
console.log(0) console.log(0)
} }
}) })
// this.executeDefault("didgrp.cbs.max.amt", Utils.flatObject(this.model)) const label = vm.label
if (label === "账务") {
this.executeRule("setmod.setpan").then(res => {
const data = res.data;
Utils.copyValueFromVO(this.model, data)
})
}
if (label === "面函") {
this.executeRule("trnmod.trndoc.docpan").then(res => {
const data = res.data;
Utils.copyValueFromVO(this.model, data)
})
}
} }
}, },
created:async function(){ created:async function(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment