|
|
@ -7,6 +7,7 @@ import '../../style.less'; |
|
|
|
|
|
|
|
const AchievementDetails = (props) => { |
|
|
|
const { dispatch, actions } = props |
|
|
|
const { businessManagement } = actions |
|
|
|
const [keywordTarget, setKeywordTarget] = useState('saler'); |
|
|
|
const [keyword, setKeyword] = useState('');//搜索内容 |
|
|
|
const [limits, setLimits] = useState()//每页实际条数 |
|
|
@ -16,15 +17,29 @@ const AchievementDetails = (props) => { |
|
|
|
function seachValueChange(value) { |
|
|
|
setKeyword(value) |
|
|
|
} |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
getAchievementDetails() |
|
|
|
}, []); |
|
|
|
|
|
|
|
function getAchievementDetails() { |
|
|
|
dispatch(businessManagement.getAchievementDetail({ keywordTarget, keyword, ...query })).then(r => { |
|
|
|
if (r.success) { |
|
|
|
setTableData(r.payload?.data?.rows); |
|
|
|
setLimits(r.payload?.data?.count) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const columns = [{ |
|
|
|
title: '收到合同日期', |
|
|
|
dataIndex: 'year', |
|
|
|
key: 'year', |
|
|
|
dataIndex: 'recConDate', |
|
|
|
key: 'recConDate', |
|
|
|
width: 120, |
|
|
|
}, { |
|
|
|
title: '月份', |
|
|
|
dataIndex: 'id', |
|
|
|
key: 'id', |
|
|
|
dataIndex: 'month', |
|
|
|
key: 'month', |
|
|
|
width: 120, |
|
|
|
}, { |
|
|
|
title: '部门', |
|
|
@ -33,108 +48,108 @@ const AchievementDetails = (props) => { |
|
|
|
width: 140, |
|
|
|
}, { |
|
|
|
title: '销售人员', |
|
|
|
dataIndex: 'salers', |
|
|
|
key: 'salers', |
|
|
|
dataIndex: 'sale', |
|
|
|
key: 'sale', |
|
|
|
width: 140, |
|
|
|
}, { |
|
|
|
title: '客户名称', |
|
|
|
dataIndex: 'name', |
|
|
|
key: 'name', |
|
|
|
dataIndex: 'customer', |
|
|
|
key: 'customer', |
|
|
|
width: 140, |
|
|
|
}, { |
|
|
|
title: '项目名称', |
|
|
|
dataIndex: 'projectName', |
|
|
|
key: 'projectName', |
|
|
|
dataIndex: 'item', |
|
|
|
key: 'item', |
|
|
|
width: 140, |
|
|
|
}, { |
|
|
|
title: '合同金额', |
|
|
|
dataIndex: 'money', |
|
|
|
key: 'money', |
|
|
|
dataIndex: 'amount', |
|
|
|
key: 'amount', |
|
|
|
width: 140, |
|
|
|
}, { |
|
|
|
title: '实际业绩', |
|
|
|
dataIndex: 'moneyAfterChange', |
|
|
|
key: 'moneyAfterChange', |
|
|
|
dataIndex: 'realPerformance', |
|
|
|
key: 'realPerformance', |
|
|
|
width: 140, |
|
|
|
}, { |
|
|
|
title: '考核业绩', |
|
|
|
dataIndex: 'backYear', |
|
|
|
key: 'backYear', |
|
|
|
dataIndex: 'assessmentPerformance', |
|
|
|
key: 'assessmentPerformance', |
|
|
|
width: 120, |
|
|
|
}, { |
|
|
|
title: '价格是否特批', |
|
|
|
dataIndex: 'backDate', |
|
|
|
key: 'backDate', |
|
|
|
dataIndex: 'isApproval', |
|
|
|
key: 'isApproval', |
|
|
|
width: 120, |
|
|
|
}, { |
|
|
|
title: '特批折算比例', |
|
|
|
dataIndex: 'backMoney', |
|
|
|
key: 'backMoney', |
|
|
|
dataIndex: 'approvalProp', |
|
|
|
key: 'approvalProp', |
|
|
|
width: 120, |
|
|
|
}, { |
|
|
|
title: '预支提成及委外费用', |
|
|
|
dataIndex: 'invoiceBack', |
|
|
|
key: 'invoiceBack', |
|
|
|
dataIndex: 'cost', |
|
|
|
key: 'cost', |
|
|
|
width: 140, |
|
|
|
}, { |
|
|
|
title: '业务线', |
|
|
|
dataIndex: 'leaveMoney', |
|
|
|
key: 'leaveMoney', |
|
|
|
dataIndex: 'serviceLine', |
|
|
|
key: 'serviceLine', |
|
|
|
width: 120, |
|
|
|
}, { |
|
|
|
title: '客户类型', |
|
|
|
dataIndex: 'payConfirmTime', |
|
|
|
key: 'payConfirmTime', |
|
|
|
dataIndex: 'cusType', |
|
|
|
key: 'cusType', |
|
|
|
width: 140, |
|
|
|
}, { |
|
|
|
title: '行业', |
|
|
|
dataIndex: 'thirdPayer', |
|
|
|
key: 'thirdPayer', |
|
|
|
dataIndex: 'industry', |
|
|
|
key: 'industry', |
|
|
|
width: 140, |
|
|
|
}, { |
|
|
|
title: '信息来源', |
|
|
|
dataIndex: 'desc', |
|
|
|
key: 'desc', |
|
|
|
dataIndex: 'source', |
|
|
|
key: 'source', |
|
|
|
width: 120, |
|
|
|
}, { |
|
|
|
title: '项目类型', |
|
|
|
dataIndex: 'leaveMoney', |
|
|
|
key: 'leaveMoney', |
|
|
|
dataIndex: 'itemType', |
|
|
|
key: 'itemType', |
|
|
|
width: 120, |
|
|
|
}, { |
|
|
|
title: '客户省份', |
|
|
|
dataIndex: 'payConfirmTime', |
|
|
|
key: 'payConfirmTime', |
|
|
|
dataIndex: 'cusProvince', |
|
|
|
key: 'cusProvince', |
|
|
|
width: 140, |
|
|
|
}, { |
|
|
|
title: '客户属性', |
|
|
|
dataIndex: 'thirdPayer', |
|
|
|
key: 'thirdPayer', |
|
|
|
dataIndex: 'cusAttribute', |
|
|
|
key: 'cusAttribute', |
|
|
|
width: 140, |
|
|
|
}, { |
|
|
|
title: '复购次数', |
|
|
|
dataIndex: 'desc', |
|
|
|
key: 'desc', |
|
|
|
dataIndex: 'repurchaseCount', |
|
|
|
key: 'repurchaseCount', |
|
|
|
width: 120, |
|
|
|
}, { |
|
|
|
title: '是否可复制的业务路径', |
|
|
|
dataIndex: 'leaveMoney', |
|
|
|
key: 'leaveMoney', |
|
|
|
dataIndex: 'reproducible', |
|
|
|
key: 'reproducible', |
|
|
|
width: 120, |
|
|
|
}, { |
|
|
|
title: '省外业务1.1', |
|
|
|
dataIndex: 'payConfirmTime', |
|
|
|
key: 'payConfirmTime', |
|
|
|
dataIndex: 'outProvince', |
|
|
|
key: 'outProvince', |
|
|
|
width: 140, |
|
|
|
}, { |
|
|
|
title: '复购业务1.05', |
|
|
|
dataIndex: 'thirdPayer', |
|
|
|
key: 'thirdPayer', |
|
|
|
dataIndex: 'repurchase', |
|
|
|
key: 'repurchase', |
|
|
|
width: 140, |
|
|
|
}, { |
|
|
|
title: '可复制的业务路径1.1', |
|
|
|
dataIndex: 'desc', |
|
|
|
key: 'desc', |
|
|
|
dataIndex: 'isreproduce', |
|
|
|
key: 'isreproduce', |
|
|
|
width: 120, |
|
|
|
}] |
|
|
|
function handleRow(record, index) {// 给偶数行设置斑马纹 |
|
|
|