Utlp.vue 21.6 KB
Newer Older
liushikai committed
1
<template>
潘际乾 committed
2
  <div class="eibs-tab" style="">
liuxin committed
3 4

    <c-col :span="24">
wangyanjiao committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18
      <c-col :span="11">
        <c-col :span="16">
          <el-form-item label="信用证参考号" prop="didgrp.rec.ownref">
            <c-fullbox>
              <c-input v-model="model.didgrp.rec.ownref" maxlength="16" placeholder="请输入信用证参考号" disabled></c-input>
              <template slot="footer">
                <c-button style="padding: 0 14px;" size="small" type="primary">
                  <span style="font-size:15px;font-family:'宋体';font-weight:bold">i</span>
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>
        <!-- <c-col :span="1" style="text-align: right;margin-left:10px">
liuxin committed
19 20 21 22 23 24 25
                    <c-button
                        style="margin:0;padding: 0 14px;"
                        size="small"
                        type="primary"
                    >
                    <span style="font-size:15px;font-family:'宋体';font-weight:bold">i</span>
                    </c-button>
liushikai committed
26
                </c-col> -->
wangyanjiao committed
27 28 29 30 31 32 33 34

        <c-col :span="8">
          <el-form-item label="到期日" prop="didgrp.rec.expdat" label-width="30%">
            <c-fullbox>
              <c-date-picker type="date" v-model="model.didgrp.rec.expdat" style="width: 100%"
                placeholder="请选择Date of Expiry" disabled></c-date-picker>
            </c-fullbox>
          </el-form-item>
liuxin committed
35
        </c-col>
wangyanjiao committed
36 37 38 39 40
      </c-col>

      <c-col :span="11" :offset="1">
        <c-col :span="12">
          <el-form-item label="信用证余额" prop="didgrp.cbs.opn1.cur">
wangna committed
41
            <c-input v-model="model.didgrp.cbs.opn1.cur" maxlength="3" placeholder="请输入币种" disabled></c-input>
wangyanjiao committed
42 43 44 45
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" prop="didgrp.cbs.opn1.amt" label-width="2%">
wangna committed
46
            <c-input v-model="model.didgrp.cbs.opn1.amt" placeholder="请输入信用证余额" disabled></c-input>
wangyanjiao committed
47 48 49
          </el-form-item>
        </c-col>
      </c-col>
50
    </c-col>
liuxin committed
51

52
    <c-col :span="24" style="height:24px;margin-top:-10px">
wangyanjiao committed
53 54
      <el-form-item label="单据信息" class="messageLabel">
      </el-form-item>
liuxin committed
55
    </c-col>
潘际乾 committed
56
    <c-col :span="24" style="height: 0px">
wangyanjiao committed
57
      <el-divider></el-divider>
liuxin committed
58
    </c-col>
59

liuxin committed
60
    <c-col :span="11" style="margin-top:10px">
wangyanjiao committed
61 62 63 64 65 66 67 68 69 70 71 72
      <c-col :span="24">
        <c-col :span="22">
          <el-form-item label="单据参考号" prop="bddgrp.rec.ownref">
            <c-input v-model="model.bddgrp.rec.ownref" maxlength="16" placeholder="请输入单据参考号" disabled></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="2" style="text-align: right">
          <c-button style="margin:0;padding: 0 14px;" size="small" type="primary">
            <span style="font-size:15px;font-family:'宋体';font-weight:bold">i</span>
          </c-button>
        </c-col>
      </c-col>
73 74
    </c-col>

liuxin committed
75
    <c-col :span="11" :offset="1" style="margin-top:10px">
liushikai committed
76
      <el-form-item label="单据摘要" prop="bddgrp.rec.nam">
wangna committed
77
        <c-input v-model="model.bddgrp.rec.nam" maxlength="40" placeholder="请输入单据摘要" disabled>
wangyanjiao committed
78
        </c-input>
79 80 81 82 83 84
      </el-form-item>
    </c-col>

    <!-- ==========middle-left======== -->
    <c-col :span="11">
      <c-col :span="24">
liuxin committed
85
        <c-col :span="12">
86
          <el-form-item label="单据金额" prop="bddgrp.cbs.max.cur">
wangyanjiao committed
87
            <c-select v-model="model.bddgrp.cbs.max.cur" placeholder="请选择单据金额" disabled>
88 89 90
            </c-select>
          </el-form-item>
        </c-col>
91 92
        <c-col :span="12">
          <el-form-item label="" prop="bddgrp.cbs.max.amt" label-width="2%">
wangyanjiao committed
93
            <c-input v-model="model.bddgrp.cbs.max.amt" placeholder="请输入单据金额" disabled></c-input>
94 95 96 97 98
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
liuxin committed
99
        <c-col :span="12">
100
          <el-form-item label="单据余额" prop="bddgrp.cbs.opn1.cur">
wangna committed
101
            <c-select v-model="model.bddgrp.cbs.opn1.cur" placeholder="请选择币种" disabled></c-select>
102 103
          </el-form-item>
        </c-col>
104 105
        <c-col :span="12">
          <el-form-item label="" prop="bddgrp.cbs.opn1.amt" label-width="2%">
wangna committed
106
            <c-input v-model="model.bddgrp.cbs.opn1.amt" placeholder="请输入单据余额" disabled></c-input>
107 108 109 110
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
liuxin committed
111
        <c-col :span="12">
112
          <el-form-item label="到单日期" prop="bddgrp.rec.rcvdat">
wangyanjiao committed
113 114
            <c-date-picker type="date" style="width:100%" v-model="model.bddgrp.rec.rcvdat" placeholder="请选择到单日期"
              disabled></c-date-picker>
115 116
          </el-form-item>
        </c-col>
liuxin committed
117
        <c-col :span="1">
wangyanjiao committed
118
          &nbsp;
liuxin committed
119
        </c-col>
120
        <c-col :span="11">
wangyanjiao committed
121
          <el-form-item label="远期起算日" prop="bddgrp.rec.stadat" label-width="40%">
wangna committed
122
            <c-date-picker type="date" v-model="model.bddgrp.rec.stadat" style="width: 100%" placeholder="请选择远期起算日"
wangyanjiao committed
123
              disabled></c-date-picker>
124 125 126 127 128
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
liuxin committed
129
        <c-col :span="12">
130
          <el-form-item label="单据到期日" prop="bddgrp.rec.matdat">
wangyanjiao committed
131
            <c-date-picker type="date" style="width:100%" v-model="model.bddgrp.rec.matdat"
wangna committed
132
              placeholder="请选择单据到期日" width="100%" disabled></c-date-picker>
133 134
          </el-form-item>
        </c-col>
liuxin committed
135
        <c-col :span="1">
wangyanjiao committed
136
          &nbsp;
liuxin committed
137
        </c-col>
138
        <c-col :span="11">
wangyanjiao committed
139
          <el-form-item label="远期期限" prop="bddgrp.rec.tenmaxday" label-width="40%">
wangna committed
140
            <c-input v-model="model.bddgrp.rec.tenmaxday" placeholder="请输入远期期限" disabled></c-input>
141 142 143 144 145
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="单据类型" prop="bddgrp.rec.docflg">
wangyanjiao committed
146 147
          <c-select v-model="model.bddgrp.rec.docflg" style="width: 100%" placeholder="请选择单据类型" disabled>
            <el-option v-for="item in codes.brdtyp" :key="item.value" :label="item.label" :value="item.value">
148
            </el-option>
149 150 151 152 153
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="单据状态" prop="bddgrp.rec.docsta">
wangyanjiao committed
154 155 156
          <c-select v-model="model.bddgrp.rec.docsta" style="width: 100%" placeholder="请选择单据状态" disabled>
            <el-option v-for="item in codes.docsta" :key="item.value" :label="item.label" :value="item.value">
            </el-option>
157 158 159 160 161 162 163
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>
    <!-- ==========middle-right======== -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
wangguangchao committed
164
        <el-form-item label="申请人编号" prop="bddgrp.apl.pts.ref">
wangna committed
165
          <c-input v-model="model.bddgrp.apl.pts.ref" maxlength="16" placeholder="请输入申请人编号" disabled></c-input>
liushikai committed
166
        </el-form-item>
167 168 169
      </c-col>

      <c-col :span="24">
liushikai committed
170
        <el-form-item label="申请人名称" prop="bddgrp.apl.pts.nam">
wangna committed
171
          <c-input v-model="model.bddgrp.apl.pts.nam" maxlength="40" placeholder="请输入申请人名称" disabled></c-input>
liushikai committed
172
        </el-form-item>
173 174 175
      </c-col>

      <c-col :span="24">
wangguangchao committed
176
        <el-form-item label="受益人编号" prop="bddgrp.ben.pts.ref">
wangna committed
177
          <c-input v-model="model.bddgrp.ben.pts.ref" maxlength="16" placeholder="请输入受益人编号" disabled></c-input>
liushikai committed
178
        </el-form-item>
179 180 181
      </c-col>

      <c-col :span="24">
liushikai committed
182
        <el-form-item label="受益人名称" prop="bddgrp.ben.pts.nam">
wangna committed
183
          <c-input v-model="model.bddgrp.ben.pts.nam" maxlength="40" placeholder="请输入受益人名称" disabled></c-input>
184 185 186 187
        </el-form-item>
      </c-col>

      <c-col :span="24">
wangguangchao committed
188
        <el-form-item label="交单行编号" prop="bddgrp.prb.pts.ref">
wangna committed
189
          <c-input v-model="model.bddgrp.prb.pts.ref" maxlength="16" placeholder="请输入交单行编号" disabled></c-input>
liushikai committed
190
        </el-form-item>
191 192 193
      </c-col>

      <c-col :span="24">
liushikai committed
194
        <el-form-item label="交单行名称" prop="bddgrp.prb.pts.nam">
wangna committed
195
          <c-input v-model="model.bddgrp.prb.pts.nam" maxlength="40" placeholder="请输入交单行名称" disabled></c-input>
196 197 198 199
        </el-form-item>
      </c-col>
    </c-col>

liuxin committed
200
    <!-- <c-col :span="24" style="height:10px">
liushikai committed
201
           <el-divider></el-divider>
liuxin committed
202
       </c-col> -->
liushikai committed
203

204
    <!-- =========bottom-left======== -->
205
    <c-col :span="24" style="height:24px;margin-top:-10px">
wangyanjiao committed
206 207
      <el-form-item label="付款信息" class="messageLabel">
      </el-form-item>
liuxin committed
208
    </c-col>
潘际乾 committed
209
    <c-col :span="24" style="height: 0px">
wangyanjiao committed
210
      <el-divider></el-divider>
liuxin committed
211
    </c-col>
212
    <c-col :span="11">
liuxin committed
213
      <!-- <c-col :span="22" :offset="2" style="height:24px">
liushikai committed
214 215 216 217 218 219
            <el-form-item
                class="formItemLabel"
                label="表外信息"
                label-width="300px"
            >
            </el-form-item>
liuxin committed
220
        </c-col> -->
liuxin committed
221 222
      <c-col :span="24" style="margin-top: 10px">
        <c-col :span="12">
223
          <el-form-item label="付款金额" prop="setmod.doccur">
wangna committed
224
            <c-input v-model="model.setmod.doccur" maxlength="3" placeholder="请输入付款金额" disabled></c-input>
225
          </el-form-item>
liushikai committed
226
        </c-col>
227 228
        <c-col :span="12">
          <el-form-item label="" prop="setmod.docamt" label-width="2%">
wangna committed
229
            <c-input v-model="model.setmod.docamt" placeholder="请输入"
wangyanjiao committed
230
              @keyup.enter.native="commonExecuteRule('setmod.docamt')"></c-input>
231 232 233
          </el-form-item>
        </c-col>
      </c-col>
liushikai committed
234 235

      <c-col :span="24">
liuxin committed
236
        <c-col :span="12">
liushikai committed
237
          <el-form-item label="扣减金额" prop="setmod.doccur">
wangyanjiao committed
238
            <c-input v-model="model.setmod.doccur" placeholder="请输入扣减金额" disabled></c-input>
liushikai committed
239 240
          </el-form-item>
        </c-col>
241 242
        <c-col :span="12">
          <el-form-item label="" prop="setmod.redamt" label-width="2%">
wangyanjiao committed
243 244
            <c-input v-model="model.setmod.redamt" placeholder="请输入扣减金额" :disabled="model.bddgrp.rec.frepayflg == 'X' "
              @keyup.enter.native="commonExecuteRule('setmod.redamt')"></c-input>
liushikai committed
245 246 247
          </el-form-item>
        </c-col>
      </c-col>
wangyanjiao committed
248

249
      <c-col :span="24">
liuxin committed
250
        <c-col :span="12">
251
          <el-form-item label="扣费后付款金额" prop="setmod.doccur">
wangna committed
252
            <c-input v-model="model.setmod.doccur" maxlength="3" placeholder="请输入扣费后付款金额" disabled></c-input>
253 254
          </el-form-item>
        </c-col>
255 256
        <c-col :span="12">
          <el-form-item label="" prop="setmod.setamt" label-width="2%">
wangna committed
257
            <c-input v-model="model.setmod.setamt" placeholder="请输入" disabled></c-input>
258 259 260
          </el-form-item>
        </c-col>
      </c-col>
wangyanjiao committed
261

262
      <c-col :span="24">
wangguangchao committed
263
        <el-form-item label="清算方式" prop="bddgrp.rec.clrmtd">
wangyanjiao committed
264 265 266

          <c-select v-model="model.bddgrp.rec.clrmtd" style="width: 100%" placeholder="请选择清算方式" disabled>
            <el-option v-for="item in codes.clrtyp" :key="item.value" :label="item.label" :value="item.value">
wangguangchao committed
267 268
            </el-option>
          </c-select>
269 270
        </el-form-item>
      </c-col>
liushikai committed
271

wangyanjiao committed
272
      <!-- <c-col :span="24">
liuxin committed
273
        <el-form-item label="交单行联行名称">
wangyanjiao committed
274 275
          <c-input type="textarea" v-model="model.bddgrp.prb.pts.jigomc" style="width: 100%" maxlength="35"
            show-word-limit placeholder="请输入联行名称" disabled></c-input>
liuxin committed
276
        </el-form-item>
wangyanjiao committed
277
      </c-col> -->
wangyanjiao committed
278

279 280 281
    </c-col>
    <!-- =========bottom-right======== -->
    <c-col :span="11" :offset="1">
liuxin committed
282 283
      <c-col :span="24" style="margin-top:10px">
        <el-form-item>
wangyanjiao committed
284 285 286 287
          <c-col :span=4>
            <c-checkbox v-model="crefinflg" :disabled="model.bddgrp.rec.frepayflg === 'X'  || model.paypsb ==='X'">融资</c-checkbox>
          </c-col>
          <c-col :span="5">
lianyang committed
288
            <c-checkbox v-model="clsflg" @change="clsflgOtherDefault" :disabled="clsflgFlg">闭卷</c-checkbox>
wangyanjiao committed
289 290 291 292 293 294 295 296 297 298
          </c-col>
          <c-col :span="5">
            <c-checkbox v-model="paypsb" :disabled="model.bddgrp.rec.frepayflg === 'X' || model.trtcre.crefinflg ==='X'">垫款</c-checkbox>
          </c-col>
          <c-col :span="5">
            <c-checkbox v-model="frepayflg" @change="frepayflgDefault">无偿放单</c-checkbox>
          </c-col>
          <c-col :span="5">
            <c-checkbox v-model="dfflag">同业代付</c-checkbox>
          </c-col>
299 300 301
        </el-form-item>
      </c-col>

302
      <c-col :span="24">
lianyang committed
303
        <el-form-item label="交单行" prop="bddgrp.rec.docprbrol">
wangna committed
304
          <c-select v-model="model.bddgrp.rec.docprbrol" style="width: 100%" placeholder="请选择交单行"
lianyang committed
305 306
            :code="codes.docprbrol1" @change="docprbrolChange">
          </c-select>
wangyanjiao committed
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 351 352 353 354 355 356 357 358 359 360 361 362
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="交单行BIC" prop="bddgrp.prb.pts.extkey">
          <c-input
            v-model="model.bddgrp.prb.pts.extkey"
            maxlength="16"
            style="width: 100%"
            placeholder="请输入交单行BIC"
            @keyup.enter.native="showGridPromptDialog(`bddgrp.prb.pts.extkey`)"
            :disabled="model.bddgrp.rec.docprbrol == 'PRB' ? false : true"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="交单行联行行号" prop="bddgrp.prb.pts.bankno">
          <c-input
            v-model="model.bddgrp.prb.pts.bankno"
            maxlength="20"
            style="width: 100%"
            placeholder="请输入交单行联行行号"
            :disabled="model.bddgrp.rec.docprbrol == 'PRB' ? false : true"
             @keyup.enter.native="showGridPromptDialog('bddgrp.prb.pts.bankno')"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="交单行联行名称" prop="bddgrp.prb.pts.jigomc">
          <c-input
            type="textarea"
            v-model="model.bddgrp.prb.pts.jigomc"
            style="width: 100%"
            maxlength="35"
            show-word-limit
            placeholder="请输入联行名称"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="交单行地址" prop="bddgrp.prb.pts.dizhii">
          <c-input
            type="textarea"
            v-model="model.bddgrp.prb.pts.dizhii"
            style="width: 100%"
            maxlength="35"
            show-word-limit
            placeholder="请输入交单行地址"
            :disabled="model.bddgrp.rec.docprbrol == 'PRB' ? false : true"
          ></c-input>
        </el-form-item>
      </c-col>
363 364
    </c-col>

365
    <c-col :span="24" style="height:24px;margin-top:-10px">
wangyanjiao committed
366 367
      <el-form-item label="表外信息" class="messageLabel">
      </el-form-item>
368
    </c-col>
潘际乾 committed
369
    <c-col :span="24" style="height: 0px">
wangyanjiao committed
370
      <el-divider></el-divider>
371
    </c-col>
潘际乾 committed
372
    <c-col :span="24" :offset="0">
lianyang committed
373
      <c-istream-table ref="bwxxIst" :list="stmData.data" :columns="stmData.columns" :paginationShow="false" v-on:multipleSelect="multipleSelect"
wangyanjiao committed
374 375 376
        :showSelection="true">
      </c-istream-table>
    </c-col>
377

liuxin committed
378
    <c-col :span="24" style="height:24px">
wangyanjiao committed
379 380
      <el-form-item label="待还融资" class="messageLabel">
      </el-form-item>
381
    </c-col>
潘际乾 committed
382
    <c-col :span="24" style="height: 0px">
wangyanjiao committed
383
      <el-divider></el-divider>
384
    </c-col>
潘际乾 committed
385
    <c-col :span="24" :offset="0">
wangyanjiao committed
386 387 388 389 390 391 392 393 394 395 396 397 398 399
      <div class="e-table-wrapper">
        <c-table :data="model.bptbck.bptbckg" style="width: 100%" :paginationShow="false">
          <el-table-column prop="ownref" label="Reference" width="auto">
          </el-table-column>
          <el-table-column prop="opncur" label="Cur." width="auto">
          </el-table-column>
          <el-table-column prop="opnamt" label="Open Amount" width="auto">
          </el-table-column>
          <el-table-column prop="bckamt" label="Amount Paid" width="auto">
          </el-table-column>
          <el-table-column prop="butcal" label="Cal." width="auto">
          </el-table-column>
        </c-table>
        <!-- <el-pagination
liuxin committed
400 401 402
                 layout="prev, pager, next"
                 :total="pager.bptbck_bptbckg.total">
              </el-pagination> -->
wangyanjiao committed
403 404
      </div>
    </c-col>
liuxin committed
405
    <div>
wangna committed
406
     
liuxin committed
407
    </div>
wangyanjiao committed
408

liushikai committed
409 410 411
  </div>
</template>
<script>
412
import Api from "~/service/Api";
wangren committed
413
import commonProcess from "~/mixin/commonProcess";
414 415 416
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bdtset/Event";
import PtapDome from "~/views/Public/PtapDome";
417
import Utils from "~/utils";
liushikai committed
418 419

export default {
420 421 422
  components: { "c-ptapdome": PtapDome },
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
423
  mixins: [commonProcess],
424 425 426 427 428 429 430 431 432
  data() {
    return {
      stmData: {
        columns: [
          '1 1 "Type" 0 ',
          '2 2 "Dbt" 0 ',
          '3 3 "Cdt" 0 ',
          '4 4 "Cur" 0 ',
          '5 5 "Amt" 0 ',
433
          '6 6 "Mat Dat" 0 ',
434 435 436
        ],
        data: [],
      },
lianyang committed
437
      clsflgFlg:false
438 439
    };
  },
liuxin committed
440
  computed: {
wangyanjiao committed
441 442 443 444 445 446 447 448 449
    crefinflg: {
      get() {
        
        if (this.model.bddgrp.rec.frepayflg == 'X' || this.model.paypsb =='X') {
          return false;
        }else{
          return this.model.trtcre.crefinflg != ''
        }
        
liuxin committed
450
      },
wangyanjiao committed
451 452 453 454 455 456 457 458 459 460
      set(val) {
      
        this.model.trtcre.crefinflg = val ? "X" : ""
        
         
        
      }
    },
    clsflg: {
      get() {
lianyang committed
461
        return this.model.mtabut.clsflg=='C'; 
liuxin committed
462
      },
wangyanjiao committed
463
      set(val) {
lianyang committed
464
        this.model.mtabut.clsflg = val ? "C" : "O"
wangyanjiao committed
465 466 467 468 469 470 471 472 473 474 475
      }
    },
    paypsb: {
      get() {
        
        if (this.model.bddgrp.rec.frepayflg == 'X'|| this.model.trtcre.crefinflg =='X' ) {
          return false;
        }else{
          return this.model.paypsb != ''
        }
        
liuxin committed
476
      },
wangyanjiao committed
477 478 479 480 481 482 483 484 485 486 487
      set(val) {
        if (this.model.bddgrp.rec.frepayflg == 'X'  || this.model.trtcre.crefinflg =='X') {
          this.model.paypsb = ""
        }else{
          this.model.paypsb = val ? "X" : ""
        }
      }
    },
    frepayflg: {
      get() {
        return this.model.bddgrp.rec.frepayflg != ''
liuxin committed
488
      },
wangyanjiao committed
489 490 491 492 493 494 495 496 497 498 499
      set(val) {
        if (this.model.bddgrp.rec.frepayflg == 'X' || this.model.paypsb =='X') {
          this.model.trtcre.crefinflg = ''
          this.model.paypsb = ''
        }
        this.model.bddgrp.rec.frepayflg = val ? "X" : ""
      }
    },
    dfflag: {
      get() {
        return this.model.dftcre.dfflag != ''
liuxin committed
500
      },
wangyanjiao committed
501 502 503 504
      set(val) {
        this.model.dftcre.dfflag = val ? "X" : ""
      }
    },
liuxin committed
505
  },
wangyanjiao committed
506 507
  methods: {
    ...Event,
lianyang committed
508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523
        async multipleSelect(selection) {
      if (selection.length > 1) {
        this.$notify({
          title: "error",
          message: "You cannot select more than one tenor",
          type: "error",
        });
      } else {
        let chkIds;
        if (selection.length === 0) {
          chkIds = []
          // this.model.liaall.tensetstm.rows = []
          this.clsflgFlg= true
        } else {
          chkIds = [selection[0] + 1]
          this.clsflgFlg= false
wangyanjiao committed
524
        }
lianyang committed
525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562
        //
        console.log(this.model.liaall.tensetstm);
        let params = { chkDst: "liaall.tenstm", chkIds };
        const rtnmsg = await this.executeRule("liaall.tenstm", params);
        if (rtnmsg.respCode == SUCCESS) {
          this.updateModel(rtnmsg.data);
        } else {
          this.$notify.error({ title: "错误", message: "服务请求失败!" });
        }
      }

      // console.log(selection);
      // if (selection) {
      //   let selIds = selection.map(x=>x+1);
      //   let params = {selDst:"liaall.tenstm",selIds}
      //   const rtnmsg = await this.executeRule("liaall.tenstm",params);
      //   if (rtnmsg.respCode == SUCCESS) {
      //       this.updateModel(rtnmsg.data)
      //   }
      //   else
      //           {
      //           this.$notify.error({title: '错误',message: '服务请求失败!'});
      //           }
      // }else{
      //   let selIds = selection.map(x=>x+1);
      //   let params = {selDst:"liaall.tenstm",selIds}
      //   const rtnmsg = await this.executeRule("liaall.tenstm",params);
      //   if (rtnmsg.respCode == SUCCESS) {
      //       this.updateModel(rtnmsg.data)
      //   }
      //   else
      //           {
      //           this.$notify.error({title: '错误',message: '服务请求失败!'});
      //           }
      //   // this.model.setmod.docamt = "";
      //   // this.model.setmod.setamt = "";
      //   // this.model.aamset.utlamt = "";
      // }
wangyanjiao committed
563
    },
wangyanjiao committed
564
    frepayflgDefault(){
565
      this.executeDefault("paypsb").then((res) => {
wangyanjiao committed
566 567 568 569 570 571
        if ((res.respCode == SUCCESS)) {
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
    docprbrolChange() {
572
      this.executeRule("bddgrp.rec.docprbrol").then((res) => {
吴佳 committed
573
        if ((res.respCode == SUCCESS)) {
wangguangchao committed
574
          Utils.copyValueFromVO(this.model, res.data);
wangyanjiao committed
575
          this.stmData.data = res.data.liaall_tenstm.rows;
576
          this.$refs.bwxxIst.$refs.table.toggleAllSelection();
wangguangchao committed
577 578 579
        }
      });
    },
wangyanjiao committed
580 581
    commonExecuteRule(ruleName) {
      this.executeRule(ruleName).then((res) => {
吴佳 committed
582
        if ((res.respCode == SUCCESS)) {
583 584 585 586
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
lianyang committed
587
    clsflgOtherDefault(){
lianyang committed
588 589 590 591 592 593 594
      this.executeDefault("mtabut.clsflg").then((res) => {
        if ((res.respCode == SUCCESS)) {
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
    
wangyanjiao committed
595
  },
liuxin committed
596 597
  created: function () {
  },
598
};
liushikai committed
599
</script>
liushikai committed
600
<style scoped>
wangyanjiao committed
601
.el-checkbox {
liuxin committed
602
  text-align: left;
wangyanjiao committed
603
  margin-right: 0;
liushikai committed
604
}
wangyanjiao committed
605 606 607 608

.formItemLabel>>>.el-form-item__label {
  text-align: left;
  font-weight: bold;
liushikai committed
609
}
wangyanjiao committed
610 611 612

.el-col>>>.el-divider--horizontal {
  margin-top: 1px;
liushikai committed
613
}
wangyanjiao committed
614 615 616 617 618

.messageLabel>>>.el-form-item__label {
  text-align: left;
  font-weight: bold;
  font-size: 12px;
liuxin committed
619
}
liushikai committed
620
</style>>
liushikai committed
621
</style>