Coninfp.vue 5.72 KB
Newer Older
jianglong committed
1 2
<!-- 附言公共页面 -->

zhengxiaokui committed
3
<template>
liuxin committed
4 5 6 7 8
    <c-row>
        <c-col :span="24">
            <c-col :span="15">
                <el-form-item
                    style="height: 200px"
9 10
                    label="一般提示"
                    label-width="70px"
liuxin committed
11 12
                    prop="mtabut.coninf.oitinf.oit.inftxt"
                >
liuxin committed
13
                    <c-input-xml
14
                        :maxRows="10"
liuxin committed
15 16 17
                        maxlength="60"
                        resize="none"
                        show-word-limit
18
                        placeholder="请输入提示内容"
liuxin committed
19
                        @change="selectOrCheckboxRule('mtabut.coninf.oitinf.oit.inftxt')"
liuxin committed
20
                        :model="model.mtabut.coninf.oitinf.oit.inftxt"
liuxin committed
21
                    ></c-input-xml>
liuxin committed
22 23 24 25
                </el-form-item>
            </c-col>
            <c-col :span="7" :offset="1">
                <el-form-item
26 27
                    label="提示类型"
                    label-width="70px"
liuxin committed
28 29 30 31 32
                    prop="mtabut.coninf.oitinf.oit.inflev"
                >
                    <c-select
                        v-model="model.mtabut.coninf.oitinf.oit.inflev"
                        :disabled="GeneralIsEmpty"
33 34
                        placeholder="请选择"
                        style="width: 100%,margin-left:70px"
liuxin committed
35 36 37 38 39 40 41 42 43
                        :code="inflev"
                    >
                    </c-select>
                </el-form-item>
            </c-col>
        </c-col>
        <c-col :span="24">
            <c-col :span="15">
                <el-form-item
44 45 46
                    label="付款提示"
                    style="height: 200px"
                    label-width="70px"
liuxin committed
47 48
                    prop="mtabut.coninf.oitset.oit.inftxt"
                >
liuxin committed
49
                    <c-input-xml
liuxin committed
50
                        type="textarea"
51
                        :maxRows="10"
liuxin committed
52 53 54
                        maxlength="60"
                        resize="none"
                        show-word-limit
55
                        placeholder="请输入提示内容"
liuxin committed
56
                        @change="selectOrCheckboxRule('mtabut.coninf.oitset.oit.inftxt')"
liuxin committed
57
                        :model="model.mtabut.coninf.oitset.oit.inftxt"
liuxin committed
58
                    ></c-input-xml>
liuxin committed
59 60 61 62
                </el-form-item>
            </c-col>
            <c-col :span="7" :offset="1">
                <el-form-item
63 64
                    label="提示类型"
                    label-width="70px"
liuxin committed
65 66 67 68 69
                    prop="mtabut.coninf.oitset.oit.inflev"
                >
                    <c-select
                        v-model="model.mtabut.coninf.oitset.oit.inflev"
                        :disabled="SettlementIsEmpty"
70 71
                        placeholder="请选择"
                        style="width: 100%,margin-left:70px"
liuxin committed
72 73 74 75 76 77 78 79
                        :code="inflev"
                    >
                    </c-select>
                </el-form-item>
            </c-col>
        </c-col>
        <c-col :span="24">
            <c-col :span="15">
80
                <el-form-item label="执行日期" label-width="70px" prop="mtabut.coninf.conexedat">
liuxin committed
81 82 83
                    <c-date-picker
                        type="date"
                        v-model="model.mtabut.coninf.conexedat"
84 85
                        style="width: 60%,margin-left:70px"
                        
liuxin committed
86 87 88 89 90 91
                        placeholder="请选择执行日期"
                    ></c-date-picker>
                </el-form-item>
            </c-col>
            <c-col :span="7" :offset="1">
                <el-form-item
92 93 94
                    label="指定复核人"
                    label-width="80px"
                    style="display:inline-block"
liuxin committed
95 96 97 98
                    prop="mtabut.coninf.usr.extkey"
                >
                    <c-input
                        v-model="model.mtabut.coninf.usr.extkey"
99 100
                        
                        
liuxin committed
101 102
                        maxlength="8"
                        disabled="disabled"
103
                        placeholder="请输入用户编码"
liuxin committed
104 105 106 107 108
                    ></c-input>
                </el-form-item>
            </c-col>
        </c-col>
    </c-row>
zhengxiaokui committed
109 110
</template>
<script>
zhengxiaokui committed
111 112
// 附言页签,勿改
import _ from "~/utils/Lodash.js";
wangren committed
113
import commonProcess from "~/mixin/commonProcess";
liuxin committed
114
import IStreamInput from "~/components/IStreamInput";
zhengxiaokui committed
115
export default {
liuxin committed
116 117 118 119 120 121 122
    components: { IStreamInput },
    inject: ["root"],
    props: ["model", "codes"],
    mixins: [commonProcess],
    data() {
        return {
            inflev: [
123 124 125
                { label: "显示", value: "$" },
                { label: "不显示", value: "!" },
                { label: "提醒", value: "0" },
liuxin committed
126 127 128
            ], //码表
            test:"",
        };
zhengxiaokui committed
129
    },
liuxin committed
130 131 132 133 134 135 136 137 138 139 140 141 142
    methods: {
        valueChange(event, type) {
            if (!event) {
                _.set(this.model, type, "");
            }
        },
    },
    computed: {
        GeneralIsEmpty: {
            get() {
                var temp = this.model.mtabut.coninf.oitinf.oit.inftxt.rows;
                if(temp != null){
                    for(let i = 0; i < temp.length; i++){
liuxin committed
143
                        if(temp[i].trim().length > 0){
liuxin committed
144 145 146 147 148 149 150 151 152 153 154 155
                            return false;
                        }
                    }
                }
                return true;
            },
        },
        SettlementIsEmpty: {
            get() {
                var temp = this.model.mtabut.coninf.oitset.oit.inftxt.rows;
                if(temp != null){
                    for(let i = 0; i < temp.length; i++){
liuxin committed
156
                        if(temp[i].trim().length > 0){
liuxin committed
157 158 159 160 161 162 163 164 165
                            return false;
                        }
                    }
                }
                return true;
            },
        },
    },
    created: function () {},
zhengxiaokui committed
166 167 168
};
</script>
<style>
zhengxiaokui committed
169
</style>