|
|
@@ -11,21 +11,22 @@
|
|
|
<el-descriptions-item label="其它费用">{{ details.otherfee }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="总共">{{ details.settleamount }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="预收款">{{ details.advanceamount }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="应收\退款">{{ details.settleamount - details.advanceamount
|
|
|
+ <el-descriptions-item label="应收\退款">{{ arrearage }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="结算费用详情文件">请下载文件“付款通知书(结算费用).pdf”</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="账户可用余额" v-if="arrearage >= 0">{{ accountInfo?.balance ?? 0
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="结算费用详情文件"></el-descriptions-item>
|
|
|
- <el-descriptions-item label="账户可用余额"></el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
<template #footer>
|
|
|
<el-button @click="onCancel(false)" plain>取消</el-button>
|
|
|
- <el-button type="primary" @click="onSubmit">确认</el-button>
|
|
|
+ <el-button type="primary" :disabled="disabled" @click="onSubmit">确认</el-button>
|
|
|
</template>
|
|
|
</app-drawer>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { shallowRef, PropType } from 'vue'
|
|
|
+import { shallowRef, PropType, computed } from 'vue'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
+import { useAccountStore } from '@/stores'
|
|
|
import { useCJJCOrderOperate, useCJJCMemberOperate } from '@/business/customs/exit'
|
|
|
import AppDrawer from '@pc/components/base/drawer/index.vue'
|
|
|
|
|
|
@@ -38,9 +39,21 @@ const props = defineProps({
|
|
|
|
|
|
const { details, getGzcjjcorderoperate } = useCJJCOrderOperate(props.selectedRow)
|
|
|
const { loading, formData, formSubmit } = useCJJCMemberOperate(props.selectedRow.orderidstr)
|
|
|
+const { accountInfo } = useAccountStore()
|
|
|
const show = shallowRef(true)
|
|
|
const refresh = shallowRef(false)
|
|
|
|
|
|
+// 应收\退款
|
|
|
+const arrearage = computed(() => {
|
|
|
+ const { settleamount = 0, advanceamount = 0 } = details.value ?? {}
|
|
|
+ return settleamount - advanceamount
|
|
|
+})
|
|
|
+
|
|
|
+const disabled = computed(() => {
|
|
|
+ const { balance = 0 } = accountInfo.value ?? {}
|
|
|
+ return arrearage.value > balance
|
|
|
+})
|
|
|
+
|
|
|
const onCancel = (isRefresh = false) => {
|
|
|
show.value = false
|
|
|
refresh.value = isRefresh
|