+
未付其他:
{{ pother }}
@@ -92,8 +95,9 @@
import { onMounted, ref, reactive, watch, defineExpose, defineProps, defineEmits, h } from 'vue'
import { BasicTable, useTable } from '/@/components/Table'
import { GetBizList, BizSave } from '../../api'
- import { businessColumns, searchFormSchema } from '../columns'
+ import { businessColumns, searchFormSchema, currencyFormSchema } from '../columns'
import feeTable from '/@/components/CostEntry/components/feeTable.vue'
+ import { BasicForm, useForm } from '/@/components/Form'
import ExchangeRate from './exchangeRate.vue'
// 引入提示信息
import { useMessage } from '/@/hooks/web/useMessage'
@@ -131,7 +135,7 @@
res.data.forEach((item, index) => {
item['idIndex'] = item.id + index
})
- if (res?.data?.length) state.historyRowKeys = [res.data[0].id]
+ if (res?.data?.length) state.historyRowKeys = [res.data[0].id + 0]
setSelectedRows([res.data[0]])
return new Promise((resolve) => {
resolve({ data: [...res.data], total: res.count })
@@ -157,6 +161,11 @@
canResize: false,
immediate: false
})
+ const [registerForm, { validate, getFieldsValue, setFieldsValue }] = useForm({
+ labelWidth: 150,
+ schemas: currencyFormSchema,
+ showActionButtonGroup: false
+ })
// 费用信息已选项
const state = reactive({
historyRowKeys: []
@@ -188,7 +197,7 @@
}
// 行点击事件
const onRowClick = (record) => {
- state.historyRowKeys = [record?.id]
+ state.historyRowKeys = [record?.idIndex]
setSelectedRows([record])
}
const feeData = () => {
@@ -340,10 +349,11 @@
diffIds.forEach(item => {
// 获取业务类型传给下个子组件
let btype = rows.filter(row => {
- return item == row.id
+ return item == row.idIndex
})
+ let customerId = btype[0]?.customerId
btype = btype[0]?.businessType
- feeTabel.value.init([item], 'apply', btype).then(res => {
+ feeTabel.value.init([item], 'apply', btype, customerId).then(res => {
allFeeData[item] = res
})
})
@@ -355,12 +365,14 @@
if (v.length) {
// 获取业务类型传给下个子组件
let btype = rows[0].businessType
- feeTabel.value.init([v[v.length - 1]], 'apply', btype)
+ let customerId = rows[0].customerId
+ feeTabel.value.init([v[v.length - 1]], 'apply', btype, customerId)
}
} else {
// 点击单行平行切换
let btype = rows[0].businessType
- feeTabel.value.init(v, 'apply', btype)
+ let customerId = rows[0].customerId
+ feeTabel.value.init(v, 'apply', btype, customerId)
}
rrmb.value = 0
prmb.value = 0
@@ -407,13 +419,17 @@
.title {
font-size: 14px;
font-weight: 600;
- margin-left: 20px;
}
.count {
font-size: 14px;
font-weight: 600;
color: #257AFA;
}
+ .box {
+ background: #F5F9FC;
+ margin-left: 10px;
+ padding: 0 5px;
+ }
}
.ant-table-container {
height: 400px;
@@ -422,7 +438,6 @@
height: 364px!important;
}
.flex {
- height: 48px;
align-items: center;
h4 {
margin-bottom: 0;
@@ -442,5 +457,19 @@
margin-bottom: 0;
padding-bottom: 0;
}
+ #ds-fee-info-table {
+ .vben-basic-table-header__toolbar {
+ >div {
+ width: 100%!important;
+ }
+ }
+ }
+ .currency-form {
+ background: #ffffff!important;
+ padding-left: 0!important;
+ .ant-form-item-no-colon {
+ font-weight: 600;
+ }
+ }
}
\ No newline at end of file
diff --git a/src/views/operation/paidApply/detail/index.vue b/src/views/operation/paidApply/detail/index.vue
index 9c26ca80..9127dc29 100644
--- a/src/views/operation/paidApply/detail/index.vue
+++ b/src/views/operation/paidApply/detail/index.vue
@@ -95,10 +95,11 @@
const visible = ref(false)
import { formSchema } from './columns'
import { Save, Get } from '../api'
+ console.log(route)
const [registerForm, { validate, getFieldsValue, setFieldsValue }] = useForm({
labelWidth: 150,
schemas: formSchema,
- readonly: true,
+ readonly: route.path != '/paid-apply/create',
showActionButtonGroup: false
})
// 业务表loading
@@ -108,8 +109,8 @@
const busTable = ref(null)
const feeData = ref([])
const handleOk = () => {
- feeData.value = busTable.value.feeData()
- visible.value = false
+ // feeData.value = busTable.value.feeData()
+ // visible.value = false
}
// const [registerTable, { reload, getForm, getPaginationRef, getSelectRows }] = useTable({
// title: '',
@@ -213,6 +214,7 @@
const init = () => {
const id = route.query.id || getFieldsValue().id
if (id) {
+ // 编辑
dloading.value = true
Get({ id }).then(res => {
dloading.value = false
@@ -224,6 +226,9 @@
bid.value = res.data.id
feeData.value = res.data.details
})
+ } else {
+ // 新建
+ visible.value = true
}
}
onMounted(() => {
@@ -263,13 +268,17 @@
.title {
font-size: 14px;
font-weight: 600;
- margin-left: 20px;
}
.count {
font-size: 14px;
font-weight: 600;
color: #257AFA;
}
+ .box {
+ background: #F5F9FC;
+ margin-left: 10px;
+ padding: 0 5px;
+ }
}
.fee-modal {
.ant-modal-body {
diff --git a/src/views/operation/paidApply/index.vue b/src/views/operation/paidApply/index.vue
index 47eb7da9..7f24ce3b 100644
--- a/src/views/operation/paidApply/index.vue
+++ b/src/views/operation/paidApply/index.vue
@@ -42,10 +42,37 @@
+
+ 合计
+
+ RMB:
+ {{ statisData.rmb }}
+
+
+ USD:
+ {{ statisData.usd }}
+
+
+ 其他外币:
+ {{ statisData.other }}
+
+
+ 结算RMB:
+ {{ statisData.srmb }}
+
+
+ 结算USD:
+ {{ statisData.susd }}
+
+
+ 结算其他外币:
+ {{ statisData.other }}
+
+