Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
Project
Project
Details
Activity
Releases
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
刘文虎
account-book
Commits
efeff16e
Commit
efeff16e
authored
Sep 24, 2022
by
刘文虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
账单编辑
parent
db95db03
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1116 additions
and
150 deletions
+1116
-150
project-bill.js
api/workpoint/project-bill.js
+26
-0
pages.json
pages.json
+90
-94
index.vue
pages/index/index.vue
+6
-1
export.vue
pages/mine/import-export/export/export.vue
+11
-4
loan-statement.vue
pages/workpoint/loan-statement/loan-statement.vue
+1
-1
bill-detail.vue
pages/workpoint/project-bill/components/bill-detail.vue
+8
-8
export.vue
pages/workpoint/project-bill/export.vue
+58
-32
project-bill.vue
pages/workpoint/project-bill/project-bill.vue
+3
-2
cell-project.vue
pages/workpoint/project/components/cell-project.vue
+1
-1
create.vue
pages/workpoint/workpoint-create/create.vue
+7
-2
edit.vue
pages/workpoint/workpoint-create/edit.vue
+900
-0
config.js
utils/config.js
+1
-1
index.js
utils/options/index/index.js
+1
-1
index.js
utils/options/workpoint/index.js
+3
-3
No files found.
api/workpoint/project-bill.js
View file @
efeff16e
...
@@ -9,4 +9,30 @@ export function getLists(data) {
...
@@ -9,4 +9,30 @@ export function getLists(data) {
})
})
}
}
export
function
exportBill
(
data
)
{
return
request
({
url
:
`/rest/project/record/export`
,
method
:
'GET'
,
responseType
:
'ArrayBuffer'
,
data
,
noLoading
:
true
})
}
export
function
getBillInfo
(
data
)
{
return
request
({
url
:
`/rest/project/record`
,
method
:
'GET'
,
data
,
noLoading
:
true
})
}
export
function
deleteBill
(
data
)
{
return
request
({
url
:
`/rest/project/record/detail`
,
method
:
'DELETE'
,
data
,
noLoading
:
true
})
}
\ No newline at end of file
pages.json
View file @
efeff16e
...
@@ -191,17 +191,15 @@
...
@@ -191,17 +191,15 @@
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
}
,{
},
{
"path"
:
"quoted-price/create/classification"
,
"path"
:
"quoted-price/create/classification"
,
"style"
:
"style"
:
{
{
"navigationBarTitleText"
:
"服务分类"
,
"navigationBarTitleText"
:
"服务分类"
,
"enablePullDownRefresh"
:
false
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
}
}]
]
},
{
},
{
"root"
:
"pages/mine"
,
"root"
:
"pages/mine"
,
"pages"
:
[{
"pages"
:
[{
...
@@ -451,90 +449,88 @@
...
@@ -451,90 +449,88 @@
{
{
"root"
:
"pages/workpoint"
,
"root"
:
"pages/workpoint"
,
"pages"
:
[{
"pages"
:
[{
"path"
:
"workpoint-create/workpoint-create"
,
"path"
:
"workpoint-create/create"
,
"style"
:
"style"
:
{
{
"navigationBarTitleText"
:
"记工时"
,
"navigationBarTitleText"
:
"记工时"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
{
}
"path"
:
"workpoint-create/edit"
,
,{
"style"
:
{
"path"
:
"loan-statement/loan-statement"
,
"navigationBarTitleText"
:
"记工时"
,
"style"
:
"enablePullDownRefresh"
:
false
{
}
"navigationBarTitleText"
:
"借支/结算"
,
"enablePullDownRefresh"
:
false
},
{
}
"path"
:
"loan-statement/loan-statement"
,
"style"
:
{
}
"navigationBarTitleText"
:
"借支/结算"
,
,{
"enablePullDownRefresh"
:
false
"path"
:
"employees/index"
,
}
"name"
:
"employee-list"
,
"style"
:
{
},
{
"navigationBarTitleText"
:
"项目成员"
,
"path"
:
"employees/index"
,
"navigationStyle"
:
"custom"
,
"name"
:
"employee-list"
,
"enablePullDownRefresh"
:
false
,
"style"
:
{
"disableScroll"
:
true
"navigationBarTitleText"
:
"项目成员"
,
}
"navigationStyle"
:
"custom"
,
},{
"enablePullDownRefresh"
:
false
,
"path"
:
"employees/employee-create"
,
"disableScroll"
:
true
"name"
:
"employee-create"
,
}
"style"
:
{
},
{
"navigationBarTitleText"
:
"新建成员"
,
"path"
:
"employees/employee-create"
,
"navigationStyle"
:
"custom"
,
"name"
:
"employee-create"
,
"enablePullDownRefresh"
:
false
,
"style"
:
{
"disableScroll"
:
true
"navigationBarTitleText"
:
"新建成员"
,
}
"navigationStyle"
:
"custom"
,
},{
"enablePullDownRefresh"
:
false
,
"path"
:
"project/index"
,
"disableScroll"
:
true
"name"
:
"project"
,
}
"style"
:
{
},
{
"navigationBarTitleText"
:
"项目列表"
,
"path"
:
"project/index"
,
"navigationStyle"
:
"custom"
,
"name"
:
"project"
,
"enablePullDownRefresh"
:
false
,
"style"
:
{
"disableScroll"
:
true
"navigationBarTitleText"
:
"项目列表"
,
}
"navigationStyle"
:
"custom"
,
},{
"enablePullDownRefresh"
:
false
,
"path"
:
"project/project-edit"
,
"disableScroll"
:
true
"name"
:
"project-edit"
,
}
"style"
:
{
},
{
"navigationBarTitleText"
:
"项目管理"
,
"path"
:
"project/project-edit"
,
"navigationStyle"
:
"custom"
,
"name"
:
"project-edit"
,
"enablePullDownRefresh"
:
false
,
"style"
:
{
"disableScroll"
:
true
"navigationBarTitleText"
:
"项目管理"
,
}
"navigationStyle"
:
"custom"
,
}
"enablePullDownRefresh"
:
false
,
,{
"disableScroll"
:
true
"path"
:
"project-bill/project-bill"
,
}
"name"
:
"project-bill"
,
},
{
"style"
:
"path"
:
"project-bill/project-bill"
,
{
"name"
:
"project-bill"
,
"navigationBarTitleText"
:
"项目账单"
,
"style"
:
{
"enablePullDownRefresh"
:
false
,
"navigationBarTitleText"
:
"项目账单"
,
"navigationStyle"
:
"custom"
"enablePullDownRefresh"
:
false
,
}
"navigationStyle"
:
"custom"
}
}
,{
},
{
"path"
:
"project-bill/export"
,
"path"
:
"project-bill/export"
,
"style"
:
"style"
:
{
{
"navigationBarTitleText"
:
"账单导出"
,
"navigationBarTitleText"
:
"账单导出"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
{
}
"path"
:
"member/member"
,
,{
"style"
:
{
"path"
:
"member/member"
,
"navigationBarTitleText"
:
"成员列表"
,
"style"
:
"enablePullDownRefresh"
:
false
{
}
"navigationBarTitleText"
:
"成员列表"
,
"enablePullDownRefresh"
:
false
}
}
]
}
]
}
}
],
],
"globalStyle"
:
{
"globalStyle"
:
{
...
...
pages/index/index.vue
View file @
efeff16e
...
@@ -217,6 +217,11 @@ export default {
...
@@ -217,6 +217,11 @@ export default {
path
:
'/pages/card/payee-code'
,
path
:
'/pages/card/payee-code'
,
name
:
'收款码'
name
:
'收款码'
},
},
{
image
:
this
.
baseUrl
+
'jigongshi@3x.png'
,
path
:
'/pages/workpoint/project/index'
,
name
:
'记工时'
},
{
{
image
:
this
.
baseUrl
+
'famingpian@3x.png'
,
image
:
this
.
baseUrl
+
'famingpian@3x.png'
,
path
:
'/pages/card/index'
,
path
:
'/pages/card/index'
,
...
@@ -753,7 +758,7 @@ export default {
...
@@ -753,7 +758,7 @@ export default {
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
margin
:
72rpx
56rpx
64rpx
56
rpx
;
margin
:
72rpx
32rpx
64rpx
32
rpx
;
.item-view
{
.item-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
...
pages/mine/import-export/export/export.vue
View file @
efeff16e
...
@@ -105,8 +105,8 @@ export default {
...
@@ -105,8 +105,8 @@ export default {
let
startTime
=
''
;
let
startTime
=
''
;
let
endTime
=
''
;
let
endTime
=
''
;
if
(
range
)
{
if
(
range
)
{
startTime
=
range
[
0
]
+
' 00:00:00'
;
startTime
=
range
[
0
];
endTime
=
range
[
1
]
+
' 23:59:59'
;
endTime
=
range
[
1
];
}
}
this
.
downloadExcel
({
startTime
,
endTime
});
this
.
downloadExcel
({
startTime
,
endTime
});
// 导出
// 导出
...
@@ -132,11 +132,18 @@ export default {
...
@@ -132,11 +132,18 @@ export default {
if
(
this
.
platform
===
'4'
)
{
if
(
this
.
platform
===
'4'
)
{
if
(
this
.
type
===
'maintain'
)
{
if
(
this
.
type
===
'maintain'
)
{
// 维修账单
// 维修账单
url
=
apiUrl
+
'/rest/repair/export'
;
url
=
apiUrl
+
'/rest/repair/export
?
'
;
}
else
{
}
else
{
// 日常账单
// 日常账单
url
=
apiUrl
+
'/rest/bookRecord/export'
;
url
=
apiUrl
+
'/rest/bookRecord/export
?
'
;
}
}
let
keys
=
Object
.
keys
(
params
)
keys
.
map
((
key
,
index
)
=>
{
url
+=
`
${
key
}
=
${
params
[
key
]}
`
if
(
index
!==
keys
.
length
-
1
){
url
+=
'&'
}
})
res
=
await
downLoadFile
(
url
);
res
=
await
downLoadFile
(
url
);
console
.
log
(
res
);
console
.
log
(
res
);
}
else
{
}
else
{
...
...
pages/workpoint/loan-statement/loan-statement.vue
View file @
efeff16e
...
@@ -568,7 +568,7 @@ export default {
...
@@ -568,7 +568,7 @@ export default {
handleClickAgain
()
{
handleClickAgain
()
{
this
.
handleClickSure
(()
=>
{
this
.
handleClickSure
(()
=>
{
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/workpoint/
workpoint-create/workpoint-create
'
,
url
:
'pages/workpoint/
loan-statement/loan-statement
'
,
type
:
'redirectTo'
,
type
:
'redirectTo'
,
params
:
{
params
:
{
projectId
:
this
.
projectId
projectId
:
this
.
projectId
...
...
pages/workpoint/project-bill/components/bill-detail.vue
View file @
efeff16e
...
@@ -45,14 +45,14 @@ export default {
...
@@ -45,14 +45,14 @@ export default {
return
name
.
slice
(
-
2
);
return
name
.
slice
(
-
2
);
},
},
toBill
()
{
toBill
()
{
//
this.$u.route({
this
.
$u
.
route
({
// url: '/pages/maintain-bill/index
',
url
:
'/pages/workpoint/workpoint-create/edit
'
,
//
type: 'navigateTo',
type
:
'navigateTo'
,
//
params: {
params
:
{
// customerId:this.detail.customerI
d,
recordId
:
this
.
detail
.
i
d
,
// onlyDebt:1
,
projectId
:
this
.
detail
.
projectId
,
//
}
}
//
});
});
}
}
}
}
};
};
...
...
pages/workpoint/project-bill/export.vue
View file @
efeff16e
...
@@ -33,8 +33,8 @@
...
@@ -33,8 +33,8 @@
成员
成员
</view>
</view>
<view
class=
"placeholder"
@
click=
"openSelect"
>
<view
class=
"placeholder"
@
click=
"openSelect"
>
<text
class=
"value-text"
v-if=
"
form.userName"
>
{{
form
.
us
erName
}}
</text>
<text
class=
"value-text"
v-if=
"
memberName"
>
{{
memb
erName
}}
</text>
<text
v-else
>
选择
项目
</text>
<text
v-else
>
选择
成员
</text>
<u-icon
name=
"arrow-right"
class=
"arrow"
></u-icon>
<u-icon
name=
"arrow-right"
class=
"arrow"
></u-icon>
</view>
</view>
</view>
</view>
...
@@ -48,14 +48,24 @@
...
@@ -48,14 +48,24 @@
</view>
</view>
</view>
</view>
<file-list
ref=
"file-list"
fileName=
"账单"
></file-list>
<file-list
ref=
"file-list"
fileName=
"账单"
></file-list>
<u-select
v-model=
"selectShow"
mode=
"single-column"
value-name=
'id'
label-name=
'name'
:list=
"memberList"
@
confirm=
"selectConfirm"
></u-select>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
DateRangePicker
from
'@/components/date-range-picker/uni-datetime-picker.vue'
;
import
DateRangePicker
from
'@/components/date-range-picker/uni-datetime-picker.vue'
;
import
FileList
from
'@/pages/mine/import-export/components/file-list.vue'
;
import
FileList
from
'@/pages/mine/import-export/components/file-list.vue'
;
import
{
exportBill
}
from
'@/api/bill/index.js'
;
//
import { exportBill } from '@/api/bill/index.js';
import
{
repairExport
}
from
'@/api/maintain/index.js'
;
import
{
repairExport
}
from
'@/api/maintain/index.js'
;
import
{
getMembers
}
from
'@/api/workpoint/index.js'
;
import
{
exportBill
}
from
'@/api/workpoint/project-bill.js'
;
import
{
downLoad
,
downLoadFile
,
saveFile
}
from
'@/utils/download.js'
;
import
{
downLoad
,
downLoadFile
,
saveFile
}
from
'@/utils/download.js'
;
import
{
mapGetters
}
from
'vuex'
;
import
{
mapGetters
}
from
'vuex'
;
export
default
{
export
default
{
...
@@ -65,12 +75,17 @@ export default {
...
@@ -65,12 +75,17 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
selectShow
:
false
,
memberList
:[],
type
:
'bill'
,
type
:
'bill'
,
confirmText
:
'导出'
,
confirmText
:
'导出'
,
showAll
:
true
,
showAll
:
true
,
daterange
:
[],
daterange
:
[],
currentIndex
:
1
,
currentIndex
:
1
,
loading
:
false
loading
:
false
,
projectId
:
''
,
memberId
:
''
,
memberName
:
''
,
};
};
},
},
computed
:
{
computed
:
{
...
@@ -90,13 +105,9 @@ export default {
...
@@ -90,13 +105,9 @@ export default {
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
&&
options
.
type
)
{
if
(
options
&&
options
.
projectId
)
{
if
(
options
.
type
===
'maintain'
)
{
this
.
projectId
=
options
.
projectId
;
uni
.
setNavigationBarTitle
({
this
.
getMembersOptions
()
title
:
'服务帐单导出'
});
}
this
.
type
=
options
.
type
;
}
}
},
},
onReady
()
{
onReady
()
{
...
@@ -104,7 +115,26 @@ export default {
...
@@ -104,7 +115,26 @@ export default {
},
},
methods
:
{
methods
:
{
openSelect
(){
openSelect
(){
this
.
selectShow
=
true
},
async
getMembersOptions
()
{
try
{
let
{
data
}
=
await
getMembers
({
projectId
:
this
.
projectId
});
data
.
map
(
item
=>
{
item
.
value
=
item
.
id
item
.
label
=
item
.
name
})
this
.
memberList
=
data
||
[]
}
catch
(
e
)
{
//TODO handle the exception
console
.
log
(
e
);
}
},
selectConfirm
(
e
)
{
if
(
e
&&
e
[
0
])
{
this
.
memberId
=
e
[
0
].
value
;
this
.
memberName
=
e
[
0
].
label
;
}
},
},
initDate
()
{
initDate
()
{
var
endDay
=
this
.
$u
.
timeFormat
(
new
Date
().
getTime
(),
'yyyy-mm-dd'
);
var
endDay
=
this
.
$u
.
timeFormat
(
new
Date
().
getTime
(),
'yyyy-mm-dd'
);
...
@@ -117,8 +147,8 @@ export default {
...
@@ -117,8 +147,8 @@ export default {
let
startTime
=
''
;
let
startTime
=
''
;
let
endTime
=
''
;
let
endTime
=
''
;
if
(
range
)
{
if
(
range
)
{
startTime
=
range
[
0
]
+
' 00:00:00'
;
startTime
=
range
[
0
];
endTime
=
range
[
1
]
+
' 23:59:59'
;
endTime
=
range
[
1
];
}
}
this
.
downloadExcel
({
startTime
,
endTime
});
this
.
downloadExcel
({
startTime
,
endTime
});
// 导出
// 导出
...
@@ -133,32 +163,28 @@ export default {
...
@@ -133,32 +163,28 @@ export default {
try
{
try
{
let
{
startTime
,
endTime
}
=
date
;
let
{
startTime
,
endTime
}
=
date
;
let
params
=
{
let
params
=
{
start
:
startTime
,
happenStart
:
startTime
,
end
:
endTime
happenEnd
:
endTime
,
memberId
:
this
.
memberId
,
projectId
:
this
.
projectId
};
};
console
.
log
(
params
);
console
.
log
(
params
);
let
res
=
null
;
let
res
=
null
;
const
globalUrl
=
process
.
uniEnv
||
{};
const
globalUrl
=
process
.
uniEnv
||
{};
let
apiUrl
=
globalUrl
.
apiUrl
;
let
apiUrl
=
globalUrl
.
apiUrl
;
let
url
=
''
;
if
(
this
.
platform
===
'4'
)
{
if
(
this
.
platform
===
'4'
)
{
if
(
this
.
type
===
'maintain'
)
{
let
url
=
`
${
apiUrl
}
/rest/project/record/export?`
;
// 维修账单
let
keys
=
Object
.
keys
(
params
)
url
=
apiUrl
+
'/rest/repair/export'
;
keys
.
map
((
key
,
index
)
=>
{
}
else
{
url
+=
`
${
key
}
=
${
params
[
key
]}
`
// 日常账单
if
(
index
!==
keys
.
length
-
1
){
url
=
apiUrl
+
'/rest/bookRecord/export'
;
url
+=
'&'
}
}
})
res
=
await
downLoadFile
(
url
);
res
=
await
downLoadFile
(
url
);
console
.
log
(
res
);
console
.
log
(
url
);
}
else
{
}
else
{
if
(
this
.
type
===
'maintain'
)
{
res
=
await
exportBill
(
params
);
// 维修账单
res
=
await
repairExport
(
params
);
}
else
{
// 日常账单
res
=
await
exportBill
(
params
);
}
}
}
this
.
saveFile
(
res
);
this
.
saveFile
(
res
);
}
catch
(
e
)
{
}
catch
(
e
)
{
...
...
pages/workpoint/project-bill/project-bill.vue
View file @
efeff16e
...
@@ -138,6 +138,7 @@ export default {
...
@@ -138,6 +138,7 @@ export default {
async
getMembersOptions
()
{
async
getMembersOptions
()
{
try
{
try
{
let
{
data
}
=
await
getMembers
({
projectId
:
this
.
projectId
});
let
{
data
}
=
await
getMembers
({
projectId
:
this
.
projectId
});
data
.
unshift
({
id
:
''
,
name
:
'全部成员'
})
data
.
map
(
item
=>
{
data
.
map
(
item
=>
{
item
.
value
=
item
.
id
item
.
value
=
item
.
id
item
.
label
=
item
.
name
item
.
label
=
item
.
name
...
@@ -157,13 +158,13 @@ export default {
...
@@ -157,13 +158,13 @@ export default {
handleSelectFilter
()
{
handleSelectFilter
()
{
this
.
selectShow
=
true
this
.
selectShow
=
true
},
},
handleClickChange
(){
handleClickChange
(
range
){
this
.
daterange
=
range
;
this
.
daterange
=
range
;
this
.
onRefresh
();
this
.
onRefresh
();
},
},
handlClickRight
()
{
handlClickRight
()
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/workpoint/project-bill/export'
url
:
`/pages/workpoint/project-bill/export?projectId=
${
this
.
projectId
}
`
})
})
},
},
changeSearch
()
{
changeSearch
()
{
...
...
pages/workpoint/project/components/cell-project.vue
View file @
efeff16e
...
@@ -66,7 +66,7 @@ export default {
...
@@ -66,7 +66,7 @@ export default {
return
{
return
{
'edit'
:
'/pages/workpoint/project/project-edit'
,
'edit'
:
'/pages/workpoint/project/project-edit'
,
'loan'
:
'/pages/workpoint/loan-statement/loan-statement'
,
'loan'
:
'/pages/workpoint/loan-statement/loan-statement'
,
'work'
:
'/pages/workpoint/workpoint-create/
workpoint-
create'
'work'
:
'/pages/workpoint/workpoint-create/create'
}
}
},
},
customLoan
()
{
customLoan
()
{
...
...
pages/workpoint/workpoint-create/
workpoint-
create.vue
→
pages/workpoint/workpoint-create/create.vue
View file @
efeff16e
...
@@ -372,7 +372,6 @@ export default {
...
@@ -372,7 +372,6 @@ export default {
// this.repairDetail();
// this.repairDetail();
this
.
getProjectInfo
();
this
.
getProjectInfo
();
}
}
this
.
getProjectList
()
},
},
onReady
()
{
onReady
()
{
this
.
$refs
.
uForm
.
setRules
(
this
.
rules
);
this
.
$refs
.
uForm
.
setRules
(
this
.
rules
);
...
@@ -382,6 +381,7 @@ export default {
...
@@ -382,6 +381,7 @@ export default {
uni
.
$off
(
this
.
notification
);
uni
.
$off
(
this
.
notification
);
},
},
onShow
()
{
onShow
()
{
this
.
getProjectList
()
this
.
getMembersOptions
();
this
.
getMembersOptions
();
},
},
methods
:
{
methods
:
{
...
@@ -413,6 +413,8 @@ export default {
...
@@ -413,6 +413,8 @@ export default {
if
(
e
&&
e
[
0
])
{
if
(
e
&&
e
[
0
])
{
this
.
form
.
projectId
=
e
[
0
].
value
;
this
.
form
.
projectId
=
e
[
0
].
value
;
this
.
form
.
projectName
=
e
[
0
].
label
;
this
.
form
.
projectName
=
e
[
0
].
label
;
this
.
projectId
=
e
[
0
].
value
;
this
.
getMembersOptions
();
}
}
},
},
handleChangeUnit
(
e
)
{
handleChangeUnit
(
e
)
{
...
@@ -587,6 +589,9 @@ export default {
...
@@ -587,6 +589,9 @@ export default {
unitPrice
unitPrice
};
};
}
}
if
(
!
Number
(
form
.
overNumber
)){
form
.
overType
=
''
}
console
.
log
(
form
);
console
.
log
(
form
);
this
.
edit
(
form
,
callback
);
this
.
edit
(
form
,
callback
);
}
else
{
}
else
{
...
@@ -651,7 +656,7 @@ export default {
...
@@ -651,7 +656,7 @@ export default {
handleClickAgain
()
{
handleClickAgain
()
{
this
.
handleClickSure
(()
=>
{
this
.
handleClickSure
(()
=>
{
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/workpoint/workpoint-create/
workpoint-
create'
,
url
:
'pages/workpoint/workpoint-create/create'
,
type
:
'redirectTo'
,
type
:
'redirectTo'
,
params
:
{
params
:
{
projectId
:
this
.
projectId
projectId
:
this
.
projectId
...
...
pages/workpoint/workpoint-create/edit.vue
0 → 100644
View file @
efeff16e
This diff is collapsed.
Click to expand it.
utils/config.js
View file @
efeff16e
...
@@ -33,7 +33,7 @@ export const whiteList = ['/pages/index/index', '/pages/index/schedule/schedule'
...
@@ -33,7 +33,7 @@ export const whiteList = ['/pages/index/index', '/pages/index/schedule/schedule'
];
// 路由白名单
];
// 路由白名单
export
const
responseWhiteList
=
[
'/rest/bookRecord/export'
,
'/rest/repair/export'
,
'/rest/exchangeCode/check'
,
export
const
responseWhiteList
=
[
'/rest/bookRecord/export'
,
'/rest/repair/export'
,
'/rest/exchangeCode/check'
,
'/rest/exchangeCode/exchange'
'/rest/exchangeCode/exchange'
,
'/rest/project/record/export'
];
// 请求URL白名单,此名单内的请求不作状态码判断,在resolve中直接返回
];
// 请求URL白名单,此名单内的请求不作状态码判断,在resolve中直接返回
export
const
sceneOptions
=
{
export
const
sceneOptions
=
{
trip
:
"TRIP"
,
trip
:
"TRIP"
,
...
...
utils/options/index/index.js
View file @
efeff16e
...
@@ -4,7 +4,7 @@ import {
...
@@ -4,7 +4,7 @@ import {
export
const
minPopupOptions
=
[
export
const
minPopupOptions
=
[
{
{
label
:
'记工时'
,
label
:
'记工时'
,
path
:
'/pages/workpoint/
project/index
'
,
path
:
'/pages/workpoint/
workpoint-create/create
'
,
icon
:
'jigongshitanchu@3x.png'
,
icon
:
'jigongshitanchu@3x.png'
,
type
:
'0'
,
type
:
'0'
,
},
},
...
...
utils/options/workpoint/index.js
View file @
efeff16e
...
@@ -86,15 +86,15 @@ export const projectBillTabs = [{
...
@@ -86,15 +86,15 @@ export const projectBillTabs = [{
name
:
''
name
:
''
},
{
},
{
title
:
'记工'
,
title
:
'记工'
,
name
:
'
TIME
'
name
:
'
1
'
},
},
{
{
title
:
'借支'
,
title
:
'借支'
,
name
:
'
BORROWING
'
name
:
'
2
'
},
},
{
{
title
:
'结算'
,
title
:
'结算'
,
name
:
'
SETTLE
'
name
:
'
3
'
},
},
]
]
...
...
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