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

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

jianglong committed
24
     
25 26

        <c-col :span="15">
jianglong committed
27
        <el-form-item label="信用证余额" prop="lidgrp.cbs.opn1.cur">
28 29
            <c-input disabled v-model="model.lidgrp.cbs.opn1.cur" maxlength="3"  placeholder="请输入信用证余额"></c-input>
        </el-form-item>
30 31
       </c-col>
                  
32 33
       <c-col :span="9">
        <el-form-item label="" label-width="10px" prop="lidgrp.cbs.opn1.amt">
jianglong committed
34
            <c-input disabled v-model="model.lidgrp.cbs.opn1.amt"  placeholder="请输入金额"></c-input>
35
        </el-form-item>
36
       </c-col>
jianglong committed
37
    
38 39

        <c-col :span="24">
jianglong committed
40
        <el-form-item label="可用银行" prop="lidgrp.avbnam">
wangna committed
41
            <c-input disabled v-model="model.lidgrp.avbnam" maxlength="40"  placeholder="请输入可用银行"></c-input>
42 43
        </el-form-item>
       </c-col>
44 45

       <c-col :span="24">
jianglong committed
46
        <el-form-item label="兑付方式" prop="lidgrp.rec.avbby">
47 48 49
            <c-select 
            disabled 
            :code="codes.avbby"
wangna committed
50
            v-model="model.lidgrp.rec.avbby" style="width:100%" placeholder="请选择兑付方式">
51 52 53
              </c-select>
        </el-form-item>
       </c-col>
54

jianglong committed
55
      
56 57

          <c-col :span="24">
jianglong committed
58
        <el-form-item label="开证日期" prop="lidgrp.rec.opndat">
59 60
            <c-date-picker 
            disabled
jianglong committed
61
            type="date"  v-model="model.lidgrp.rec.opndat" style="width:100%"  placeholder="请选择日期"></c-date-picker>
62 63 64
        </el-form-item>
       </c-col>
                  
65 66 67 68
       <c-col :span="24">
        <el-form-item label="提货日期" prop="lidgrp.rec.shpdat">
            <c-date-picker
            disabled
jianglong committed
69
             type="date"  v-model="model.lidgrp.rec.shpdat" style="width:100%"  placeholder="请选择日期"></c-date-picker>
70 71 72 73
        </el-form-item>
       </c-col>

        <c-col :span="24">
jianglong committed
74
        <el-form-item label="有效期限" prop="lidgrp.rec.expdat">
75 76
            <c-date-picker
            disabled
jianglong committed
77
             type="date"  v-model="model.lidgrp.rec.expdat" style="width:100%"  placeholder="请选择日期"></c-date-picker>
78
        </el-form-item>
79 80
       </c-col>
                  
81
       <c-col :span="24">
jianglong committed
82 83
        <el-form-item label="到期地点" prop="lidgrp.rec.expplc">
            <c-input disabled v-model="model.lidgrp.rec.expplc" maxlength="29"  placeholder="请输入地点"></c-input>
84 85
        </el-form-item>
       </c-col>
86
       <c-col :span="24">
jianglong committed
87
        <el-form-item label="信用证类型" prop="lidgrp.rec.lcrtyp">
88 89 90
            <c-select 
            disabled 
            :code="codes.lcrtyp"
jianglong committed
91
            v-model="model.lidgrp.rec.lcrtyp" style="width:100%" placeholder="请选择信用证类型">
92 93 94
              </c-select>
        </el-form-item>
       </c-col>
95

jianglong committed
96
      
97 98
    </el-col>

xiameng committed
99
    <el-col :span="12" style="padding-left: 20px;">
100
            <c-col :span="24">
jianglong committed
101 102
        <el-form-item label="简略信息" prop="lidgrp.rec.nam">
            <c-input  disabled v-model="model.lidgrp.rec.nam" maxlength="40"  placeholder="请输入简略信息"></c-input>
103 104
        </el-form-item>
       </c-col>
105 106

        <c-col :span="24">
jianglong committed
107 108
        <el-form-item label="申请人参考号" prop="lidgrp.apl.pts.ref">
            <c-input  disabled v-model="model.lidgrp.apl.pts.ref" maxlength="16"  placeholder="请输入参考号"></c-input>
109 110
        </el-form-item>
       </c-col>
111 112

        <c-col :span="24">
jianglong committed
113 114
        <el-form-item label="申请人名称" prop="lidgrp.apl.pts.nam">
            <c-input disabled v-model="model.lidgrp.apl.pts.nam" maxlength="40"  placeholder="请输入名称"></c-input>
115
        </el-form-item>
116
       </c-col>
117 118

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

        <c-col :span="24">
jianglong committed
125
        <el-form-item label="受益人名称" prop="lidgrp.ben.pts.nam">
126
            <c-input disabled v-model="model.lidgrp.ben.pts.nam" maxlength="40"  placeholder="请输入兑付方式"></c-input>
127 128
        </el-form-item>
       </c-col>
129 130

        <c-col :span="24">
jianglong committed
131 132
        <el-form-item label="通知行参考号" prop="lidgrp.adv.pts.ref">
            <c-input disabled v-model="model.lidgrp.adv.pts.ref" maxlength="16"  placeholder="请输入通知行参考号"></c-input>
133
        </el-form-item>
134
       </c-col>
135 136

        <c-col :span="24">
jianglong committed
137
        <el-form-item label="通知行名称" prop="lidgrp.adv.pts.nam">
138 139 140 141
            <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
142
        <el-form-item label="修改次数" prop="amenbr">
wangna committed
143
            <c-input disabled v-model="model.amenbr" maxlength="3"  placeholder="请输入修改次数"></c-input>
144 145 146
        </el-form-item>
       </c-col> 

147
       <c-col :span="12">
jianglong committed
148
        <el-form-item label="修改金额" prop="amecur">
wangna committed
149
            <c-input disabled v-model="model.amecur" maxlength="3"  placeholder="请输入修改金额"></c-input>
150 151
        </el-form-item>
       </c-col>
152
                  
153
       <c-col :span="12">
jianglong committed
154
        <el-form-item label="" prop="reduceamt">
155
            <c-input disabled v-model="model.reduceamt"  placeholder="请输入修改金额"></c-input>
156
        </el-form-item>
157 158
       </c-col> 

159
       <c-col :span="12">
jianglong committed
160
        <el-form-item label="修改日期" prop="amedat">
wangna committed
161
            <c-input disabled v-model="model.amedat" maxlength="12"  placeholder="请输入修改日期"></c-input>
162 163 164 165
        </el-form-item>
       </c-col>  

       <c-col :span="12">   
xiameng committed
166
        <el-form-item label="是否接受此笔减额修改" prop="ameflg" label-width="160px">
167 168 169 170 171
            <c-select v-model="model.ameflg" disabled>
                <el-option v-for="item in codes.ameflg" :key="item.value" :label="item.label"
                    :value="item.value">
                </el-option>
            </c-select>
172 173
        </el-form-item>
       </c-col>
174 175 176 177 178 179 180 181 182 183
    </el-col>   

    <el-col :span="23">
        <c-istream-table 
                    :list="model.decstm.rows || []"
                    :columns="trnData.columns"
                    :showSelection="true"
                    v-on:multipleSelect="multipleSelect"
        >
        </c-istream-table>
184
    </el-col>    
185
   
186 187 188 189 190 191
  </div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
192
import Event from "~/model/Litacp/Event"
193

194 195

export default {
196 197
  
    
198 199 200 201
    inject: ['root'],
    props:["model","codes"],
    mixins: [commonProcess],
    data(){
202
        return {  
203 204 205
        trnData: {
        columns: [
            "0 1 \"\" 200",
xiameng committed
206
            "1 2 \"编号\" 240",
jianglong committed
207
            "2 3 \"币种\" 200",
208
            "3 4 \"减额金额\" 200 ",
xiameng committed
209
            "4 5 \"修改日期\" 255 ",
210 211 212 213 214
            "5 6 \"备注\" 300 ",
           
        ],
        data: [],
      },
215 216 217

        }
    },
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: '服务请求失败!'});
                }
      }
    },
    },
235
    created:function(){
236
        
237 238 239 240
    }
}
</script>
<style>
241 242 243
.stream{
   cursor: pointer; 
}
244
</style>