Ccvpan.vue 11.3 KB
Newer Older
zhengxiaokui committed
1 2
<template>
  <div class="eibs-tab">
hulei committed
3 4 5 6 7 8 9
    <!--                                        
       <c-col :span="12">
        <el-form-item label="应付保证金金额">
            <c-input  v-model="model.liaall.liaccv.concur" maxlength="3"  placeholder="请输入应付保证金金额"></c-input>
        </el-form-item>
       </c-col>
       -->
zhengxiaokui committed
10 11 12
    <c-col :span="12">
      <el-form-item label="合同金额" prop="liaall.liaccv.concur">
        <c-row :gutter="20">
hulei committed
13 14 15
          <!--                <c-col :span="8">-->
          <!--                    <c-input type="text" :readonly="true" value="CNY"></c-input>-->
          <!--                </c-col>-->
zhengxiaokui committed
16 17 18 19
          <c-col :span="8">
            <c-select
              v-model="model.liaall.liaccv.concur"
              disabled
liushikai committed
20
              style="width: 95%"
zhengxiaokui committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
              placeholder="请选择Type of settlement"
            >
              <el-option
                v-for="item in codes.curtxt"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </c-col>
          <c-col :span="14">
            <c-input
              :readonly="true"
              v-model="model.liaall.liaccv.newamt"
            ></c-input>
          </c-col>
        </c-row>
      </el-form-item>
    </c-col>
hulei committed
41 42 43 44 45 46 47 48 49 50 51 52
    <!--
       <c-col :span="12">
        <el-form-item label="合同金额">
            <c-input  v-model="model.liaall.liaccv.newamt"  placeholder="请输入合同金额"></c-input>
        </el-form-item>
       </c-col>                                             
       <c-col :span="12">
        <el-form-item label="保证金应收比例">
            <c-input  v-model="model.liaall.liaccv.cshpct"  placeholder="请输入保证金应收比例"></c-input>
        </el-form-item>
       </c-col>
       -->
zhengxiaokui committed
53 54 55 56 57 58 59 60 61 62 63 64 65
    <c-col :span="12">
      <el-form-item label="保证金应收比例" prop="liaall.liaccv.cshpct">
        <c-row>
          <c-col :span="8">
            <c-input v-model="model.liaall.liaccv.cshpct"></c-input>
          </c-col>
          <c-col :span="12" style="margin-left: 20px">
            <span>%</span>
          </c-col>
        </c-row>
      </el-form-item>
    </c-col>

hulei committed
66 67 68 69 70 71 72
    <!--                                             
       <c-col :span="12">
        <el-form-item label="Reserved Amount">
            <c-input  v-model="model.liaall.liaccv.newresamt"  placeholder="请输入Reserved Amount"></c-input>
        </el-form-item>
       </c-col>
       -->
zhengxiaokui committed
73 74 75
    <c-col :span="12">
      <el-form-item label="Reserved Amount" prop="liaall.liaccv.newresamt">
        <c-row :gutter="20">
hulei committed
76 77 78
          <!--                <c-col :span="8">-->
          <!--                    <c-input type="text" :readonly="true" value="CNY"></c-input>-->
          <!--                </c-col>-->
zhengxiaokui committed
79 80 81 82
          <c-col :span="8">
            <c-select
              v-model="model.liaall.liaccv.concur"
              disabled
liushikai committed
83
              style="width: 95%"
zhengxiaokui committed
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
              placeholder="请选择Type of settlement"
            >
              <el-option
                v-for="item in codes.curtxt"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </c-col>
          <c-col :span="14">
            <c-input
              :readonly="true"
              v-model="model.liaall.liaccv.newresamt"
            ></c-input>
          </c-col>
        </c-row>
      </el-form-item>
    </c-col>
hulei committed
104 105 106 107 108 109 110
    <!--                            
       <c-col :span="12">
        <el-form-item label="保证金实收比例">
            <c-input  v-model="model.liaall.liaccv.relcshpct"  placeholder="请输入保证金实收比例"></c-input>
        </el-form-item>
       </c-col>
       -->
zhengxiaokui committed
111
    <c-col :span="12">
hulei committed
112
      <el-form-item label="保证金实收比例" prop="liaall.liaccv.relcshpct">
zhengxiaokui committed
113 114
        <c-row>
          <c-col :span="8">
hulei committed
115 116 117 118
            <c-input
              :readonly="true"
              v-model="model.liaall.liaccv.relcshpct"
            ></c-input>
zhengxiaokui committed
119 120 121 122 123 124 125 126
          </c-col>
          <c-col :span="12" style="margin-left: 20px">
            <span>%</span>
          </c-col>
        </c-row>
      </el-form-item>
    </c-col>

hulei committed
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
    <!--                            
       <c-col :span="12">
	    <c-checkbox v-model="model.liaall.liaccv.gleflg">Create gle flag</c-checkbox>
       </c-col> 
                                   
       <c-col :span="12">
        <el-form-item label="reserve amount based percent">
            <c-input  v-model="model.liaall.liaccv.pctresamt"  placeholder="请输入reserve amount based percent"></c-input>
        </el-form-item>
       </c-col>                 
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.liaall.liaccv.chgcurflg">Change currency flag</c-checkbox>
       </c-col> 
       -->

zhengxiaokui committed
143 144 145
    <c-col :span="12">
      <el-form-item label="应付保证金金额" prop="liaall.liaccv.concur">
        <c-row :gutter="20">
hulei committed
146 147 148
          <!--                <c-col :span="8">-->
          <!--                    <c-input type="text" :readonly="true" value="CNY"></c-input>-->
          <!--                </c-col>-->
zhengxiaokui committed
149 150 151 152
          <c-col :span="8">
            <c-select
              v-model="model.liaall.liaccv.concur"
              disabled
liushikai committed
153
              style="width: 95%"
zhengxiaokui committed
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
              placeholder="请选择Type of settlement"
            >
              <el-option
                v-for="item in codes.curtxt"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </c-col>
          <c-col :span="14">
            <c-input
              :readonly="true"
              v-model="model.liaall.liaccv.pctresamt"
            ></c-input>
          </c-col>
        </c-row>
      </el-form-item>
    </c-col>
hulei committed
174 175 176 177 178 179 180 181 182 183 184 185 186
    <!--
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="openMask">
            Add
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small"  icon="el-icon-delete" @click="onLiaccvDel">
            Del
        </c-button>
       </c-col>
       -->
liushikai committed
187 188 189
    <c-col :span="11" style="margin-left:20px;text-align:right">
      <!-- <c-row> -->
        <!-- <c-col :span="23" style="margin-left:35px;text-align:right"> -->
zhengxiaokui committed
190
          <c-button size="small" type="primary" @click="onLiaccvAdd">
zhengxiaokui committed
191 192
            Add
          </c-button>
liushikai committed
193
        <!-- </c-col> -->
zhengxiaokui committed
194 195 196 197 198 199 200 201
          <el-dialog
            :visible.sync="dialogTableVisible"
            :close-on-click-modal="false"
            :close-on-press-escape="false"
          >
            <c-istream-table :list="stmData.data" :columns="stmData.columns">
              <el-table-column prop="op" label="OP" width="100">
                <template slot-scope="scope">
202
                  <a href="javascript:void(0)" @click="pickDepItem(scope.$index,scope.row)"
zhengxiaokui committed
203 204 205 206 207 208 209
                    >选择</a
                  >
                </template>
              </el-table-column>
            </c-istream-table>
          </el-dialog>

hulei committed
210 211
        <!-- <c-col :span="2">
          <c-button size="small" icon="el-icon-delete" @click="onLiaccvDel">
zhengxiaokui committed
212 213
            Del
          </c-button>
hulei committed
214
        </c-col> -->
liushikai committed
215
      <!-- </c-row> -->
zhengxiaokui committed
216
    </c-col>
liushikai committed
217
    <!-- <c-col :span="24"><div style="height: 10px"></div></c-col> -->
zhengxiaokui committed
218

liushikai committed
219
    <c-col :span="23" style="margin:0 20px">
zhengxiaokui committed
220 221 222 223 224
      <c-table
        :border="true"
        :list="model.liaall.liaccv.liaccvg"
        style="width:80%,text-align:center"
      >
liushikai committed
225
        <el-table-column prop="ccdflg" label="CF000048" width="78px">
zhengxiaokui committed
226
        </el-table-column>
liushikai committed
227
        <el-table-column prop="ownref" label="保证金编号" width="130px">
zhengxiaokui committed
228
        </el-table-column>
liushikai committed
229
        <el-table-column prop="cur" label="币种" width="55px">
zhengxiaokui committed
230
        </el-table-column>
liushikai committed
231
        <el-table-column prop="oldamt" label="余额" width="150px">
zhengxiaokui committed
232
        </el-table-column>
liushikai committed
233
        <el-table-column prop="amt" label="变动金额" width="150px">
zhengxiaokui committed
234
        </el-table-column>
liushikai committed
235
        <el-table-column prop="acc" label="保证金账号" width="180px">
zhengxiaokui committed
236
        </el-table-column>
liushikai committed
237
        <el-table-column prop="rat" label="汇率" width="120px">
zhengxiaokui committed
238
        </el-table-column>
liushikai committed
239
        <el-table-column prop="concur" label="币种" width="55px">
zhengxiaokui committed
240
        </el-table-column>
liushikai committed
241
        <el-table-column prop="covamt" label="折算后金额" width="150px">
zhengxiaokui committed
242
        </el-table-column>
liushikai committed
243
        <el-table-column prop="acccovamt" label="Acc Amount" width="150px">
hulei committed
244
        </el-table-column>
liushikai committed
245
        <el-table-column label="操作" width="75px" fixed="right">
hulei committed
246
          <template slot-scope="scope">
liushikai committed
247 248
            <c-button style="margin-left:0" type="primary" size="small" @click="onLiaccvDel(scope.$index,scope.row)">
            Del</c-button>
hulei committed
249 250
          </template>
        </el-table-column>
zhengxiaokui committed
251 252 253
      </c-table>
    </c-col>

hulei committed
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282
    <!-- <c-col :span="12">
      <el-form-item label="Amount Covered">
        <c-row>
          <c-col :span="8">
            <c-select
              v-model="model.liaall.liaccv.concur"
              disabled
              style="width: 100%"
              placeholder="请选择Type of settlement"
            >
              <el-option
                v-for="item in codes.curtxt"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </c-col>
          <c-col :span="14">
            <c-input
              v-model="model.liaall.liaccv.totcovamt"
              :readonly="true"
            ></c-input>
          </c-col>
        </c-row>
      </el-form-item>
    </c-col> -->

liushikai committed
283
    <c-col :span="24" style="margin-top:15px">
zhengxiaokui committed
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
      <el-form-item label="金额总和">
        <c-col :span="8">
          <c-input
            style="width: 50%"
            v-model="model.liaall.liaccv.totcovamt"
            placeholder="请输入金额总和"
          ></c-input>
        </c-col>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Additional Information ">
        <c-input
          type="textarea"
hulei committed
299
          :rows="5"
zhengxiaokui committed
300 301 302 303 304 305 306 307 308 309 310 311 312
          v-model="model.liaall.liaccv.addinf"
          maxlength="200"
          show-word-limit
          placeholder="请输入Additional Information "
        ></c-input>
      </el-form-item>
    </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
zhengxiaokui committed
313
import Event from "~/model/Ditopn/Event";
zhengxiaokui committed
314 315 316

export default {
  inject: ["root"],
zhengxiaokui committed
317
  props: ["model", "codes"],
zhengxiaokui committed
318 319 320 321 322 323
  mixins: [CommonProcess],
  data() {
    return {
      dialogTableVisible: false,
      stmData: {
        columns: [
hulei committed
324
          '1 1:1 "Ref" 120',
zhengxiaokui committed
325 326 327 328
          '2 2:1 "User" 80',
          '3 3:1 "Applicant" 196',
          '4 4:1 "Account" 120',
          '5 5:1 "Cur" 50',
hulei committed
329
          '6 6:1 "Amt" 80 2 0 1 18.3',
zhengxiaokui committed
330 331 332 333 334 335 336 337 338 339 340 341 342 343
          '7 7:1 "Open date" 80 4 7',
          '8 8:1 "flg" 40',
          '9 9:1 "Remarks" 180',
          "P COLORED TRUE",
          "P VERTLINES TRUE",
          "P HORZLINES TRUE",
          "P MULTISELECT FALSE",
          "P COLUMNSIZING TRUE",
        ],
        data: [],
      },
      relrowDisabled: true,
    };
  },
zhengxiaokui committed
344 345
  methods: { ...Event },
  created: function () {},
zhengxiaokui committed
346 347 348 349
};
</script>
<style>
</style>