Commit 3761e416 by nanrui

dbjadd缺陷修改以及cfasel“新增接口”灰亮控制。

parent bbe6ef88
......@@ -5,10 +5,6 @@ export default class Cfasel{
constructor () {
this.data = {
eblstm:"", // Selection .eblstm
eadstm:"", // Selection .eadstm
eafstm:"", // Selection .eafstm
ebastm:"", // Selection .ebastm
ecastm:"", // Selection .ecastm
cfaquep:{
cfatyp:"", // 申报类型 .cfaquep.cfatyp
frmdat:"", // From .cfaquep.frmdat
......@@ -28,6 +24,28 @@ export default class Cfasel{
msgstm:"", // Select Error Message .errcfa.msgstm
rptno:"", // 申报编号 .errcfa.rptno
},
cfarec: {
eadgrp: {
bas: {
sta: ""
}
},
eafgrp: {
bas: {
sta: ""
}
},
ebagrp: {
bas: {
sta: ""
}
},
ecagrp: {
bas: {
sta: ""
}
},
},
pageId: "" // ctx的key
}
}
......
......@@ -52,7 +52,6 @@ export default class Eadinf{
inltcabuscode:"", // 信用证承兑业务参号 .recgrp.bas.inltcabuscode
remark:"", // 备注 .recgrp.bas.remark
relation:"", // 对方与本机构的关系 .recgrp.bas.relation
sta: ""
},
},
recp:{
......
......@@ -79,7 +79,7 @@
<c-col :span="24" style="margin-top: 10px">
<c-button class="medium_bcs" size="medium" style="margin-left: 0px" type="primary">导出Excel
</c-button>
<c-button class="medium_bcs" size="medium" type="primary">新增接口
<c-button class="medium_bcs" size="medium" type="primary" @click="addInterface" :disabled="addFlag == true">新增接口
</c-button>
<c-button class="medium_bcs" size="medium" type="primary">代付利息
</c-button>
......@@ -99,7 +99,7 @@
<div style="height:90%">
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true" @chooseRowEvent="chooseRowEvent">
<!-- 自定义组件里加了最右边的一列”操作“ -->
<el-table-column fixed="right" prop="op" label="操作" width="200px">
<template slot="header">
......@@ -110,10 +110,12 @@
<c-button style="margin-left: 0" size="small" @click="getInfo(scope.$index, scope.row)">
详情
</c-button>
<c-button style="margin-left: 3px" size="small" @click="getAmend(scope.$index, scope.row)" :disabled="scope.row.状态 == 'D'">
<c-button style="margin-left: 3px" size="small" @click="getAmend(scope.$index, scope.row)"
:disabled="scope.row.状态 == 'D'">
修改
</c-button>
<c-button style="margin-left: 3px" size="small" @click="getDelete(scope.$index, scope.row)" :disabled="scope.row.状态 == 'D'">
<c-button style="margin-left: 3px" size="small" @click="getDelete(scope.$index, scope.row)"
:disabled="scope.row.状态 == 'D'">
删除
</c-button>
</template>
......@@ -121,90 +123,6 @@
</c-istream-table>
</c-col>
</div>
<!-- <c-col :span="12">
<c-form-item label="Selection" prop="eblstm">
<c-input v-model="model.eblstm" :placeholder="$t('other.please_enter') + 'Selection'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="EAD Selection" prop="eadstm">
<c-input v-model="model.eadstm" :placeholder="$t('other.please_enter') + 'EAD Selection'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="EAF Selection" prop="eafstm">
<c-input v-model="model.eafstm" :placeholder="$t('other.please_enter') + 'EAF Selection'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="EBA Selection" prop="ebastm">
<c-input v-model="model.ebastm" :placeholder="$t('other.please_enter') + 'EBA Selection'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="ECA Selection" prop="ecastm">
<c-input v-model="model.ecastm" :placeholder="$t('other.please_enter') + 'ECA Selection'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSerbut">
{{ $t('cfasel.C0000010') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onDtlbut">
{{ $t('cfasel.C0000011') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onAddbut">
{{ $t('cfasel.C0000012') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onAmebut">
{{ $t('cfasel.C0000013') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onDelbut">
{{ $t('cfasel.C0000014') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onExpbut">
{{ $t('cfasel.C0000016') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onAddbut2">
{{ $t('cfasel.C0000017') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onAmelixi">
{{ $t('cfasel.C0000019') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onExi">
{{ $t('errcfa.C0000012') }}
</c-button>
</c-col> -->
</div>
</template>
<script>
......@@ -220,6 +138,9 @@ export default {
mixins: [commonProcess],
data() {
return {
addFlag: true,
selectRowParamstRow: {},
selectRowType: "",
stmDataAll: {
columns: [
"0 1 \"业务流水\" 100 1 0:2 1 ",
......@@ -570,6 +491,7 @@ export default {
selDst = this.model.cfaquep.cfatyp.toLowerCase() + "stm" //列表对应后台模型中的stream
}
let params = { selDst, selIds };
this.seletRowParams = params;
this.executeRule("delbut", params).then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
......@@ -581,6 +503,46 @@ export default {
this.$notify.error({ title: '错误', message: h('p', { style: 'word-break:break-all;' }, msg) })
}
});
},
async chooseRowEvent(row) {
console.log(row);
const selIds = [row.IDX + 1];
console.log(selIds);
let selDst;
if (this.model.cfaquep.cfatyp == "ALL") {
selDst = "eblstm" //列表对应后台模型中的stream
} else {
selDst = this.model.cfaquep.cfatyp.toLowerCase() + "stm" //列表对应后台模型中的stream
}
let params = { selDst, selIds };
this.seleseletRowParamstRow = params;
this.selectRowType = row.申报类型;
this.executeRule("dtlbut", params).then((res) => {
if ((res.respCode == SUCCESS)) {
console.log(res.data);
let sta = res.data.cfarec_eadgrp_bas_sta || res.data.cfarec_eafgrp_bas_sta || res.data.cfarec_ebagrp_bas_sta || res.data.cfarec_ecagrp_bas_sta;
console.log(sta);
if(sta !== 'D' && sta !== 'G' && sta !== 'N' && sta !== 'P') {
this.addFlag = false;
}else{
this.addFlag = true;
}
} else {
this.$notify.error("Record Missing");
}
});
},
addInterface () {
this.executeRule("delbut", this.selectRowParamstRow).then((res) => {
if ((res.respCode == SUCCESS)) {
// Utils.copyValueFromVO(this.model, res.data);
this.$router.push({ name: this.selectRowType.charAt(0) + this.selectRowType.substring(1).toLowerCase() + 'add', params: { prePageId: this.model.pageId } });
} else {
const h = this.$createElement;
const msg = res.respMsg || '请求执行失败!'
this.$notify.error({ title: '错误', message: h('p', { style: 'word-break:break-all;' }, msg) })
}
});
}
},
// created: function () {
......
......@@ -31,7 +31,7 @@
style="width: 100%"
placeholder="请输入款项去向"
disabled
:code="codes.acttyp"
:code="codes.bopacttyp"
>
</c-select>
</el-form-item>
......
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