-
-
应收
-
+
+
+
+
{{ tbType == 'receive' ? '应收' : '应付' }}
+
+
+
+
+
+
-
-
-
-
-
+
-
\ No newline at end of file
diff --git a/src/views/fee/code/columns.tsx b/src/views/fee/code/columns.tsx
index dcc2fd14..e060826d 100644
--- a/src/views/fee/code/columns.tsx
+++ b/src/views/fee/code/columns.tsx
@@ -9,10 +9,10 @@ import { BasicColumn, FormSchema } from '/@/components/Table'
import { getDictOption } from '/@/utils/dictUtil'
// 下拉框数据接口
import { GetFeeCurrencySelectList } from '/@/api/common'
+// 引入计费标准字典
+import { feeUnitDict } from '/@/hooks/dict/index'
// 客户类别下拉框数据
const customTypeDict = ref([])
-// 计费标准下拉框数据
-const feeUnitDict = ref([])
// 付费方式字典
const payMethodsDict = ref([])
// 费用分组字典
@@ -21,6 +21,12 @@ const reconciliationCategorygDict = ref([])
const costGroupingDict = ref([])
// 发票商品名称字典
const productNameDict = ref([])
+// 自定义绑定参数
+export const dsParams = {
+ defaultCreditName: '',
+ defaultDebitName: '',
+ defaultUnitName: ''
+}
export const columns: BasicColumn[] = [
{
title: '费用代码',
@@ -214,18 +220,16 @@ export const formSchema: FormSchema[] = [
field: 'defaultUnit',
label: '默认计费标准',
defaultValue: '',
- component: 'Select',
+ component: 'ApiSelect',
colProps: { span: 8 },
componentProps: () => {
- getDictOption('fee_unit').then(data => {
- feeUnitDict.value = data
- })
return {
- options: feeUnitDict.value,
- allowClear: true,
- showSearch: true,
- filterOption: (input: string, option: any) => {
- return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
+ api: feeUnitDict,
+ labelField: 'name',
+ valueField: 'value',
+ resultField: 'data',
+ onChange: (v, obj) => {
+ dsParams.defaultUnitName = obj?.label || ''
}
}
}
@@ -245,6 +249,9 @@ export const formSchema: FormSchema[] = [
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
+ },
+ onChange: (v, obj) => {
+ dsParams.defaultDebitName = obj?.label || ''
}
}
}
@@ -264,6 +271,9 @@ export const formSchema: FormSchema[] = [
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
+ },
+ onChange: (v, obj) => {
+ dsParams.defaultCreditName = obj?.label || ''
}
}
}
diff --git a/src/views/fee/code/components/Modal.vue b/src/views/fee/code/components/Modal.vue
index f844c2ad..38343c3b 100644
--- a/src/views/fee/code/components/Modal.vue
+++ b/src/views/fee/code/components/Modal.vue
@@ -64,7 +64,7 @@
import { BasicModal, useModalInner } from '/@/components/Modal'
import { BasicForm, useForm } from '/@/components/Form/index'
// 币别字段数据
- import { formSchema } from '../columns'
+ import { formSchema, dsParams } from '../columns'
// 币别相关接口
import { EditFeeCode, GetFeeCodeInfo } from '../api'
// 提升消息混入
@@ -128,7 +128,7 @@
const values = await validate()
loading.value = true
setModalProps({ confirmLoading: true, loading: true })
- const res: API.DataResult = await EditFeeCode(Object.assign(values, formData))
+ const res: API.DataResult = await EditFeeCode(Object.assign(values, formData, dsParams))
loading.value = false
if (res.succeeded) {
createMessage.success(res.message)
diff --git a/src/views/fee/currency/index.vue b/src/views/fee/currency/index.vue
index 4cac08fb..cf4c37df 100644
--- a/src/views/fee/currency/index.vue
+++ b/src/views/fee/currency/index.vue
@@ -21,7 +21,11 @@
-
+
+
+
+
+