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

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

wangguangchao committed
127
    <!--                            
潘际乾 committed
128
       <c-col :span="12">
liuxin committed
129
	    <c-checkbox v-model="model.liaall.liaccv.gleflg">Create gle flag</c-checkbox>
潘际乾 committed
130
       </c-col> 
liuxin committed
131
                                   
潘际乾 committed
132
       <c-col :span="12">
liuxin committed
133 134 135
        <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>
潘际乾 committed
136
       </c-col>                 
liuxin committed
137
                  
潘际乾 committed
138
       <c-col :span="12">
liuxin committed
139
	    <c-checkbox v-model="model.liaall.liaccv.chgcurflg">Change currency flag</c-checkbox>
潘际乾 committed
140
       </c-col> 
liuxin committed
141 142
       -->

潘际乾 committed
143
    <c-col :span="12">
wangguangchao committed
144
      <el-form-item label="应付保证金金额" prop="liaall.liaccv.concur">
潘际乾 committed
145 146
        <c-row :gutter="20">
          <!--                <c-col :span="8">-->
wangguangchao committed
147
          <!--                    <c-input type="text" :readonly="true" value="CNY"></c-input>-->
潘际乾 committed
148 149
          <!--                </c-col>-->
          <c-col :span="8">
wangguangchao committed
150 151 152
            <c-select
              v-model="model.liaall.liaccv.concur"
              disabled
liushikai committed
153
              style="width: 95%"
wangguangchao committed
154 155 156 157 158 159 160 161 162 163
              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>
潘际乾 committed
164 165
          </c-col>
          <c-col :span="14">
wangguangchao committed
166 167 168 169
            <c-input
              :readonly="true"
              v-model="model.liaall.liaccv.pctresamt"
            ></c-input>
潘际乾 committed
170 171
          </c-col>
        </c-row>
wangguangchao committed
172
      </el-form-item>
潘际乾 committed
173
    </c-col>
wangguangchao committed
174
    <!--
潘际乾 committed
175
       <c-col :span="12">
wangguangchao committed
176
        <c-button size="small" type="primary"  @click="openMask">
liuxin committed
177 178
            Add
        </c-button>
潘际乾 committed
179
       </c-col>
liuxin committed
180
                  
潘际乾 committed
181
       <c-col :span="12">
liuxin committed
182 183 184
        <c-button size="small"  icon="el-icon-delete" @click="onLiaccvDel">
            Del
        </c-button>
潘际乾 committed
185
       </c-col>
liuxin committed
186
       -->
liushikai committed
187 188 189
    <c-col :span="11" style="margin-left:25px;text-align:right">
      <!-- <c-row> -->
        <!-- <c-col :span="23" style="margin-left:35px;text-align:right"> -->
liushikai committed
190
          <c-button size="small" type="primary" @click="onLiaccvAdd">
wangguangchao committed
191 192
            Add
          </c-button>
liushikai committed
193
        <!-- </c-col> -->
liushikai committed
194 195 196 197 198 199 200 201 202 203 204 205 206
          <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">
                  <a href="javascript:void(0)" @click="pickDepItem(scope.row)"
                    >选择</a
                  >
                </template>
              </el-table-column>
wangguangchao committed
207 208 209
            </c-istream-table>
          </el-dialog>

liushikai committed
210
        <!-- <c-col :span="2">
wangguangchao committed
211 212 213
          <c-button size="small" icon="el-icon-delete" @click="onLiaccvDel">
            Del
          </c-button>
liushikai committed
214
        </c-col> -->
liushikai committed
215
      <!-- </c-row> -->
潘际乾 committed
216
    </c-col>
wangguangchao committed
217

liushikai committed
218
    <!-- <c-col :span="24"><div style="height: 10px"></div></c-col> -->
219

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

潘际乾 committed
255
    <!-- <c-col :span="12">
wangguangchao committed
256
      <el-form-item label="Amount Covered">
潘际乾 committed
257 258
        <c-row>
          <c-col :span="8">
wangguangchao committed
259 260 261 262 263 264 265 266 267 268 269 270 271 272
            <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>
潘际乾 committed
273 274
          </c-col>
          <c-col :span="14">
wangguangchao committed
275 276 277 278
            <c-input
              v-model="model.liaall.liaccv.totcovamt"
              :readonly="true"
            ></c-input>
潘际乾 committed
279 280
          </c-col>
        </c-row>
wangguangchao committed
281
      </el-form-item>
潘际乾 committed
282
    </c-col> -->
liuxin committed
283

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

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

export default {
liushikai committed
317
  inject: ["root"],
wangguangchao committed
318
  props: ["model", "codes"],
319
  mixins: [CommonProcess],
wangguangchao committed
320 321 322 323 324
  data() {
    return {
      dialogTableVisible: false,
      stmData: {
        columns: [
325
          '1 1:1 "Ref" 120',
wangguangchao committed
326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347
          '2 2:1 "User" 80',
          '3 3:1 "Applicant" 196',
          '4 4:1 "Account" 120',
          '5 5:1 "Cur" 50',
          '6 6:1 "Amount" 80 2 0 1 18.3',
          '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,
    };
  },
  methods: { ...Event },
  created: function () {},
};
liuxin committed
348 349 350
</script>
<style>
</style>