Commit eb0cc621 by Sweet Zhang

searchform xiugai

parent 621b7859
...@@ -143,3 +143,12 @@ export function getInsuranceCompany(data) { ...@@ -143,3 +143,12 @@ export function getInsuranceCompany(data) {
method: 'post' method: 'post'
}) })
} }
// 通用excel导入
export function importExcel(data) {
return request({
url: '/oss/api/excel/import',
method: 'post',
data: data
})
}
...@@ -273,14 +273,6 @@ export function commissionEntryEditRecords(data) { ...@@ -273,14 +273,6 @@ export function commissionEntryEditRecords(data) {
}) })
} }
// 出账记录查询
export function payRecordList(data) {
return request({
url: '/csf/api/fortune/list/page/fortuneAccount',
method: 'post',
data: data
})
}
// 获取保单发佣列表 // 获取保单发佣列表
export function policyNoCommissionPayRecord(data) { export function policyNoCommissionPayRecord(data) {
...@@ -309,3 +301,62 @@ export function commissionExpectedRecord(data) { ...@@ -309,3 +301,62 @@ export function commissionExpectedRecord(data) {
data: data data: data
}) })
} }
// 出账记录查询
export function payRecordList(data) {
return request({
url: '/csf/api/fortune/pageByExpectedFortuneBizId',
method: 'post',
data: data
})
}
// 更新入账信息
export function updateCommissionExpected(data) {
return request({
url: '/csf/api/CommissionExpected/update',
method: 'post',
data: data
})
}
// 修改出账状态
export function updataPayrollStatus(data){
return request({
url: '/csf/api/fortune/update/status',
method: 'post',
data: data
})
}
// 批量新增检核记录
export function addPayrollCheckRecord(data){
return request({
url: '/csf/api/commission/addBatch',
method: 'post',
data: data
})
}
// 新增应收款
export function addReceivedFortune(data){
return request({
url: '/csf/api/CommissionExpected/add',
method: 'post',
data: data
})
}
// 新增出账记录
export function addPayRecord(data){
return request({
url: '/csf/api/expectedFortune/add',
method: 'post',
data: data
})
}
// 获取销售员详情
export function userSaleExpandDetail(data){
return request({
url: '/insurance/base/api/userSaleExpand/detail?userSaleBizId=' + data,
method: 'get',
})
}
...@@ -101,8 +101,8 @@ ...@@ -101,8 +101,8 @@
</el-table> </el-table>
</template> </template>
</CommonPage> </CommonPage>
<!-- 弹窗--> <!-- 新增出账检核页面-->
<CommonDialog dialogTitle='弹窗' dialogWidth='80%' :openDialog=dialogFlag :showAction='false' :showClose='true' <CommonDialog dialogTitle='新增出账检核' dialogWidth='80%' :openDialog=dialogFlag :showAction='false' :showClose='true'
@close='dialogFlag = false'> @close='dialogFlag = false'>
</CommonDialog> </CommonDialog>
...@@ -118,7 +118,9 @@ import { ElMessage } from 'element-plus' ...@@ -118,7 +118,9 @@ import { ElMessage } from 'element-plus'
import { formatCurrency } from '@/utils/number' import { formatCurrency } from '@/utils/number'
// 接口 // 接口
import { getPolicyFortuneList } from '@/api/financial/commission' import { getPolicyFortuneList } from '@/api/financial/commission'
import useUserStore from '@/store/modules/user'
const userStore = useUserStore()
// 分页相关 // 分页相关
const currentPage = ref(1) const currentPage = ref(1)
const pageSize = ref(10) const pageSize = ref(10)
...@@ -134,10 +136,10 @@ const searchConfig = ref([ ...@@ -134,10 +136,10 @@ const searchConfig = ref([
}, { }, {
type: 'select', type: 'select',
prop: 'status', prop: 'status',
label: '账状态', label: '账状态',
multiple: true, multiple: true,
dictType: 'csf_expected_commission_status' dictType: 'csf_fortune_status'
}, { },{
type: 'select', type: 'select',
prop: 'insuranceCompanyBizIdList', prop: 'insuranceCompanyBizIdList',
label: '保险公司', label: '保险公司',
...@@ -158,7 +160,10 @@ const searchConfig = ref([ ...@@ -158,7 +160,10 @@ const searchConfig = ref([
label: '产品计划', label: '产品计划',
api: '/product/api/relProjectProductLaunch/parameter/page', api: '/product/api/relProjectProductLaunch/parameter/page',
keywordField: 'productName', keywordField: 'productName',
requestParams: { fieldBizId: 'field_olk1qZe81qHHKXbw', fieldValueBizId: 'field_value_uOfJH5ucA2YwJpbn', pageNo: 1, pageSize: 20 }, requestParams: {
tenantBizId: userStore.projectInfo.tenantBizId || '',
projectBizId: userStore.projectInfo.projectBizId || '', fieldBizId: 'field_olk1qZe81qHHKXbw', fieldValueBizId: 'field_value_uOfJH5ucA2YwJpbn', pageNo: 1, pageSize: 20
},
placeholder: '输入产品计划名称搜索', placeholder: '输入产品计划名称搜索',
debounceWait: 500, // 自定义防抖时间 debounceWait: 500, // 自定义防抖时间
valueKey: 'productLaunchBizId', valueKey: 'productLaunchBizId',
...@@ -172,13 +177,14 @@ const searchConfig = ref([ ...@@ -172,13 +177,14 @@ const searchConfig = ref([
label: '出账日(估)', label: '出账日(估)',
startPlaceholder: '开始时间', startPlaceholder: '开始时间',
endPlaceholder: '结束时间' endPlaceholder: '结束时间'
}, { },
type: 'select', // {
prop: 'status', // type: 'select',
label: '出账状态', // prop: 'status',
multiple: true, // label: '入账状态',
dictType: 'csf_fortune_status' // multiple: true,
}, // dictType: 'csf_expected_commission_status'
// },
]) ])
// 表格操作菜单 // 表格操作菜单
const dropdownItems = [ const dropdownItems = [
...@@ -209,7 +215,7 @@ const handleReset = () => { ...@@ -209,7 +215,7 @@ const handleReset = () => {
console.log('表单已重置') console.log('表单已重置')
} }
const handleQuery = async () => { const handleQuery = async () => {
const params = searchFormRef.value.getSearchParams() const params = searchFormRef.value.getFormData()
console.log('父组件发起查询:', params) console.log('父组件发起查询:', params)
loadTableData(params) loadTableData(params)
} }
......
...@@ -82,10 +82,8 @@ import { ...@@ -82,10 +82,8 @@ import {
getReferrerFortuneList, getReferrerFortuneList,
salaryStatistics, salaryStatistics,
} from '@/api/financial/commission' } from '@/api/financial/commission'
// import { searchIntermediaries } from '@/api/search'
import { formatCurrency } from '@/utils/number' import { formatCurrency } from '@/utils/number'
import { debounce } from '@/utils/index'; import { ElMessageBox, ElMessage } from 'element-plus'
import { ElMessageBox } from 'element-plus'
import SearchForm from '@/components/SearchForm/SearchForm.vue' import SearchForm from '@/components/SearchForm/SearchForm.vue'
const searchFormRef = ref(null) const searchFormRef = ref(null)
const searchParams = ref({}) const searchParams = ref({})
...@@ -115,9 +113,10 @@ const searchConfig = ref([ ...@@ -115,9 +113,10 @@ const searchConfig = ref([
}, },
{ {
type: 'select', type: 'select',
prop: 'status', prop: 'statusList',
label: '出账状态', label: '出账状态',
dictType: 'csf_fortune_account_status' dictType: 'csf_fortune_account_status',
multiple: true,
} }
]) ])
// 添加表格引用 // 添加表格引用
...@@ -264,7 +263,7 @@ const getStatusType = status => { ...@@ -264,7 +263,7 @@ const getStatusType = status => {
// 查询 // 查询
const handleQuery = () => { const handleQuery = () => {
const params = searchFormRef.value.getSearchParams() const params = searchFormRef.value.getFormData()
console.log('父组件发起查询:', params) console.log('父组件发起查询:', params)
clearAllSelection() clearAllSelection()
getList(params) getList(params)
...@@ -373,29 +372,7 @@ const fetchCompletePolicyFortune = async row => { ...@@ -373,29 +372,7 @@ const fetchCompletePolicyFortune = async row => {
} catch (error) { } } catch (error) { }
} }
const searchLoading = ref(false)
const brokerOptions = ref([])
// 获取转介人列表
const loadBrokers = async (query = '') => {
searchLoading.value = true
const params = {
realName: query,
pageNo: 1,
pageSize: 1000,
}
try {
// const res = await searchIntermediaries(params)
// if (res.code === 200) {
// brokerOptions.value = res.data.records || []
// searchLoading.value = false
// } else {
// brokerOptions.value = []
// searchLoading.value = false
// }
} catch (error) { }
}
debounce(loadBrokers, 500, false)
const visibleDefaultButtons = ref(['reset', 'query']) const visibleDefaultButtons = ref(['reset', 'query'])
// 按钮配置 // 按钮配置
const operationBtnList = ref([ const operationBtnList = ref([
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment