Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b04f3bc0
authored
Aug 28, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'V4.56.0' of
http://192.168.3.233:8090/glsx/gl_tape
into V4.56.0
2 parents
ad2b8ca0
2f9c8944
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
122 additions
and
32 deletions
components/OrderPopup/components/GoodsList.vue
components/OrderPopup/index.vue
mixin/interceptionMixin.js
pages/boutique/tool/components/DailyReport.vue
pages/boutique/tool/index.vue
uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue
components/OrderPopup/components/GoodsList.vue
View file @
b04f3bc
...
@@ -34,6 +34,9 @@
...
@@ -34,6 +34,9 @@
<template
v-if=
"i.goods.merchantGoodsPosition && (i.goods.goodsInfo.goodsType == 1 || i.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)"
>
<template
v-if=
"i.goods.merchantGoodsPosition && (i.goods.goodsInfo.goodsType == 1 || i.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)"
>
<text>
「
{{
i
.
goods
.
positionStr
}}
」
</text>
<text>
「
{{
i
.
goods
.
positionStr
}}
」
</text>
</
template
>
</
template
>
<
template
v-if=
"!i.goods.merchantGoodsPosition && (i.goods.goodsInfo.goodsType == 1 || i.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)"
>
<text
class=
"no-postion"
>
无部位
</text>
</
template
>
<text
class=
"price"
>
¥{{ i.goods.price }}
</text>
<text
class=
"price"
>
¥{{ i.goods.price }}
</text>
</view>
</view>
</template>
</template>
...
@@ -76,17 +79,31 @@ export default {
...
@@ -76,17 +79,31 @@ export default {
if
(
data
&&
data
.
length
)
this
.
updateParams
(
params
,
data
)
if
(
data
&&
data
.
length
)
this
.
updateParams
(
params
,
data
)
},
},
handleSearch
(
searchValue
)
{
handleSearch
(
searchValue
)
{
let
{
isDefeatOrder
}
=
this
if
(
!
searchValue
)
this
.
searchStatus
=
false
if
(
!
searchValue
)
this
.
searchStatus
=
false
else
{
else
{
let
{
list
}
=
this
,
let
{
list
}
=
this
,
goodsList
=
JSON
.
parse
(
JSON
.
stringify
(
list
)),
goodsList
=
JSON
.
parse
(
JSON
.
stringify
(
list
)),
arr
=
[]
arr
=
[]
goodsList
.
map
(
c
=>
{
goodsList
.
map
(
i
=>
{
let
name
=
''
let
name
=
''
if
(
c
.
goodsFlag
==
1
&&
c
.
goods
)
name
=
c
.
goods
.
goodsAlias
||
c
.
goods
.
upgradeGoodsName
||
c
.
goods
.
goodsName
||
''
if
(
isDefeatOrder
)
{
if
(
name
.
indexOf
(
searchValue
)
!=
-
1
)
{
let
upgradeGoodsList
=
[];
arr
.
push
(
c
)
i
.
upgradeGoodsList
.
map
((
c
)
=>
{
let
name
=
c
.
upgradeGoodsAlias
||
c
.
upgradeGoodsName
||
c
.
goodsInfo
.
goodsName
;
if
(
name
.
indexOf
(
searchValue
)
!=
-
1
)
upgradeGoodsList
.
push
(
c
)
})
if
(
i
.
goodsTypeName
.
indexOf
(
searchValue
)
!=
-
1
||
upgradeGoodsList
.
length
>
0
)
{
i
.
upgradeGoodsList
=
upgradeGoodsList
.
length
>
0
?
upgradeGoodsList
:
i
.
upgradeGoodsList
arr
.
push
(
i
)
}
}
else
{
if
(
i
.
goodsFlag
==
1
&&
i
.
goods
)
name
=
i
.
goods
.
goodsAlias
||
i
.
goods
.
upgradeGoodsName
||
i
.
goods
.
goodsName
||
''
if
(
name
.
indexOf
(
searchValue
)
!=
-
1
)
{
arr
.
push
(
i
)
}
}
}
})
})
this
.
searchList
=
arr
this
.
searchList
=
arr
this
.
searchStatus
=
true
this
.
searchStatus
=
true
...
@@ -197,6 +214,11 @@ export default {
...
@@ -197,6 +214,11 @@ export default {
font-size
:
32
rpx
;
font-size
:
32
rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
0
32
rpx
;
padding
:
0
32
rpx
;
.no-postion
{
color
:
#f24724
;
margin-left
:
10
rpx
;
font-size
:
22
rpx
;
}
.sprite-icon
{
.sprite-icon
{
display
:
none
;
display
:
none
;
position
:
absolute
;
position
:
absolute
;
...
...
components/OrderPopup/index.vue
View file @
b04f3bc
...
@@ -58,7 +58,6 @@
...
@@ -58,7 +58,6 @@
@
choose=
"chooseContent = $event"
@
choose=
"chooseContent = $event"
@
openSkuPopup=
"openSkuPopup"
@
openSkuPopup=
"openSkuPopup"
@
onComplete=
"componentObject[popupType].loadComplete = true"
@
onComplete=
"componentObject[popupType].loadComplete = true"
@
updateCacheData=
"updateCacheData"
></component>
></component>
<
template
v-if=
"componentObject[popupType].noData"
>
<
template
v-if=
"componentObject[popupType].noData"
>
<view
class=
"nothing flex"
>
暂无数据
</view>
<view
class=
"nothing flex"
>
暂无数据
</view>
...
@@ -190,7 +189,6 @@ export default {
...
@@ -190,7 +189,6 @@ export default {
this
.
initPopupData
()
this
.
initPopupData
()
},
},
cancel
()
{
cancel
()
{
console
.
log
()
this
.
$refs
.
popup
.
close
()
this
.
$refs
.
popup
.
close
()
this
.
$emit
(
'cancel'
)
this
.
$emit
(
'cancel'
)
},
},
...
...
mixin/interceptionMixin.js
View file @
b04f3bc
...
@@ -79,11 +79,12 @@ export default {
...
@@ -79,11 +79,12 @@ export default {
// if (wx.__HAS_NOTLOGIN_MODAL) return false; //
// if (wx.__HAS_NOTLOGIN_MODAL) return false; //
this
.
addModalToQueue
(
'日报提醒'
,
'您有未填写的日报,请点击前往。'
,
'前往填写'
,
false
,
2
,
res
=>
{
this
.
addModalToQueue
(
'日报提醒'
,
'您有未填写的日报,请点击前往。'
,
'前往填写'
,
false
,
2
,
res
=>
{
if
(
res
.
confirm
)
{
if
(
res
.
confirm
)
{
console
.
log
(
formattedDate
)
const
pages
=
getCurrentPages
(),
const
pages
=
getCurrentPages
(),
currentPage
=
pages
[
pages
.
length
-
1
]
currentPage
=
pages
[
pages
.
length
-
1
]
if
(
currentPage
.
route
==
'pages/boutique/tool/index'
)
uni
.
$emit
(
'jumpToDailyReport'
)
if
(
currentPage
.
route
==
'pages/boutique/tool/index'
)
uni
.
$emit
(
'jumpToDailyReport'
,
formattedDate
)
else
uni
.
navigateTo
({
else
uni
.
navigateTo
({
url
:
`/pages/boutique/tool/index?componentName=DailyReport`
url
:
`/pages/boutique/tool/index?componentName=DailyReport
¤tDate=
${
formattedDate
}
`
})
})
}
}
})
})
...
...
pages/boutique/tool/components/DailyReport.vue
View file @
b04f3bc
...
@@ -73,15 +73,16 @@
...
@@ -73,15 +73,16 @@
备注
备注
</view>
</view>
<view
class=
"value"
>
<view
class=
"value"
>
<input
<textarea
class=
"input"
class=
"textarea"
type=
"text"
v-model=
"orderObj.remark"
v-model=
"orderObj.remark"
placeholder-class=
"placeholder"
placeholder=
"请输入 (500字以内)"
placeholder=
"请输入 (500字以内)"
placeholder-class=
"placeholder"
confirm-type=
"done"
auto-height
:maxlength=
"500"
:maxlength=
"500"
:disabled=
"filterDisabled(isEditReport)"
:disabled=
"filterDisabled(isEditReport)"
>
>
</textarea>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -636,7 +637,7 @@ export default {
...
@@ -636,7 +637,7 @@ export default {
}
}
.form-item
{
.form-item
{
height
:
96
rpx
;
min-
height
:
96
rpx
;
border-bottom
:
2
rpx
solid
#f7f7f6
;
border-bottom
:
2
rpx
solid
#f7f7f6
;
padding-right
:
32
rpx
;
padding-right
:
32
rpx
;
font-size
:
28
rpx
;
font-size
:
28
rpx
;
...
@@ -675,7 +676,9 @@ export default {
...
@@ -675,7 +676,9 @@ export default {
font-size
:
28
rpx
;
font-size
:
28
rpx
;
}
}
.textarea
{
.textarea
{
width
:
100%
;
width
:
calc
(
100%
-
24
rpx
);
margin-left
:
24
rpx
;
text-align
:
right
;
}
}
}
}
}
}
...
...
pages/boutique/tool/index.vue
View file @
b04f3bc
<
template
>
<
template
>
<view
class=
"detail-box"
>
<view
class=
"detail-box"
>
<view
class=
"nav-bar"
>
<view
class=
"nav-bar"
>
<view
class=
"back"
@
click=
"backPage"
>
<view
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
class=
"back"
@
click=
"backPage"
>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
</view>
</view>
<view
class=
"title"
>
展业工具
</view>
<view
class=
"title"
>
展业工具
</view>
</view>
</view>
...
@@ -10,20 +17,46 @@
...
@@ -10,20 +17,46 @@
<view
class=
"detail-left"
>
<view
class=
"detail-left"
>
<view
class=
"common-title"
>
展业
</view>
<view
class=
"common-title"
>
展业
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<image
class=
"banner"
src=
"../../../assets/images/common/tool_banner.png"
mode=
"scaleToFill"
/>
<image
class=
"banner"
src=
"../../../assets/images/common/tool_banner.png"
mode=
"scaleToFill"
/>
<template
v-if=
"toolComponentName !== 'DailyReport'"
>
<template
v-if=
"toolComponentName !== 'DailyReport'"
>
<Entrance
@
entranceClick=
"entranceClick"
></Entrance>
<Entrance
@
entranceClick=
"entranceClick"
></Entrance>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<uni-calendar
ref=
"calendar"
:clearDate=
"false"
:endDate=
"endDate"
:showMonth=
"false"
@
monthSwitch=
"currentMonth = `$
{$event.year}-${$event.month}`" @change="currentDate = $event.fulldate" backgroundColor="transparent" :selected="selectedDays" />
<uni-calendar
ref=
"calendar"
:clearDate=
"false"
:endDate=
"endDate"
:showMonth=
"false"
@
monthSwitch=
"currentMonth = `$
{$event.year}-${$event.month}`"
@change="currentDate = $event.fulldate"
backgroundColor="transparent"
:selected="selectedDays"
:date="currentDate"
/>
</
template
>
</
template
>
</view>
</view>
</view>
</view>
<view
class=
"detail-right"
>
<view
class=
"detail-right"
>
<component
:is=
"toolComponentName"
@
jump=
"jump"
:transmission-of-data=
"transmissionOfData"
:currentDate=
"currentDate"
:currentMonth=
"currentMonth"
@
setCalendarSelected=
"selectedDays = $event"
/>
<component
:is=
"toolComponentName"
@
jump=
"jump"
:transmission-of-data=
"transmissionOfData"
:currentDate=
"currentDate"
:currentMonth=
"currentMonth"
@
setCalendarSelected=
"selectedDays = $event"
/>
</view>
</view>
</view>
</view>
<NoticePopup
ref=
"notice"
title=
"重要提示"
text=
"当前页面暂未保存,是否确认退出"
type=
"warning"
></NoticePopup>
<NoticePopup
ref=
"notice"
title=
"重要提示"
text=
"当前页面暂未保存,是否确认退出"
type=
"warning"
></NoticePopup>
</view>
</view>
</template>
</template>
...
@@ -53,7 +86,7 @@ export default {
...
@@ -53,7 +86,7 @@ export default {
UploadProofOfPayment
,
UploadProofOfPayment
,
OrderDetail
OrderDetail
},
},
data
()
{
data
()
{
return
{
return
{
toolComponentName
:
''
,
toolComponentName
:
''
,
transmissionOfData
:
null
,
transmissionOfData
:
null
,
...
@@ -63,14 +96,16 @@ export default {
...
@@ -63,14 +96,16 @@ export default {
selectedDays
:
[]
selectedDays
:
[]
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
.
componentName
)
this
.
toolComponentName
=
options
.
componentName
if
(
options
.
componentName
)
this
.
toolComponentName
=
options
.
componentName
uni
.
$on
(
'jumpToDailyReport'
,
_
=>
{
if
(
options
.
currentDate
)
this
.
currentDate
=
options
.
currentDate
uni
.
$on
(
'jumpToDailyReport'
,
currentDate
=>
{
this
.
toolComponentName
=
'DailyReport'
this
.
toolComponentName
=
'DailyReport'
if
(
currentDate
)
this
.
currentDate
=
currentDate
})
})
},
},
methods
:
{
methods
:
{
async
entranceClick
(
item
)
{
async
entranceClick
(
item
)
{
console
.
log
(
item
)
console
.
log
(
item
)
if
(
item
.
name
!=
'DailyReport'
&&
((
await
this
.
checkDailyReport
())
||
(
await
this
.
inspectionOfProhibitionBill
())))
return
if
(
item
.
name
!=
'DailyReport'
&&
((
await
this
.
checkDailyReport
())
||
(
await
this
.
inspectionOfProhibitionBill
())))
return
// 保存当前选择的组件信息,但不立即切换
// 保存当前选择的组件信息,但不立即切换
...
@@ -110,11 +145,11 @@ export default {
...
@@ -110,11 +145,11 @@ export default {
// 打开弹窗
// 打开弹窗
this
.
$refs
.
notice
.
open
()
this
.
$refs
.
notice
.
open
()
},
},
backPage
()
{
backPage
()
{
uni
.
navigateBack
()
uni
.
navigateBack
()
},
},
// name:跳转组件名,val:跳转参数
// name:跳转组件名,val:跳转参数
jump
(
name
,
val
)
{
jump
(
name
,
val
)
{
this
.
toolComponentName
=
name
this
.
toolComponentName
=
name
console
.
log
(
this
.
toolComponentName
,
val
)
console
.
log
(
this
.
toolComponentName
,
val
)
if
(
val
)
{
if
(
val
)
{
...
...
uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue
View file @
b04f3bc
...
@@ -40,18 +40,23 @@
...
@@ -40,18 +40,23 @@
<picker
<picker
mode=
"date"
mode=
"date"
:value=
"date"
:value=
"date"
:end=
"endDate"
fields=
"month"
fields=
"month"
@
change=
"bindDateChange"
@
change=
"bindDateChange"
>
>
<text
class=
"uni-calendar__header-text"
>
{{
(
nowDate
.
year
||
''
)
+
' / '
+
(
nowDate
.
month
||
''
)
}}
</text>
<text
class=
"uni-calendar__header-text"
>
{{
(
nowDate
.
year
||
''
)
+
' / '
+
(
nowDate
.
month
||
''
)
}}
</text>
</picker>
</picker>
<view
<view
class=
"uni-calendar__header-btn-box
"
:class=
"['uni-calendar__header-btn-box next-btn',
{'show-next-btn':showNextBtn}]
"
@click.stop="next"
@click.stop="next"
>
>
<view
class=
"uni-calendar__header-btn uni-calendar--right"
></view>
<view
class=
"uni-calendar__header-btn uni-calendar--right"
></view>
</view>
</view>
<!--
<text
class=
"uni-calendar__backtoday"
@
click=
"backToday"
>
{{
todayText
}}
</text>
-->
<text
class=
"uni-calendar__backtoday"
@
click=
"backToday"
v-if=
"!hideTodayBtn"
>
{{
todayText
}}
</text>
</view>
</view>
<view
class=
"uni-calendar__box"
>
<view
class=
"uni-calendar__box"
>
...
@@ -189,9 +194,13 @@ export default {
...
@@ -189,9 +194,13 @@ export default {
type
:
String
,
type
:
String
,
default
:
'#fff'
default
:
'#fff'
},
},
title
:{
title
:
{
type
:
String
,
type
:
String
,
default
:
'选择日期'
default
:
'选择日期'
},
hideTodayBtn
:
{
type
:
Boolean
,
default
:
true
}
}
},
},
data
()
{
data
()
{
...
@@ -238,10 +247,14 @@ export default {
...
@@ -238,10 +247,14 @@ export default {
SUNText
()
{
SUNText
()
{
return
t
(
"uni-calender.SUN"
)
return
t
(
"uni-calender.SUN"
)
},
},
showNextBtn
()
{
let
{
cale
,
endDate
,
nowDate
}
=
this
,
maxDate
=
cale
.
getDate
(
endDate
,
-
1
,
'month'
)
return
cale
.
dateCompare
(
`
${
nowDate
.
year
}
/
${
nowDate
.
month
}
`
,
`
${
maxDate
.
year
}
/
${
maxDate
.
month
}
`
)
}
},
},
watch
:
{
watch
:
{
date
(
newVal
)
{
date
(
newVal
)
{
// this.cale.setDate(newVal)
this
.
init
(
newVal
)
this
.
init
(
newVal
)
},
},
startDate
(
val
)
{
startDate
(
val
)
{
...
@@ -257,6 +270,17 @@ export default {
...
@@ -257,6 +270,17 @@ export default {
selected
(
newVal
)
{
selected
(
newVal
)
{
this
.
cale
.
setSelectInfo
(
this
.
nowDate
.
fullDate
,
newVal
)
this
.
cale
.
setSelectInfo
(
this
.
nowDate
.
fullDate
,
newVal
)
this
.
weeks
=
this
.
cale
.
weeks
this
.
weeks
=
this
.
cale
.
weeks
},
nowDate
:
{
handler
(
val
)
{
if
(
val
)
{
let
{
cale
,
endDate
}
=
this
,
maxDate
=
cale
.
getDate
(
endDate
,
-
1
,
'month'
)
cale
.
dateCompare
(
`
${
val
.
year
}
/
${
val
.
month
}
`
,
`
${
maxDate
.
year
}
/
${
maxDate
.
month
}
`
)
}
},
deep
:
true
,
immediate
:
true
}
}
},
},
created
()
{
created
()
{
...
@@ -427,6 +451,8 @@ export default {
...
@@ -427,6 +451,8 @@ export default {
* 下个月
* 下个月
*/
*/
next
()
{
next
()
{
let
{
showNextBtn
}
=
this
if
(
!
showNextBtn
)
return
const
nextDate
=
this
.
cale
.
getDate
(
this
.
nowDate
.
fullDate
,
+
1
,
'month'
).
fullDate
const
nextDate
=
this
.
cale
.
getDate
(
this
.
nowDate
.
fullDate
,
+
1
,
'month'
).
fullDate
this
.
setDate
(
nextDate
)
this
.
setDate
(
nextDate
)
this
.
monthSwitch
()
this
.
monthSwitch
()
...
@@ -567,7 +593,12 @@ $uni-text-color-grey: #999;
...
@@ -567,7 +593,12 @@ $uni-text-color-grey: #999;
width
:
50px
;
width
:
50px
;
height
:
50px
;
height
:
50px
;
}
}
.next-btn
{
opacity
:
0
;
}
.show-next-btn
{
opacity
:
1
;
}
.uni-calendar__header-btn
{
.uni-calendar__header-btn
{
width
:
10px
;
width
:
10px
;
height
:
10px
;
height
:
10px
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment