From dcb488c44b3f8ded8e2b6c8b2f6b37fd2d669860 Mon Sep 17 00:00:00 2001 From: ww664853070 Date: Thu, 1 Dec 2022 16:07:26 +0800 Subject: [PATCH] =?UTF-8?q?(+)=E5=AE=A2=E6=88=B7=E8=81=94=E7=B3=BB?= =?UTF-8?q?=E4=BA=BA=E5=AF=B9=E6=8E=A5=E8=B7=9F=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerContactsFollup/index.js | 2 +- .../routes/customerContactsFollup/index.js | 2 +- .../actions/customerContactFollowup.js | 16 +++++++++++++++ .../src/sections/business/actions/index.js | 4 +++- .../customer/customerContactFollowup.jsx | 20 +++++++------------ web/client/src/utils/webapi.js | 2 ++ 6 files changed, 30 insertions(+), 16 deletions(-) create mode 100644 web/client/src/sections/business/actions/customerContactFollowup.js diff --git a/api/app/lib/controllers/customerContactsFollup/index.js b/api/app/lib/controllers/customerContactsFollup/index.js index 612eed1..2a615e3 100644 --- a/api/app/lib/controllers/customerContactsFollup/index.js +++ b/api/app/lib/controllers/customerContactsFollup/index.js @@ -19,5 +19,5 @@ async function getCustomerContactsFollowup(ctx, next) { } module.exports = { - getCustomerContactsFollowup + getCustomerContactsFollowup, } \ No newline at end of file diff --git a/api/app/lib/routes/customerContactsFollup/index.js b/api/app/lib/routes/customerContactsFollup/index.js index b8c0cee..e383452 100644 --- a/api/app/lib/routes/customerContactsFollup/index.js +++ b/api/app/lib/routes/customerContactsFollup/index.js @@ -4,5 +4,5 @@ const report = require('../../controllers/customerContactsFollup'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/customerContactsFollup'] = { content: '客户联系人对接跟进', visible: false }; - router.get('/customerContactsFollup', report.getReserveItemReport); + router.get('/customerContactsFollup', report.getCustomerContactsFollowup); }; \ No newline at end of file diff --git a/web/client/src/sections/business/actions/customerContactFollowup.js b/web/client/src/sections/business/actions/customerContactFollowup.js new file mode 100644 index 0000000..dde9713 --- /dev/null +++ b/web/client/src/sections/business/actions/customerContactFollowup.js @@ -0,0 +1,16 @@ +'use strict'; + +import { ApiTable, basicAction } from '$utils' + +export function getCustomerContactsFollowup() {//查询 + return (dispatch) => basicAction({ + type: "get", + dispatch: dispatch, + actionType: "GET_CUSTOMER_CONTACT_FOLLOWUP", + url: `${ApiTable.getCustomerContactsFollowup}`, + msg: { option: "查询客户联系人对接跟进表" }, + reducer: { name: "customerContactsFollowupList", params: { noClear: true } }, + }); +} + + diff --git a/web/client/src/sections/business/actions/index.js b/web/client/src/sections/business/actions/index.js index 0371e88..37f28f9 100644 --- a/web/client/src/sections/business/actions/index.js +++ b/web/client/src/sections/business/actions/index.js @@ -2,8 +2,10 @@ import * as reserveItem from './reserve-item'; import * as salersReport from './salers-report'; import * as achievementReport from './achievement-report'; +import * as getCustomerContactsFollowup from './customerContactFollowup' export default { ...reserveItem, ...salersReport, - ...achievementReport + ...achievementReport, + ...getCustomerContactsFollowup } \ No newline at end of file diff --git a/web/client/src/sections/business/containers/customer/customerContactFollowup.jsx b/web/client/src/sections/business/containers/customer/customerContactFollowup.jsx index 5aa91c5..8be2127 100644 --- a/web/client/src/sections/business/containers/customer/customerContactFollowup.jsx +++ b/web/client/src/sections/business/containers/customer/customerContactFollowup.jsx @@ -6,8 +6,10 @@ import '../../style.less' import moment from 'moment' const CustomerContactFollowup = (props) => { - const [downloadUrl, setDownloadUrl] = useState(null); - const [warningBanner, setWarningBanner] = useState(null); + const { dispatch,actions } = props + useEffect(() => { + dispatch(actions.businessManagement.getCustomerContactsFollowup()); + }, []); const columns = [ { @@ -54,7 +56,7 @@ const CustomerContactFollowup = (props) => { ]; const data = []; const exportAll = () => { - + } return ( @@ -75,13 +77,7 @@ const CustomerContactFollowup = (props) => {
CUSTOMER CONTACT FOLLOW UP
- { - warningBanner && - ( setWarningBanner(null)} - />)} +
} @@ -108,9 +104,7 @@ const CustomerContactFollowup = (props) => { - { - downloadUrl ?