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
e63b5c7a
Commit
e63b5c7a
authored
Jan 07, 2020
by
张锡奇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload
parent
0b1db15a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
154 additions
and
64 deletions
+154
-64
Table.vue
src/components/Table.vue
+3
-1
host.js
src/libs/host.js
+2
-2
operateCustomDetail.vue
src/view/tiip/kanban/operateCustomDetail.vue
+37
-11
operateDetail.vue
src/view/tiip/kanban/operateDetail.vue
+84
-45
operateSaleDetail.vue
src/view/tiip/kanban/operateSaleDetail.vue
+27
-4
index.vue
src/view/tiip/profitAnalysis/index.vue
+1
-1
No files found.
src/components/Table.vue
View file @
e63b5c7a
...
...
@@ -165,7 +165,7 @@
</div>
<div
class=
"_tfoot"
ref=
"tfoot"
@
scroll=
"scrollTFoot"
v-if=
"showFooter & footerData.length > 0"
>
<tr
v-for=
"(x,i) in footerData"
:key=
"i"
:style=
"
{'width':'100%','min-width':tableStyle.width}">
<tr
v-for=
"(x,i) in footerData"
:key=
"i"
:style=
"
{'width':'100%','min-width':tableStyle.width
,'min-height':'60px'
}">
<td
v-for=
"(item,index) in columns"
:key=
"index"
...
...
@@ -175,11 +175,13 @@
'min-width':item.width,
'background':tableStyle.theadBgColor,
'position': item.fixed ? 'sticky' : 'static',
'min-height':'60px',
'left':item.fixed ? item.fixedLeftWidth : 'none',
'border-top':tableStyle.theadTdBorder ? tableStyle.tbodyTrBorderBottom : '0px',
'border-left':tableStyle.theadTdBorder ? tableStyle.tbodyTrBorderBottom : '0px',
'border-bottom':tableStyle.theadTdBorder ? tableStyle.tbodyTrBorderBottom : '0px',
'border-right':(index == columns.length - 1
&&
tableStyle.theadTdBorder) ? tableStyle.tbodyTrBorderBottom : '0px',
'text-decoration':'none'
}"
v-html="x[item.field]"
>
...
...
src/libs/host.js
View file @
e63b5c7a
...
...
@@ -12,9 +12,9 @@ function urlFun(name){
/**
* 默认公司
*/
default
:
`http://192.168.4.3
1
:5001`
,
default
:
`http://192.168.4.3
4
:5001`
,
// default:`https://weixin.huansi.net/apiproxy/huansi/hszh_HSFabricTradeTest`,
default
:
`https://weixin.huansi.net/apiproxy/huansi/service/proxy/
${
userID
}
`
,
//
default:`https://weixin.huansi.net/apiproxy/huansi/service/proxy/${userID}`,
/**
* 基本地址
...
...
src/view/tiip/kanban/operateCustomDetail.vue
View file @
e63b5c7a
...
...
@@ -15,7 +15,7 @@
<
template
>
<div
id=
"tiipOperateCustomDetail"
>
<div
class=
"Table"
>
<customerTable
:columns=
"columns"
:list=
"list"
:tableStyle=
"tableStyle"
></customerTable>
<customerTable
:
showFooter=
"true"
:
columns=
"columns"
:list=
"list"
:tableStyle=
"tableStyle"
></customerTable>
</div>
</div>
</
template
>
...
...
@@ -37,11 +37,13 @@ export default {
singleTrBgColor
:
'#eef4fe'
,
theadTdBorder
:
false
,
tbodyTdBorder
:
false
,
tbodyHeight
:
'calc(100vh)'
,
tbodyHeight
:
'calc(100vh
- 60px
)'
,
tbodyTrBorderBottom
:
'1px solid #dbe9f8'
,
width
:
'100%'
},
type
:
'custom'
type
:
'custom'
,
page
:
1
,
per_page
:
50
}
},
computed
:{
...
...
@@ -54,6 +56,8 @@ export default {
window
.
d
=
this
;
},
async
activated
(){
this
.
page
=
1
;
this
.
per_page
=
50
;
this
.
type
=
this
.
$route
.
params
.
type
;
if
(
this
.
hdr
.
sType
==
'采购'
){
this
.
$store
.
dispatch
(
"CAHNGE_META_INFO"
,
{
title
:(
this
.
type
==
'custom'
?
'采购'
:
'产品'
)
+
'订单列表'
});
...
...
@@ -108,6 +112,7 @@ export default {
field
:
this
.
hdr
.
sType
==
'供应商索赔'
?
'sPayableNO'
:
'sReceivableNO'
,
underline
:
true
,
color
:
'#2d8cf0'
,
field
:
this
.
hdr
.
sType
==
'供应商索赔'
?
params
.
row
.
sPayableNO
:
params
.
row
.
sReceivableNO
,
render
:
(
h
,
params
)
=>
{
return
h
(
'span'
,{
style
:
{
...
...
@@ -145,6 +150,7 @@ export default {
align
:
'center'
,
underline
:
true
,
color
:
'#2d8cf0'
,
field
:
'sStoreInNo'
,
render
:
(
h
,
params
)
=>
{
return
h
(
'span'
,{
style
:
{
...
...
@@ -187,6 +193,7 @@ export default {
field
:
this
.
hdr
.
sType
==
'超期应付'
?
'sPayableNO'
:
'sReceivableNO'
,
underline
:
true
,
color
:
'#2d8cf0'
,
field
:
this
.
hdr
.
sType
==
'超期应付'
?
params
.
row
.
sPayableNO
:
params
.
row
.
sReceivableNO
,
render
:
(
h
,
params
)
=>
{
return
h
(
'span'
,{
style
:
{
...
...
@@ -277,14 +284,23 @@ export default {
await
this
.
getDetail
(
2
,
this
.
hdr
.
sType
,
this
.
list
[
res
.
trIndex
].
sStoreOutNo
);
}
})
this
.
global
.
$off
(
'scrollTable'
);
this
.
global
.
$on
(
'scrollTable'
,
async
()
=>
{
this
.
getData
(
true
)
})
},
methods
:{
async
getData
(){
async
getData
(
flag
){
if
(
this
.
per_page
<
50
){
this
.
$vux
.
toast
.
text
(
'已加载全部数据!'
,
'middle'
)
return
false
;
}
let
postData
=
[
{
key
:
"url"
,
value
:
this
.
type
==
'custom'
?
'Operation gai sType-customer-sOrder'
:
'Operation gai sType-material-sOrder'
},
{
key
:
"sType"
,
value
:
this
.
hdr
.
sType
},
{
key
:
"begin_date"
,
value
:
this
.
hdr
.
begin_date
},
{
key
:
"end_date"
,
value
:
this
.
hdr
.
end_date
}
{
key
:
"end_date"
,
value
:
this
.
hdr
.
end_date
}
,
];
if
(
this
.
type
==
'custom'
){
if
(
this
.
hdr
.
sType
==
'采购退货'
||
this
.
hdr
.
sType
==
'采购'
||
this
.
hdr
.
sType
==
'加工'
||
this
.
hdr
.
sType
==
'检验'
||
this
.
hdr
.
sType
==
'收货'
||
this
.
hdr
.
sType
==
'成品入库'
||
this
.
hdr
.
sType
==
'加工回修'
){
...
...
@@ -309,22 +325,32 @@ export default {
}
let
res
=
await
this
.
request
(
'getBoss'
,{
data
:
postData
,
params
:{},
params
:{
page
:
this
.
page
,
per_page
:
this
.
per_page
},
},
'加载中'
,{})
res
.
map
(
x
=>
{
x
.
sOrderNoHTML
=
`<div><span style=
"text-decoration:underline;"
>
${
x
.
sOrderNo
}
</span></div>`
;
res
.
map
(
(
x
,
y
)
=>
{
x
.
sOrderNoHTML
=
`<div><span style=
${
y
==
res
.
length
-
1
?
'text-decoration:none'
:
'text-decoration:underline'
}
>
${
x
.
sOrderNo
}
</span></div>`
;
x
.
nAmountHTML
=
`<div><span style="color:#339966;">
${
x
.
nAmount
}
</span></div>`
;
if
(
this
.
hdr
.
sType
==
'销售退货'
||
this
.
hdr
.
sType
==
'采购退货'
){
x
.
nQtyHTML
=
`<div><span">
${
this
.
hdr
.
sType
==
'销售退货'
?
x
.
nSumInQty
:
x
.
nSumOutQty
}
</span></div>`
;
x
.
nPieceHTML
=
`<div><span">
${
this
.
hdr
.
sType
==
'销售退货'
?
x
.
nInPieceQty
:
x
.
nOutPieceQty
}
</span></div>`
;
if
(
this
.
hdr
.
sType
==
'销售退货'
){
x
.
sStoreInNoHTML
=
`<div><span style=
"text-decoration:underline;"
>
${
x
.
sStoreInNo
}
</span></div>`
;
x
.
sStoreInNoHTML
=
`<div><span style=
${
y
==
res
.
length
-
1
?
'text-decoration:none'
:
'text-decoration:underline'
}
>
${
x
.
sStoreInNo
}
</span></div>`
;
}
else
{
x
.
sStoreOutNoHTML
=
`<div><span style=
"text-decoration:underline;"
>
${
x
.
sStoreOutNo
}
</span></div>`
;
x
.
sStoreOutNoHTML
=
`<div><span style=
${
y
==
res
.
length
-
1
?
'text-decoration:none'
:
'text-decoration:underline'
}
>
${
x
.
sStoreOutNo
}
</span></div>`
;
}
}
})
this
.
list
=
res
;
if
(
flag
){
this
.
list
.
splice
(
this
.
list
.
length
-
1
,
1
);
this
.
list
=
this
.
list
.
concat
(
res
);
}
else
{
this
.
list
=
res
;
}
this
.
page
++
;
this
.
per_page
=
res
.
length
-
1
;
},
async
getDetail
(
mode
,
sType
,
sOrderNo
){
let
postData
=
[
...
...
src/view/tiip/kanban/operateDetail.vue
View file @
e63b5c7a
This diff is collapsed.
Click to expand it.
src/view/tiip/kanban/operateSaleDetail.vue
View file @
e63b5c7a
...
...
@@ -62,6 +62,8 @@ export default {
tbodyTrBorderBottom
:
'1px solid #dbe9f8'
,
width
:
'100%'
},
page
:
1
,
per_page
:
50
}
},
computed
:{
...
...
@@ -74,6 +76,8 @@ export default {
window
.
d
=
this
;
},
async
activated
(){
this
.
page
=
1
;
this
.
per_page
=
50
;
await
this
.
getData
();
this
.
global
.
$off
(
'clickTd'
);
...
...
@@ -82,14 +86,23 @@ export default {
this
.
$store
.
dispatch
(
'saveCustomerItem'
,
this
.
list
[
res
.
trIndex
]);
this
.
$router
.
push
({
name
:
'tiipOperateCustomDetail'
,
params
:{
type
:
'custom'
}})
})
this
.
global
.
$off
(
'scrollTable'
);
this
.
global
.
$on
(
'scrollTable'
,
async
()
=>
{
this
.
getData
(
true
)
})
},
methods
:{
async
getData
(){
async
getData
(
flag
){
if
(
this
.
per_page
<
50
){
this
.
$vux
.
toast
.
text
(
'已加载全部数据!'
,
'middle'
)
return
false
;
}
let
postData
=
[
{
key
:
"url"
,
value
:
'Operation gai sType-customer-sales'
},
{
key
:
"sType"
,
value
:
this
.
hdr
.
sType
},
{
key
:
"begin_date"
,
value
:
this
.
hdr
.
begin_date
},
{
key
:
"end_date"
,
value
:
this
.
hdr
.
end_date
}
{
key
:
"end_date"
,
value
:
this
.
hdr
.
end_date
}
,
]
if
(
this
.
hdr
.
sType
==
'采购'
||
this
.
hdr
.
sType
==
'加工'
){
postData
.
push
({
key
:
"upbFollowerGUID"
,
value
:
this
.
orderItem
.
upbFollowerGUID
});
...
...
@@ -101,7 +114,10 @@ export default {
let
res
=
await
this
.
request
(
'getBoss'
,{
data
:
postData
,
params
:{},
params
:{
page
:
this
.
page
,
per_page
:
this
.
per_page
},
},
'加载中'
,{})
res
.
map
(
x
=>
{
if
(
this
.
hdr
.
sType
==
'采购'
||
this
.
hdr
.
sType
==
'加工'
){
...
...
@@ -123,7 +139,14 @@ export default {
}
x
.
nAmountHTML
=
`<div><span style="color:#339966;">
${
x
.
nAmount
}
</span></div>`
;
})
this
.
list
=
res
;
if
(
flag
){
this
.
list
.
splice
(
this
.
list
.
length
-
1
,
1
);
this
.
list
=
this
.
list
.
concat
(
res
);
}
else
{
this
.
list
=
res
;
}
this
.
page
++
;
this
.
per_page
=
res
.
length
-
1
;
}
},
components
:{
...
...
src/view/tiip/profitAnalysis/index.vue
View file @
e63b5c7a
...
...
@@ -109,7 +109,7 @@ export default {
singleTrBgColor
:
'#eef4fe'
,
theadTdBorder
:
false
,
tbodyTdBorder
:
false
,
tbodyHeight
:
'calc(100vh - 1
6
0px)'
,
tbodyHeight
:
'calc(100vh - 1
8
0px)'
,
tbodyTrBorderBottom
:
'1px solid #dbe9f8'
},
status
:[],
...
...
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