Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WX_h5
Project
Project
Details
Activity
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
godwithdh
WX_h5
Commits
fceb70fb
Commit
fceb70fb
authored
Jan 13, 2020
by
godwithdh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
往来单位
parent
b75b8de8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
14 deletions
+57
-14
unit_operateDetail.vue
src/view/tiip/kanban/unit_operateDetail.vue
+57
-14
No files found.
src/view/tiip/kanban/unit_operateDetail.vue
View file @
fceb70fb
...
...
@@ -199,13 +199,15 @@ export default {
DateValue
:[
new
Date
],
isFooter
:
false
,
mode
:
0
,
//进入方式0 默认 往来单位->产品列表,1 往来单位->销售
mode
:
0
,
//进入方式0 默认 往来单位->产品列表,1 往来单位->销售
,2 往来单位->退货
upbCustomerGUID
:
""
,
//客户id
page
:
1
,
per_page
:
50
}
},
async
mounted
(){
window
.
s
=
this
this
.
mode
=
this
.
$route
.
query
.
mode
||
0
this
.
upbCustomerGUID
=
this
.
$route
.
query
.
upbCustomerGUID
||
""
if
(
this
.
mode
==
1
){
...
...
@@ -237,7 +239,36 @@ export default {
this
.
tableStyle
.
tbodyHeight
=
"calc(100vh - 125px)"
this
.
isFooter
=
true
this
.
$store
.
dispatch
(
"CAHNGE_META_INFO"
,
{
title
:
"销售列表"
});
}
}
else
if
(
this
.
mode
==
2
){
this
.
columns
=
[
{
width
:
"25%"
,
name
:
"单号"
,
align
:
"center"
,
field
:
"sStoreInNoHTML"
,
underline
:
true
,
color
:
"#2d8cf0"
},{
width
:
"25%"
,
name
:
"匹数"
,
align
:
"center"
,
field
:
"nPieceHTML"
},{
width
:
"25%"
,
name
:
"数量"
,
align
:
"center"
,
field
:
"nQtyHTML"
},{
width
:
"25%"
,
name
:
"金额"
,
align
:
"center"
,
field
:
"nAmountHTML"
}
]
this
.
tableStyle
.
tbodyHeight
=
"calc(100vh - 125px)"
this
.
isFooter
=
true
this
.
$store
.
dispatch
(
"CAHNGE_META_INFO"
,
{
title
:
"退货列表"
});
}
this
.
$nextTick
(
async
()
=>
{
this
.
$refs
.
time
.
$on
(
"time"
,
date
=>
{
...
...
@@ -254,14 +285,11 @@ export default {
this
.
global
.
$off
(
"clickTd"
)
this
.
global
.
$on
(
"clickTd"
,
async
res
=>
{
var
postData
=
[
{
key
:
"url"
,
value
:
"Operation gai sType-customer-sOrder-dtl"
},
{
key
:
"sType"
,
value
:
"销售"
},
{
key
:
"sOrderNo"
,
value
:
this
.
list
[
res
.
trIndex
].
sOrderNo
},
]
var
value
=
await
this
.
request
(
"getBoss"
,{
data
:
postData
},
"加载中"
,{})
this
.
$store
.
dispatch
(
"saveKanbanOrderDetail"
,
value
)
this
.
$router
.
push
({
name
:
"orderDetailsIndex"
})
if
(
this
.
mode
==
1
){
this
.
getDetail
(
1
,
"销售"
,
this
.
list
[
res
.
trIndex
].
sOrderNo
)
}
else
if
(
this
.
mode
==
2
){
this
.
getDetail
(
2
,
"销售退货"
,
this
.
list
[
res
.
trIndex
].
sStoreInNo
)
}
})
})
},
...
...
@@ -274,11 +302,11 @@ export default {
{
key
:
"begin_date"
,
value
:
Util
.
dateFormat
(
this
.
DateValue
[
0
],
"yyyy-MM-dd"
)},
{
key
:
"end_date"
,
value
:
Util
.
dateFormat
(
this
.
DateValue
[
1
]
||
this
.
DateValue
[
0
],
"yyyy-MM-dd 23:59"
)}
]
}
else
if
(
this
.
mode
==
1
){
}
else
if
(
/^1$|^2$/
.
test
(
this
.
mode
)
){
if
(
this
.
per_page
<
50
)
return
;
var
postData
=
[
{
key
:
"url"
,
value
:
"Operation gai sType
-customer-sOrder"
},
{
key
:
"sType"
,
value
:
"销售
"
},
{
key
:
"url"
,
value
:
this
.
mode
==
1
?
"Operation gai sType-customer-sOrder"
:
"Abnormal early warning
-customer-sOrder"
},
{
key
:
"sType"
,
value
:
this
.
mode
==
1
?
"销售"
:
"销售退货
"
},
{
key
:
"begin_date"
,
value
:
Util
.
dateFormat
(
this
.
DateValue
[
0
],
"yyyy-MM-dd"
)},
{
key
:
"end_date"
,
value
:
Util
.
dateFormat
(
this
.
DateValue
[
1
]
||
this
.
DateValue
[
0
],
"yyyy-MM-dd 23:59"
)},
{
key
:
"upbCustomerGUID"
,
value
:
this
.
upbCustomerGUID
}
...
...
@@ -300,13 +328,18 @@ export default {
x
.
nQtyHTML
=
`<div><span">
${(
x
.
nQty
||
x
.
nOutQty
||
x
.
nInQty
||
0
).
toLocaleString
()}
</span></div>`
;
return
x
;
})
}
else
if
(
this
.
mode
==
1
){
}
else
if
(
/^1$|^2$/
.
test
(
this
.
mode
)
){
this
.
per_page
=
res
.
length
this
.
page
++
res
.
forEach
((
v
,
i
)
=>
{
v
.
sOrderNoHTML
=
`<div><span style='text-decoration:
${
i
<
res
.
length
-
1
?
'underline'
:
'none'
}
;'>
${
v
.
sOrderNo
||
0
}
</span></div>`
v
.
nAmountHTML
=
`<div><span style="color:#339966;">
${
v
.
nAmount
||
0
}
</span></div>`
if
(
this
.
mode
==
2
){
v
.
nQtyHTML
=
`<div><span>
${
v
.
nSumInQty
}
</span></div>`
v
.
nPieceHTML
=
`<div><span>
${
v
.
nInPieceQty
}
</span></div>`
v
.
sStoreInNoHTML
=
`<div><span style="text-decoration:
${
i
<
res
.
length
-
1
?
"underline"
:
"none"
}
">
${
v
.
sStoreInNo
}
</span></div>`
}
})
if
(
typeof
reData
==
'boolean'
&&
reData
){
this
.
list
=
res
...
...
@@ -320,6 +353,16 @@ export default {
this
.
per_page
=
50
this
.
list
=
[]
},
async
getDetail
(
M
,
sType
,
orderNo
){
var
postData
=
[
{
key
:
"url"
,
value
:
M
==
1
?
"Operation gai sType-customer-sOrder-dtl"
:
"Abnormal early warning-customer-sOrder-dtl"
},
{
key
:
"sType"
,
value
:
sType
},
{
key
:
"sOrderNo"
,
value
:
orderNo
},
]
var
value
=
await
this
.
request
(
"getBoss"
,{
data
:
postData
},
"加载中"
,{})
this
.
$store
.
dispatch
(
"saveKanbanOrderDetail"
,
value
)
this
.
$router
.
push
({
name
:
"orderDetailsIndex"
})
},
},
components
:{
customerTable
,
...
...
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