💪 optimize: 优化引入顺序
This commit is contained in:
parent
48c9d86e30
commit
c6847baa53
|
@ -1,12 +1,12 @@
|
||||||
import { useState, useEffect, useRef } from "react"
|
|
||||||
import "./index.less"
|
|
||||||
import Ipt from "@/components/input/main"
|
|
||||||
import Form from "@/components/form/main"
|
|
||||||
import FormItem from "@/components/form-item/main"
|
|
||||||
import rules from "./rules"
|
|
||||||
import { cloneDeep } from "lodash-es"
|
|
||||||
import { Button, Notify } from "zent"
|
|
||||||
import { addFund, handelResponse } from "@/assets/api"
|
import { addFund, handelResponse } from "@/assets/api"
|
||||||
|
import FormItem from "@/components/form-item/main"
|
||||||
|
import Form from "@/components/form/main"
|
||||||
|
import Ipt from "@/components/input/main"
|
||||||
|
import { cloneDeep } from "lodash-es"
|
||||||
|
import { useEffect, useRef, useState } from "react"
|
||||||
|
import { Button, Notify } from "zent"
|
||||||
|
import "./index.less"
|
||||||
|
import rules from "./rules"
|
||||||
export default ({ data, onChangeMoney }) => {
|
export default ({ data, onChangeMoney }) => {
|
||||||
const [stateData, setStateData] = useState({ addNew: "" })
|
const [stateData, setStateData] = useState({ addNew: "" })
|
||||||
const [isCount, setIsCount] = useState(false)
|
const [isCount, setIsCount] = useState(false)
|
||||||
|
|
|
@ -1,35 +1,35 @@
|
||||||
/* 新增商品 */
|
/* 新增商品 */
|
||||||
import { Component } from "react"
|
import { getVoucherWarningAccount, handelResponse } from "@/assets/api"
|
||||||
import "./index.less"
|
|
||||||
import Ipt from "@/components/input/main"
|
|
||||||
import Form from "@/components/form/main"
|
|
||||||
import FormItem from "@/components/form-item/main"
|
import FormItem from "@/components/form-item/main"
|
||||||
import rules from "./rules"
|
import Form from "@/components/form/main"
|
||||||
import moment from "moment"
|
import Ipt from "@/components/input/main"
|
||||||
|
import { divNum } from "@/tools/number"
|
||||||
import { deWeightThree, timeDiff } from "@/tools/utils.js"
|
import { deWeightThree, timeDiff } from "@/tools/utils.js"
|
||||||
import { isSameDay } from "date-fns"
|
import { isSameDay } from "date-fns"
|
||||||
import { divNum } from "@/tools/number"
|
import { isArray } from "lodash-es"
|
||||||
|
import moment from "moment"
|
||||||
|
import { Component } from "react"
|
||||||
import {
|
import {
|
||||||
Select,
|
|
||||||
Button,
|
Button,
|
||||||
RadioButton,
|
Card,
|
||||||
RadioGroup,
|
|
||||||
Checkbox,
|
Checkbox,
|
||||||
CheckboxGroup,
|
CheckboxGroup,
|
||||||
DateRangePicker,
|
DateRangePicker,
|
||||||
Radio,
|
|
||||||
Card,
|
|
||||||
Dialog,
|
Dialog,
|
||||||
Notify,
|
Notify,
|
||||||
|
Radio,
|
||||||
|
RadioButton,
|
||||||
|
RadioGroup,
|
||||||
|
Select,
|
||||||
Tag,
|
Tag,
|
||||||
TimeRangePicker
|
TimeRangePicker
|
||||||
} from "zent"
|
} from "zent"
|
||||||
import { isArray } from "lodash-es"
|
|
||||||
import { getVoucherWarningAccount, handelResponse } from "@/assets/api"
|
|
||||||
import AddNewDialog from "./Dialog"
|
import AddNewDialog from "./Dialog"
|
||||||
|
import "./index.less"
|
||||||
import MobileComponent from "./mobileComponent"
|
import MobileComponent from "./mobileComponent"
|
||||||
import YSFMobileComponent from "./ysf-mobileComponent"
|
import rules from "./rules"
|
||||||
import WangEditor from "./wangEditor"
|
import WangEditor from "./wangEditor"
|
||||||
|
import YSFMobileComponent from "./ysf-mobileComponent"
|
||||||
const cardTypeList = [
|
const cardTypeList = [
|
||||||
{ key: "1", text: "借记卡" },
|
{ key: "1", text: "借记卡" },
|
||||||
{ key: "2", text: "信用卡" }
|
{ key: "2", text: "信用卡" }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Placeholder } from "zent"
|
import { Placeholder } from "zent"
|
||||||
import TimeComponent from "./timeComponent"
|
|
||||||
import "./index.less"
|
import "./index.less"
|
||||||
|
import TimeComponent from "./timeComponent"
|
||||||
const widths = [24, 100, 100, 100, 80, 24, 100, 100, 100, 80, 100, 100, 100, 80]
|
const widths = [24, 100, 100, 100, 80, 24, 100, 100, 100, 80, 100, 100, 100, 80]
|
||||||
export default ({ data }) => {
|
export default ({ data }) => {
|
||||||
/* 动态font */
|
/* 动态font */
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import "./index.less"
|
|
||||||
import { Placeholder } from "zent"
|
import { Placeholder } from "zent"
|
||||||
|
import "./index.less"
|
||||||
import TimeComponent from "./timeComponent"
|
import TimeComponent from "./timeComponent"
|
||||||
const widths = [24, 100, 100, 100, 80, 100, 100, 100, 80, 100, 100, 100, 80, 100, 100, 100, 100]
|
const widths = [24, 100, 100, 100, 80, 100, 100, 100, 80, 100, 100, 100, 80, 100, 100, 100, 100]
|
||||||
export default ({ data }) => {
|
export default ({ data }) => {
|
||||||
|
|
|
@ -1,36 +1,35 @@
|
||||||
/* 新增商品 */
|
/* 新增商品 */
|
||||||
import { Component } from "react"
|
import { getVoucherWarningAccount, handelResponse } from "@/assets/api"
|
||||||
import "./index.less"
|
|
||||||
import { uuid } from "@/tools/utils.js"
|
|
||||||
import Ipt from "@/components/input/main"
|
|
||||||
import Form from "@/components/form/main"
|
|
||||||
import FormItem from "@/components/form-item/main"
|
import FormItem from "@/components/form-item/main"
|
||||||
import rules, { additionalRules } from "./rules"
|
import Form from "@/components/form/main"
|
||||||
import moment from "moment"
|
import Ipt from "@/components/input/main"
|
||||||
import { deWeightThree } from "@/tools/utils.js"
|
import { deWeightThree, uuid } from "@/tools/utils.js"
|
||||||
import { isSameDay } from "date-fns"
|
import { isSameDay } from "date-fns"
|
||||||
|
import { cloneDeep, isArray, omit } from "lodash-es"
|
||||||
|
import moment from "moment"
|
||||||
|
import { Component } from "react"
|
||||||
import {
|
import {
|
||||||
Select,
|
BlockHeader,
|
||||||
RadioButton,
|
Button,
|
||||||
RadioGroup,
|
Card,
|
||||||
Checkbox,
|
Checkbox,
|
||||||
CheckboxGroup,
|
CheckboxGroup,
|
||||||
DateRangePicker,
|
|
||||||
Radio,
|
|
||||||
Card,
|
|
||||||
Notify,
|
|
||||||
Tag,
|
|
||||||
TimeRangePicker,
|
|
||||||
DatePicker,
|
DatePicker,
|
||||||
BlockHeader,
|
DateRangePicker,
|
||||||
Button
|
Notify,
|
||||||
|
Radio,
|
||||||
|
RadioButton,
|
||||||
|
RadioGroup,
|
||||||
|
Select,
|
||||||
|
Tag,
|
||||||
|
TimeRangePicker
|
||||||
} from "zent"
|
} from "zent"
|
||||||
import { isArray, cloneDeep, omit } from "lodash-es"
|
import "./index.less"
|
||||||
import { getVoucherWarningAccount, handelResponse } from "@/assets/api"
|
|
||||||
import MobileComponent from "./mobileComponent"
|
import MobileComponent from "./mobileComponent"
|
||||||
import YSFMobileComponent from "./ysf-mobileComponent"
|
import rules, { additionalRules } from "./rules"
|
||||||
|
import { earlyPerList, model, receiveTypeList, week, ysf } from "./static"
|
||||||
import WangEditor from "./wangEditor"
|
import WangEditor from "./wangEditor"
|
||||||
import { receiveTypeList, week, earlyPerList, model, ysf } from "./static"
|
import YSFMobileComponent from "./ysf-mobileComponent"
|
||||||
const initArray = (targetNum) => {
|
const initArray = (targetNum) => {
|
||||||
return Array.from({ length: targetNum }, (_, index) => index)
|
return Array.from({ length: targetNum }, (_, index) => index)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import "./index.less"
|
|
||||||
import { Placeholder } from "zent"
|
import { Placeholder } from "zent"
|
||||||
|
import "./index.less"
|
||||||
import TimeComponent from "./timeComponent"
|
import TimeComponent from "./timeComponent"
|
||||||
const widths = [24, 100, 100, 100, 80, 100, 100, 100, 80, 100, 100, 100, 80, 100, 100, 100, 100]
|
const widths = [24, 100, 100, 100, 80, 100, 100, 100, 80, 100, 100, 100, 80, 100, 100, 100, 100]
|
||||||
export default ({ data }) => {
|
export default ({ data }) => {
|
||||||
|
|
|
@ -1,44 +1,44 @@
|
||||||
import React from "react"
|
|
||||||
import Ipt from "@/components/input/main"
|
|
||||||
import Form from "@/components/form/main"
|
|
||||||
import FormItem from "@/components/form-item/main"
|
|
||||||
import { deWeightThree } from "@/tools/utils.js"
|
|
||||||
import {
|
import {
|
||||||
Card,
|
|
||||||
Radio,
|
|
||||||
Icon,
|
|
||||||
Drawer,
|
|
||||||
Select,
|
|
||||||
Button,
|
|
||||||
DateRangePicker,
|
|
||||||
Sweetalert,
|
|
||||||
RadioGroup,
|
|
||||||
Notify,
|
|
||||||
Input
|
|
||||||
} from "zent"
|
|
||||||
import Bus from "@/assets/eventBus.js"
|
|
||||||
import {
|
|
||||||
getIsRequireApproval,
|
|
||||||
getApprovalsStatus,
|
getApprovalsStatus,
|
||||||
getReseller,
|
|
||||||
terminateApprovals,
|
|
||||||
handelResponse,
|
|
||||||
getCodesDetail,
|
getCodesDetail,
|
||||||
putCodesBatch,
|
getIsRequireApproval,
|
||||||
|
getReseller,
|
||||||
|
handelResponse,
|
||||||
keyEditApproval,
|
keyEditApproval,
|
||||||
|
putCodesBatch,
|
||||||
|
queryKeyBatch,
|
||||||
queryPlans,
|
queryPlans,
|
||||||
queryKeyBatch
|
terminateApprovals
|
||||||
} from "@/assets/api.js"
|
} from "@/assets/api.js"
|
||||||
import { map, cloneDeep, forEach, omit, isEqual, differenceWith, filter } from "lodash-es"
|
import Bus from "@/assets/eventBus.js"
|
||||||
import ProductForm from "@/components/UseProductPop"
|
import ProductForm from "@/components/UseProductPop"
|
||||||
|
import FormItem from "@/components/form-item/main"
|
||||||
|
import Form from "@/components/form/main"
|
||||||
|
import Grid from "@/components/gird/main.js"
|
||||||
|
import Ipt from "@/components/input/main"
|
||||||
import KnockGold from "@/components/knockGold" /* 立减金 */
|
import KnockGold from "@/components/knockGold" /* 立减金 */
|
||||||
import RedPackets from "@/components/redPackets" /* 红包 */
|
import RedPackets from "@/components/redPackets" /* 红包 */
|
||||||
import "./index.less"
|
|
||||||
import moment from "moment"
|
|
||||||
import Grid from "@/components/gird/main.js"
|
|
||||||
import { isSameDay } from "date-fns"
|
|
||||||
import { Column2, rulesInfo, codeInfo, init, redPacketsDataFn, reductionFn } from "./utils.js"
|
|
||||||
import { divNum } from "@/tools/number"
|
import { divNum } from "@/tools/number"
|
||||||
|
import { deWeightThree } from "@/tools/utils.js"
|
||||||
|
import { isSameDay } from "date-fns"
|
||||||
|
import { cloneDeep, differenceWith, filter, forEach, isEqual, map, omit } from "lodash-es"
|
||||||
|
import moment from "moment"
|
||||||
|
import React from "react"
|
||||||
|
import {
|
||||||
|
Button,
|
||||||
|
Card,
|
||||||
|
DateRangePicker,
|
||||||
|
Drawer,
|
||||||
|
Icon,
|
||||||
|
Input,
|
||||||
|
Notify,
|
||||||
|
Radio,
|
||||||
|
RadioGroup,
|
||||||
|
Select,
|
||||||
|
Sweetalert
|
||||||
|
} from "zent"
|
||||||
|
import "./index.less"
|
||||||
|
import { Column2, codeInfo, init, redPacketsDataFn, reductionFn, rulesInfo } from "./utils.js"
|
||||||
|
|
||||||
const initArray = (targetNum) => {
|
const initArray = (targetNum) => {
|
||||||
return Array.from({ length: targetNum }, (_, index) => index)
|
return Array.from({ length: targetNum }, (_, index) => index)
|
||||||
|
|
Loading…
Reference in New Issue