Commit de20f660 by Sweet Zhang

入账检核增加保单号搜索,应收款管理状态修改接口更换,应收应付款修改后自动查询

parent 8f301de3
......@@ -499,3 +499,12 @@ export function billCalculateToAmount(data) {
data: data
})
}
// 应收款管理修改应收记录状态
export function CommissionExpectedChangeStatus(data) {
return request({
url: 'csf/api/CommissionExpected/change_status',
method: 'post',
data: data
})
}
......@@ -407,6 +407,12 @@ const checkConfig = ref([
label: '检核年月',
placeholder: '检核年月',
rules: [{ required: true, message: '请选择检核年月', trigger: 'blur' }]
},
{
type: 'input',
prop: 'policyNo',
label: '保单号',
placeholder: '保单号'
}
])
const checkRecordEdit = (row) => {
......@@ -655,7 +661,7 @@ const generateCommissionRecordapi = async () => {
const dropdownItems = [
{ label: '设置比对状态', value: 'setStatus', confirm: '' },
{ label: '同步到应收款管理', value: 'syncToReceivable', confirm: '确认要同步到应收款管理吗?' },
// { label: '更新数据', value: 'editRecord' },
// { label: '更新检核数据', value: 'editRecord' },
// { label: '查看记录', value: 'viewRecord' }
]
const handleMenuConfirm = async (action, row) => {
......@@ -712,6 +718,7 @@ const checkRecordQuery = async () => {
try {
const params = {
reconciliationYearMonth: checkFormData.value.reconciliationYearMonth,
policyNo:checkFormData.value.policyNo,
pageNo: checkRecordPageInfo.currentPage,
pageSize: checkRecordPageInfo.pageSize
}
......@@ -805,7 +812,7 @@ const handleSelect = (e, row) => {
setCompareStatusDialogFlag.value = true
return
} else if (e === 'editRecord') {
updateDataDialogFlag.value = true
// updateDataDialogFlag.value = true
return
} else if (e === 'viewRecord') {
viewRecordDialogFlag.value = true
......
......@@ -42,6 +42,7 @@
:border="true"
>
<el-table-column type="selection" width="55" :reserve-selection="true" />
<el-table-column prop="fortuneAccountBizId" label="业务ID" min-width="120" sortable />
<el-table-column prop="broker" label="转介人" min-width="120" sortable />
<el-table-column prop="team" label="所属团队" min-width="120" sortable />
<el-table-column prop="hkdAmount" label="出账金额" width="120" sortable>
......
......@@ -413,7 +413,7 @@ const handleConfirmAddPayRecord = async () => {
ElMessage.success('新增出账记录成功')
addPayRecordDialogVisible.value = false
addPayRecordFormRef.value.resetForm()
loadTableData()
} catch (error) {
ElMessage.error(error.message)
}
......@@ -427,7 +427,8 @@ const handleConfirmAddPayRecord = async () => {
ElMessage.success('更新出账记录成功')
addPayRecordDialogVisible.value = false
addPayRecordFormRef.value.resetForm()
editStatus.value = 'add'
editStatus.value = 'add';
loadPayRecordTableData(selectedRow.value.expectedFortuneBizId)
} catch (error) {
ElMessage.error(error.message)
}
......
......@@ -201,7 +201,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'
import { MoreFilled } from '@element-plus/icons-vue'
import {
receivedFortuneList, updateCommissionExpected, commissionEntryEditRecords,
exportReceivedFortune, commissionExpectedRecord, addReceivedFortune, receivableReport
exportReceivedFortune, commissionExpectedRecord, addReceivedFortune, receivableReport,CommissionExpectedChangeStatus
} from '@/api/financial/commission'
import { numberWithCommas } from '@/utils/index'
import SearchForm from '@/components/SearchForm/SearchForm.vue'
......@@ -284,12 +284,10 @@ const addReceivablesFormConfig = [
type: 'input',
prop: 'commissionRatio',
label: '入账比例(%)',
inputType: 'decimal',
decimalDigits: 4,
visible: (formData) => formData.commissionBizType === 'R',
rules: [
{ required: true, message: '请输入入账比例', trigger: 'blur' },
{ pattern: /^\d+(\.\d{1,4})?$/, message: '最多四位小数', trigger: 'blur' }
{ pattern: /^-?\d+(\.\d{1,4})?$/, message: '最多四位小数', trigger: 'blur' }
]
}, {
type: 'select',
......@@ -742,7 +740,7 @@ const handleConfirmSetStatus = () => {
type: 'warning'
}).then(async () => {
try {
const res = await updateCommissionExpected({
const res = await CommissionExpectedChangeStatus({
commissionExpectedBizId: selectedRow.value.commissionExpectedBizId,
...formData
})
......
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