diff --git a/src/components/Common/WorkOrderSystem/WorkOrderSystemAdd.js b/src/components/Common/WorkOrderSystem/WorkOrderSystemAdd.js
index 108ab73..7735c7b 100644
--- a/src/components/Common/WorkOrderSystem/WorkOrderSystemAdd.js
+++ b/src/components/Common/WorkOrderSystem/WorkOrderSystemAdd.js
@@ -21,6 +21,7 @@ import commonConfig from "@/utils/config";
import * as commonUtils from "@/utils/utils";
import moment from "moment";
import WorkOrderSystemService from "./WorkOrderSystemService";
+import WorkOrderSystemConfig from "./WorkOrderSystemConfig";
let _dispatch, _props;
const reducer = (state, action) => {
@@ -43,7 +44,7 @@ const reducer = (state, action) => {
const WorkOrderSystemAdd = props => {
const [state, dispatch] = useReducer(reducer, {
sType: 4,
- bBug: false,
+ sBug: '0',
bVsersion: false
});
const { customerData, moduleData, userData, loading = false } = state;
@@ -53,24 +54,7 @@ const WorkOrderSystemAdd = props => {
const [customerOption, setCustomerOption] = useState([]); // 【所属客户】下拉选项
const [moduleOption, setModuleOption] = useState([]); // 【所属模块】下拉选项
const [userOption, setUserOption] = useState([]); // 【处理人、抄送人】下拉选项
- const priorityOption = [
- {
- label: "严重",
- value: 1
- },
- {
- label: "紧急",
- value: 2
- },
- {
- label: "一般",
- value: 3
- },
- {
- label: "优化",
- value: 4
- }
- ];
+ const { priorityOption, sBugOption } = WorkOrderSystemConfig; // 各种固定下拉选项
// 初始化加载数据
useEffect(() => {
@@ -291,10 +275,13 @@ const WorkOrderSystemAdd = props => {
-
+