Acpp.vue 8.8 KB
Newer Older
wangren committed
1 2 3 4
<template>
  <div class="eibs-tab">
    <el-col :span="11">
        <c-col :span="24">
jianglong committed
5 6
        <el-form-item label="信用证编号" prop="lidgrp.rec.ownref">
            <c-input disabled v-model="model.lidgrp.rec.ownref" maxlength="16"  placeholder="请输入编号"></c-input>
wangren committed
7 8 9 10
        </el-form-item>
       </c-col>

        <c-col :span="10">
jianglong committed
11 12
        <el-form-item label="信用证金额" prop="lidgrp.cbs.nom1.cur">
            <c-input disabled v-model="model.lidgrp.cbs.nom1.cur" style="width:100%" placeholder="请选择">
wangren committed
13 14 15 16 17 18
            </c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="10">
        <el-form-item label="" label-width="10px" prop="lidgrp.cbs.nom1.amt">
jianglong committed
19
            <c-input disabled v-model="model.lidgrp.cbs.nom1.amt"  placeholder="请输入金额"></c-input>
wangren committed
20 21 22 23
        </el-form-item>
       </c-col>

       <c-col :span="4">
jianglong committed
24
	    <c-checkbox disabled v-model="model.litp.litp0.aammod.addamtflg">附加金额</c-checkbox>
wangren committed
25 26 27
       </c-col>

        <c-col :span="10">
jianglong committed
28
        <el-form-item label="信用证余额" prop="lidgrp.cbs.opn1.cur">
wangren committed
29 30 31 32 33 34
            <c-input disabled v-model="model.lidgrp.cbs.opn1.cur" maxlength="3"  placeholder="请输入信用证余额"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="10">
        <el-form-item label="" label-width="10px" prop="lidgrp.cbs.opn1.amt">
jianglong committed
35
            <c-input disabled v-model="model.lidgrp.cbs.opn1.amt"  placeholder="请输入金额"></c-input>
wangren committed
36 37 38 39
        </el-form-item>
       </c-col>
                  
       <c-col :span="4">
jianglong committed
40
	    <c-checkbox disabled v-model="model.lidgrp.rec.revflg">循环信用证</c-checkbox>
wangren committed
41 42 43
       </c-col>

        <c-col :span="24">
jianglong committed
44
        <el-form-item label="可用银行" prop="lidgrp.avbnam">
wangren committed
45 46 47 48 49
            <c-input disabled v-model="model.lidgrp.avbnam" maxlength="40"  placeholder="请输入指定银行"></c-input>
        </el-form-item>
       </c-col>

       <c-col :span="12">
jianglong committed
50 51
        <el-form-item label="兑付方式" prop="lidgrp.rec.avbby">
            <c-select disabled v-model="model.lidgrp.rec.avbby" style="width:100%" placeholder="请选择方式">
52 53 54
                <el-option v-for="item in codes.avbby" :key="item.value" :label="item.label" :value="item.value">
                </el-option>
            </c-select>
wangren committed
55 56 57 58
        </el-form-item>
       </c-col>

        <c-col :span="12">
jianglong committed
59
	    <c-checkbox disabled v-model="model.lidgrp.rec.redclsflg">红/绿条款</c-checkbox>
wangren committed
60 61 62
         </c-col>

          <c-col :span="24">
jianglong committed
63
        <el-form-item label="开证日期" prop="lidgrp.rec.opndat">
wangren committed
64 65
            <c-date-picker 
            disabled
jianglong committed
66
            type="date"  v-model="model.lidgrp.rec.opndat" style="width:100%"  placeholder="请选择日期"></c-date-picker>
wangren committed
67 68 69 70
        </el-form-item>
       </c-col>
                  
       <c-col :span="24">
jianglong committed
71
        <el-form-item label="最迟装运期" prop="lidgrp.rec.shpdat">
wangren committed
72 73
            <c-date-picker
            disabled
jianglong committed
74
             type="date"  v-model="model.lidgrp.rec.shpdat" style="width:100%"  placeholder="请选择日期"></c-date-picker>
wangren committed
75 76 77 78
        </el-form-item>
       </c-col>

        <c-col :span="24">
jianglong committed
79
        <el-form-item label="有效期限" prop="lidgrp.rec.expdat">
wangren committed
80 81
            <c-date-picker
            disabled
jianglong committed
82
             type="date"  v-model="model.lidgrp.rec.expdat" style="width:100%"  placeholder="请选择日期"></c-date-picker>
wangren committed
83 84 85 86
        </el-form-item>
       </c-col>
                  
       <c-col :span="24">
jianglong committed
87 88
        <el-form-item label="到期地点" prop="lidgrp.rec.expplc">
            <c-input disabled v-model="model.lidgrp.rec.expplc" maxlength="29"  placeholder="请输入地点"></c-input>
wangren committed
89 90 91
        </el-form-item>
       </c-col>
       <c-col :span="24">
jianglong committed
92 93
        <el-form-item label="信用证类型" prop="lidgrp.rec.lcrtyp">
            <c-select disabled v-model="model.lidgrp.rec.lcrtyp" style="width:100%" placeholder="请选择信用证类型">
94 95 96 97 98 99 100 101
            <el-option
               v-for="item in codes.lcrtyp1"
               :key="item.value"
               :label="item.label"
               :value="item.value"
             >
             </el-option>
            </c-select>
wangren committed
102 103 104 105 106 107 108 109 110 111 112 113
        </el-form-item>
       </c-col>

       <!-- <c-col :span="24">
        <el-form-item label="Amount Amend History List" prop="decstm">
            <c-input disabled v-model="model.decstm"  placeholder="请输入Amount Amend StreamGrid"></c-input>
        </el-form-item>
       </c-col> -->
    </el-col>

    <el-col :span="11" :offset="1">
            <c-col :span="24">
jianglong committed
114 115
        <el-form-item label="简略信息" prop="lidgrp.rec.nam">
            <c-input  disabled v-model="model.lidgrp.rec.nam" maxlength="40"  placeholder="请输入简略信息"></c-input>
wangren committed
116 117 118 119
        </el-form-item>
       </c-col>

        <c-col :span="24">
jianglong committed
120 121
        <el-form-item label="申请人参考号" prop="lidgrp.apl.pts.ref">
            <c-input  disabled v-model="model.lidgrp.apl.pts.ref" maxlength="16"  placeholder="请输入参考号"></c-input>
wangren committed
122 123 124 125
        </el-form-item>
       </c-col>

        <c-col :span="24">
jianglong committed
126 127
        <el-form-item label="申请人名称" prop="lidgrp.apl.pts.nam">
            <c-input disabled v-model="model.lidgrp.apl.pts.nam" maxlength="40"  placeholder="请输入名称"></c-input>
wangren committed
128 129 130 131
        </el-form-item>
       </c-col>

        <c-col :span="24">
jianglong committed
132 133
        <el-form-item label="受益人参考号" prop="lidgrp.ben.pts.ref">
            <c-input disabled v-model="model.lidgrp.ben.pts.ref" maxlength="16"  placeholder="请输入受益人参考号"></c-input>
wangren committed
134 135 136 137
        </el-form-item>
       </c-col>

        <c-col :span="24">
jianglong committed
138
        <el-form-item label="受益人名称" prop="lidgrp.ben.pts.nam">
wangren committed
139 140 141 142 143
            <c-input disabled v-model="model.lidgrp.ben.pts.nam" maxlength="40"  placeholder="请输入兑付方式"></c-input>
        </el-form-item>
       </c-col>

        <c-col :span="24">
jianglong committed
144 145
        <el-form-item label="通知行参考号" prop="lidgrp.adv.pts.ref">
            <c-input disabled v-model="model.lidgrp.adv.pts.ref" maxlength="16"  placeholder="请输入通知行参考号"></c-input>
wangren committed
146 147 148 149
        </el-form-item>
       </c-col>

        <c-col :span="24">
jianglong committed
150
        <el-form-item label="通知行名称" prop="lidgrp.adv.pts.nam">
wangren committed
151 152 153 154
            <c-input disabled v-model="model.lidgrp.adv.pts.nam" maxlength="40"  placeholder="请输入到期日"></c-input>
        </el-form-item>
       </c-col> 
       <c-col :span="24">
jianglong committed
155 156
        <el-form-item label="修改次数" prop="nbr">
            <c-input disabled v-model="model.nbr" maxlength="3"  placeholder="请输入次数"></c-input>
wangren committed
157 158 159 160
        </el-form-item>
       </c-col> 

       <c-col :span="12">
jianglong committed
161 162
        <el-form-item label="修改币种" prop="amecur">
            <c-input disabled v-model="model.amecur" maxlength="3"  placeholder="请输入币种"></c-input>
wangren committed
163 164 165 166 167 168 169 170 171 172
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="修改金额" prop="ameamt">
            <c-input disabled v-model="model.ameamt"  placeholder="请输入修改金额"></c-input>
        </el-form-item>
       </c-col> 

       <c-col :span="24">
jianglong committed
173
        <el-form-item label="修改日期" prop="amedat">
wangren committed
174 175 176 177 178 179 180
            <c-input disabled v-model="model.amedat" maxlength="12"  placeholder="请输入Amount Amend Date"></c-input>
        </el-form-item>
       </c-col>     
    </el-col>   

    <el-col :span="23">
        <c-istream-table 
181
                    :list="model.decstm.rows || []"
wangren committed
182
                    :columns="trnData.columns"
183 184
                    :showSelection="true"
                    v-on:multipleSelect="multipleSelect"
wangren committed
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
        >
        </c-istream-table>
    </el-col>                       
       
  </div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Litacp/Event"

export default {
    inject: ['root'],
    props:["model","codes"],
    mixins: [commonProcess],
    data(){
        return {
        trnData: {
        columns: [
205 206 207 208 209 210 211
            "0 1 \"\" 200",
            "1 2 \"Own Reference\" 200",
            "2 3 \"Cur\" 200",
            "3 4 \"减额金额\" 200 ",
            "4 5 \"修改日期\" 200 ",
            "5 6 \"备注\" 300 ",
           
wangren committed
212 213 214 215 216 217
        ],
        data: [],
      },

        }
    },
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
    methods:{...Event,
    async multipleSelect(selection) {
      console.log(selection);
      if (selection) {
        let selIds = selection.map(x=>x+1);
        let params = {selDst:"decstm",selIds}
        const rtnmsg = await this.executeRule("decstm",params);
        if (rtnmsg.respCode == SUCCESS) {
            this.updateModel(rtnmsg.data)
        }
        else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
      }
    },
    },
wangren committed
235
    created:function(){
236
        
wangren committed
237 238 239 240
    }
}
</script>
<style>
241 242 243
.stream{
   cursor: pointer; 
}
wangren committed
244
</style>