Setpan.vue 14.5 KB
Newer Older
1
<template>
潘际乾 committed
2
  <c-row class="eibs-tab">
liushikai committed
3
    <!-- ===================顶部===================== -->
潘际乾 committed
4
    <c-col :span="6">
liushikai committed
5
            <el-form-item label="Reference" label-width="100px" prop="setmod.ref">
liushikai committed
6 7 8 9 10 11 12
                <c-input
                    v-model="model.setmod.ref"
                    maxlength="16"
                    :readonly="true"
                    placeholder=""
                ></c-input>
            </el-form-item>
潘际乾 committed
13 14
        </c-col>
        <c-col :span="6">
liushikai committed
15 16
            <el-form-item label="Amount Settled" label-width="150px">
                <c-input
wangguangchao committed
17
                    v-model="model.setmod.doccur"
liushikai committed
18
                    style="width: 100%"
wangguangchao committed
19
                    placeholder="CNY"
liushikai committed
20 21 22 23
                    :readonly="true"
                    
                ></c-input>
            </el-form-item>
潘际乾 committed
24
        </c-col>
liushikai committed
25

潘际乾 committed
26
        <c-col :span="4">
liushikai committed
27 28
            <el-form-item label="" label-width="20px">
                <c-input
wangguangchao committed
29
                    v-model="model.setmod.docamt"
liushikai committed
30 31 32 33
                    :readonly="true"
                    placeholder=""
                ></c-input>
            </el-form-item>
潘际乾 committed
34
        </c-col>
liushikai committed
35

潘际乾 committed
36
        <c-col :span="6">
wangguangchao committed
37 38 39 40
            <el-form-item label="类型" label-width="100px">
                <c-select
                    v-model="model.setmod.dspflg"
                    disabled
liushikai committed
41
                    style="width: 100%"
wangguangchao committed
42
                    placeholder="请选择Type of settlement"
liushikai committed
43
                >
wangguangchao committed
44 45 46 47 48 49 50 51
                    <el-option
                        v-for="item in codes.dspflg"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                    >
                    </el-option>
                </c-select>
liushikai committed
52
            </el-form-item>
潘际乾 committed
53
        </c-col>
liushikai committed
54 55 56



潘际乾 committed
57
    <!-- <c-col :span="12">
liushikai committed
58 59
      <span v-text="model.setmod.docamttyplab" data-path=".setmod.docamttyplab">
      </span>
潘际乾 committed
60
    </c-col> -->
liushikai committed
61

潘际乾 committed
62
    <!-- <c-col :span="10" :offset="1">
liushikai committed
63 64 65 66 67 68 69 70
      <el-form-item label="document currency">
        <c-select
          v-model="model.setmod.doccur"
          style="width: 100%"
          placeholder="请选择document currency"
        >
        </c-select>
      </el-form-item>
潘际乾 committed
71
    </c-col> -->
liushikai committed
72

潘际乾 committed
73
    <!-- <c-col :span="4" :offset="3">
liushikai committed
74
      <c-checkbox v-model="model.setmod.xreflg">Recalculate Rates</c-checkbox>
潘际乾 committed
75
    </c-col> -->
liushikai committed
76

潘际乾 committed
77
    <c-col :span="3" :offset="21">
liushikai committed
78 79 80
      <c-button size="small" type="primary" @click="onSetmodDet">
        细节
      </c-button>
潘际乾 committed
81
    </c-col>
liushikai committed
82

潘际乾 committed
83
    <!-- <c-col :span="12">
liushikai committed
84
      <span v-text="model.setmod.retmsg" data-path=".setmod.retmsg"> </span>
潘际乾 committed
85
    </c-col>
liushikai committed
86

潘际乾 committed
87
    <c-col :span="11" style="margin-top: 20px">
liushikai committed
88 89 90 91 92 93 94
      <el-form-item label="自�'�区主�'�号">
        <c-input
          v-model="model.setmod.zmqacc"
          maxlength="20"
          placeholder="请输入自�'�区主�'�号"
        ></c-input>
      </el-form-item>
潘际乾 committed
95
    </c-col>
liushikai committed
96

潘际乾 committed
97
    <c-col :span="12">
liushikai committed
98 99
      <span v-text="model.setmod.zmqacclab" data-path=".setmod.zmqacclab">
      </span>
潘际乾 committed
100
    </c-col>
liushikai committed
101

潘际乾 committed
102
    <c-col :span="12">
liushikai committed
103 104 105 106 107
      <span
        v-text="model.setmod.setglg.labdspflg"
        data-path=".setmod.setglg.labdspflg"
      >
      </span>
潘际乾 committed
108
    </c-col> -->
liushikai committed
109 110
    <!-- ======================中部表格======================= -->
    <!--=================== Foreign Commission/Charges:================== -->
潘际乾 committed
111
    <c-col :span="24">
liushikai committed
112 113
      <el-form-item label="Foreign Commission/Charges:" label-width="210px">
      </el-form-item>
潘际乾 committed
114
    </c-col>
liushikai committed
115

潘际乾 committed
116
    <c-col :span="22" style="margin-bottom: 18px" :offset="1">
liushikai committed
117 118
      <c-table
        style="text-align: center"
wangguangchao committed
119
        :list="model.setmod.setfog.setfol"
liushikai committed
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
        :paginationShow="false"
        :border="true"
      >
        <el-table-column label="Payer" prop="ptydbt" width="auto">
          <template slot-scope="scope">
            <el-select v-model="scope.ptydbt">
              <el-option
                v-for="item in codes.ptydbt"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </template>
        </el-table-column>
        <el-table-column label="Payee" width="auto">
                    <template slot-scope="scope">
                        <el-select v-model="scope.Payee">
                            <el-option
                                v-for="item in codes.Payee"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </template>
                </el-table-column>
                <el-table-column label="Source" prop="src" width="auto">
                </el-table-column>
                <el-table-column label="Disp" prop="dsp" width="auto">
                </el-table-column>
                <el-table-column
                    label="Text for Payer"
                    prop="txtdbt"
                    width="auto"
                >
                </el-table-column>
                <el-table-column
                    label="Text for Payee"
                    prop="txtpay"
                    width="auto"
                >
                </el-table-column>
                <el-table-column label="Currency" prop="cur" width="auto">
                    <template slot-scope="scope">
                        <el-select v-model="scope.cur">
                            <el-option
                                v-for="item in codes.cur"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </template>
                </el-table-column>
                <el-table-column label="Amount" prop="amt" width="auto">
                </el-table-column>
                <el-table-column label="" prop="det" width="auto">
                    <template slot-scope="scope" slot="header">
                        <el-button
                            class="el-icon-circle-plus-outline"
                            size="mini"
                            @click="addRow(scope)"
                        >
                        </el-button>
                        <el-button
                            class="el-icon-remove-outline"
                            size="mini"
                            @click="removeRow(scope)"
                        >
                        </el-button>
                    </template>
                    <template slot-scope="scoped">
                        <el-button
                            size="mini"
                            @click="detail1(scoped.$index, scoped.row)"
                            >details</el-button
                        >
                    </template>
                </el-table-column>
      </c-table>
潘际乾 committed
204
    </c-col>
liushikai committed
205
    <!--=================== Own Commission/Charges:================== -->
潘际乾 committed
206
        <c-col :span="24" style="text-align: left">
liushikai committed
207
            <el-form-item label="Own Commission/Charges:"> </el-form-item>
潘际乾 committed
208 209
        </c-col>
        <c-col :span="22" style="margin-bottom: 18px" :offset="1">
liushikai committed
210 211
            <c-table
                style="text-align: center"
212
                :list="model.setmod.setfeg.setfel"
liushikai committed
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
                :paginationShow="false"
                :border="true"
            >
                <el-table-column label="Role" width="auto">
                    <template #default="scope">
                        <el-select v-model="scope.row.rol">
                            <el-option
                                v-for="item in codes.setfelRol"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </template>
                </el-table-column>
                <el-table-column label="Code" prop="feecod" width="auto">
                </el-table-column>
                <el-table-column label="Source" prop="src" width="auto">
                </el-table-column>
                <el-table-column label="Disp" width="auto">
                    <template #default="scope">
                        <el-select v-model="scope.row.dsp" @change="dispDefault">
                            <el-option
                                v-for="item in codes.setfeldsp"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </template>
                </el-table-column>
                <el-table-column label="Units" prop="unt" width="auto">
                </el-table-column>
                <el-table-column
                    label="Long Fee Text"
                    prop="feetxtinf"
                    width="auto"
                >
                </el-table-column>
                <el-table-column label="Currency" prop="cur" width="auto">
                </el-table-column>
                <el-table-column
                    label="Original Amount"
                    prop="ogiamt"
                    width="auto"
                >
                </el-table-column>
                <el-table-column label="Fee Amount" prop="amt" width="auto">
                </el-table-column>
                <el-table-column label="Details" prop="det" width="auto">
                    <template slot-scope="scoped">
                        <el-button
                            size="mini"
                            @click="detail2(scoped.$index, scoped.row)"
liushikai committed
269
                            >详情</el-button
liushikai committed
270 271 272 273
                        >
                    </template>
                </el-table-column>
            </c-table>
潘际乾 committed
274
        </c-col>
wangguangchao committed
275
        <setpan-dialog v-if="dialogVisible2" :visible="dialogVisible2" :model="model" :idx="index" :codes="codes"/>
liushikai committed
276
        <!--=================== Settlement:================== -->
潘际乾 committed
277
        <c-col :span="24" style="text-align: left">
liushikai committed
278 279
            <el-form-item label="Settlement:" label-width="100px">
            </el-form-item>
潘际乾 committed
280 281
        </c-col>
        <c-col :span="22" style="margin-bottom: 18px" :offset="1">
liushikai committed
282 283
            <c-table
                style="text-align: center"
wangguangchao committed
284
                :list="model.setmod.setglg.setgll"
liushikai committed
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350
                :paginationShow="false"
                :border="true"
            >
                <el-table-column label="Mod" prop="modflg" width="auto">
                </el-table-column>
                <el-table-column label="Role" prop="rol" width="auto">
                </el-table-column>
                <el-table-column label="in" prop="acccur" width="auto">
                    <template slot-scope="scope">
                        <el-select v-model="scope.row.acccur">
                            <el-option
                                v-for="item in codes.acccur"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </template>
                </el-table-column>
                <el-table-column
                    label="Amount Paid"
                    prop="fmtaccamt"
                    width="auto"
                >
                </el-table-column>
                <el-table-column label="Disp." width="auto">
                    <template #default="scope">
                        <el-select v-model="scope.row.dsp">
                            <el-option
                                v-for="item in codes.setglldsp"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </template>
                </el-table-column>
                <el-table-column label="Account" prop="act" width="auto">
                    <template slot-scope="scope">
                        <el-select v-model="scope.row.act">
                            <el-option
                                v-for="item in scope.act"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </template>
                </el-table-column>
                <el-table-column label="C" prop="debcdtflg" width="auto">
                </el-table-column>
                <el-table-column label="Curr." prop="cur" width="auto">
                </el-table-column>
                <el-table-column
                    label="Original Amount"
                    prop="fmtamt"
                    width="auto"
                >
                </el-table-column>
                <el-table-column label="Rate" prop="rat" width="auto">
                </el-table-column>
                <el-table-column label="" width="auto"> </el-table-column>
            </c-table>
潘际乾 committed
351 352
        </c-col>
  </c-row>
353 354
</template>
<script>
liushikai committed
355
import Api from "~/service/Api";
wangren committed
356
import commonProcess from "~/mixin/commonProcess";
liushikai committed
357 358
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptopn/Event";
wangguangchao committed
359 360
import SetpanDialog from "./SetpanDialog.vue";
import Utils from "~/utils/index"
361 362

export default {
363
    inject: ['root'],
364
    props: ["model", "codes"],
wangren committed
365
    mixins: [commonProcess],
366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382
    components: { SetpanDialog },
    data() {
        return {
                dialogVisible2: false,
                dialog2: {
                    feetxtinf:"",
                    feetxt:"",
                },
                index: 0,
            data:[]
        };
    },
    methods: { 
        ...Event,
        dispDefault(){
            this.executeDefault("mac").then(res=>{
                Utils.copyValueFromVO(this.model, res.data)
wangguangchao committed
383 384 385 386
            })
            
        },
        detail2(index, row) {
387 388 389 390 391
            this.executeRule("det").then(res=>{
                this.dialogVisible2 = true;
                this.index = index;
                this.dialog2 = row
            })
wangguangchao committed
392
        },
393 394
    },
    created: function () {},
liushikai committed
395
};
396 397 398
</script>
<style>
</style>