Browse Source

(*)销售人员新增-搜索人员编号接口修改和web相应修改

master
wuqun 2 years ago
parent
commit
cadeb062ce
  1. 4
      api/app/lib/controllers/member/index.js
  2. 16
      web/client/src/sections/humanAffairs/containers/salersDistribution/personnelDistribution.jsx
  3. 4
      web/client/src/sections/humanAffairs/containers/salersDistribution/salesMemberModal.js

4
api/app/lib/controllers/member/index.js

@ -107,6 +107,7 @@ async function searchPepMember (ctx) {
user.name AS userName,
role.name AS roleName,
role.id AS roleId,
basicdata_post.name AS userPost,
department.name AS depName,
department.id AS depId
FROM
@ -115,6 +116,8 @@ async function searchPepMember (ctx) {
ON user_role.user = user.id
LEFT JOIN role
ON role.id = user_role.role
LEFT JOIN basicdata_post
ON basicdata_post.id = user.post
LEFT JOIN department_user
ON department_user.user = user.id
LEFT JOIN department
@ -146,6 +149,7 @@ async function searchPepMember (ctx) {
pepUserId: u.pepUserId,
name: u.userName,
userCode: u.userCode,
userPost: u.userPost,
departmrnt: u.depId ? [{
id: u.depId,
name: u.depName

16
web/client/src/sections/humanAffairs/containers/salersDistribution/personnelDistribution.jsx

@ -71,6 +71,7 @@ const PersonnelDistribution = (props) => {
const getMultis = (arrStr) => {//2
return <div style={{ display: 'flex' }}>
{
arrStr.length ?
arrStr.map((ite, idx) => {
return (
<div key={idx} style={{ display: 'flex' }}>
@ -90,7 +91,7 @@ const PersonnelDistribution = (props) => {
}
</div>
)
})
}) : '-'
}
</div>
}
@ -111,7 +112,7 @@ const PersonnelDistribution = (props) => {
title: starHeader('部门名称'),
dataIndex: 'department',
key: 'department',
width: '15%',
width: '18%',
render: (text, r, index) => {
let arrStr = text.map(t => t.name);
return getMultis(arrStr);
@ -136,18 +137,19 @@ const PersonnelDistribution = (props) => {
title: starHeader('岗位'),
dataIndex: 'post',
key: 'post',
width: '10%',
width: '11%',
render: (text, record) => <span>{text || '-'}</span>
}, {
title: starHeader('入职时间'),
dataIndex: 'hireDate',
key: 'hireDate',
width: '10%',
width: '8%',
render: (text, record) => <span>{text || '-'}</span>
}, {
title: starHeader('转正时间'),
dataIndex: 'regularDate',
key: 'regularDate',
width: '10%',
width: '8%',
render: (text, record) => <span>{text || '-'}</span>
}, {
title: starHeader('工龄'),
@ -236,9 +238,9 @@ const PersonnelDistribution = (props) => {
onClick={() => { setImportModalV(true); }}>
导入
</div>
<div style={{ padding: '6px 20px', background: '#00BA85', color: '#FFFFFF', fontSize: 14, marginLeft: 18 }}>
{/* <div style={{ padding: '6px 20px', background: '#00BA85', color: '#FFFFFF', fontSize: 14, marginLeft: 18 }}>
导出
</div>
</div> */}
</div>
</div>

4
web/client/src/sections/humanAffairs/containers/salersDistribution/salesMemberModal.js

@ -94,7 +94,7 @@ const SalesMemberModal = (props) => {
hireDate: exist.hiredate,
regularDate: exist.regularDate,
userCode: user.userCode,
post: '岗位todo'
post: user.userPost//岗位
}
setPeoplePro(item)
}
@ -143,7 +143,7 @@ const SalesMemberModal = (props) => {
{label}
</div>
<div style={{ color: '#4A4A4A', fontSize: 12 }}>
{value}
{value || '-'}
</div>
</div>
}

Loading…
Cancel
Save