Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
party-build-cloud
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
wangqinghua
party-build-cloud
Commits
b38bc7e7
Commit
b38bc7e7
authored
Dec 12, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问需调查
parent
0e267995
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
15 deletions
+34
-15
requirement-apply.html
...ages/requirement/requirement-apply/requirement-apply.html
+1
-1
requirement-apply.ts
...-pages/requirement/requirement-apply/requirement-apply.ts
+6
-9
requirement.module.ts
src/pages/serve-pages/requirement/requirement.module.ts
+5
-2
requirement.ts
src/pages/serve-pages/requirement/requirement.ts
+20
-1
serve.service.ts
src/pages/serve-pages/serve.service.ts
+0
-0
http.service.ts
src/service/http.service.ts
+2
-2
No files found.
src/pages/serve-pages/requirement/requirement-apply/requirement-apply.html
View file @
b38bc7e7
...
...
@@ -28,7 +28,7 @@
<div
class=
"item-box"
>
<div
class=
"left"
>
办公用品申领名称及数量:
</div>
<div
class=
"right"
>
<ion-textarea
[
disabled
]="
isRequired
!=
0
"
[(
ngModel
)]="
obj
.
officeSupp
l
y
"
></ion-textarea>
<ion-textarea
[
disabled
]="
isRequired
!=
0
"
[(
ngModel
)]="
obj
.
officeSuppy
"
></ion-textarea>
</div>
</div>
<div
class=
"item-box"
>
...
...
src/pages/serve-pages/requirement/requirement-apply/requirement-apply.ts
View file @
b38bc7e7
...
...
@@ -13,7 +13,7 @@ export class RequirementApplyPage {
obj
=
{
assertReplacement
:
""
,
replacementReason
:
""
,
officeSupp
l
y
:
""
,
officeSuppy
:
""
,
officeReason
:
""
,
teaAmount
:
""
,
teaReason
:
""
,
...
...
@@ -21,19 +21,17 @@ export class RequirementApplyPage {
};
role
=
[];
isRequired
;
//是否填写过处室问需(1是,0否,null管理员用户查询)
mineInfo
;
orgList
;
item
;
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
private
actionSheetCtrl
:
ActionSheetController
,
private
commonSer
:
CommonService
,
private
appMainSer
:
AppMainService
,
private
serveSer
:
ServeService
)
{
this
.
appMainSer
.
mineInfo
.
subscribe
(
value
=>
{
this
.
mineInfo
=
value
;
console
.
log
(
this
.
mineInfo
);
});
this
.
item
=
this
.
navParams
.
get
(
"item"
);
this
.
obj
.
requireContentId
=
this
.
navParams
.
get
(
"item"
).
id
;
this
.
isRequired
=
this
.
navParams
.
get
(
"item"
).
isRequired
;
console
.
log
(
this
.
item
);
}
ionViewDidLoad
()
{
...
...
@@ -43,12 +41,11 @@ export class RequirementApplyPage {
}
);
if
(
this
.
isRequired
==
1
)
{
//已填写
this
.
getDetail
(
this
.
mineInfo
.
orgId
);
this
.
getDetail
(
this
.
item
.
orgId
);
}
else
if
(
this
.
isRequired
==
0
)
{
//未填写
}
else
{
this
.
getOrg
();
}
this
.
getOrg
();
}
//查询详情
...
...
src/pages/serve-pages/requirement/requirement.module.ts
View file @
b38bc7e7
...
...
@@ -2,17 +2,20 @@ import {NgModule} from '@angular/core';
import
{
IonicPageModule
}
from
'ionic-angular'
;
import
{
RequirementPage
}
from
'./requirement'
;
import
{
RequirementApplyPage
}
from
"./requirement-apply/requirement-apply"
;
import
{
RequirementDetailPage
}
from
"./requirement-detail/requirement-detail"
;
@
NgModule
({
declarations
:
[
RequirementPage
,
RequirementApplyPage
RequirementApplyPage
,
RequirementDetailPage
,
],
imports
:
[
IonicPageModule
.
forChild
(
RequirementPage
),
],
entryComponents
:
[
RequirementApplyPage
RequirementApplyPage
,
RequirementDetailPage
]
})
export
class
RequirementPageModule
{
...
...
src/pages/serve-pages/requirement/requirement.ts
View file @
b38bc7e7
...
...
@@ -2,6 +2,8 @@ import {Component} from '@angular/core';
import
{
IonicPage
,
NavController
,
NavParams
}
from
'ionic-angular'
;
import
{
RequirementApplyPage
}
from
"./requirement-apply/requirement-apply"
;
import
{
ServeService
}
from
"../serve.service"
;
import
{
AppMainService
}
from
"../../../app/app.service"
;
import
{
RequirementDetailPage
}
from
"./requirement-detail/requirement-detail"
;
@
IonicPage
()
@
Component
({
...
...
@@ -11,9 +13,21 @@ import {ServeService} from "../serve.service";
export
class
RequirementPage
{
list
=
[];
role
=
[];
mineInfo
;
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
private
appMainSer
:
AppMainService
,
private
serverSer
:
ServeService
)
{
this
.
appMainSer
.
mineInfo
.
subscribe
(
value
=>
{
this
.
mineInfo
=
value
;
console
.
log
(
this
.
mineInfo
);
});
//获取权限
this
.
appMainSer
.
role
.
subscribe
(
value
=>
{
this
.
role
=
value
;
}
);
}
ionViewDidEnter
()
{
...
...
@@ -30,7 +44,12 @@ export class RequirementPage {
//申领
goToApply
(
item
)
{
this
.
navCtrl
.
push
(
RequirementApplyPage
,{
item
:
item
})
item
.
orgId
=
this
.
mineInfo
.
orgId
;
if
(
this
.
role
.
includes
(
3
))
{
this
.
navCtrl
.
push
(
RequirementDetailPage
,
{
item
:
item
})
}
else
{
this
.
navCtrl
.
push
(
RequirementApplyPage
,
{
item
:
item
})
}
}
}
src/pages/serve-pages/serve.service.ts
View file @
b38bc7e7
This diff is collapsed.
Click to expand it.
src/service/http.service.ts
View file @
b38bc7e7
...
...
@@ -28,8 +28,8 @@ export class AppGlobal {
static
pictureNotice
=
AppGlobal
.
domain
;
//默认版本
static
defaultVersion
=
"4.6.0"
;
//dev
//
static defaultVersion; //prod
//
static defaultVersion = "4.6.0"; //dev
static
defaultVersion
;
//prod
//接口地址
static
API
:
any
=
{
...
...
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