|
@@ -334,7 +334,7 @@
|
|
|
>
|
|
|
</byForm>
|
|
|
<template #footer>
|
|
|
- <el-button @click="dialogVisible = false" size="large">取 消</el-button>
|
|
|
+ <el-button @click="settlementModal = false" size="large">取 消</el-button>
|
|
|
<el-button type="primary" @click="settlementSubmitForm()" size="large"
|
|
|
>确 定</el-button
|
|
|
>
|
|
@@ -399,14 +399,19 @@ const sourceList = ref({
|
|
|
const contractList2 = ref([])
|
|
|
const settlementModal = ref(false);
|
|
|
const openSettlementModal = (type, row) => {
|
|
|
- modalType.value = type;
|
|
|
- if (type == "add") {
|
|
|
- formData2.data = {
|
|
|
- transactionTime: moment().format("yyyy-MM-DD HH:mm:ss"),
|
|
|
- };
|
|
|
- } else {
|
|
|
- formData2.data = { ...row };
|
|
|
- }
|
|
|
+ formData3.data = {
|
|
|
+ accountManagementId:null,
|
|
|
+ amount:null,
|
|
|
+ currency:null,
|
|
|
+ inAccountManagementId:null,
|
|
|
+ inAmount:null,
|
|
|
+ inCurrency:"CNY",
|
|
|
+ rate:null,
|
|
|
+ commissionAmount:null,
|
|
|
+ commissionCurrency:null,
|
|
|
+ remarks:null,
|
|
|
+ businessId:null,
|
|
|
+ };
|
|
|
settlementModal.value = true;
|
|
|
};
|
|
|
|
|
@@ -458,7 +463,7 @@ const formData3 = reactive({
|
|
|
currency:null,
|
|
|
inAccountManagementId:null,
|
|
|
inAmount:null,
|
|
|
- inCurrency:null,
|
|
|
+ inCurrency:"CNY",
|
|
|
rate:null,
|
|
|
commissionAmount:null,
|
|
|
commissionCurrency:null,
|
|
@@ -469,6 +474,14 @@ const formData3 = reactive({
|
|
|
const submit3 = ref(null);
|
|
|
const settlementSubmitForm = () => {
|
|
|
submit3.value.handleSubmit(() => {
|
|
|
+ //汇出汇入账号不能相同
|
|
|
+ if(formData3.data.accountManagementId === formData3.data.inAccountManagementId) {
|
|
|
+ ElMessage({
|
|
|
+ message:"汇出汇入账号不能相同",
|
|
|
+ type: "error",
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
loadingDialog.value = true;
|
|
|
proxy.post("/accountRunningWater/exchangeSettlement", formData3.data).then(
|
|
|
() => {
|
|
@@ -509,13 +522,10 @@ const settlementFormConfig = computed(() => {
|
|
|
selectPlaceholder: "币种",
|
|
|
selectProp: "currency",
|
|
|
fn: (value) => {
|
|
|
-
|
|
|
+ console.log(formData3.data)
|
|
|
//判断value的类型
|
|
|
if (isNaN(value)) {
|
|
|
- formData3.data.inCurrency = formData3.data.currency;
|
|
|
formData3.data.commissionCurrency = formData3.data.currency;
|
|
|
- console.log(formData3.data.inAmount)
|
|
|
-
|
|
|
} else {
|
|
|
if (value != "") {
|
|
|
if (value.indexOf(".") > -1) {
|
|
@@ -545,11 +555,11 @@ const settlementFormConfig = computed(() => {
|
|
|
data: accountCurrency.value,
|
|
|
placeholder: "请输入",
|
|
|
selectPlaceholder: "币种",
|
|
|
+ selectDisabled:true,
|
|
|
selectProp: "inCurrency",
|
|
|
fn: (value) => {
|
|
|
//判断value的类型
|
|
|
if (isNaN(value)) {
|
|
|
- formData2.data.inCurrency = formData2.data.currency;
|
|
|
formData2.data.commissionCurrency = formData2.data.currency;
|
|
|
|
|
|
} else {
|
|
@@ -599,6 +609,7 @@ const settlementFormConfig = computed(() => {
|
|
|
type: "select",
|
|
|
prop: "businessId",
|
|
|
label: "选择合同",
|
|
|
+ filterable:true,
|
|
|
data: contractList2.value,
|
|
|
},
|
|
|
];
|