paymentDetail.vue 20.2 KB
Newer Older
我在何方's avatar
我在何方 committed
1 2 3
<template>
  <div class="app-container">
    <el-card>
4
      <div slot="header" class="card-title">{{ $t('付款单详情') }}{{id ? `-${form.paymentNo}` :''}}</div>
我在何方's avatar
我在何方 committed
5 6 7 8 9 10 11
      <el-form
        ref="form"
        :model="form"
        label-width="120px"
        label-position="left"
      >
        <el-descriptions :column="3" class="card" border>
吴滔's avatar
吴滔 committed
12
          <el-descriptions-item :label="$t('供应商')">
我在何方's avatar
我在何方 committed
13 14 15 16 17 18 19 20 21
            <el-form-item
              label=""
              label-width="0"
              style="margin-bottom: 0"
              prop="supplierId"
            >
              <!-- <customer-selector v-model="form.supplierId" @change="consignor = $event" /> -->
              <el-select
                v-model="form.supplierId"
吴滔's avatar
吴滔 committed
22
                :placeholder="$t('请选择供应商')"
我在何方's avatar
我在何方 committed
23 24 25 26 27 28 29 30 31 32 33
                disabled
              >
                <el-option
                  v-for="supplier in allSupplier"
                  :key="supplier.id"
                  :label="supplier.companyZh"
                  :value="supplier.id"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-descriptions-item>
吴滔's avatar
吴滔 committed
34
          <el-descriptions-item :label="$t('部门')">
我在何方's avatar
我在何方 committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
            <el-form-item
              label=""
              label-width="0"
              style="margin-bottom: 0"
              prop="departmentId"
            >
              <el-select
                v-model="form.departmentId"
                style="width: 300px"
                disabled
              >
                <el-option
                  v-for="item in deptData"
                  :key="item.id"
                  :label="item.name"
                  :value="item.id"
                />
              </el-select>
            </el-form-item>
          </el-descriptions-item>
吴滔's avatar
吴滔 committed
55
          <el-descriptions-item :label="$t('业务员')">
我在何方's avatar
我在何方 committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
            <el-form-item
              label=""
              label-width="0"
              style="margin-bottom: 0"
              prop="salesmanName"
            >
              <el-select v-model="form.salesmanName" disabled>
                <el-option
                  v-for="item in creatorData"
                  :key="item.id"
                  :label="item.nickname"
                  :value="item.nickname"
                />
              </el-select>
            </el-form-item>
          </el-descriptions-item>
吴滔's avatar
吴滔 committed
72
          <el-descriptions-item :label="$t('申请日期')">
我在何方's avatar
我在何方 committed
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
            <el-form-item
              label=""
              label-width="0"
              style="margin-bottom: 0"
              prop="applicationAt"
            >
              <el-date-picker
                clearable
                v-model="form.applicationAt"
                value-format="yyyy-MM-dd"
                format="yyyy-MM-dd"
                type="date"
                disabled
              />
            </el-form-item>
          </el-descriptions-item>
吴滔's avatar
吴滔 committed
89
          <el-descriptions-item :label="$t('供应商银行账号')" style="width: 50%">
我在何方's avatar
我在何方 committed
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
            <el-form-item
              label=""
              label-width="0"
              style="margin-bottom: 0"
              prop="supplierBankAccount"
            >
              <el-select v-model="form.supplierBankAccount"  disabled>
                <el-option
                  v-for="item in bankData"
                  :key="item.id"
                  :label="item.bankName + '(' + item.bankAccount+ ')'"
                  :value="item.bankAccount"
                />
              </el-select>
            </el-form-item>
          </el-descriptions-item>
        </el-descriptions>
        <el-descriptions :column="3" class="card" border>
吴滔's avatar
吴滔 committed
108
          <el-descriptions-item :label="$t('最后付款日期')">
我在何方's avatar
我在何方 committed
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
            <el-form-item
              label=""
              label-width="0"
              style="margin-bottom: 0"
              prop="latestPayAt"
            >
              <el-date-picker
                clearable
                v-model="form.latestPayAt"
                value-format="yyyy-MM-dd"
                format="yyyy-MM-dd"
                type="date"
                disabled
              />
            </el-form-item>
          </el-descriptions-item>
吴滔's avatar
吴滔 committed
125
          <el-descriptions-item :label="$t('结算方式')">
我在何方's avatar
我在何方 committed
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
            <el-form-item
              label=""
              label-width="0"
              style="margin-bottom: 0"
              prop="settlementType"
            >
              <dict-tag
                :type="DICT_TYPE.CUSTOMER_BALANCE"
                v-model="form.settlementType"
              />
            </el-form-item>
          </el-descriptions-item>
        </el-descriptions>
      </el-form>
    </el-card>
    <el-card class="card">
吴滔's avatar
吴滔 committed
142
      <div slot="header" class="card-title">{{ $t('费用信息') }}</div>
我在何方's avatar
我在何方 committed
143
      <el-table v-loading="loadings" :data="list" border :show-summary="!!list.length" :summary-method="getSummaries">
吴滔's avatar
吴滔 committed
144 145
        <el-table-column :label="$t('自编号')" align="center" prop="payableNo" />
        <el-table-column :label="$t('费用类型')" align="center" prop="feeType">
我在何方's avatar
我在何方 committed
146 147 148 149 150 151 152
          <template slot-scope="scope">
            <dict-tag
              :type="DICT_TYPE.FEE_TYPE"
              :value="scope.row.feeType"
            ></dict-tag>
          </template>
        </el-table-column>
吴滔's avatar
吴滔 committed
153 154 155
        <el-table-column :label="$t('发票号码')" align="center" prop="invoiceNumber" />
        <el-table-column :label="$t('应付金额')" align="center" prop="totalAmount" />
        <el-table-column :label="$t('币种')" align="center" prop="currencyId">
我在何方's avatar
我在何方 committed
156
          <template slot-scope="scope">
我在何方's avatar
我在何方 committed
157 158
			  {{getCurrencyLabel(scope.row.currencyId)}}
            <!-- <dict-tag :type="DICT_TYPE.BOX_SHIPPING_PRICE_UNIT" :value="scope.row.currencyId" /> -->
我在何方's avatar
我在何方 committed
159 160
          </template>
        </el-table-column>
吴滔's avatar
吴滔 committed
161
        <el-table-column :label="$t('汇率')" align="center" prop="exchangeRate" />
我在何方's avatar
我在何方 committed
162 163
        <el-table-column :label="$t('税率')+'%'" align="center" prop="taxRate" />
        <el-table-column :label="$t('价税合计')+'(RMB)'" align="center" prop="total" >
我在何方's avatar
我在何方 committed
164
          <template slot-scope="scope">
我在何方's avatar
我在何方 committed
165 166
           <!-- <span>{{ scope.row.total = ((scope.row.totalAmount * scope.row.exchangeRate) + (scope.row.totalAmount * scope.row.exchangeRate) * (scope.row.taxRate/100)).toFixed(6) }}</span> -->
         <span>{{scope.row.total}}</span>
我在何方's avatar
我在何方 committed
167 168 169 170 171 172 173 174 175 176 177 178
          </template>
        </el-table-column>
      </el-table>

      <el-form
        ref="forms"
        :model="form"
        label-width="120px"
        label-position="left"
        style="width: 50%"
      >
        <el-descriptions :column="1" class="card" border>
吴滔's avatar
吴滔 committed
179
          <el-descriptions-item :label="$t('账单号')">
我在何方's avatar
我在何方 committed
180 181 182 183 184
            <el-form-item
              label=""
              label-width="0"
              style="margin-bottom: 0"
              required
吴滔's avatar
吴滔 committed
185
              :error="$t('账单号不能为空')"
我在何方's avatar
我在何方 committed
186 187 188 189 190 191 192
              prop="accountNumber"
            >
              <el-input
                v-model="form.accountNumber" disabled
              ></el-input>
            </el-form-item>
          </el-descriptions-item>
吴滔's avatar
吴滔 committed
193
          <el-descriptions-item :label="$t('发票')">
我在何方's avatar
我在何方 committed
194 195 196 197 198 199 200 201 202 203
            <el-form-item
              label=""
              label-width="0"
              style="margin-bottom: 0"
              prop="invoiceStatus"
            >
              <el-select
                v-model="form.invoiceStatus"
                disabled
              >
吴滔's avatar
吴滔 committed
204 205
                <el-option :label="$t('未开票')" value="0" />
                <el-option :label="$t('已开票')" value="1" />
我在何方's avatar
我在何方 committed
206 207 208 209 210 211 212
              </el-select>
            </el-form-item>
          </el-descriptions-item>
        </el-descriptions>
      </el-form>
    </el-card>
    <div slot="footer" style="margin: 20px 0">
Marcus's avatar
Marcus committed
213
      <!-- <el-button type="primary" @click="submitDraft">{{ $t('保 存') }}</el-button> -->
吴滔's avatar
吴滔 committed
214
      <el-button type="primary" @click="$store.dispatch('tagsView/delCurrentView')">{{ $t('返回') }}</el-button>
我在何方's avatar
我在何方 committed
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 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 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
    </div>
  </div>
</template>

<script>
import { listSimpleUsers } from "@/api/system/user";
import { DICT_TYPE } from "@/utils/dict";
import { getToken } from "@/utils/auth";
import { getChannelList } from "@/api/ecw/channel";
import CustomerSelector from "@/components/CustomerSelector";
import { listSimpleDepts } from "@/api/system/dept";
import { getTradeCityList } from "@/api/ecw/region";
import { getSupplierPage,getSupplier } from "@/api/ecw/supplier";
import { getPayableList, getPayableInfoByIds, createPayment, getPaymentInfoByIds, getPaymentItem, updatePayment } from "@/api/ecw/financial"
import { getCurrencyPage } from "@/api/ecw/currency";
import NP from 'number-precision'
export default {
  name: "CreatPayment",
  components: {
    CustomerSelector
  },
  data() {
    return {
      id: 0,
      payableId: 0,
      orderData: [],
      total: 0,
      loadings: false,
      open: false,
      form: {},
      creatorData: [],
      list: [],
      defaultList: [],
      channelList: [],
      loading: "",
      bankData: [],
      params: {
        page: 1,
        rows: 20,
      },
      deptData: [],
      deptArr: [],
      queryParams: {
        page: 1,
        rows: 20,
      },
      multipleSelection: [],
      tradeCityList: [],
      allSupplier: [],
      currencyList: [],
    };
  },
  async created() {
    await getCurrencyPage(this.params).then(res => this.currencyList = res.data.list)
    let that = this;
    if (that.$route.query.payableId && that.$route.query.payableId !== '0') {
      this.payableId = this.$route.query.payableId;
      getPayableInfoByIds({ id: this.payableId }).then(res => {
        this.list = [{...res.data}]
        this.$set(this.form, 'supplierId', res.data.supplierId)
      })
    }
    if (that.$route.query.id && that.$route.query.id !== '0') {
      this.id = this.$route.query.id;
      getPaymentInfoByIds({ id: this.id }).then(res => {
        this.form = {
          ...res.data,
          latestPayAt: this.parseTime(res.data.latestPayAt, '{y}-{m}-{d}'),
          applicationAt: this.parseTime(res.data.applicationAt, '{y}-{m}-{d}'),
          invoiceStatus: String(res.data.invoiceStatus),
        }
        this.$set(this.form,'supplierBankAccount',res.data.supplierBankAccount)
        console.log(this.form)
      })
      getPaymentItem({ id: this.id }).then(res => {
        this.list = [...res.data]
        this.defaultList = [...res.data]
      })
    }
    listSimpleUsers().then((res) => (that.creatorData = res.data));
    getChannelList().then((res) => (that.channelList = res.data));
    getTradeCityList().then((res) => (that.tradeCityList = res.data));
    // getBankAccountPage(that.params).then(
    //   (res) => (that.bankData = res.data.list)
    // );
    getSupplierPage({ pageNo: "1", pageSize: "10000" }).then((res) => {
      const { data } = res;
      this.allSupplier = data.list;
      this.selectChange(this.form.supplierId)
    });
    listSimpleDepts().then((res) => {
      res.data.forEach((item) => {
        if (item.parentId == 0) {
          that.deptArr.push(item);
        } else {
          that.deptData.push(item);
        }
      });

      that.deptData.forEach((value) => {
        var dept = that.deptArr.filter((itt) => itt.id == value.parentId);
        if (dept.length > 0) {
          value.name = dept[0].name + " | " + value.name;
        }
      });
    });
  },
  computed: {
    expoerCityList() {
      return this.tradeCityList.filter((item) => item.type == 2);
    },
    importCityList() {
      return this.tradeCityList.filter((item) => item.type == 1);
    },
  },
  methods: {
我在何方's avatar
我在何方 committed
331 332
	  getCurrencyLabel(id){
	    var label = this.currencyList.filter(item=>item.id == id)
我在何方's avatar
我在何方 committed
333
	    if(label.length>0) return this.$i18n.locale=='zh_CN'?label[0].titleZh:label[0].titleEn
我在何方's avatar
我在何方 committed
334 335
	    return ''
	  },
我在何方's avatar
我在何方 committed
336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357
    getList() {
      this.loading = true;
      // 处理查询参数
      let params = { ...this.queryParams };
      this.addBeginAndEndTime(params, this.dateRangeCreateTime, "createTime");
      // 执行查询
      getPayableList(params).then((response) => {
        this.orderData = response.data.list;
        this.total = response.data.total;
        this.loading = false;
        this.$nextTick(() => {
          this.list.forEach(itm => {
            const t = this.orderData.find(v => v.id == itm.id)
            t && this.$refs.multipleTable.toggleRowSelection(t, true)
          })
        })
      });
    },
    getSummaries(param) {
      const { columns, data } = param;
      const sums = new Array(columns.length).map(v => '');
      const index = sums.length - 1
吴滔's avatar
吴滔 committed
358
      sums[index - 1] = this.$t('价税合计大写')
我在何方's avatar
我在何方 committed
359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377
      const t = data.map(v => v.total).reduce((prev, curr) => {
        return parseFloat(prev) + parseFloat(curr);
      }, 0)
      sums[index] = this.convertCurrency(t)
      return sums;
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.open = true;
    },
    submitForm() {
      this.$refs.form.validate ((valid)=>{
        if (valid) {
          this.$refs.forms.validate((val) => {
            if (val) {
              const params = {...this.form}
              if (this.list && this.list.length > 0) {
                params.payableReqVOList = [...this.list]
              }else{
吴滔's avatar
吴滔 committed
378
                this.$modal.msgError(this.$t('请选择供应商未付款项'));
我在何方's avatar
我在何方 committed
379 380 381
                return
              }
              if(!params.supplierBankAccount){
吴滔's avatar
吴滔 committed
382
                this.$modal.msgError(this.$t('请选择供应商银行账号'));
我在何方's avatar
我在何方 committed
383 384 385 386
                return
              }
              if (this.id && this.id !== '0') {
                updatePayment(params).then(res => {
吴滔's avatar
吴滔 committed
387
                  this.$modal.msgSuccess(this.$t('修改成功'));
我在何方's avatar
我在何方 committed
388 389 390 391
                  this.$router.back();
                })
              } else {
                createPayment(params).then(res => {
吴滔's avatar
吴滔 committed
392
                  this.$modal.msgSuccess(this.$t('新增成功'));
我在何方's avatar
我在何方 committed
393 394 395 396 397 398 399 400 401 402 403 404 405 406 407
                  this.$router.back();
                })
              }
            }
          })
        }
      })
    },
    submitDraft() {
      this.$refs.form.validate ((valid)=>{
        if (valid) {
          const params = {...this.form}
          if (this.list && this.list.length > 0) {
            params.payableReqVOList = [...this.list]
          }else{
吴滔's avatar
吴滔 committed
408
            this.$modal.msgError(this.$t('请选择供应商未付款项'));
我在何方's avatar
我在何方 committed
409 410 411
            return
          }
          if(!params.supplierBankAccount){
吴滔's avatar
吴滔 committed
412
            this.$modal.msgError(this.$t('请选择供应商银行账号'));
我在何方's avatar
我在何方 committed
413 414 415 416
            return
          }
          if (this.id && this.id !== '0') {
            updatePayment(params).then(res => {
吴滔's avatar
吴滔 committed
417
              this.$modal.msgSuccess(this.$t('修改成功'));
我在何方's avatar
我在何方 committed
418 419 420 421
              this.$router.back();
            })
          } else {
            createPayment(params).then(res => {
吴滔's avatar
吴滔 committed
422
              this.$modal.msgSuccess(this.$t('新增成功'));
我在何方's avatar
我在何方 committed
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478
              this.$router.back();
            })
          }
          // console.log(params, '-----params---------')
        }
      })
    },
    selectChangeBank(val){
      this.$forceUpdate()
    },
    selectChange(val) {
      this.bankData = []
      // this.form.supplierBankAccount=''
      if(val){
        getSupplier(val).then((res)=>{
          this.bankData = res.data.bankList
          var bank = this.bankData.find(item=>item.bankAccount==this.form.supplierBankAccount)
          if(this.bankData.length==0||!bank) this.form.supplierBankAccount=''
        })
      }

      const t = this.allSupplier.find(v => v.id == val)

      t && (this.form.supplierName = t.companyZh)
      // t && (this.bankData = t.bankList)
    },
    handleQuery() {
      this.queryParams.page = 1;
      this.getList()
    },
    UStoRMB() {
      return NP.divide(this.currencyList.find(v => v.titleEn === 'USD').huilv, 100).toFixed(6)
    },
    NANtoRMB() {
      return NP.divide(this.currencyList.find(v => v.titleEn === 'NGN').huilv, 100).toFixed(6)
    },
    handleSelectionChange(val) {
      this.multipleSelection = val.map(v => {
        if(v.currencyId === 1) return Object.assign(v, { exchangeRate: this.UStoRMB() })
        if(v.currencyId === 2) return Object.assign(v, { exchangeRate: 1 })
        if(v.currencyId === 3) return Object.assign(v, { exchangeRate: this.NANtoRMB() })
      });
    },
    hiddenDialog() {
      this.open = false;
    },
    saveSelectList() {
      if (this.id && this.id !== '0') {
        this.list = [...this.defaultList, ...this.multipleSelection]
      } else {
        this.list = this.multipleSelection
      }
      this.open = false;
    },
    convertCurrency(money) {
      //汉字的数字
Marcus's avatar
Marcus committed
479
      var cnNums = new Array('', this.$t(''), this.$t(''), this.$t(''), this.$t(''), this.$t(''), this.$t(''), this.$t(''), this.$t(''), '');
我在何方's avatar
我在何方 committed
480
      //基本单位
Marcus's avatar
Marcus committed
481
      var cnIntRadice = new Array('', this.$t(''), this.$t(''), '');
我在何方's avatar
我在何方 committed
482
      //对应整数部分扩展单位
Marcus's avatar
Marcus committed
483
      var cnIntUnits = new Array('', this.$t(''), this.$t('亿'), '');
我在何方's avatar
我在何方 committed
484
      //对应小数部分单位
Marcus's avatar
Marcus committed
485
      var cnDecUnits = new Array('', this.$t(''), this.$t(''), '');
我在何方's avatar
我在何方 committed
486
      //整数金额时后面跟的字符
Marcus's avatar
Marcus committed
487
      var cnInteger = this.$t('');
我在何方's avatar
我在何方 committed
488
      //整型完以后的单位
Marcus's avatar
Marcus committed
489
      var cnIntLast = this.$t('');
我在何方's avatar
我在何方 committed
490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 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 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612
      //最大处理的数字
      var maxNum = 999999999999999.9999;
      //金额整数部分
      var integerNum;
      //金额小数部分
      var decimalNum;
      //输出的中文金额字符串
      var chineseStr = '';
      //分离金额后用的数组,预定义
      var parts;
      // 传入的参数为空情况
      if(money === '') {
        return '';
      }
      money = parseFloat(money)
      if(money >= maxNum){
        return ''
      }
      // 传入的参数为0情况
      if (money === 0) {
        chineseStr = cnNums[0] + cnIntLast + cnInteger;
        return chineseStr
      }
      // 转为字符串
      money = money.toString();
      // indexOf 检测某字符在字符串中首次出现的位置 返回索引值(从0 开始) -1 代表无
      if (money.indexOf('.') == -1) {
        integerNum = money;
        decimalNum = ''
      }else{
        parts = money.split('.');
        integerNum = parts[0];
        decimalNum = parts[1].substr(0,4);
      }
      //转换整数部分
      if(parseInt(integerNum,10) > 0){
        let zeroCount  = 0;
        let IntLen = integerNum.length
        for(let i = 0; i < IntLen; i++){
          let n = integerNum.substr(i,1);
          let p = IntLen - i - 1;
          let q = p / 4;
          let m = p % 4;
          if( n == '0'){
            zeroCount ++ ;
          }else{
            if(zeroCount > 0){
                chineseStr += cnNums[0]
            }
            zeroCount = 0;
            chineseStr += cnNums[parseInt(n)] + cnIntRadice[m];
          }
          if(m == 0 && zeroCount < 4){
            chineseStr += cnIntUnits[q];
          }
        }
        // 最后+ 元
        chineseStr += cnIntLast;
      }
      // 转换小数部分
      if(decimalNum != ''){
        let decLen = decimalNum.length;
        for(let i = 0; i <decLen; i++){
          let n = decimalNum.substr(i,1);
          if(n != '0'){
            chineseStr += cnNums[Number(n)] + cnDecUnits[i]
          }
        }
      }
      if(chineseStr == ''){
        chineseStr += cnNums[0] + cnIntLast + cnInteger;
      }else if(decimalNum == ''){
        chineseStr += cnInteger;
      }
      return chineseStr
    },
    openDialog() {
      this.getList()
    },
    oninput(num) {
      let str = num
      let len1 = str.substr(0, 1)
      let len2 = str.substr(1, 1)
      //如果第一位是0,第二位不是点,就用数字把点替换掉
      if (str.length > 1 && len1 == 0 && len2 != '.') {
          str = str.substr(1, 1)
      }
      //第一位不能是.
      if (len1 == '.') {
          str = ''
      }
      //限制只能输入一个小数点
      if (str.indexOf('.') != -1) {
          let str_ = str.substr(str.indexOf('.') + 1)
          if (str_.indexOf('.') != -1) {
              str = str.substr(0, str.indexOf('.') + str_.indexOf('.') + 1)
          } else {
            // if (str_.length > 2) {
            //   str = str.substr(0, str.indexOf('.') + 1) + str_.substr(0, 2)
            // }
          }
      }
      //正则替换
      str = str.replace(/[^\d^\.]+/g, '') // 保留数字和小数点
      // str = str.replace(/\.\d\d\d$/,'') // 小数点后只能输两位
      return str
    }
  },
};
</script>

<style scoped>
.card {
  margin-top: 20px;
}
.dialog-footer {
  padding: 40px;
}
.card-title {
  font-size: 18px;
  font-weight: bold;
}
</style>