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
1ab2b027
Commit
1ab2b027
authored
Nov 08, 2022
by
刘文虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报价单
parent
af9ea431
Pipeline
#3954
canceled with stages
Changes
18
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
462 additions
and
257 deletions
+462
-257
launch.json
.hbuilderx/launch.json
+4
-0
debit-note.js
api/bill/debit-note.js
+2
-1
index.js
api/maintain/index.js
+8
-0
pages.json
pages.json
+1
-2
create-price.vue
pages/bill/quoted-price/create/create-price.vue
+1
-0
edit.vue
pages/bill/quoted-price/create/edit.vue
+1
-1
price.vue
pages/bill/quoted-price/create/price.vue
+1
-2
custom.vue
pages/bill/quoted-price/custom/custom.vue
+1
-0
cart-popup.vue
pages/bill/quoted-price/price/components/cart-popup.vue
+11
-5
collapse-body.vue
pages/bill/quoted-price/price/components/collapse-body.vue
+11
-9
price.vue
pages/bill/quoted-price/price/price.vue
+22
-8
show.vue
pages/bill/quoted-price/price/show.vue
+5
-5
select-price.vue
pages/bill/quoted-price/select-price/select-price.vue
+1
-0
choose-member.vue
pages/maintain-bill/choose-member/choose-member.vue
+65
-2
cell-employee.vue
pages/maintain-bill/components/cell-employee.vue
+26
-19
save-poster-popup.vue
pages/mine/share/components/save-poster-popup.vue
+78
-0
index.vue
pages/mine/share/index.vue
+212
-203
index.js
utils/options/maintain-bill/index.js
+12
-0
No files found.
.hbuilderx/launch.json
View file @
1ab2b027
...
@@ -10,6 +10,10 @@
...
@@ -10,6 +10,10 @@
{
{
"launchtype"
:
"local"
"launchtype"
:
"local"
},
},
"h5"
:
{
"launchtype"
:
"remote"
},
"mp-weixin"
:
"mp-weixin"
:
{
{
"launchtype"
:
"local"
"launchtype"
:
"local"
...
...
api/bill/debit-note.js
View file @
1ab2b027
...
@@ -3,6 +3,7 @@ export function getList(data) {
...
@@ -3,6 +3,7 @@ export function getList(data) {
return
request
({
return
request
({
url
:
`/rest/repair/debtQuery`
,
url
:
`/rest/repair/debtQuery`
,
method
:
'GET'
,
method
:
'GET'
,
data
data
,
noLoading
:
true
})
})
}
}
api/maintain/index.js
View file @
1ab2b027
...
@@ -189,3 +189,11 @@ export async function getProjectMembersKnow(data) {
...
@@ -189,3 +189,11 @@ export async function getProjectMembersKnow(data) {
})
})
}
}
export
async
function
collectionMember
(
data
)
{
return
request
({
url
:
`/rest/repair/customer/collection`
,
method
:
'POST'
,
data
,
noLoading
:
true
})
}
pages.json
View file @
1ab2b027
...
@@ -191,8 +191,7 @@
...
@@ -191,8 +191,7 @@
"path"
:
"quoted-price/create/price"
,
"path"
:
"quoted-price/create/price"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"服务报价"
,
"navigationBarTitleText"
:
"服务报价"
,
"enablePullDownRefresh"
:
false
,
"enablePullDownRefresh"
:
false
"navigationStyle"
:
"custom"
}
}
},
{
},
{
...
...
pages/bill/quoted-price/create/create-price.vue
View file @
1ab2b027
...
@@ -269,6 +269,7 @@ export default {
...
@@ -269,6 +269,7 @@ export default {
},
},
navigateTo
()
{
navigateTo
()
{
uni
.
$emit
(
this
.
notification
,
{});
uni
.
$emit
(
this
.
notification
,
{});
uni
.
$emit
(
"update-custom-edit"
)
//修改时更新报价页面
this
.
$u
.
route
({
this
.
$u
.
route
({
type
:
'back'
type
:
'back'
});
});
...
...
pages/bill/quoted-price/create/edit.vue
View file @
1ab2b027
...
@@ -77,7 +77,7 @@ export default {
...
@@ -77,7 +77,7 @@ export default {
if
(
options
&&
options
.
id
){
if
(
options
&&
options
.
id
){
this
.
id
=
options
.
id
this
.
id
=
options
.
id
this
.
getDetail
()
this
.
getDetail
()
// 监听某个服务分类或者服务价格
删除
// 监听某个服务分类或者服务价格
修改
uni
.
$on
(
"update-custom-edit"
,()
=>
{
uni
.
$on
(
"update-custom-edit"
,()
=>
{
this
.
refreshParentPage
()
this
.
refreshParentPage
()
})
})
...
...
pages/bill/quoted-price/create/price.vue
View file @
1ab2b027
<
template
>
<
template
>
<view
class=
"list"
>
<view
class=
"list"
>
<
NavbarRight
backTextBold
:backText=
"backText"
/
>
<
!--
<NavbarRight
backTextBold
:backText=
"backText"
/>
--
>
<NoData
v-if=
"noData"
:text=
"noDataText"
customStyle=
"margin-top: 0rpx;"
:imageName=
"noDataImage"
/>
<NoData
v-if=
"noData"
:text=
"noDataText"
customStyle=
"margin-top: 0rpx;"
:imageName=
"noDataImage"
/>
<block
v-else
>
<block
v-else
>
<view
class=
"item"
v-for=
"(item, index) in list"
:key=
"item.id"
@
click=
"clickCell(item)"
>
<view
class=
"item"
v-for=
"(item, index) in list"
:key=
"item.id"
@
click=
"clickCell(item)"
>
...
@@ -95,7 +95,6 @@ export default {
...
@@ -95,7 +95,6 @@ export default {
}
}
});
});
uni
.
$once
(
this
.
notification
,
res
=>
{
uni
.
$once
(
this
.
notification
,
res
=>
{
uni
.
$emit
(
"update-custom-edit"
)
this
.
getList
()
this
.
getList
()
});
});
},
},
...
...
pages/bill/quoted-price/custom/custom.vue
View file @
1ab2b027
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
<view
class=
"collapse-body-bottom-add-icon"
>
<view
class=
"collapse-body-bottom-add-icon"
>
<view
class=
"mark-box"
@
click
.
stop
.
prevent=
"firstAdd(item2)"
v-if=
"item2.num == 0 && item2.offerType === 'scope'"
></view>
<view
class=
"mark-box"
@
click
.
stop
.
prevent=
"firstAdd(item2)"
v-if=
"item2.num == 0 && item2.offerType === 'scope'"
></view>
<number-box
<number-box
:index=
"index"
theme-colors=
"#02A074"
theme-colors=
"#02A074"
inputHeight=
"40"
inputHeight=
"40"
v-model=
"item2.num"
v-model=
"item2.num"
...
...
pages/bill/quoted-price/price/components/cart-popup.vue
View file @
1ab2b027
<
template
>
<
template
>
<u-popup
v-model=
"
s
how"
border-radius=
"24"
mode=
"bottom"
@
close=
"onClose"
>
<u-popup
v-model=
"
popupS
how"
border-radius=
"24"
mode=
"bottom"
@
close=
"onClose"
>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"charge footer"
>
<view
class=
"charge footer"
>
<view
class=
"charge-title"
>
<view
class=
"charge-title"
>
...
@@ -57,19 +57,24 @@ export default {
...
@@ -57,19 +57,24 @@ export default {
data
()
{
data
()
{
return
{
return
{
cartShow
:
true
,
cartShow
:
true
,
popupShow
:
false
,
};
};
},
},
watch
:{
show
(
val
){
this
.
popupShow
=
val
}
},
methods
:
{
methods
:
{
close
()
{
close
()
{
this
.
$emit
(
'update:show'
,
false
)
this
.
$emit
(
'update:show'
,
false
)
},
},
onClose
(){
onClose
(){
this
.
$emit
(
'update:show'
,
false
)
},
},
valChange
(
e
,
item
)
{
valChange
(
e
,
item
)
{
console
.
log
(
'cart-popup,$event'
,
e
);
//
console.log('cart-popup,$event', e);
console
.
log
(
'cart-popup, item'
,
item
);
//
console.log('cart-popup, item', item);
this
.
$set
(
item
,
'num'
,
e
.
value
);
this
.
$set
(
item
,
'num'
,
e
.
value
);
let
list
=
[...
this
.
list
]
let
list
=
[...
this
.
list
]
list
.
forEach
((
item
,
index
)
=>
{
list
.
forEach
((
item
,
index
)
=>
{
...
@@ -79,6 +84,7 @@ export default {
...
@@ -79,6 +84,7 @@ export default {
}
}
});
});
let
params
=
{
let
params
=
{
item
:
item
,
list
:
list
,
list
:
list
,
deleted
:
null
deleted
:
null
};
};
...
...
pages/bill/quoted-price/price/components/collapse-body.vue
View file @
1ab2b027
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<view
class=
"collapse-body-bottom-add"
>
<view
class=
"collapse-body-bottom-add"
>
<zb-tooltip
placement=
"top-end"
ref=
"tooltip1"
color=
"#7f7f7f"
:visible
.
sync=
"showTips"
>
<zb-tooltip
placement=
"top-end"
ref=
"tooltip1"
color=
"#7f7f7f"
:visible
.
sync=
"showTips"
>
<view
class=
"collapse-body-bottom-add-icon"
@
click=
"add"
>
<view
class=
"collapse-body-bottom-add-icon"
@
click=
"add"
>
<number-box
theme-colors=
"#02A074"
inputHeight=
"40"
v-model=
"form.
num"
disabled-input
@
change=
"valChange"
></number-box>
<number-box
:index=
"index"
theme-colors=
"#02A074"
inputHeight=
"40"
v-model=
"
num"
disabled-input
@
change=
"valChange"
></number-box>
</view>
</view>
<view
class=
"tooltip"
slot=
"content"
>
<view
class=
"tooltip"
slot=
"content"
>
<text>
点击可以加入计算器算出收费
</text>
<text>
点击可以加入计算器算出收费
</text>
...
@@ -42,21 +42,24 @@ export default {
...
@@ -42,21 +42,24 @@ export default {
showTips
:{
showTips
:{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
}
},
index
:{
type
:
String
,
default
:
""
},
},
},
data
()
{
data
()
{
return
{
return
{
form
:
{
num
:
0
num
:
0
}
};
};
},
},
watch
:
{
watch
:
{
detail
:
{
detail
:
{
handler
(
val
,
old
)
{
handler
(
val
,
old
)
{
this
.
form
.
num
=
val
.
num
||
0
;
this
.
num
=
val
.
num
||
0
;
},
},
deep
:
true
,
immediate
:
true
immediate
:
true
}
}
},
},
...
@@ -66,14 +69,13 @@ export default {
...
@@ -66,14 +69,13 @@ export default {
this
.
$store
.
dispatch
(
'Set_quoted_price_tooltip'
,
true
);
this
.
$store
.
dispatch
(
'Set_quoted_price_tooltip'
,
true
);
},
},
valChange
(
e
)
{
valChange
(
e
)
{
console
.
log
(
"collapse-body-valChange"
,
e
);
this
.
num
=
e
.
value
;
this
.
form
.
num
=
e
.
value
;
this
.
add
();
this
.
add
();
},
},
add
()
{
add
()
{
this
.
$emit
(
'add'
,
{
this
.
$emit
(
'add'
,
{
item
:
this
.
detail
,
item
:
this
.
detail
,
num
:
this
.
form
.
num
,
num
:
this
.
num
,
parentTitle
:
this
.
parentTitle
parentTitle
:
this
.
parentTitle
});
});
}
}
...
...
pages/bill/quoted-price/price/price.vue
View file @
1ab2b027
...
@@ -40,7 +40,9 @@
...
@@ -40,7 +40,9 @@
</view>
</view>
</view>
</view>
<view
v-if=
"item2.open"
>
<view
v-if=
"item2.open"
>
<!-- :key="item3.classC" -->
<collapse-body
<collapse-body
:index=
"`$
{index2}-${index3}`"
:detail="item3"
:detail="item3"
:parentTitle="item2.classBProject"
:parentTitle="item2.classBProject"
@add="addPrice"
@add="addPrice"
...
@@ -185,7 +187,7 @@ export default {
...
@@ -185,7 +187,7 @@ export default {
},
},
setCart
(
params
)
{
setCart
(
params
)
{
let
{
num
,
parentTitle
}
=
params
;
let
{
num
,
parentTitle
}
=
params
;
let
item
=
this
.
deepClone
(
params
.
item
);
let
item
=
JSON
.
parse
(
JSON
.
stringify
(
params
.
item
)
);
let
flag
=
true
;
let
flag
=
true
;
this
.
shoppingCartList
.
forEach
((
target
,
index
)
=>
{
this
.
shoppingCartList
.
forEach
((
target
,
index
)
=>
{
if
(
target
.
classC
===
item
.
classC
)
{
if
(
target
.
classC
===
item
.
classC
)
{
...
@@ -215,7 +217,14 @@ export default {
...
@@ -215,7 +217,14 @@ export default {
}
}
},
},
cartPopupChange
(
params
)
{
cartPopupChange
(
params
)
{
let
{
list
,
deleted
}
=
params
;
let
{
list
,
deleted
,
item
}
=
params
;
this
.
mainData
.
children
.
forEach
((
data
,
mainIndex
)
=>
{
data
.
children
.
map
((
el
,
childrenIndex
)
=>
{
if
(
item
.
classC
===
el
.
classC
)
{
this
.
$set
(
el
,
'num'
,
item
.
num
);
}
});
});
this
.
shoppingCartList
=
list
;
this
.
shoppingCartList
=
list
;
this
.
resetCollapseBody
(
deleted
);
this
.
resetCollapseBody
(
deleted
);
},
},
...
@@ -277,13 +286,15 @@ export default {
...
@@ -277,13 +286,15 @@ export default {
// 移除 "备件费"
// 移除 "备件费"
newList
.
splice
(
newList
.
findIndex
(
item
=>
item
.
classA
===
'T12'
),
1
);
newList
.
splice
(
newList
.
findIndex
(
item
=>
item
.
classA
===
'T12'
),
1
);
// 左侧列表赋值
// 左侧列表赋值
this
.
leftArray
=
this
.
deepClone
(
newList
);
// this.leftArray = this.deepClone(newList);
this
.
leftArray
=
JSON
.
parse
(
JSON
.
stringify
(
newList
));
// 第二层
// 第二层
newList
.
map
(
el
=>
{
newList
.
map
(
el
=>
{
el
.
id
=
el
.
classC
el
.
id
=
el
.
classC
data
.
map
((
item
,
index
)
=>
{
data
.
map
((
item
,
index
)
=>
{
if
(
item
.
classA
===
el
.
classA
)
{
if
(
item
.
classA
===
el
.
classA
)
{
let
item1
=
this
.
deepClone
(
item
);
// let item1 = this.deepClone(item);
let
item1
=
JSON
.
parse
(
JSON
.
stringify
(
item
));
item1
.
open
=
false
;
item1
.
open
=
false
;
if
(
!
el
.
children
)
{
if
(
!
el
.
children
)
{
el
.
children
=
[
item1
];
el
.
children
=
[
item1
];
...
@@ -295,7 +306,8 @@ export default {
...
@@ -295,7 +306,8 @@ export default {
});
});
// 第二层去重
// 第二层去重
newList
=
newList
.
map
(
item
=>
{
newList
=
newList
.
map
(
item
=>
{
let
arr
=
this
.
deepClone
(
item
.
children
);
// let arr = this.deepClone(item.children);
let
arr
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
children
));
item
.
children
=
this
.
uniqueFunc
(
arr
,
'classB'
);
item
.
children
=
this
.
uniqueFunc
(
arr
,
'classB'
);
return
item
;
return
item
;
});
});
...
@@ -304,12 +316,14 @@ export default {
...
@@ -304,12 +316,14 @@ export default {
el
.
children
.
map
(
el2
=>
{
el
.
children
.
map
(
el2
=>
{
data
.
map
((
item
,
index
)
=>
{
data
.
map
((
item
,
index
)
=>
{
if
(
item
.
classB
===
el2
.
classB
)
{
if
(
item
.
classB
===
el2
.
classB
)
{
let
item1
=
this
.
deepClone
(
item
);
// let item1 = this.deepClone(item);
let
item1
=
JSON
.
parse
(
JSON
.
stringify
(
item
));
item1
.
num
=
0
;
item1
.
num
=
0
;
item1
.
id
=
item1
.
classC
if
(
!
el2
.
children
)
{
if
(
!
el2
.
children
)
{
el2
.
children
=
[
item1
];
el2
.
children
=
[
{...
item1
}
];
}
else
{
}
else
{
el2
.
children
.
push
(
item1
);
el2
.
children
.
push
(
{...
item1
}
);
}
}
}
}
});
});
...
...
pages/bill/quoted-price/price/show.vue
View file @
1ab2b027
...
@@ -65,11 +65,11 @@
...
@@ -65,11 +65,11 @@
<view
class=
"middle-image-view"
><image
:src=
"middleImage"
></image></view>
<view
class=
"middle-image-view"
><image
:src=
"middleImage"
></image></view>
<view
class=
"money-view part-view"
>
<view
class=
"money-view part-view"
>
<view
class=
"shop-title"
>
报价方
</view>
<view
class=
"shop-title"
>
报价方
</view>
<view
class=
"shop-name"
>
{{
shopInfo
.
name
}}
</view>
<view
class=
"shop-name"
>
{{
shopInfo
.
name
||
''
}}
</view>
<view
class=
"shop-address"
>
{{
shopInfo
.
address
}}
</view>
<view
class=
"shop-address"
>
{{
shopInfo
.
address
||
''
}}
</view>
<view
class=
"shop-lister"
>
<view
class=
"shop-lister"
v-if=
"shopInfo.lister||shopInfo.phone"
>
<text>
{{
shopInfo
.
lister
}}
</text>
<text>
{{
shopInfo
.
lister
||
""
}}
</text>
<text
class=
"shop-phone"
>
{{
shopInfo
.
phone
}}
</text>
<text
class=
"shop-phone"
>
{{
shopInfo
.
phone
||
""
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"middle-image-view"
><image
:src=
"middleImage"
></image></view>
<view
class=
"middle-image-view"
><image
:src=
"middleImage"
></image></view>
...
...
pages/bill/quoted-price/select-price/select-price.vue
View file @
1ab2b027
...
@@ -98,6 +98,7 @@ export default {
...
@@ -98,6 +98,7 @@ export default {
});
});
},
},
clickCell
(
item
)
{
clickCell
(
item
)
{
console
.
log
(
"clickCell"
)
this
.
$store
.
dispatch
(
'Save_custom_id'
,
item
.
id
);
this
.
$store
.
dispatch
(
'Save_custom_id'
,
item
.
id
);
let
path
=
'pages/bill/quoted-price/custom/custom'
;
let
path
=
'pages/bill/quoted-price/custom/custom'
;
if
(
item
.
systemFlag
)
{
if
(
item
.
systemFlag
)
{
...
...
pages/maintain-bill/choose-member/choose-member.vue
View file @
1ab2b027
...
@@ -13,11 +13,29 @@
...
@@ -13,11 +13,29 @@
@
custom=
"changeSearch"
@
search=
"changeSearch"
:show-action=
"false"
@
custom=
"changeSearch"
@
search=
"changeSearch"
:show-action=
"false"
:input-style=
"
{ 'font-size': '26rpx', color: '#333333' }">
</u-search>
:input-style=
"
{ 'font-size': '26rpx', color: '#333333' }">
</u-search>
</view>
</view>
<view
class=
"tabs-box"
>
<u-tabs-swiper
ref=
"uTabs"
bg-color=
"#f6f7fa"
font-size=
"28"
bar-width=
"32"
bar-height=
"4"
height=
"60"
inactive-color=
"#8D8D8D"
active-color=
"#02A074"
name=
"title"
:list=
"tabs"
:current=
"tabCurrent"
@
change=
"tabsChange"
:is-scroll=
"false"
swiperWidth=
"750"
></u-tabs-swiper>
</view>
<NoData
v-if=
"noData"
:text=
"noDataText"
customStyle=
"margin-top: 0rpx;"
:imageName=
"noDataImage"
/>
<NoData
v-if=
"noData"
:text=
"noDataText"
customStyle=
"margin-top: 0rpx;"
:imageName=
"noDataImage"
/>
<view
v-else
>
<view
v-else
>
<view
class=
"bill-list"
>
<view
class=
"bill-list"
>
<view
v-for=
"(item, index) in list"
:key=
"index"
class=
"item-view"
>
<view
v-for=
"(item, index) in list"
:key=
"index"
class=
"item-view"
>
<CellEmployee
type=
"normal"
:member=
"item"
@
selectCell=
"handleSelectCell"
/>
<CellEmployee
type=
"normal"
:member=
"item"
@
selectCell=
"handleSelectCell"
@
select=
"handleSelectMember"
/>
</view>
</view>
</view>
</view>
<view
class=
"load-more-view"
v-show=
"(current == 1 && loaded) || current > 1"
>
<view
class=
"load-more-view"
v-show=
"(current == 1 && loaded) || current > 1"
>
...
@@ -40,8 +58,10 @@
...
@@ -40,8 +58,10 @@
baseUrl
baseUrl
}
from
'@/utils/config.js'
;
}
from
'@/utils/config.js'
;
import
{
import
{
getProjectMembersKnow
getProjectMembersKnow
,
collectionMember
}
from
'@/api/maintain/index.js'
;
}
from
'@/api/maintain/index.js'
;
import
{
chooseMemberTabs
}
from
'@/utils/options/maintain-bill/index.js'
;
export
default
{
export
default
{
components
:
{
components
:
{
NoData
,
NoData
,
...
@@ -49,7 +69,10 @@
...
@@ -49,7 +69,10 @@
},
},
data
()
{
data
()
{
return
{
return
{
tabs
:
chooseMemberTabs
,
tabCurrent
:
0
,
list
:
[],
list
:
[],
type
:
''
,
keyword
:
''
,
keyword
:
''
,
loaded
:
false
,
loaded
:
false
,
current
:
1
,
current
:
1
,
...
@@ -75,10 +98,44 @@
...
@@ -75,10 +98,44 @@
uni
.
$off
(
"choose-member"
)
uni
.
$off
(
"choose-member"
)
},
},
methods
:
{
methods
:
{
tabsChange
(
e
){
this
.
tabCurrent
=
e
this
.
changeSearch
()
console
.
log
(
'tabsChange'
,
e
);
},
handleSelectCell
(
item
)
{
handleSelectCell
(
item
)
{
uni
.
$emit
(
"choose-member"
,
item
)
uni
.
$emit
(
"choose-member"
,
item
)
uni
.
navigateBack
()
uni
.
navigateBack
()
},
},
handleSelectMember
(
id
,
collection
)
{
for
(
var
item
of
this
.
list
)
{
if
(
item
.
id
==
id
)
{
item
.
collection
=
collection
this
.
dealCollect
({
id
:
id
})
this
.
showToast
(
collection
?
'收藏成功'
:
'取消成功'
)
break
}
}
},
dealCollect
(
params
)
{
collectionMember
(
params
)
.
then
(
res
=>
{
let
data
=
res
.
data
;
if
(
data
)
{
}
})
.
catch
(
err
=>
{
for
(
var
item
of
this
.
list
)
{
if
(
item
.
id
==
params
.
id
)
{
item
.
collection
=
!
item
.
collection
break
}
}
console
.
log
(
err
);
});
},
changeSearch
()
{
changeSearch
()
{
this
.
reloadList
();
this
.
reloadList
();
},
},
...
@@ -98,6 +155,9 @@
...
@@ -98,6 +155,9 @@
size
:
this
.
size
,
size
:
this
.
size
,
text
:
this
.
keyword
,
text
:
this
.
keyword
,
};
};
if
(
this
.
tabCurrent
==
1
){
params
.
collection
=
true
}
let
res
=
await
getProjectMembersKnow
(
params
);
let
res
=
await
getProjectMembersKnow
(
params
);
let
{
let
{
records
,
records
,
...
@@ -185,6 +245,9 @@
...
@@ -185,6 +245,9 @@
.search-bar
{
.search-bar
{
margin-bottom
:
24rpx
;
margin-bottom
:
24rpx
;
}
}
.tabs-box
{
margin-bottom
:
24rpx
;
}
}
}
}
}
</
style
>
</
style
>
pages/maintain-bill/components/cell-employee.vue
View file @
1ab2b027
<
template
>
<
template
>
<view
class=
"cell-employee"
>
<view
class=
"cell-employee"
>
<view
class=
"content-view"
:hover-class=
"isNormal ? 'u-hover-class' : ''"
@
click
.
stop=
"$u.throttle(handleCickCell, 500)"
>
<!-- :hover-class="isNormal ? 'u-hover-class' : ''" -->
<view
class=
"content-view"
@
click=
"$u.throttle(handleCickCell, 500)"
>
<view
class=
"left-view"
>
<view
class=
"left-view"
>
<view
class=
"image-view"
>
{{
imagekName
}}
</view>
<view
class=
"image-view"
>
{{
imagekName
}}
</view>
<view
class=
"name-view"
>
{{
member
.
name
}}
</view>
<view
class=
"name-view"
>
{{
member
.
name
}}
</view>
<view
:class=
"['info-view',
{edit: isEdit}]">
{{
textInfo
}}
</view>
<view
:class=
"['info-view',
{edit: isEdit}]">
{{
textInfo
}}
</view>
</view>
</view>
<view
class=
"right-view"
>
<view
class=
"right-view"
>
<text
class=
"phone"
>
<
!--
<
text
class=
"phone"
>
{{
member
.
phone
}}
{{
member
.
phone
}}
</text>
</text>
-->
<view
class=
"unit-view"
>
{{
member
.
phone
}}
</view>
<view
class=
"collectFlag-view"
@
click
.
stop=
"$u.throttle(handleSelect, 500)"
hover-class=
"u-hover-class"
>
<image
:src=
"collectImage"
class=
"collectFlag-image"
></image>
</view>
</view>
</view>
<!--
<view
class=
"right-view"
v-if=
"isSelect || isEdit"
>
<!--
<view
class=
"right-view"
v-if=
"isSelect || isEdit"
>
<view
v-if=
"isSelect"
class=
"select-view"
@
click=
"$u.throttle(handleSelect, 500)"
hover-class=
"u-hover-class"
>
<view
v-if=
"isSelect"
class=
"select-view"
@
click=
"$u.throttle(handleSelect, 500)"
hover-class=
"u-hover-class"
>
...
@@ -53,6 +58,9 @@ export default {
...
@@ -53,6 +58,9 @@ export default {
baseUrl
()
{
baseUrl
()
{
return
process
.
uniEnv
.
qn_base_url
return
process
.
uniEnv
.
qn_base_url
},
},
collectImage
()
{
return
this
.
baseUrl
+
(
this
.
member
.
collection
?
'dianjishoucang1@3x.png'
:
'shoucangshoufei0@3x.png'
)
},
imagekName
()
{
imagekName
()
{
var
length
=
(
this
.
member
.
name
||
''
).
length
var
length
=
(
this
.
member
.
name
||
''
).
length
return
(
this
.
member
.
name
||
''
).
substring
(
length
-
2
)
return
(
this
.
member
.
name
||
''
).
substring
(
length
-
2
)
...
@@ -81,8 +89,8 @@ export default {
...
@@ -81,8 +89,8 @@ export default {
this
.
$emit
(
'action'
,
this
.
member
.
id
)
this
.
$emit
(
'action'
,
this
.
member
.
id
)
},
},
handleSelect
()
{
handleSelect
()
{
this
.
member
.
selected
=
!
this
.
member
.
selected
this
.
member
.
collection
=
!
this
.
member
.
collection
this
.
$emit
(
'select'
,
this
.
member
.
id
,
this
.
member
.
selected
)
this
.
$emit
(
'select'
,
this
.
member
.
id
,
this
.
member
.
collection
)
},
},
handleCickCell
()
{
handleCickCell
()
{
if
(
this
.
isNormal
)
{
if
(
this
.
isNormal
)
{
...
@@ -149,18 +157,17 @@ export default {
...
@@ -149,18 +157,17 @@ export default {
padding-right
:
24rpx
;
padding-right
:
24rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.select-view
{
.collectFlag-view
{
margin-left
:
56rpx
;
width
:
80rpx
;
width
:
80rpx
;
height
:
80rpx
;
height
:
80rpx
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
.select-icon
{
.collectFlag-image
{
width
:
32rpx
;
width
:
32rpx
;
height
:
32rpx
;
height
:
32rpx
;
border-radius
:
50%
;
border
:
2rpx
solid
#cccccc
;
}
}
}
}
}
}
...
...
pages/mine/share/components/save-poster-popup.vue
0 → 100644
View file @
1ab2b027
<
template
>
<u-popup
v-model=
"show"
:animation=
"false"
ref=
"uniPopup"
border-radius=
"24"
type=
"center"
mode=
"center"
>
<view
class=
"custom-popup"
>
<view
class=
"apply-refuse"
>
<view
class=
"title"
>
本次服务收费金额
</view>
<view
class=
"content-view"
>
</view>
<view
class=
"btn"
>
<view
class=
"confirm"
hover-class=
"u-hover-class"
@
click=
"$u.throttle(handleClickSure, 500)"
>
确定
</view>
</view>
</view>
<u-toast
ref=
"uToast"
/>
</view>
</u-popup>
</
template
>
<
script
>
export
default
{
props
:[
'qrcode'
],
data
()
{
return
{
show
:
false
,
};
},
methods
:
{
open
()
{
this
.
show
=
true
;
},
close
()
{
this
.
show
=
false
;
},
handleClickSure
()
{
this
.
close
();
this
.
$emit
(
'confirm'
,
this
.
text
);
},
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.custom-popup
{
.apply-refuse
{
background
:
linear-gradient
(
180deg
,
#f4fffc
0%
,
#ffffff
50%
)
#fff
;
width
:
622rpx
;
border-radius
:
12rpx
;
padding
:
0
24rpx
32rpx
;
.title
{
padding
:
48rpx
0
40rpx
;
text-align
:
center
;
font-size
:
32rpx
;
color
:
#333333
;
}
.content-view
{
width
:
100%
;
}
.btn
{
margin-top
:
68rpx
;
font-size
:
32rpx
;
.confirm
{
height
:
96rpx
;
font-weight
:
bold
;
background
:
$default-color
;
border-radius
:
16rpx
;
line-height
:
96rpx
;
text-align
:
center
;
margin-left
:
30rpx
;
color
:
#ffffff
;
}
}
}
}
.none
{
display
:
none
;
}
</
style
>
pages/mine/share/index.vue
View file @
1ab2b027
...
@@ -5,34 +5,36 @@
...
@@ -5,34 +5,36 @@
<!-- #ifdef APP-PLUS -->
<!-- #ifdef APP-PLUS -->
<scroll-view
scroll-y=
"true"
style=
"height:100%;position: relative;"
>
<scroll-view
scroll-y=
"true"
style=
"height:100%;position: relative;"
>
<!-- #endif -->
<!-- #endif -->
<view
class=
"image-view"
>
<view
class=
"image-view"
><image
mode=
"widthFix"
:src=
"backgroundImage"
></image></view>
<image
mode=
"widthFix"
:src=
"backgroundImage"
></image>
</view>
<!-- #ifdef APP-PLUS -->
<!-- #ifdef APP-PLUS -->
</scroll-view>
</scroll-view>
<!-- #endif -->
<!-- #endif -->
<view
class=
"info-view"
>
<view
class=
"info-view"
>
<view
class=
"head-image"
>
<view
class=
"head-image"
><image
:src=
"userInfo.avatar"
></image></view>
<image
:src=
"userInfo.avatar"
></image>
<view>
{{
userInfo
.
nickname
}}
</view>
</view>
<view>
{{
userInfo
.
nickname
}}
</view>
</view>
</view>
</view>
</view>
<view
class=
"bottom-view"
>
<view
class=
"bottom-view"
>
<u-button
type=
"success"
open-type=
"share"
:custom-style=
"customShare"
@
click=
"handleClickShar
e"
>
<u-button
type=
"success"
open-type=
"share"
:custom-style=
"customSave"
@
click=
"handleClickSav
e"
>
<view
class=
"bottom-content"
>
<view
class=
"bottom-content"
>
<view
class=
"icon-view"
>
<view
class=
"icon-view"
><image
:src=
"shareIcon"
></image></view
>
<image
:src=
"shareIcon"
></image
>
<view
class=
"share-view"
>
生成海报
</view
>
</view>
</view>
</u-button>
<u-button
type=
"success"
open-type=
"share"
:custom-style=
"customShare"
@
click=
"handleClickShare"
>
<view
class=
"bottom-content"
>
<view
class=
"icon-view"
><image
:src=
"shareIcon"
></image></view>
<view
class=
"share-view"
>
分享邀请
</view>
<view
class=
"share-view"
>
分享邀请
</view>
</view>
</view>
</u-button>
</u-button>
</view>
</view>
<save-poster-popup
ref=
"save-poster-popup"
:qrcode=
"qrcode"
></save-poster-popup>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
NavbarRight
from
'@/components/navbar-right'
;
import
NavbarRight
from
'@/components/navbar-right'
;
import
SavePosterPopup
from
'./components/save-poster-popup.vue'
;
import
{
mapGetters
}
from
'vuex'
;
import
{
mapGetters
}
from
'vuex'
;
import
{
wxMiniId
,
webUrl
}
from
'@/utils/config.js'
;
import
{
wxMiniId
,
webUrl
}
from
'@/utils/config.js'
;
import
{
shareInvited
}
from
'@/api/mine/share.js'
;
import
{
shareInvited
}
from
'@/api/mine/share.js'
;
...
@@ -40,59 +42,68 @@ import { shareInvited } from '@/api/mine/share.js';
...
@@ -40,59 +42,68 @@ import { shareInvited } from '@/api/mine/share.js';
export
default
{
export
default
{
components
:
{
components
:
{
NavbarRight
,
NavbarRight
,
SavePosterPopup
},
},
data
()
{
data
()
{
return
{
return
{
qrcode
:
''
,
};
};
},
},
computed
:
{
computed
:
{
...
mapGetters
([
'userInfo'
]),
...
mapGetters
([
'userInfo'
]),
baseUrl
()
{
baseUrl
()
{
return
process
.
uniEnv
.
qn_base_url
;
return
process
.
uniEnv
.
qn_base_url
;
},
},
backgroundImage
()
{
backgroundImage
()
{
return
this
.
baseUrl
+
'yaoqinghuodong.jpg'
return
this
.
baseUrl
+
'yaoqinghuodong.jpg'
;
},
},
shareImage
()
{
shareImage
()
{
return
this
.
baseUrl
+
'yaoqinghuodongfenxiang.jpg'
return
this
.
baseUrl
+
'yaoqinghuodongfenxiang.jpg'
;
},
},
shareIcon
()
{
shareIcon
()
{
return
this
.
baseUrl
+
'fenxiangicon@3x.png'
return
this
.
baseUrl
+
'fenxiangicon@3x.png'
;
},
},
customShare
()
{
customShare
()
{
return
{
return
{
color
:
'transparent'
,
color
:
'transparent'
,
'background-color'
:
'transparent'
,
'background-color'
:
'transparent'
,
height
:
'104rpx'
,
height
:
'104rpx'
,
'border-radius'
:
'52rpx'
,
'border-radius'
:
'52rpx'
,
width
:
'652
rpx'
,
width
:
'314
rpx'
,
padding
:
'0rpx'
padding
:
'0rpx'
};
};
}
},
},
onLoad
(
options
)
{
customSave
()
{
return
{
color
:
'transparent'
,
'background-color'
:
'transparent'
,
height
:
'104rpx'
,
'border-radius'
:
'52rpx'
,
width
:
'314rpx'
,
padding
:
'0rpx'
};
},
},
onUnload
()
{
},
},
onLoad
(
options
)
{},
onUnload
()
{},
methods
:
{
methods
:
{
shareInvited
()
{
handleClickSave
(){
this
.
$refs
[
'save-poster-popup'
].
open
()
},
shareInvited
()
{
shareInvited
({})
shareInvited
({})
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
data
)
{
if
(
res
.
data
)
{
}
}
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
},
},
handleClickShare
()
{
handleClickShare
()
{
// #ifdef APP-PLUS
// #ifdef APP-PLUS
this
.
shareInvited
()
this
.
shareInvited
();
uni
.
share
({
uni
.
share
({
provider
:
'weixin'
,
provider
:
'weixin'
,
scene
:
'WXSceneSession'
,
scene
:
'WXSceneSession'
,
...
@@ -110,15 +121,15 @@ export default {
...
@@ -110,15 +121,15 @@ export default {
console
.
log
(
JSON
.
stringify
(
ret
));
console
.
log
(
JSON
.
stringify
(
ret
));
block
();
block
();
},
},
fail
:
function
(
err
)
{
fail
:
function
(
err
)
{
console
.
log
(
'fail:'
+
JSON
.
stringify
(
err
));
console
.
log
(
'fail:'
+
JSON
.
stringify
(
err
));
}
}
});
});
// #endif
// #endif
},
},
// 朋友圈
// 朋友圈
onShareTimeline
(
res
)
{
onShareTimeline
(
res
)
{
this
.
shareInvited
()
this
.
shareInvited
();
return
{
return
{
title
:
'扳手记账'
,
title
:
'扳手记账'
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
...
@@ -126,8 +137,8 @@ export default {
...
@@ -126,8 +137,8 @@ export default {
};
};
},
},
// 好友
// 好友
onShareAppMessage
(
res
)
{
onShareAppMessage
(
res
)
{
this
.
shareInvited
()
this
.
shareInvited
();
return
{
return
{
title
:
'扳手记账'
,
title
:
'扳手记账'
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
...
@@ -174,10 +185,9 @@ export default {
...
@@ -174,10 +185,9 @@ export default {
background
:
#f6f7fa
;
background
:
#f6f7fa
;
}
}
}
}
}
}
.bottom-view
{
.bottom-view
{
margin
:
16rpx
24rpx
36rpx
24rpx
;
margin
:
16rpx
24rpx
36rpx
24rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -190,7 +200,7 @@ export default {
...
@@ -190,7 +200,7 @@ export default {
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
background-image
:
linear-gradient
(
to
bottom
,
#FF8A20
0%
,
#EB172C
100%
);
background-image
:
linear-gradient
(
to
bottom
,
#ff8a20
0%
,
#eb172c
100%
);
overflow
:
hidden
;
overflow
:
hidden
;
border-radius
:
52rpx
;
border-radius
:
52rpx
;
...
@@ -213,7 +223,6 @@ export default {
...
@@ -213,7 +223,6 @@ export default {
line-height
:
104rpx
;
line-height
:
104rpx
;
}
}
}
}
}
}
}
}
</
style
>
</
style
>
utils/options/maintain-bill/index.js
View file @
1ab2b027
...
@@ -253,3 +253,15 @@ export const tableFooterOptions = [{
...
@@ -253,3 +253,15 @@ export const tableFooterOptions = [{
},
},
]
]
export
const
chooseMemberTabs
=
[{
title
:
'最近'
,
name
:
''
},
{
title
:
'收藏'
,
name
:
'collection'
},
]
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