diff --git a/src/pages/InRoadMgm/PersonMgm/Attendance/Fence/loadable.jsx b/src/pages/InRoadMgm/PersonMgm/Attendance/Fence/loadable.jsx
index 23e1636..fdbcdc7 100644
--- a/src/pages/InRoadMgm/PersonMgm/Attendance/Fence/loadable.jsx
+++ b/src/pages/InRoadMgm/PersonMgm/Attendance/Fence/loadable.jsx
@@ -14,7 +14,8 @@ function Fence(props) {
const [ajaxLoading, setAjaxLoading] = useState(false)
const [getModalData, setGetModalData] = useState({
attendDistance: '1',
- effective: '1'
+ effective: '1',
+ attendmin: ''
})
const [getEditModal, setGetEditModal] = useState({
attendDistance: '1',
@@ -282,7 +283,13 @@ function Fence(props) {
const [valuePark, setValuePark] = useState([]);
//批量设置保存
const saveBtn = () => {
- if (getScopeValue === '2' && targetKeys.length === 0) {
+ let reg = /^(1?[1-9]00|[12]000)$/;
+ console.log(reg.test(getModalData.attendmin));
+ if (getModalData.attendmin === '' && getStatus == '2') {
+ message.error('请输入有效范围')
+ }else if(!reg.test(getModalData.attendmin)){
+ message.error('有效范围输入区间为[100,2000]')
+ }else if (getScopeValue === '2' && targetKeys.length === 0) {
message.error('请选择停车场')
} else {
let getValue = valuePark
@@ -298,6 +305,7 @@ function Fence(props) {
setGetModalData({
attendDistance: '1',
effective: '1',
+ attendmin: ''
})
setGetScopeValue(1)
setTargetKeys([])
@@ -315,7 +323,8 @@ function Fence(props) {
getData(formData)
setGetModalData({
attendDistance: '1',
- effective: '1'
+ effective: '1',
+ attendmin: ''
})
setGetScopeValue(1)
setTargetKeys([])
diff --git a/src/pages/InRoadMgm/PersonMgm/Attendance/WorkerSchedule/index.scss b/src/pages/InRoadMgm/PersonMgm/Attendance/WorkerSchedule/index.scss
index 4b5fe05..6e5a9ce 100644
--- a/src/pages/InRoadMgm/PersonMgm/Attendance/WorkerSchedule/index.scss
+++ b/src/pages/InRoadMgm/PersonMgm/Attendance/WorkerSchedule/index.scss
@@ -150,7 +150,7 @@ $color-primary : var(--color-primary);
}
.WorkSchedule{
width: 1700px !important;
- top: 40px !important;
+ top: 6px !important;
.ant-picker-calendar-header .ant-radio-group{
display: none;
}
diff --git a/src/pages/InRoadMgm/PersonMgm/Attendance/WorkerSchedule/loadable.jsx b/src/pages/InRoadMgm/PersonMgm/Attendance/WorkerSchedule/loadable.jsx
index 61a7e76..7e0301e 100644
--- a/src/pages/InRoadMgm/PersonMgm/Attendance/WorkerSchedule/loadable.jsx
+++ b/src/pages/InRoadMgm/PersonMgm/Attendance/WorkerSchedule/loadable.jsx
@@ -226,6 +226,7 @@ function WorkerSchedule(props) {
setGetAllChange({
scheduleId: ''
})
+ getData(formData)
}
})
}
diff --git a/src/pages/InRoadMgm/PersonMgm/Performance/SalesStat/index.scss b/src/pages/InRoadMgm/PersonMgm/Performance/SalesStat/index.scss
index 857c534..e5f2630 100644
--- a/src/pages/InRoadMgm/PersonMgm/Performance/SalesStat/index.scss
+++ b/src/pages/InRoadMgm/PersonMgm/Performance/SalesStat/index.scss
@@ -180,3 +180,29 @@ $color-primary : var(--color-primary);
}
}
}
+.exportModal{
+ .submitBtn{
+ text-align: center;
+ margin-top: 20px;
+ .submit{
+ width: 80px;
+ height: 35px;
+ background: #409eff;
+ border: none;
+ border-radius: 4px;
+ cursor: pointer;
+ color: #fff;
+ }
+ .cancel{
+ width: 80px;
+ height: 35px;
+ background: #3e4557;
+ border: none;
+ border-radius: 4px;
+ color: #fff;
+ cursor: pointer;
+ margin-left: 20px;
+ }
+ }
+}
+
diff --git a/src/pages/InRoadMgm/PersonMgm/Performance/SalesStat/loadable.jsx b/src/pages/InRoadMgm/PersonMgm/Performance/SalesStat/loadable.jsx
index f8afa6f..577dc78 100644
--- a/src/pages/InRoadMgm/PersonMgm/Performance/SalesStat/loadable.jsx
+++ b/src/pages/InRoadMgm/PersonMgm/Performance/SalesStat/loadable.jsx
@@ -35,6 +35,7 @@ function SalesStat(props) {
const lastFormDataRef = useRef(formData)
const lastTabDataRef = useRef()
const [revenueVisible, setRevenueVisible] = useState(false)
+ const [exportVisible, setExportVisible] = useState(false)
const [lastTotalData, setLastTotalData] = useState(tabData)
const [getTabData, setGetTabData] = useState([])
const [getTabTitle, setGetTabTitle] = useState([])
@@ -254,13 +255,33 @@ function SalesStat(props) {
const getSearchData = (data = formData) => {
getData(data)
}
+
+ const exportModal = () => {
+ setExportVisible(false)
+ }
//导出
const salesData = () => {
+ setExportVisible(true)
+ }
+ const exportNow = () => {
+ let data = {
+ ...formData,
+ export_type:""
+ }
+ ajax.salesExport(data).then(res => {
+ window.open(res.data.url)
+ setExportVisible(false)
+ })
+ }
+ const exportAll = () => {
+
let data = {
- ...formData
+ ...formData,
+ export_type:"all"
}
ajax.salesExport(data).then(res => {
window.open(res.data.url)
+ setExportVisible(false)
})
}
//查看详情
@@ -429,6 +450,21 @@ function SalesStat(props) {
+