diff --git a/src/components/accountModal.vue b/src/components/accountModal.vue
index de681ae..531b968 100644
--- a/src/components/accountModal.vue
+++ b/src/components/accountModal.vue
@@ -98,7 +98,7 @@
已取消
- {{(record.doctor_amount) }}元
+ {{Math.floor(record.amount_total*0.75*100)/100}}元
diff --git a/src/components/inquiryDetailMoneyModal.vue b/src/components/inquiryDetailMoneyModal.vue
index cf16b8a..a545c1e 100644
--- a/src/components/inquiryDetailMoneyModal.vue
+++ b/src/components/inquiryDetailMoneyModal.vue
@@ -84,16 +84,16 @@
- 0元
- {{ (modalForm.payment_amount_total*0.25).toFixed(2) }}
+ 0元
+ {{ Math.floor(modalForm.amount_total*0.25*100)/100}}元
- 0元
- {{ (modalForm.payment_amount_total*0.75).toFixed(2) }}
+ 0元
+ {{Math.floor(modalForm.amount_total*0.75*100)/100}}元
diff --git a/src/components/numberModal.vue b/src/components/numberModal.vue
index d26a731..7043b24 100644
--- a/src/components/numberModal.vue
+++ b/src/components/numberModal.vue
@@ -29,6 +29,10 @@ const props = defineProps({
type: Boolean,
default: false,
},
+ max:{
+ type: Number,
+ default: 0,
+ },
id:{
type: String,
default:'',
@@ -38,7 +42,7 @@ const props = defineProps({
},
});
const emits = defineEmits(['closeChange']);
-const {okVisible,id,api} = toRefs(props);
+const {okVisible,id,api,max} = toRefs(props);
// Akiraka 20230210 关闭弹窗
const handleClose = () => {
@@ -48,18 +52,28 @@ const handleClose = () => {
}
// Akiraka 20230210 删除数据校验
const rules = {
- income_tax: [{ required: true, message: '请输入个人所得税' }]
+ income_tax: [
+ { required: true, message: '请输入个人所得税' },
+ {
+ validator: (value, cb) => {
+ if (value==0) {
+ cb('金额需要大于0');
+ }
+ if (value>props.max) {
+ cb('修改金额不可超出提现金额');
+ }
+ }
+ }
+ ]
};
// Akiraka 20230210 确认按钮 => 开始数据检查
const handleConfirm = () => {
proxy.$refs.modalFormRef.validate(async(valid) => {
if (!valid) {
- const {code}= await api.value(id.value,form);
+ const {code,message}= await api.value(id.value,form);
if(code==200){
Message.success("修改成功");
proxy.$refs.modalFormRef.resetFields();
- }else{
- proxy.$notification.error(response.message);
}
emits('closeChange',true);
}
diff --git a/src/components/withdrawalModal.vue b/src/components/withdrawalModal.vue
index e3e0433..d4a2dfd 100644
--- a/src/components/withdrawalModal.vue
+++ b/src/components/withdrawalModal.vue
@@ -103,7 +103,7 @@
{{modalForm.income_tax}}
- okVisible=true" style="margin-left:20px;" v-has="'admin:sysFinancialRecord:tax'">纠正个人所得税
+ okVisible=true" style="margin-left:20px;" v-has="'admin:sysFinancialRecord:tax'" :disabled="modalForm.examine_status==1 && modalForm.payment_status==0">纠正个人所得税
@@ -200,6 +200,7 @@
:okVisible="okVisible"
:api="editIncome"
:id="withdrawal_order_id"
+ :max="modalForm.actual_withdrawal_amount"
@closeChange="closeChange"
>