Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
luqiao-app
Overview
Overview
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
杨子
luqiao-app
Commits
3741caed
Commit
3741caed
authored
Jun 04, 2019
by
杨子
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重构资产列表
parent
341d823e
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
31 additions
and
32 deletions
+31
-32
config.xml
config.xml
+1
-1
proxy.config.json
proxy.config.json
+1
-1
user.component.html
src/app/layout/default/user/user.component.html
+3
-2
user.component.ts
src/app/layout/default/user/user.component.ts
+3
-0
assets-list.component.html
...ets-used/checkPlan/assets-list/assets-list.component.html
+10
-22
assets-list.component.ts
...ssets-used/checkPlan/assets-list/assets-list.component.ts
+5
-3
check-plan.component.html
...es/assets/assets-used/checkPlan/check-plan.component.html
+1
-1
check-plan.component.ts
...utes/assets/assets-used/checkPlan/check-plan.component.ts
+3
-2
api.service.ts
src/app/service/layout/service/api.service.ts
+4
-0
No files found.
config.xml
View file @
3741caed
...
...
@@ -3,7 +3,7 @@
<name>
MyApp
</name>
<description>
An awesome Ionic/Cordova app.
</description>
<author
email=
"hi@ionicframework.com"
href=
"http://ionicframework.com/"
>
Ionic Framework Team
</author>
<content
original-src=
"index.html"
src=
"http://192.168.19.225:8100
"
/>
<content
src=
"index.html
"
/>
<access
origin=
"*"
/>
<allow-intent
href=
"http://*/*"
/>
<allow-intent
href=
"https://*/*"
/>
...
...
proxy.config.json
View file @
3741caed
{
"/asset/*"
:
{
"target"
:
"http://192.168.19.
200:8081
"
,
"target"
:
"http://192.168.19.
171:8082
"
,
"secure"
:
false
,
"logLevel"
:
"debug"
,
"changeOrigin"
:
true
...
...
src/app/layout/default/user/user.component.html
View file @
3741caed
...
...
@@ -30,7 +30,7 @@
</List>
<WhiteSpace
size=
'md'
></WhiteSpace>
<WingBlank
[
size
]="'
lg
'"
>
<div
Button
[
type
]="'
primary
'"
>
退出
</div>
<div
Button
[
type
]="'
primary
'"
(
click
)="
logout
()"
>
退出
</div>
</WingBlank>
</div>
</div>
\ No newline at end of file
src/app/layout/default/user/user.component.ts
View file @
3741caed
...
...
@@ -15,4 +15,7 @@ export class UserComponent implements OnInit {
jumpPassword
()
{
this
.
router
.
navigateByUrl
(
"/admin/user/password"
);
}
logout
()
{
this
.
router
.
navigateByUrl
(
"/passport/login"
);
}
}
src/app/routes/assets/assets-used/checkPlan/assets-list/assets-list.component.html
View file @
3741caed
...
...
@@ -146,30 +146,18 @@
<ListItem
*
ngFor=
"let row of table.rows"
multipleLine
>
<div
[
ngClass
]="{'
list-content
'
:
!
row
.
showAll
}"
>
<p>
附件名称:{{row.accessoryName}}
</p>
<p>
帐面数量:{{row.count}}
</p>
<p>
净值:{{row.assetNetValue}}
</p>
<p>
计量单位:{{row.unit}}
</p>
<p>
管理单位:{{row.company? row.company.id:""}}
</p>
<p>
规格型号:{{row.modelNum}}
</p>
<p>
生产厂家:{{row.madeFirms}}
</p>
<p>
资产状态:{{row.assetState}}
</p>
<p>
产权单位:{{row.belongUnit? row.belongUnit.id:""}}
</p>
<p>
生产能力单位:{{row.productivityUnit}}
</p>
<p>
使用单位:{{row.useUnit? row.useUnit.id:""}}
</p>
<p>
资产名称:{{row.name}}
</p>
<p>
生产能力:{{row.productivity}}
</p>
<p>
保管人:{{row.preserver? row.preserver.id:""}}
</p>
<p>
折旧年限:{{row.depreciableLife}}
</p>
<p>
存放地:{{row.storage}}
</p>
<p>
资产编号:{{row.num}}
</p>
<p>
车架号:{{row.vin}}
</p>
<p>
不含税_单价:{{row.noTaxPrice}}
</p>
<p>
设备技术状况:{{row.technologySta}}
</p>
<p>
购入日期:{{row.buyDate}}
</p>
<p>
实盘数量:{{row.actualCount}}
</p>
<p>
资产编号:{{row.asset.num}}
</p>
<p>
规格型号:{{row.modelNum}}
</p>
<p>
资产分类:{{row.assetClass}}
</p>
<p>
原值:{{row.noTaxPrice}}
</p>
<p>
净值:{{row.assetNetValue}}
</p>
<p>
产权单位:{{row.belongUnit}}
</p>
<p>
管理单位:{{row.company}}
</p>
<p>
使用单位:{{row.useUnit}}
</p>
</div>
<div
Button
[
type
]="'
primary
'"
(
click
)="
goDetail
(
row
.
id
)"
[
inline
]="
true
"
class=
"list-detail"
[
size
]="'
small
'"
>
下一步
<div
Button
[
type
]="'
primary
'"
(
click
)="
goDetail
(
row
.
asset
.
id
)"
[
inline
]="
true
"
class=
"list-detail"
[
size
]="'
small
'"
>
下一步
</div>
<div
(
click
)="
row
.
showAll=
!row.showAll"
class=
"list-more am-list-arrow"
[
ngClass
]="
row
.
showAll
?'
am-list-arrow-vertical-up
'
:
'
am-list-arrow-vertical
'"
></div>
...
...
src/app/routes/assets/assets-used/checkPlan/assets-list/assets-list.component.ts
View file @
3741caed
...
...
@@ -45,8 +45,10 @@ export class AssetsListComponent implements OnInit {
private
router
:
Router
,
private
activatedRoute
:
ActivatedRoute
,
private
api
:
APIService
)
{}
)
{
this
.
id
=
activatedRoute
.
snapshot
.
queryParams
[
"id"
];
}
id
;
renderFooter
:
Function
;
renderHeader
:
Function
;
search
:
any
=
{};
...
...
@@ -122,7 +124,7 @@ export class AssetsListComponent implements OnInit {
this
.
state
.
show
=
false
;
}
loadData
(
search
)
{
this
.
api
.
get
FixedAssetsList
(
search
).
subscribe
(
data
=>
{
this
.
api
.
get
Assets
(
search
,
this
.
id
).
subscribe
(
data
=>
{
this
.
table
=
data
;
});
}
...
...
src/app/routes/assets/assets-used/checkPlan/check-plan.component.html
View file @
3741caed
...
...
@@ -47,7 +47,7 @@
<p>
开始时间:{{row.beginDate}}
</p>
<p>
事项名称:{{row.name}}
</p>
</div>
<div
Button
[
type
]="'
primary
'"
(
click
)="
goAssetsList
()"
[
inline
]="
true
"
class=
"list-detail"
[
size
]="'
small
'"
>
下一步
<div
Button
[
type
]="'
primary
'"
(
click
)="
goAssetsList
(
row
.
id
)"
[
inline
]="
true
"
class=
"list-detail"
[
size
]="'
small
'"
>
下一步
</div>
<div
(
click
)="
row
.
showAll=
!row.showAll"
class=
"list-more am-list-arrow"
[
ngClass
]="
row
.
showAll
?'
am-list-arrow-vertical-up
'
:
'
am-list-arrow-vertical
'"
></div>
...
...
src/app/routes/assets/assets-used/checkPlan/check-plan.component.ts
View file @
3741caed
...
...
@@ -99,9 +99,10 @@ export class CheckPlanComponent implements OnInit {
onReset
()
{
this
.
search
=
{};
}
goAssetsList
()
{
goAssetsList
(
id
)
{
this
.
router
.
navigate
([
"../assetsList"
],
{
relativeTo
:
this
.
activatedRoute
relativeTo
:
this
.
activatedRoute
,
queryParams
:
{
id
:
id
}
});
}
showDate
(
key
:
string
)
{
...
...
src/app/service/layout/service/api.service.ts
View file @
3741caed
...
...
@@ -61,6 +61,7 @@ const QrCode = "asset/a/asset/qrCode/data";
const
CheckTask
=
"asset/a/asset/assets/view/qrCode/"
;
const
CheckSave
=
"asset/a/asset/checkPlan/save"
;
const
Upload
=
"asset/a/sys/file/webupload/upload?uploadPath=/asset/checkPlan"
;
const
assetsUrl
=
"asset/a/asset/checkPlan/infoData"
;
@
Injectable
({
providedIn
:
"root"
})
...
...
@@ -264,4 +265,7 @@ export class APIService {
getConsumableReceiveList
(
param
):
Observable
<
any
>
{
return
this
.
basePost
(
ConsumableReceive
,
param
);
}
getAssets
(
param
,
id
)
{
return
this
.
basePost
(
assetsUrl
+
"/?id="
+
id
,
param
);
}
}
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