Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘文虎
account-book
Commits
af94cf8d
Commit
af94cf8d
authored
Nov 04, 2022
by
刘文虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改刷新逻辑
parent
f8c19950
Pipeline
#3950
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
edit.vue
pages/bill/quoted-price/create/edit.vue
+1
-0
select-price.vue
pages/bill/quoted-price/select-price/select-price.vue
+7
-7
No files found.
pages/bill/quoted-price/create/edit.vue
View file @
af94cf8d
...
@@ -195,6 +195,7 @@ export default {
...
@@ -195,6 +195,7 @@ export default {
async
handleClickConfirm
()
{
async
handleClickConfirm
()
{
try
{
try
{
let
{
data
}
=
await
updateOfferTemplate
({
id
:
this
.
id
,
deleteFlag
:
true
});
let
{
data
}
=
await
updateOfferTemplate
({
id
:
this
.
id
,
deleteFlag
:
true
});
uni
.
$emit
(
"on-custom-price-delete"
,{
id
:
this
.
id
})
this
.
$u
.
route
({
this
.
$u
.
route
({
type
:
'back'
type
:
'back'
});
});
...
...
pages/bill/quoted-price/select-price/select-price.vue
View file @
af94cf8d
...
@@ -84,6 +84,12 @@ export default {
...
@@ -84,6 +84,12 @@ export default {
});
});
},
},
toEdit
(
item
)
{
toEdit
(
item
)
{
uni
.
$once
(
"on-custom-price-delete"
,(
res
)
=>
{
if
(
res
&&
this
.
id
===
res
.
id
){
uni
.
$emit
(
'update-custom-id'
,
this
.
list
[
0
])
this
.
$store
.
dispatch
(
"Save_custom_id"
,
this
.
list
[
0
].
id
)
}
})
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'/pages/bill/quoted-price/create/edit'
,
url
:
'/pages/bill/quoted-price/create/edit'
,
params
:
{
params
:
{
...
@@ -149,19 +155,13 @@ export default {
...
@@ -149,19 +155,13 @@ export default {
},
},
handleCancel
()
{},
handleCancel
()
{},
async
onDelete
()
{
async
onDelete
()
{
try
{
try
{
let
params
=
{
let
params
=
{
id
:
this
.
readyDeleteItem
.
id
id
:
this
.
readyDeleteItem
.
id
};
};
let
{
data
}
=
await
deleteById
(
params
);
let
{
data
}
=
await
deleteById
(
params
);
await
this
.
getList
();
await
this
.
getList
();
console
.
log
(
"this.id"
,
this
.
id
)
console
.
log
(
"this.readyDeleteItem"
,
this
.
readyDeleteItem
.
id
)
if
(
this
.
id
===
this
.
readyDeleteItem
.
id
){
uni
.
$emit
(
'update-custom-id'
,
this
.
list
[
0
])
this
.
$store
.
dispatch
(
"Save_custom_id"
,
this
.
list
[
0
].
id
)
}
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
//TODO handle the exception
//TODO handle the exception
...
...
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