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
cb7dbd2b
Commit
cb7dbd2b
authored
Apr 18, 2020
by
godwithdh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经营分析
parent
191472a5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
21 deletions
+17
-21
index.js
config/index.js
+8
-1
axios.js
src/libs/axios.js
+1
-1
host.js
src/libs/host.js
+1
-1
Finance.vue
src/view/tiip/kanban/Finance.vue
+1
-1
FinanceDetail.vue
src/view/tiip/kanban/FinanceDetail.vue
+6
-17
No files found.
config/index.js
View file @
cb7dbd2b
...
...
@@ -3,7 +3,8 @@
// see http://vuejs-templates.github.io/webpack for documentation.
const
path
=
require
(
'path'
)
let
host
=
'https://weixin.huansi.net/apiproxy/huansi/Mall'
;
// let host = 'https://weixin.huansi.net/apiproxy/huansi/Mall';
let
host
=
`https://weixin.huansi.net/apiproxy/huansi/TIP_Test`
;
module
.
exports
=
{
dev
:
{
...
...
@@ -11,6 +12,12 @@ module.exports = {
assetsSubDirectory
:
'static'
,
assetsPublicPath
:
'/'
,
proxyTable
:
{
"/TIP_Test"
:{
target
:
"https://weixin.huansi.net/apiproxy/huansi/TIP_Test"
,
pathRewrite
:
{
'^/TIP_Test'
:
''
},
changeOrigin
:
true
,
secure
:
true
},
'/api'
:
{
target
:
host
,
pathRewrite
:
{
'^/api'
:
''
},
...
...
src/libs/axios.js
View file @
cb7dbd2b
...
...
@@ -54,6 +54,6 @@ AsInst.interceptors.response.use(response => {
// Message.error('后端服务请求404错误');
}
//请求错误时做些事
return
Promise
.
reject
(
error
);
return
Promise
.
reject
(
error
.
response
);
});
export
default
AsInst
;
src/libs/host.js
View file @
cb7dbd2b
...
...
@@ -12,7 +12,7 @@ function urlFun(name){
/**
* 默认公司
*/
// default:`http://192.168.4.
34
:5001`,
// default:`http://192.168.4.
51
: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/Tip`,
...
...
src/view/tiip/kanban/Finance.vue
View file @
cb7dbd2b
...
...
@@ -154,7 +154,7 @@ export default {
}
},
more
(
val
,
tabIndex
){
this
.
$router
.
push
({
name
:
"financeDetail"
,
params
:{
mode
:
val
,
tabIndex
:
tabIndex
}})
this
.
$router
.
push
({
name
:
"financeDetail"
,
params
:{
mode
:
val
,
tabIndex
:
tabIndex
,
start
:
this
.
start
,
end
:
this
.
end
}})
},
},
}
...
...
src/view/tiip/kanban/FinanceDetail.vue
View file @
cb7dbd2b
...
...
@@ -32,7 +32,9 @@
display:flex;
>span{
&:first-child{
padding: 10px 5px 10px 20px;
padding: 10px 5px;
min-width: 30px;
text-align: right;
font-weight: 600;
}
&:nth-child(2n){
...
...
@@ -67,9 +69,6 @@
<tab-item>
实付账款
</tab-item>
</
template
>
</tab>
<div>
<searchComponent
:search=
"search"
/>
</div>
<div
class=
"search"
>
<input
placeholder=
"请输入客户简称/名称进行搜索"
v-model=
"searchValue"
/>
</div>
...
...
@@ -90,21 +89,16 @@
<
script
>
import
Util
from
'@/libs/util.js'
import
{
Tab
,
TabItem
}
from
'vux'
import
searchComponent
from
"@/components/search"
var
inputIng
=
false
var
searchIng
=
false
export
default
{
name
:
"FinanceDetail"
,
components
:{
Tab
,
TabItem
,
searchComponent
},
components
:{
Tab
,
TabItem
},
data
(){
return
{
tabIndex
:
0
,
search
:{
dBeginDate
:
Util
.
dateFormat
(
new
Date
(),
'yyyy-MM-01'
),
dEndDate
:
Util
.
dateFormat
(
new
Date
(),
'yyyy-MM-dd'
),
},
searchValue
:
""
,
balance
:
0
,
list
:[],
...
...
@@ -112,11 +106,6 @@ export default {
},
activated
(){
this
.
tabIndex
=
this
.
$route
.
params
.
tabIndex
this
.
global
.
$off
(
'searchData'
);
//查询条件触发加载
this
.
global
.
$on
(
'searchData'
,
async
()
=>
{
await
this
.
searchList
();
});
this
.
$nextTick
(()
=>
{
this
.
searchList
();
...
...
@@ -137,8 +126,8 @@ export default {
},
async
searchList
(){
var
data
=
[
{
key
:
"begin_date"
,
value
:
this
.
search
.
dBeginDate
},
{
key
:
"end_date"
,
value
:
this
.
search
.
dEndDate
},
{
key
:
"begin_date"
,
value
:
Util
.
dateFormat
(
this
.
$route
.
params
.
start
,
"yyyy-MM-dd"
)
},
{
key
:
"end_date"
,
value
:
Util
.
dateFormat
(
this
.
$route
.
params
.
end
,
"yyyy-MM-dd 23:59"
)
},
{
key
:
"url"
,
value
:
"Financial Summary Dtl"
},
{
key
:
"sType"
,
value
:(
this
.
$route
.
params
.
mode
==
1
?
'应'
:
'实'
)
+
(
this
.
tabIndex
==
0
?
'收'
:
'付'
)}
]
...
...
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