Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openApi
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
hj
openApi
Commits
80db0bcc
Commit
80db0bcc
authored
Jun 20, 2022
by
hangjun83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
罗恩工具类更新
parent
0bfee1f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
27 deletions
+56
-27
front/src/views/tools/bh/sorders-refund.vue
front/src/views/tools/bh/sorders-refund.vue
+1
-1
front/src/views/tools/rhawn/sorders-refund.vue
front/src/views/tools/rhawn/sorders-refund.vue
+55
-26
No files found.
front/src/views/tools/bh/sorders-refund.vue
View file @
80db0bcc
...
...
@@ -142,7 +142,7 @@ export default {
columns
:
[{
title
:
"
ID
"
,
key
:
"
id
"
,
minWidth
:
55
,
minWidth
:
80
,
},
{
title
:
"
任务名称
"
,
...
...
front/src/views/tools/rhawn/sorders-refund.vue
View file @
80db0bcc
...
...
@@ -137,7 +137,7 @@ export default {
columns
:
[{
title
:
"
ID
"
,
key
:
"
id
"
,
minWidth
:
55
,
minWidth
:
80
,
},
{
title
:
"
任务名称
"
,
...
...
@@ -398,6 +398,11 @@ export default {
key
:
"
dpdNum
"
,
minWidth
:
125
,
},
{
title
:
"
是否开票
"
,
key
:
"
dpdInvoicedStatus
"
,
minWidth
:
125
,
},
{
title
:
"
退货数量
"
,
key
:
"
refundNums
"
,
...
...
@@ -439,6 +444,7 @@ export default {
data
:
[],
selectRowData
:
[],
selectedOrderId
:
0
,
selectedSid
:
[],
searchData
:
[],
logData
:
[],
total
:
0
,
...
...
@@ -503,6 +509,8 @@ export default {
changeRefundNums
(
p
,
e
)
{
if
(
e
!=
null
)
{
this
.
selectRowData
[
p
.
index
].
refundNums
=
e
this
.
selectRowData
[
p
.
index
].
_checked
=
true
this
.
showSelect
([
this
.
selectRowData
[
p
.
index
]])
}
},
selectRow
(
v
)
{
...
...
@@ -511,36 +519,47 @@ export default {
this
.
stockModalVisible
=
true
this
.
searchLoading
=
true
;
let
addItem
=
false
if
(
this
.
selectedOrderId
!=
v
.
soNo
)
{
this
.
selectRowData
=
[]
this
.
selectedOrderId
=
v
.
soNo
this
.
selectedSid
.
push
(
v
.
siId
)
addItem
=
true
}
else
{
if
(
this
.
selectedSid
.
indexOf
(
v
.
siId
)
==
-
1
)
{
this
.
selectedSid
.
push
(
v
.
siId
)
addItem
=
true
}
}
getRhawnSordersStock
({
'
orderItemId
'
:
v
.
siId
}).
then
((
res
)
=>
{
this
.
searchLoading
=
false
;
if
(
res
.
status
==
'
success
'
)
{
let
rowData
=
{}
if
(
res
.
data
.
length
>
0
)
{
for
(
let
row
in
res
.
data
)
{
rowData
=
res
.
data
[
row
]
rowData
.
orderNo
=
v
.
soNo
rowData
.
pCode
=
v
.
pCode
rowData
.
pCnName
=
v
.
pCnName
rowData
.
refundNums
=
rowData
.
dpdNum
this
.
selectRowData
.
push
(
rowData
)
if
(
addItem
)
{
getRhawnSordersStock
({
'
orderItemId
'
:
v
.
siId
}).
then
((
res
)
=>
{
this
.
searchLoading
=
false
;
if
(
res
.
status
==
'
success
'
)
{
let
rowData
=
{}
if
(
res
.
data
.
length
>
0
)
{
for
(
let
row
in
res
.
data
)
{
rowData
=
res
.
data
[
row
]
rowData
.
orderNo
=
v
.
soNo
rowData
.
pCode
=
v
.
pCode
rowData
.
pCnName
=
v
.
pCnName
rowData
.
refundNums
=
rowData
.
dpdNum
rowData
.
_disabled
=
!
rowData
.
selected
this
.
selectRowData
.
push
(
rowData
)
}
}
}
this
.
form
.
orderNo
=
v
.
soNo
this
.
form
.
itemId
=
v
.
siId
this
.
form
.
pId
=
v
.
pId
this
.
form
.
orderNo
=
v
.
soNo
this
.
form
.
itemId
=
v
.
siId
this
.
form
.
pId
=
v
.
pId
this
.
selectRowVisible
=
true
this
.
selectRowVisible
=
true
}
});
}
});
}
}
},
showSelect
(
e
)
{
...
...
@@ -608,7 +627,19 @@ export default {
});
},
cleanAll
()
{
this
.
$refs
.
form
.
resetFields
();
this
.
form
=
{
name
:
''
,
orderNo
:
''
,
itemId
:
0
,
pId
:
0
,
handleFee
:
0
,
refundNums
:
[],
transferPre
:
true
,
futuresNum
:
0
},
this
.
selectedOrderId
=
0
this
.
selectedSid
=
[]
this
.
selectRowData
=
[];
this
.
searchData
=
[];
},
...
...
@@ -662,8 +693,6 @@ export default {
let
data
=
JSON
.
parse
(
str
);
let
content
=
JSON
.
parse
(
data
.
execContent
)
this
.
$refs
.
form
.
resetFields
();
this
.
form
.
taskId
=
data
.
id
this
.
form
.
name
=
data
.
name
this
.
form
.
futuresNum
=
parseInt
(
content
.
futures_num
)
...
...
@@ -684,13 +713,13 @@ export default {
for
(
let
index
in
res
.
data
)
{
res
.
data
[
index
].
_checked
=
true
this
.
selectRowData
.
push
(
res
.
data
[
index
])
this
.
selectedSid
.
push
(
res
.
data
[
index
].
siId
)
this
.
showSelect
([
res
.
data
[
index
]])
}
}
})
this
.
type
=
1
;
this
.
showAddSorderTask
=
true
;
},
showLog
(
v
)
{
this
.
searchLoading
=
true
;
...
...
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