Commit dd0fae72 by nanrui

EAF以及cfasel优化。

parent 07b4d567
......@@ -110,10 +110,10 @@
<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)">
<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)">
<c-button style="margin-left: 3px" size="small" @click="getDelete(scope.$index, scope.row)" :disabled="scope.row.状态 == 'D'">
删除
</c-button>
</template>
......@@ -456,7 +456,7 @@ export default {
break;
}
console.log(stmData.data);
if (this.stmData.data == 0) {
if (this.stmData.data.length == 0) {
this.$notify({
title: '成功',
message: '搜索完毕,无满足条件记录',
......@@ -551,6 +551,7 @@ export default {
});
},
async getDelete(idx, row) {
console.log(row);
let business = row.申报类型.toLowerCase() + "del";
const selIds = [idx + 1];
let selDst;
......
......@@ -25,8 +25,8 @@
</c-tabs>
</el-form>
<c-function-btn :handleSubmit="handleSubmit.bind(this, 'cfabut.sav')"
:handleCheck="handleCheck.bind(this, 'cfabut.chk')" :handleStash="handleStash"></c-function-btn>
<!-- <c-function-btn :handleSubmit="handleSubmit.bind(this, 'cfabut.sav')"
:handleCheck="handleCheck.bind(this, 'cfabut.chk')" :handleStash="handleStash"></c-function-btn> -->
</c-page>
</div>
</template>
......
......@@ -28,7 +28,7 @@
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000019')" prop="recgrp.bas.debtype">
<c-select v-model="model.recgrp.bas.debtype" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000019')" disabled :code="codes.actiontype">
:placeholder="$t('other.please_enter') + $t('pubp.S0000019')" disabled :code="codes.debtype">
</c-select>
</el-form-item>
</c-col>
......@@ -36,21 +36,21 @@
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000020')" prop="recgrp.bas.valuedate">
<c-date-picker type="date" v-model="model.recgrp.bas.valuedate" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000020')" disabled></c-date-picker>
:placeholder="$t('other.please_enter') + $t('pubp.S0000020')" :disabled="model.cfabut.basflg !== 'X'"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000021 : 签约金额 -->
<c-col :span="24">
<c-col :span="13">
<el-form-item :label="$t('pubp.S0000021')" prop="recgrp.bas.contractcurr">
<c-select v-model="model.recgrp.bas.contractcurr" style="width:100%" disabled
<c-select v-model="model.recgrp.bas.contractcurr" style="width:100%" :disabled="model.cfabut.basflg !== 'X'"
placeholder="请选择币种" :code="codes.curtxt1">
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<c-form-item label="" label-width="5px" prop="recgrp.bas.contractamount">
<c-input v-model="model.recgrp.bas.contractamount" placeholder="请输入签约金额" disabled></c-input>
<c-input v-model="model.recgrp.bas.contractamount" placeholder="请输入签约金额" :disabled="model.cfabut.basflg !== 'X'"></c-input>
</c-form-item>
</c-col>
</c-col>
......@@ -58,42 +58,42 @@
<c-col :span="24">
<c-form-item :label="$t('eafp.S0000013')" prop="recgrp.bas.appcode">
<c-input v-model="model.recgrp.bas.appcode" maxlength="18"
:placeholder="$t('other.please_enter') + $t('eafp.S0000013')" disabled></c-input>
:placeholder="$t('other.please_enter') + $t('eafp.S0000013')" :disabled="model.cfabut.basflg !== 'X'"></c-input>
</c-form-item>
</c-col>
<!-- S0000011 : 开证申请人名称 -->
<c-col :span="24">
<c-form-item :label="$t('eafp.S0000011')" prop="recgrp.bas.appname">
<c-input v-model="model.recgrp.bas.appname" maxlength="128"
:placeholder="$t('other.please_enter') + $t('eafp.S0000011')" disabled></c-input>
:placeholder="$t('other.please_enter') + $t('eafp.S0000011')" :disabled="model.cfabut.basflg !== 'X'"></c-input>
</c-form-item>
</c-col>
<!-- S0000002 : 债权人代码 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000002')" prop="recgrp.bas.creditorcode">
<c-input v-model="model.recgrp.bas.creditorcode" maxlength="18"
:placeholder="$t('other.please_enter') + $t('pubp.S0000002')" disabled></c-input>
:placeholder="$t('other.please_enter') + $t('pubp.S0000002')" :disabled="model.cfabut.basflg !== 'X'"></c-input>
</c-form-item>
</c-col>
<!-- S0000004 : 债权人中文名称 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000004')" prop="recgrp.bas.creditorname">
<c-input v-model="model.recgrp.bas.creditorname" maxlength="128"
:placeholder="$t('other.please_enter') + $t('pubp.S0000004')" disabled></c-input>
:placeholder="$t('other.please_enter') + $t('pubp.S0000004')" :disabled="model.cfabut.basflg !== 'X'"></c-input>
</c-form-item>
</c-col>
<!-- S0000005 : 债权人英文名称 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000005')" prop="recgrp.bas.creditornamen">
<c-input v-model="model.recgrp.bas.creditornamen" maxlength="128"
:placeholder="$t('other.please_enter') + $t('pubp.S0000005')" disabled></c-input>
:placeholder="$t('other.please_enter') + $t('pubp.S0000005')" :disabled="model.cfabut.basflg !== 'X'"></c-input>
</c-form-item>
</c-col>
<!-- S0000014 : 相关业务类型 -->
<c-col :span="24">
<el-form-item :label="$t('eafp.S0000014')" prop="recgrp.bas.credittype">
<c-select v-model="model.recgrp.bas.credittype" style="width:100%"
:placeholder="$t('other.please_enter') + $t('eafp.S0000014')" :code="codes.credittype" disabled>
:placeholder="$t('other.please_enter') + $t('eafp.S0000014')" :code="codes.credittype" :disabled="model.cfabut.basflg !== 'X'">
</c-select>
</el-form-item>
</c-col>
......@@ -101,7 +101,7 @@
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000023')" prop="recgrp.bas.remark">
<c-input type="textarea" v-model="model.recgrp.bas.remark" maxlength="31" show-word-limit
:placeholder="$t('other.please_enter') + $t('eadp.S0000023')" disabled></c-input>
:placeholder="$t('other.please_enter') + $t('eadp.S0000023')" :disabled="model.cfabut.basflg !== 'X'" ></c-input>
</c-form-item>
</c-col>
</c-col>
......@@ -125,14 +125,14 @@
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000023')" prop="recgrp.bas.maturity">
<c-date-picker type="date" v-model="model.recgrp.bas.maturity" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000023')" disabled></c-date-picker>
:placeholder="$t('other.please_enter') + $t('pubp.S0000023')" :disabled="model.cfabut.basflg !== 'X'"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000024 : 是否不纳入跨境融资风险加权余额计算 -->
<c-col :span="24">
<el-form-item label="是否不纳入跨境融资风险加权余额计算" prop="recgrp.bas.spapfeboindex">
<c-select v-model="model.recgrp.bas.spapfeboindex" style="width:100%"
placeholder="请选择是否不纳入跨境融资风险加权余额计算" :code="codes.spapfeboindex" disabled>
placeholder="请选择是否不纳入跨境融资风险加权余额计算" :code="codes.spapfeboindex" :disabled="model.cfabut.basflg !== 'X'">
</c-select>
</el-form-item>
</c-col>
......@@ -141,7 +141,7 @@
<el-form-item :label="$t('pubp.S0000003')" prop="recgrp.bas.creditortype">
<c-select v-model="model.recgrp.bas.creditortype" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000003')" :code="codes.creditortype"
disabled>
:disabled="model.cfabut.basflg !== 'X'">
</c-select>
</el-form-item>
</c-col>
......@@ -150,10 +150,10 @@
<c-form-item label="债权人总部所在国家(地区)代码" prop="recgrp.bas.crehqcode">
<c-fullbox>
<c-input v-model="model.recgrp.bas.crehqcode" maxlength="3"
:placeholder="$t('other.please_enter') + '债权人总部所在国家(地区)代码'" disabled></c-input>
:placeholder="$t('other.please_enter') + '债权人总部所在国家(地区)代码'" :disabled="model.cfabut.basflg !== 'X'"></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 10px; padding: 0 12px" type="primary"
icon="el-icon-search" @click="onCouselCrehqselbut" disabled>
icon="el-icon-search" @click="onCouselCrehqselbut" :disabled="model.cfabut.basflg !== 'X'">
</c-button>
</template>
</c-fullbox>
......@@ -164,10 +164,10 @@
<c-form-item label="债权人经营地所在国家(地区)代码" prop="recgrp.bas.opercode">
<c-fullbox>
<c-input v-model="model.recgrp.bas.opercode" maxlength="3"
:placeholder="$t('other.please_enter') + '债权人经营地所在国家(地区)代码'" disabled></c-input>
:placeholder="$t('other.please_enter') + '债权人经营地所在国家(地区)代码'" :disabled="model.cfabut.basflg !== 'X'"></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 10px; padding: 0 12px" type="primary"
icon="el-icon-search" @click="onCouselOperselbut" disabled>
icon="el-icon-search" @click="onCouselOperselbut" :disabled="model.cfabut.basflg !== 'X'">
</c-button>
</template>
</c-fullbox>
......@@ -177,7 +177,7 @@
<c-col :span="24">
<el-form-item :label="$t('eafp.S0000015')" prop="recgrp.bas.billsn">
<c-select v-model="model.recgrp.bas.billsn" style="width:100%"
:placeholder="$t('other.please_enter') + $t('eafp.S0000015')" :code="codes.billsn" disabled>
:placeholder="$t('other.please_enter') + $t('eafp.S0000015')" :code="codes.billsn" :disabled="model.cfabut.basflg !== 'X'">
</c-select>
</el-form-item>
</c-col>
......@@ -185,7 +185,7 @@
<c-col :span="24">
<el-form-item :label="$t('eadp.S0000027')" prop="recgrp.bas.relation">
<c-select v-model="model.recgrp.bas.relation" style="width:100%"
:placeholder="$t('other.please_enter') + $t('eadp.S0000027')" :code="codes.relation" disabled>
:placeholder="$t('other.please_enter') + $t('eadp.S0000027')" :code="codes.relation" :disabled="model.cfabut.basflg !== 'X'">
</c-select>
</el-form-item>
</c-col>
......
......@@ -14,6 +14,19 @@
<c-checkbox v-model="model.cfabut.basflg" class="checkbox-left">签约信息</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item>
<c-checkbox v-model="model.cfabut.addnew" class="checkbox-left" disabled>新增接口数据</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="DCL数目" prop="cfabut.newdcl">
<c-input v-model.number="model.cfabut.newdcl" placeholder="请输入DCL数目">
</c-input>
</c-form-item>
</c-col>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
......
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-page tittle="改 -- 外债远期信用证">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right"
size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--cfabut PD000002 接口数据 -->
<el-tab-pane label="接口数据" name="sel">
......@@ -23,6 +24,9 @@
</el-tab-pane> -->
</c-tabs>
</el-form>
<c-function-btn :handleSubmit="handleSubmit.bind(this, 'cfabut.sav')"
:handleCheck="handleCheck.bind(this, 'cfabut.chk')" :handleStash="handleStash"></c-function-btn>
</c-page>
</div>
</template>
<script>
......@@ -30,6 +34,7 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Eafame from "~/model/Eafame"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Eafame/Check"
import Default from "~/model/Eafame/Default"
import Pattern from "~/model/Eafame/Pattern"
......@@ -51,7 +56,7 @@ export default {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "sel",
......
......@@ -112,7 +112,7 @@
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000022')" prop="recgrp.bas.actiondesc">
<c-input type="textarea" v-model="model.recgrp.bas.actiondesc" maxlength="32" rows="7"
show-word-limit :placeholder="$t('other.please_enter') + $t('pubp.S0000022')" disabled>
show-word-limit :placeholder="$t('other.please_enter') + $t('pubp.S0000022')" :disabled="model.cfabut.basflg !== 'X'">
</c-input>
</c-form-item>
</c-col>
......
......@@ -10,10 +10,23 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item>
<el-form-item prop="cfabut.basflg">
<c-checkbox v-model="model.cfabut.basflg" class="checkbox-left">签约信息</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item>
<c-checkbox v-model="model.cfabut.addnew" class="checkbox-left" disabled>新增接口数据</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="DCL数目" prop="cfabut.newdcl">
<c-input v-model.number="model.cfabut.newdcl" placeholder="请输入DCL数目">
</c-input>
</c-form-item>
</c-col>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
......
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-page tittle="删 -- 外债远期信用证">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right"
size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--cfabut PD000002 接口数据 -->
<el-tab-pane label="接口数据" name="sel">
......@@ -24,6 +25,9 @@
</el-tab-pane> -->
</c-tabs>
</el-form>
<c-function-btn :handleSubmit="handleSubmit.bind(this, 'cfabut.sav')"
:handleCheck="handleCheck.bind(this, 'cfabut.chk')" :handleStash="handleStash"></c-function-btn>
</c-page>
</div>
</template>
<script>
......@@ -31,6 +35,7 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Eafdel from "~/model/Eafdel"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Eafdel/Check"
import Default from "~/model/Eafdel/Default"
import Pattern from "~/model/Eafdel/Pattern"
......@@ -52,7 +57,7 @@ export default {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "sel",
......
......@@ -28,7 +28,7 @@
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000019')" prop="recgrp.bas.debtype">
<c-select v-model="model.recgrp.bas.debtype" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000019')" disabled :code="codes.actiontype">
:placeholder="$t('other.please_enter') + $t('pubp.S0000019')" disabled :code="codes.debtype">
</c-select>
</el-form-item>
</c-col>
......
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