@@ -693,7 +698,7 @@ function InvoiceConf() {
条件重置
@@ -748,6 +753,9 @@ function InvoiceConf() {
initialValues={{
receipt_type: 2,
}}
+ // onValuesChange={(v,allValue) => {
+ // console.log(v,allValue, 123);
+ // }}
>
-
+ {setInvoicePlatform(e.target.value)}}>
航信
航信诺诺
百旺
@@ -890,44 +898,95 @@ function InvoiceConf() {
-
-
-
-
+
+
+ : null
+ }
+ {InvoicePlatform != 2 ?
+
-
+ validateTrigger="onBlur"
+ rules={[
+ { required: true, message: "请输入授权码!" },
+ { min: 0, max: 36, message: "最大长度为36" }
+ ]}
+ >
+
+
+ : null
+ }
+ {InvoicePlatform == 2 ?
+
+
+
+ : null
+ }
+ {InvoicePlatform == 2 ?
+
+
+
+ : null
+ }
+
-
-
-
-
-
+
+
+ : null
+ }
+ {InvoicePlatform != 2 ?
+
-
-
-
+
+
+ : null
+ }
+ {InvoicePlatform != 2 ?
+
-
-
-
-
-
-
-
+ {/*
清结算信息
@@ -1991,7 +1989,7 @@ function MerchantInfo() {
-
+
*/}
操作信息
diff --git a/src/pages/SystemMgm/AdminMgm/index.scss b/src/pages/SystemMgm/AdminMgm/index.scss
index 1da5b61..d159f5a 100644
--- a/src/pages/SystemMgm/AdminMgm/index.scss
+++ b/src/pages/SystemMgm/AdminMgm/index.scss
@@ -26,6 +26,7 @@ $color-primary: var(--color-primary);
display: flex;
label {
line-height: 31px;
+
}
}
.yisa-time {
diff --git a/src/pages/SystemMgm/AdminMgm/loadable.jsx b/src/pages/SystemMgm/AdminMgm/loadable.jsx
index 042214d..ac3777e 100644
--- a/src/pages/SystemMgm/AdminMgm/loadable.jsx
+++ b/src/pages/SystemMgm/AdminMgm/loadable.jsx
@@ -99,6 +99,19 @@ function AdminMgm(props) {
const handleDeptName = (v) => {
setAddManage({ ...addManage, deptName: v })
};
+ //添加角色
+ const handleRole = (v) => {
+ setAddManage({ ...addManage, role: v })
+ };
+ //添加管辖方式
+ const handleGovernmentType = (v) => {
+ setGetGovernment(v)
+ setAddManage({ ...addManage, government_style: v })
+ }
+ //添加管辖区域
+ const handleArea = (v) => {
+ setAddManage({ ...addManage, government_area: v })
+ }
//添加管辖车场接入方式
const onChangeCarType = (e) => {
setAddManage({ ...addManage, car_type: e.target.value })
@@ -131,7 +144,7 @@ function AdminMgm(props) {
};
//添加移动端管辖区域
const handleMoveArea = (e) => {
- setAddManage({ ...addManage, moveArea:e })
+ setAddManage({ ...addManage, moveArea: e })
};
//添加失效时间
const onChangeTime = (date, dateString) => {
@@ -143,23 +156,32 @@ function AdminMgm(props) {
let data = {
...addManage
}
- ajax.addAdminDate(data).then(res => {
- if (res.status === 20000) {
- setImgVisible(false)
- setAddManage({
- mobile: '',
- userName: '',
- account: '',
- email: '',
- deptName: '',
- sex: 1,
- car_type: 1,
- messageRole: 0,
- failure_time: ''
- })
- getData(formData)
- }
- })
+ if (addManage.account == '') {
+ message.error('请输入登录名')
+ } else if (addManage.userName == '') {
+ message.error('请输入姓名')
+ } else if (addManage.deptName == '') {
+ message.error('请输入所属部门')
+ } else {
+ ajax.addAdminDate(data).then(res => {
+ if (res.status === 20000) {
+ setImgVisible(false)
+ setAddManage({
+ mobile: '',
+ userName: '',
+ account: '',
+ email: '',
+ deptName: '',
+ sex: 1,
+ car_type: 1,
+ messageRole: 0,
+ failure_time: ''
+ })
+ getData(formData)
+ }
+ })
+ }
+
}
//列表
const handleColumns = (tab) => {
@@ -220,7 +242,7 @@ function AdminMgm(props) {
title: '状态',
render: (text, record) => {
return <>
- {record.workState === 1 ? '离职' : '在职'}
+ {record.workState === 1 ? '在职' : '离职'}
>
}
},
@@ -231,7 +253,7 @@ function AdminMgm(props) {
{ CheckApplyBtn(record) }}>编辑
- { deleteApplyBtn(record) }}>{record.workState === 1 ? '在职' : '离职'}
+ { deleteApplyBtn(record) }}>{record.workState === 1 ? '离职' : '在职'}
{ applyBtn(record) }}>重置密码
}>
@@ -277,9 +299,9 @@ function AdminMgm(props) {
messageRole: record.messageRole,
failure_time: record.failure_time,
role: record.role,
- government_style:record.government_style,
- government_area:record.government_area,
- moveArea:record.moveArea
+ government_style: record.government_style,
+ government_area: record.government_area,
+ moveArea: record.moveArea
}))
}
//管辖方式
@@ -584,7 +606,7 @@ function AdminMgm(props) {
>
-
+
+
+
+
+
+
+
+
+
+
+
+
+
全部
diff --git a/src/pages/SystemMgm/AreaManage/ModalAreaAdd/index.jsx b/src/pages/SystemMgm/AreaManage/ModalAreaAdd/index.jsx
index b447226..c8d1966 100644
--- a/src/pages/SystemMgm/AreaManage/ModalAreaAdd/index.jsx
+++ b/src/pages/SystemMgm/AreaManage/ModalAreaAdd/index.jsx
@@ -16,7 +16,6 @@ function ModalAreaAdd (props) {
level,
onCancel
} = props
-
const [form] = Form.useForm()
const [areaType, setAreaType] = useState("1")
@@ -100,16 +99,11 @@ function ModalAreaAdd (props) {
) : null
}
-
+
diff --git a/src/pages/SystemMgm/AreaManage/loadable.jsx b/src/pages/SystemMgm/AreaManage/loadable.jsx
index f5eb16f..264afbb 100644
--- a/src/pages/SystemMgm/AreaManage/loadable.jsx
+++ b/src/pages/SystemMgm/AreaManage/loadable.jsx
@@ -1,5 +1,5 @@
import React, { useState, useRef, useEffect } from "react";
-import { message, Pagination, Table, Input, Modal, Tree, Button } from "antd";
+import { message, Pagination, Table, Input, Modal, Tree, Button } from "antd";
import { DeleteOutlined, EditOutlined, PlusCircleOutlined } from '@ant-design/icons';
import ajax from "@/services"
import { BaseMap } from "@/components"
@@ -73,30 +73,39 @@ function AreaManage() {
}
})
}
- const handleAreaAdd = ({level, pid, isCity}) => {
+ const handleAreaAdd = ({ level, id, isCity }) => {
+ let pid = id
setIsCity(isCity)
setPid(pid)
- setLevel(Number(level)+1)
+ setLevel(Number(level) + 1)
setEditStatus(false)
setModalAreaVisible(true)
}
- const handleAreaEdit = ({name, id, virtually_code, code, lng_lat}) => {
- setEditForm({name, id, virtually_code, code, lng_lat})
+ const handleAreaEdit = ({ name, id, virtually_code, code, lng_lat }) => {
+ setEditForm({ name, id, virtually_code, code, lng_lat })
setEditStatus(true)
setModalAreaVisible(true)
}
// 区域删除
- const handleAreaDel = ({name, id}) => {
+ const handleAreaDel = ({ name, id, children }) => {
+ let arr = []
+ arr.push(id)
+ console.log(children, id);
+ if (children != undefined) {
+ children.map(res => {
+ arr.push(res.id)
+ })
+ }
Modal.confirm({
title: '确认删除?',
content: `是否确认删除区域: ${name}`,
- icon: ,
+ icon: ,
okText: '删除',
cancelText: '取消',
onOk: () => {
- ajaxAreaDel({name, id}).then((msg) => {
+ ajaxAreaDel({ name, arr }).then((msg) => {
message.success(msg)
getAreaTree()
}).catch((err) => {
@@ -112,12 +121,12 @@ function AreaManage() {
setModalAreaVisible(false)
setModalMapVisible(true)
}
- const handleMapClick = ({lat, lng}) => {
+ const handleMapClick = ({ lat, lng }) => {
setLatlng([lat.toFixed(4), lng.toFixed(4)])
}
// 区域新增
- const handleAreaConfirm = ({formData, editStatus}) => {
+ const handleAreaConfirm = ({ formData, editStatus }) => {
if (editStatus) { // 编辑
ajaxAreaEdit(formData).then((msg) => {
message.success(msg)
@@ -146,19 +155,26 @@ function AreaManage() {
setModalAreaVisible(true)
}
}
- const treeTitleRender = ({name, children, level, pid, id, virtually_code, lng_lat, code}) => {
+ const treeTitleRender = ({ name, children, level, pid, id, virtually_code, lng_lat, code }) => {
return <>
{name}
{
- children ? (
- handleAreaAdd({level, pid, isCity: true})} />
+ level === 1 ? (
+ handleAreaAdd({ level, id, isCity: true })} />
) : null
}
{
+ level === 2 ? <>
+ handleAreaAdd({ level, id, isCity: false })} />
+ handleAreaDel({ name, id, children })} />
+ handleAreaEdit({ name, id, virtually_code, code, lng_lat })} />
+ > : null
+ }
+ {
level > 2 ? <>
- handleAreaAdd({level, pid, isCity: false})} />
- handleAreaDel({name, id})} />
- handleAreaEdit({name, id, virtually_code, code, lng_lat})}/>
+ {/* handleAreaAdd({level, pid, isCity: false})} /> */}
+ handleAreaDel({ name, id, children })} />
+ handleAreaEdit({ name, id, virtually_code, code, lng_lat })} />
> : null
}
>
@@ -189,7 +205,7 @@ function AreaManage() {
editForm={editForm}
visible={modalAreaVisible}
onMapSelect={modalMapSelct}
- onOk={(formData, editStatus) => handleAreaConfirm({formData, editStatus})}
+ onOk={(formData, editStatus) => handleAreaConfirm({ formData, editStatus })}
latlng={latlng}
onCancel={() => handleModalClose()}
/>
@@ -202,12 +218,12 @@ function AreaManage() {
handleMapClick(latlng)}
+ onClick={({ latlng }) => handleMapClick(latlng)}
/>
-
-
+
+
>
diff --git a/src/pages/SystemMgm/BusinessConfig/BusinessConf/loadable.jsx b/src/pages/SystemMgm/BusinessConfig/BusinessConf/loadable.jsx
index 34c0923..dd78a2e 100644
--- a/src/pages/SystemMgm/BusinessConfig/BusinessConf/loadable.jsx
+++ b/src/pages/SystemMgm/BusinessConfig/BusinessConf/loadable.jsx
@@ -45,7 +45,7 @@ function BusinessConf(props) {
//添加
const [addManage, setAddManage] = useState({
area_name: 0,
- operator_name: 0,
+ operator_name: "0",
item_name: ''
})
const addAdmin = () => {
@@ -66,8 +66,11 @@ function BusinessConf(props) {
const handleConfiguration = (v, option) => {
setGetMessage(option);
setGetConfiguration(v)
-
- setAddManage({ ...addManage, item_name: v })
+ setAddManage({
+ ...addManage, item_name: v ,
+ area_name: 0,
+ operator_name: "0",
+ })
}
//添加
const onChangeAdd = (e) => {
@@ -113,20 +116,32 @@ function BusinessConf(props) {
}
//添加提交
const placeSaveBtn = () => {
+ console.log(addManage.parameter);
let data = {
...addManage
}
- ajax.addBusiness(data).then(res => {
- if (res.status === 20000) {
- setImgVisible(false)
- setAddManage({
- area_name: 0,
- operator_name: 0,
- item_name: ''
- })
- getData(formData)
- }
- })
+ if (addManage.area_name === '') {
+ message.error('请选择城市')
+ } else if (addManage.operator_name === '') {
+ message.error('请选择商户名称')
+ } else if (addManage.item_name === '') {
+ message.error('请选择配置项')
+ } else if (addManage.parameter === undefined && addManage.parameterValue === undefined) {
+ message.error('请选择参数项')
+ } else {
+ ajax.addBusiness(data).then(res => {
+ if (res.status === 20000) {
+ setImgVisible(false)
+ setAddManage({
+ area_name: 0,
+ operator_name: "0",
+ item_name: ''
+ })
+ getData(formData)
+ setGetConfiguration(0)
+ }
+ })
+ }
}
//列表
const handleColumns = (tab) => {
@@ -171,11 +186,11 @@ function BusinessConf(props) {
title: '参数描述',
dataIndex: 'parameter_dsc',
key: 'parameter_dsc',
- render:(text,record)=>{
- return<>
+ render: (text, record) => {
+ return <>
- {/* {getMessage.message} */}
-
+ {/* {getMessage.message} */}
+
>
}
},
@@ -219,9 +234,10 @@ function BusinessConf(props) {
setImgVisible(false)
setAddManage({
area_name: 0,
- operator_name: 0,
+ operator_name: '0',
item_name: ''
})
+ setGetConfiguration(0)
setGetMessage({})
}
//编辑
@@ -274,7 +290,7 @@ function BusinessConf(props) {
setImgVisible(false)
setAddManage({
area_name: 0,
- operator_name: 0,
+ operator_name: '0',
item_name: ''
})
setGetMessage({})
@@ -346,6 +362,7 @@ function BusinessConf(props) {
if (res.status === 20000) {
setEditVisible(false)
getData(formData)
+ setGetConfiguration(0)
}
})
}
@@ -448,6 +465,7 @@ function BusinessConf(props) {
>
+
*