Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
59104af9
Commit
59104af9
authored
Mar 19, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 代码优化
parent
5c5b1b42
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
71 deletions
+10
-71
.cursor/rules/factory-rule.mdc
+1
-1
src/utils/hooks/useLodop.ts
+1
-1
src/views/order/factoryOrderNew/index.vue
+8
-69
No files found.
.cursor/rules/factory-rule.mdc
View file @
59104af9
...
...
@@ -27,4 +27,4 @@ Vue3 + Element Plus + Pinia + Axios + TypeScript + Vite
-- 只编写解决问题所需的最少代码
-- 避免冗余实现和过渡设计
-- 实现一个复杂功能时,需要合理拆分组件,使每个文件的代码更易维护
--
疯转
组件时,要考虑组件的复用性
--
封装
组件时,要考虑组件的复用性
src/utils/hooks/useLodop.ts
View file @
59104af9
...
...
@@ -47,7 +47,7 @@ declare global {
interface
Window
{
LODOP
:
new
()
=>
LODOPObject
_lodop
:
LODOPObject
|
null
_lodopCallback
:
{
[
key
:
string
]:
Function
}
_lodopCallback
:
{
[
key
:
string
]:
(
value
:
string
)
=>
void
}
CLODOP
:
CLodopObject
getCLodop
:
()
=>
LODOPObject
}
...
...
src/views/order/factoryOrderNew/index.vue
View file @
59104af9
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment