Commit 6b02978c by 潘际乾

ditopn的default属性监听

parent 6245f58a
...@@ -233,14 +233,29 @@ function defaultLiaallButmissig() ...@@ -233,14 +233,29 @@ function defaultLiaallButmissig()
function defaultDitpRevclauseButtxmsel() function defaultDitpRevclauseButtxmsel()
{ {
} }
function defaultDidgrpCbsNom1Cur() function defaultDidgrpCbsNom1Cur(newVal, oldVal)
{ {
const that = this;
that.model.didgrp.cbs.max.cur = newVal;
// 摘要
that.executeDefault("didgrp.rec.nam").then(res => {
that.model.didgrp.rec.nam = res.data.didgrp_rec_nam;
})
} }
function defaultDidgrpCbsNom1Amt(newVal, oldVal) { function defaultDidgrpCbsNom1Amt(newVal, oldVal) {
const that = this; const that = this;
// 信用证最大金额
that.executeDefault("didgrp.cbs.max.amt").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;
}) })
// 大写金额
that.executeDefault("ditp.amt").then(res => {
that.model.ditp.amt = res.data.ditp_amt;
})
// 摘要
that.executeDefault("didgrp.rec.nam").then(res => {
that.model.didgrp.rec.nam = res.data.didgrp_rec_nam;
})
} }
function defaultSetmodZmqacc() function defaultSetmodZmqacc()
{ {
......
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
onDitpButgetref() { async onDitpButgetref() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { let rtnmsg = await Api.post("ditopn/executeRule/ditp.butgetref", Utils.flatObject(this.model))
if (!valid) if (rtnmsg.respCode == "AAAAAA") {
return; //TODO 处理数据逻辑
let rtnmsg = await Api.post("ditopn/ditp_butgetref", Utils.flatObject(this.model)) const ownref = rtnmsg.data.didgrp_rec_ownref
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
} const h = this.$createElement;
else { this.$msgbox({
this.$notify.error({ title: '错误', message: '服务请求失败!' }); title: '获取结果',
} message: h('p', null, [
}) h('div', { style: 'margin-left: 25%'}, `参考号:${ownref}`),
h('div', { style: 'margin-left: 25%' }, '是否将结果填入表单?')
]),
showCancelButton: true,
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(action => {
this.model.didgrp.rec.ownref = ownref
this.$message({
type: 'success',
message: '填入成功!'
});
}).catch(action => {
this.$message({
type: 'info',
message: "已取消"
})
});
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}, },
async onAplpDet() { async onAplpDet() {
let rtnmsg = await Api.post("ditopn/executeRule/ditp.aplp.det", Utils.flatObject(this.model)) let rtnmsg = await Api.post("ditopn/executeRule/ditp.aplp.det", Utils.flatObject(this.model))
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
console.log(rtnmsg.data); // console.log(rtnmsg.data);
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
......
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
<!-- <el-row> --> <!-- <el-row> -->
<el-col :span="12"> <el-col :span="12">
<el-form-item label="参考号"> <el-form-item label="参考号">
<!-- <c-input v-model="model.didgrp.rec.tzref" maxlength="35" placeholder="请输入通知行编号"></c-input> --> <c-input v-model="model.didgrp.rec.tzref" maxlength="35" placeholder="请输入通知行编号"></c-input>
<c-input v-model="model.didgrp.adv.pts.extkey" maxlength="35" placeholder="请输入通知行编号"></c-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -98,7 +97,7 @@ ...@@ -98,7 +97,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-row> --> <!-- <el-row> -->
<el-col :span="8"> <el-col :span="12">
<el-form-item label="指定的有关银行 "> <el-form-item label="指定的有关银行 ">
<c-select v-model="model.didgrp.rec.avbwth" style="width:100%" placeholder="请选择指定的有关银行 "> <c-select v-model="model.didgrp.rec.avbwth" style="width:100%" placeholder="请选择指定的有关银行 ">
<el-option v-for="item in codes.avbwth" :key="item.value" :label="item.label" <el-option v-for="item in codes.avbwth" :key="item.value" :label="item.label"
......
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