1
PC-20250623MANY\Administrator
2025-08-25 fc7a4185b2bd470a8d3b99c090af7b1e6e5e2ca9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<template>
  <el-dialog
    :title="$t('贷款申请')"
    :visible.sync="dialogVisible"
    width="420px"
    :before-close="onClose"
  >
    <el-form ref="applicationform" :model="form" label-width="auto" :rules="rules">
      <el-form-item :label="$t('je')" prop="dkMoney">
        <el-input v-model.number="form.dkMoney" type="number"></el-input>
      </el-form-item>
 
      <el-form-item>
        <el-button @click="onClose">{{ $t("qx") }}</el-button>
        <el-button type="primary" @click="onSubmit" class="submit">
          {{ $t("hj161") }}
        </el-button>
      </el-form-item>
    </el-form>
  </el-dialog>
</template>
 
<script>
import * as api from "@/axios/api";
export default {
  data() {
    return {
      form: {
        dkMoney: "",
      },
      rules: {
        dkMoney: [{ required: true, message: this.$t("请输入") }],
      },
    };
  },
  props: {
    dialogVisible: {
      type: Boolean,
      default: false,
    },
  },
  created() {},
  methods: {
    // 关闭弹窗
    onClose() {
      this.$emit("update:dialogVisible", false);
    },
    // 提交
    onSubmit() {
      this.$refs["applicationform"].validate(async (valid) => {
        if (valid) {
          let data = await api.BuyDK(this.form);
          if (data.status == 0) {
            this.$message.success(data.msg);
            this.onClose();
          }
        } else {
          console.log("BuyDK err");
          return false;
        }
      });
    },
  },
};
</script>
 
<style lang="scss" scoped>
::v-deep .el-radio__input.is-checked .el-radio__inner {
  border-color: #c4d600;
  background: #c4d600;
}
 
::v-deep .el-radio__input.is-checked + .el-radio__label {
  color: #c4d600;
}
 
.submit {
  background-color: #c4d600 !important;
  border-color: #c4d600 !important;
}
 
.ts {
  color: #dfb758;
}
</style>