Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
1882f514
Commit
1882f514
authored
Aug 02, 2023
by
张耀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
修复工单管理编辑bug
parent
0ceda97b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
src/page/main/ticket/business-ticket-manage/edit/index.vue
src/page/main/ticket/business-ticket-manage/edit/index.vue
+6
-5
src/page/main/ticket/business-ticket-manage/modules/interface.js
...e/main/ticket/business-ticket-manage/modules/interface.js
+1
-1
No files found.
src/page/main/ticket/business-ticket-manage/edit/index.vue
View file @
1882f514
...
...
@@ -9,7 +9,7 @@
</div>
<div
class=
"add-btns"
>
<el-button
size=
"default"
@
click=
"Cancle"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"default"
@
click=
"Save"
>
保存
</el-button>
<el-button
type=
"primary"
size=
"default"
@
click=
"Save
Submit
"
>
保存
</el-button>
<el-button
type=
"success"
size=
"default"
@
click=
"Distribute"
>
立即下发
</el-button>
</div>
</div>
...
...
@@ -23,6 +23,7 @@ import bgBreadcrumb from "@/components/bg-breadcrumb.vue";
import
addForm
from
"
../modules/add-form.vue
"
;
import
axios
from
"
@/request/http.js
"
;
import
{
ElMessage
}
from
"
element-plus
"
;
import
{
Save
}
from
"
../modules/interface.js
"
;
const
router
=
useRouter
();
const
route
=
useRoute
();
const
{
id
}
=
route
.
query
;
...
...
@@ -31,10 +32,10 @@ const Cancle = () => {
router
.
go
(
-
1
);
};
const
add_form
=
ref
(
null
);
const
Save
=
async
()
=>
{
const
Save
Submit
=
async
()
=>
{
let
res
=
await
add_form
.
value
.
Submit
();
if
(
!
res
)
return
;
Save
({
res
,
is_push
:
0
},
{
url
:
"
/v1/api/work_order/work_order_manage/edit
"
},
()
=>
{
Save
({
res
,
is_push
:
0
},
{
id
,
url
:
"
/v1/api/work_order/work_order_manage/edit
"
},
()
=>
{
Cancle
();
});
};
...
...
@@ -59,7 +60,7 @@ const getInfoData = () => {
time
:
data
.
timing_weekly
?.
point_time
||
""
,
},
3
:
{
lists
:
data
.
timing_
custom
?.
map
((
e
)
=>
{
lists
:
data
.
timing_
rule
?.
map
((
e
)
=>
{
return
{
date
:
[
e
.
date_from
,
e
.
date_to
],
time
:
e
.
point_time
,
...
...
@@ -87,7 +88,7 @@ const getInfoData = () => {
ticket_desc
:
data
.
order_desc
,
timing_rules
:
+
data
.
timing_type
,
rules
:
{
...
ruleObj
,
...
ruleObj
[
data
.
timing_type
]
,
},
};
}
else
{
...
...
src/page/main/ticket/business-ticket-manage/modules/interface.js
View file @
1882f514
...
...
@@ -41,7 +41,7 @@ const setParams = ({ res, is_push }, { id }) => {
...
ruleObj
[
res
.
timing_rules
]
}
if
(
id
)
{
params
.
id
=
id
params
.
id
=
+
id
}
return
params
;
}
...
...
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