|
|
@ -5,7 +5,6 @@ import { Modal, Form, Button, Notification } from '@douyinfe/semi-ui'; |
|
|
|
import { IconUpload } from '@douyinfe/semi-icons'; |
|
|
|
import cityData from '../../components/city.json'; |
|
|
|
import XLSX from 'xlsx' |
|
|
|
import { membersBulkAdd } from '../../actions/personnelFiles' |
|
|
|
//下载模板和上传文件读取
|
|
|
|
const ImportSalersModal = props => { |
|
|
|
const { dispatch, actions, onCancel, rzMembers } = props |
|
|
@ -147,7 +146,7 @@ const ImportSalersModal = props => { |
|
|
|
return ( |
|
|
|
<Modal |
|
|
|
title="导入" visible={true} |
|
|
|
onOk={confirm} |
|
|
|
onOk={confirm} width={620} |
|
|
|
confirmLoading={loading} |
|
|
|
onCancel={() => { |
|
|
|
setMsg('') |
|
|
@ -224,7 +223,7 @@ const ImportSalersModal = props => { |
|
|
|
error(`第${i + 2}行销售区域(市)错误`) |
|
|
|
return |
|
|
|
} |
|
|
|
postData.push({//人员编号 待办todotodo
|
|
|
|
postData.push({ |
|
|
|
pepUserId: rzExist.pepUserId, name, |
|
|
|
provinces: provinces.split('、'), cities: cities.split('、'), |
|
|
|
del: false |
|
|
@ -244,6 +243,13 @@ const ImportSalersModal = props => { |
|
|
|
<div style={{ color: '#ccc' }}>最大不超过200M,导入文件需与 |
|
|
|
<span onClick={() => download()} style={{ cursor: 'pointer', color: '#0066FF' }}>导入模板</span> |
|
|
|
一致</div> |
|
|
|
<div style={{ marginTop: 20, border: '1px solid #C7E1FF', background: '#F4F8FF', borderRadius: 2, padding: '8px 0px 7px 12px', alignItems: 'center', color: '#0F7EFB', fontSize: 12 }}> |
|
|
|
<div>填写要求:</div> |
|
|
|
<div>员工编号:必填,唯一,数字和字母的组合;</div> |
|
|
|
<div>姓名:必填,若与员工编号对应的项企用户姓名不同,将以项企数据为准;</div> |
|
|
|
<div>销售区域(省/直辖市):必填,省或直辖市顿号隔开,如“北京市、江西省、江苏省”;</div> |
|
|
|
<div>销售区域(市):非必填,归属所填省的地级市顿号隔开,如“南昌市、镇江市”。</div> |
|
|
|
</div> |
|
|
|
</Form> |
|
|
|
</Modal > |
|
|
|
) |
|
|
|