Commit 6b02978c by 潘际乾

ditopn的default属性监听

parent 6245f58a
......@@ -233,14 +233,29 @@ function defaultLiaallButmissig()
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) {
const that = this;
// 信用证最大金额
that.executeDefault("didgrp.cbs.max.amt").then(res => {
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()
{
......
import Api from "~/service/Api"
import Utils from "~/utils/index"
export default {
onDitpButgetref() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if (!valid)
return;
let rtnmsg = await Api.post("ditopn/ditp_butgetref", Utils.flatObject(this.model))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
async onDitpButgetref() {
let rtnmsg = await Api.post("ditopn/executeRule/ditp.butgetref", Utils.flatObject(this.model))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
const ownref = rtnmsg.data.didgrp_rec_ownref
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
})
const h = this.$createElement;
this.$msgbox({
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() {
let rtnmsg = await Api.post("ditopn/executeRule/ditp.aplp.det", Utils.flatObject(this.model))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
console.log(rtnmsg.data);
// console.log(rtnmsg.data);
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
......
......@@ -3,8 +3,7 @@
<!-- <el-row> -->
<el-col :span="12">
<el-form-item label="参考号">
<!-- <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>
<c-input v-model="model.didgrp.rec.tzref" maxlength="35" placeholder="请输入通知行编号"></c-input>
</el-form-item>
</el-col>
<el-col :span="12">
......@@ -98,7 +97,7 @@
</el-form-item>
</el-col>
<!-- <el-row> -->
<el-col :span="8">
<el-col :span="12">
<el-form-item label="指定的有关银行 ">
<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"
......
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