Account.vue 2.27 KB
Newer Older
cl committed
1
<template>
nanrui committed
2 3 4
    <div class="eibs-tab">

        <c-col :span="11">
nanrui committed
5 6
            <el-form-item label="贷记账户" prop="cldgrp.rec.creact" style="width: 100%">
                <c-select v-model="model.cldgrp.rec.creact" style="width: 100%" placeholder="请选择贷记账户"
7
                    :code="codes.creact" :disabled="model.modflg === 'X'"  id="toughH">
nanrui committed
8 9
                </c-select>
            </el-form-item>
cl committed
10
        </c-col>
nanrui committed
11 12

        <c-col :span="11" :offset="1">
nanrui committed
13
            <el-form-item label="账户" prop="cldgrp.rec.acno">
14 15
                <c-input v-model="model.cldgrp.rec.acno" maxlength="20" placeholder="请输入A/C NO."
                    :disabled="model.modflg === 'X'">
nanrui committed
16 17 18 19 20
                </c-input>
            </el-form-item>
        </c-col>

        <c-col :span="11">
nanrui committed
21
            <el-form-item label="结算指示" prop="cldgrp.blk.setins">
22
                <c-input type="textarea" v-model="model.cldgrp.blk.setins" maxlength="300" show-word-limit rows="5"
nanrui committed
23
                    placeholder="请输入结算指示" :disabled="model.modflg !== 'X'"></c-input>
nanrui committed
24 25 26 27
            </el-form-item>
        </c-col>
        <c-col :span="11" :offset="1">
            <el-form-item label="">
28 29 30
                <c-checkbox v-model="model.modflg">修改</c-checkbox>
                <c-button size="small" type="primary" icon="el-icon-search" :disabled="model.modflg !== 'X'"
                    @click="showGridPromptDialog('cltp.setins.buttxmsel', null, null,{TXT: 'cldgrp.blk.setins'}, {TXT: false},'doxpDialog')">
nanrui committed
31 32 33 34 35
                    ...
                </c-button>
            </el-form-item>
        </c-col>
    </div>
cl committed
36 37 38
</template>
<script>
import Api from "~/service/Api"
wangren committed
39
import commonProcess from "~/mixin/commonProcess";
cl committed
40 41 42 43 44
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cltdav/Event"

export default {
    inject: ['root'],
nanrui committed
45
    props: ["model", "codes"],
wangren committed
46
    mixins: [commonProcess],
nanrui committed
47
    data() {
cl committed
48 49 50 51
        return {

        }
    },
nanrui committed
52 53
    methods: { ...Event },
    created: function () {
cl committed
54

55 56 57 58 59 60 61 62 63
    },
    watch: {
        "model.modflg": {
            async handler(newVal, oldVal) {
                if (newVal !== 'X') {
                    this.model.cldgrp.blk.setins = '';
                }
            }
        }
cl committed
64 65 66 67
    }
}
</script>
<style>
68 69 70
#toughH{
    height: 24px !important;
}
cl committed
71
</style>