|
@@ -167,6 +167,7 @@
|
|
|
v-model="formData.data.currency"
|
|
|
placeholder="请选择"
|
|
|
style="width: 100%"
|
|
|
+ @change="changeAmount"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in accountCurrency"
|
|
@@ -187,6 +188,7 @@
|
|
|
:precision="2"
|
|
|
:controls="false"
|
|
|
:min="0"
|
|
|
+ @change="changeAmount"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -201,7 +203,7 @@
|
|
|
<el-input-number
|
|
|
onmousewheel="return false;"
|
|
|
v-model="formData.data.amountCny"
|
|
|
- placeholder="请输入转人民币金额"
|
|
|
+ placeholder="请输入汇算人民币金额"
|
|
|
style="width: 100%"
|
|
|
:precision="2"
|
|
|
:controls="false"
|
|
@@ -434,7 +436,7 @@
|
|
|
<el-input-number
|
|
|
onmousewheel="return false;"
|
|
|
v-model="formData.settleData.amountCny"
|
|
|
- placeholder="请输入转人民币金额"
|
|
|
+ placeholder="请输入汇算人民币金额"
|
|
|
style="width: 100%"
|
|
|
:precision="2"
|
|
|
:controls="false"
|
|
@@ -815,7 +817,7 @@ const formConfig = computed(() => {
|
|
|
type: "slot",
|
|
|
prop: "amountCny",
|
|
|
slotName: "amountCny",
|
|
|
- label: "转人民币金额",
|
|
|
+ label: "汇算人民币金额",
|
|
|
},
|
|
|
formData.data.status == "10"
|
|
|
? {
|
|
@@ -1202,7 +1204,7 @@ const settleForm = ref(null);
|
|
|
const settleDialog = ref(false);
|
|
|
const settleRules = ref({
|
|
|
amountCny: [
|
|
|
- { required: true, message: "请输入转人民币金额", trigger: "blur" },
|
|
|
+ { required: true, message: "请输入汇算人民币金额", trigger: "blur" },
|
|
|
],
|
|
|
});
|
|
|
const settleFormOption = reactive({
|
|
@@ -1243,7 +1245,7 @@ const settleFormConfig = computed(() => {
|
|
|
type: "slot",
|
|
|
prop: "amountCny",
|
|
|
slotName: "amountCny",
|
|
|
- label: "转人民币金额",
|
|
|
+ label: "汇算人民币金额",
|
|
|
},
|
|
|
];
|
|
|
});
|
|
@@ -1261,7 +1263,7 @@ const submitSettleForm = () => {
|
|
|
!formData.settleData.amountCny ||
|
|
|
Number(formData.settleData.amountCny) == 0
|
|
|
) {
|
|
|
- return ElMessage("转人民币金额不能为0");
|
|
|
+ return ElMessage("汇算人民币金额不能为0");
|
|
|
}
|
|
|
loadingDialog.value = true;
|
|
|
proxy
|
|
@@ -1285,6 +1287,12 @@ const submitSettleForm = () => {
|
|
|
);
|
|
|
});
|
|
|
};
|
|
|
+
|
|
|
+const changeAmount = () => {
|
|
|
+ if (formData.data.currency == "CNY") {
|
|
|
+ formData.data.amountCny = formData.data.amount;
|
|
|
+ }
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|