Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
sales-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 31b9f202
authored
Nov 04, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
58ee1774
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
88 additions
and
23 deletions
packageTool/pages/salesDailyReport/components/weekCalendar/weekCalendar.sass
packageTool/pages/salesDailyReport/salesDailyReport.js
packageTool/pages/salesDailyReport/salesDailyReport.scss
packageTool/pages/salesDailyReport/salesDailyReport.wxml
packageTool/pages/salesReport/salesReport.scss
pages/components/storeStatistics/storeStatistics.scss
pages/components/storeStatistics/storeStatistics.wxml
pages/components/table/table.scss
pages/components/table/table.wxml
pages/components/tableScrollX/table.scss
pages/tab/mine/mine.wxml
packageTool/pages/salesDailyReport/components/weekCalendar/weekCalendar.sass
View file @
31b9f20
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
display
:
flex
;
display
:
flex
;
justify-content
:
space-around
;
justify-content
:
space-around
;
align-items
:
center
;
align-items
:
center
;
border-
bottom
:
1
rpx
solid
#e4e8ee
;
border-
top
:
0
.5
rpx
solid
#e4e8ee
;
// box-shadow: 0 var(--fontSize4) var(--fontSize8) 0 #cdcdd159;
// box-shadow: 0 var(--fontSize4) var(--fontSize8) 0 #cdcdd159;
}
}
...
...
packageTool/pages/salesDailyReport/salesDailyReport.js
View file @
31b9f20
...
@@ -13,7 +13,12 @@ Page({
...
@@ -13,7 +13,12 @@ Page({
selectWeek
:
0
,
//0代表的本周 1代表下一周 -1代表上一周
selectWeek
:
0
,
//0代表的本周 1代表下一周 -1代表上一周
role
:
'staff'
,
role
:
'staff'
,
hasDailyValue
:
false
,
hasDailyValue
:
false
,
orderObj
:
{}
orderObj
:
{},
// textarea 自动增高:起始 76px,最大 200px,超过后滚动
todayAutoHeight
:
true
,
todayHeight
:
76
,
tomorrowAutoHeight
:
true
,
tomorrowHeight
:
76
},
},
handleConfirm
()
{
handleConfirm
()
{
let
that
=
this
let
that
=
this
...
@@ -25,6 +30,15 @@ Page({
...
@@ -25,6 +30,15 @@ Page({
todayWorkContent
:
orderObj
.
todayWorkContent
,
todayWorkContent
:
orderObj
.
todayWorkContent
,
tomorrowPlanContent
:
orderObj
.
tomorrowPlanContent
tomorrowPlanContent
:
orderObj
.
tomorrowPlanContent
}
}
// 都填写了才请求接口
if
(
orderObj
.
todayWorkContent
&&
orderObj
.
tomorrowPlanContent
)
{
if
(
orderObj
.
todayWorkContent
.
trim
().
length
==
0
||
orderObj
.
tomorrowPlanContent
.
trim
().
length
==
0
)
{
return
wx
.
showToast
({
title
:
'日报内容不可为空,请重新输入'
,
icon
:
'none'
,
})
}
dailyReportApi
dailyReportApi
.
staffDailyReportSave
(
params
)
.
staffDailyReportSave
(
params
)
.
then
(
result
=>
{
.
then
(
result
=>
{
...
@@ -41,6 +55,7 @@ Page({
...
@@ -41,6 +55,7 @@ Page({
})
})
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
}
},
},
formatDateTime
(
date
)
{
formatDateTime
(
date
)
{
const
year
=
date
.
getFullYear
()
const
year
=
date
.
getFullYear
()
...
@@ -121,6 +136,32 @@ Page({
...
@@ -121,6 +136,32 @@ Page({
[
'orderObj.'
+
name
]:
e
.
detail
.
value
[
'orderObj.'
+
name
]:
e
.
detail
.
value
})
})
},
},
// 今日工作 textarea 行数变化时控制高度:超过 200px 固定高度,出现滚动
onTodayLineChange
(
e
)
{
const
minH
=
76
const
maxH
=
100
const
h
=
Math
.
round
(
e
.
detail
.
height
||
0
)
if
(
this
.
data
.
todayAutoHeight
)
{
if
(
h
>=
maxH
)
{
this
.
setData
({
todayAutoHeight
:
false
,
todayHeight
:
maxH
})
}
else
{
this
.
setData
({
todayHeight
:
Math
.
max
(
minH
,
h
)
})
}
}
},
// 明日计划 textarea 行数变化时控制高度:超过 200px 固定高度,出现滚动
onTomorrowLineChange
(
e
)
{
const
minH
=
76
const
maxH
=
100
const
h
=
Math
.
round
(
e
.
detail
.
height
||
0
)
if
(
this
.
data
.
tomorrowAutoHeight
)
{
if
(
h
>=
maxH
)
{
this
.
setData
({
tomorrowAutoHeight
:
false
,
tomorrowHeight
:
maxH
})
}
else
{
this
.
setData
({
tomorrowHeight
:
Math
.
max
(
minH
,
h
)
})
}
}
},
/**
/**
* 选中了某一日,改变selectDay为选中日
* 选中了某一日,改变selectDay为选中日
*/
*/
...
@@ -259,6 +300,7 @@ Page({
...
@@ -259,6 +300,7 @@ Page({
},
},
initData
()
{
initData
()
{
let
{
orderObj
,
reportDate
,
userInfo
}
=
this
.
data
let
{
orderObj
,
reportDate
,
userInfo
}
=
this
.
data
console
.
log
(
reportDate
,
'reportDate'
);
if
(
reportDate
)
{
if
(
reportDate
)
{
// reportDate = "2024-04-27";
// reportDate = "2024-04-27";
var
dateisSunday
=
new
Date
(
reportDate
)
var
dateisSunday
=
new
Date
(
reportDate
)
...
@@ -281,7 +323,7 @@ Page({
...
@@ -281,7 +323,7 @@ Page({
selectWeek
:
0
-
countSundays
,
selectWeek
:
0
-
countSundays
,
[
'timeBean.selectDay'
]:
[
'timeBean.selectDay'
]:
dateisSunday
.
getDay
()
==
0
?
6
:
dateisSunday
.
getDay
()
-
1
,
dateisSunday
.
getDay
()
==
0
?
6
:
dateisSunday
.
getDay
()
-
1
,
selectWeek
:
dateisSunday
.
getDay
()
===
0
?
-
1
:
0
//
selectWeek: dateisSunday.getDay() === 0 ? -1 : 0
})
})
}
else
{
}
else
{
this
.
setData
({
this
.
setData
({
...
...
packageTool/pages/salesDailyReport/salesDailyReport.scss
View file @
31b9f20
...
@@ -13,9 +13,16 @@
...
@@ -13,9 +13,16 @@
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
color
:
#757b85
;
color
:
#757b85
;
font-size
:
24rpx
;
.staff
{
flex
:
1
;
margin-right
:
10rpx
;
}
}
}
.remark_box
{
.remark_box
{
box-sizing
:
border-box
;
padding
:
var
(
--
fontSize20
);
padding
:
var
(
--
fontSize20
);
background-color
:
#fff
;
background-color
:
#fff
;
...
@@ -33,7 +40,9 @@
...
@@ -33,7 +40,9 @@
padding
:
var
(
--
fontSize24
);
padding
:
var
(
--
fontSize24
);
.textarea
{
.textarea
{
height
:
var
(
--
fontSize130
);
// height: var(--fontSize130);
width
:
625rpx
;
}
}
...
@@ -58,7 +67,10 @@
...
@@ -58,7 +67,10 @@
}
}
.content
{
.content
{
width
:
650rpx
;
margin
:
10rpx
20rpx
;
margin
:
10rpx
20rpx
;
// height: auto;
min-height
:
200rpx
;
// padding: 0 40rpx;
// padding: 0 40rpx;
}
}
}
}
...
@@ -126,9 +138,7 @@
...
@@ -126,9 +138,7 @@
}
}
.nothing
{
.nothing
{
padding
:
var
(
--
fontSize30
)
0
;
height
:
60vh
;
text-align
:
center
;
// font-size: var(--fontSize28);
color
:
#999ea8
;
color
:
#999ea8
;
font-size
:
24rpx
;
font-size
:
24rpx
;
display
:
flex
;
display
:
flex
;
...
...
packageTool/pages/salesDailyReport/salesDailyReport.wxml
View file @
31b9f20
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<view class="label">今日工作<text class='required'>*</text></view>
<view class="label">今日工作<text class='required'>*</text></view>
<!-- {{ filter.filterDisabled(role, orderObj.reportDate) ?'disabled':'' }} -->
<!-- {{ filter.filterDisabled(role, orderObj.reportDate) ?'disabled':'' }} -->
<view class="textArea_box">
<view class="textArea_box">
<textarea
disabled="{{ filter.filterDisabled(role, orderObj.reportDate) }}" value="{{ orderObj.todayWorkContent }}" maxlength="200" placeholder="请输入" class="textarea" data-name="todayWorkContent" bindinput="remarkInput
" />
<textarea
auto-height="{{ todayAutoHeight }}" style="height: {{ todayHeight }}px;" disabled="{{ filter.filterDisabled(role, orderObj.reportDate) }}" value="{{ orderObj.todayWorkContent }}" maxlength="200" placeholder="请输入" class="textarea" data-name="todayWorkContent" bindinput="remarkInput" bindlinechange="onTodayLineChange
" />
<!-- -->
<!-- -->
<view class="currentWordNumber">{{todayWorkContent || 0}} / 200</view>
<view class="currentWordNumber">{{todayWorkContent || 0}} / 200</view>
</view>
</view>
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<!-- {{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) || role != 'staff' ?'disabled':'' }} -->
<!-- {{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) || role != 'staff' ?'disabled':'' }} -->
<!-- {{ filter.filterDisabled(role, orderObj.reportDate) ?'disabled':'' }} -->
<!-- {{ filter.filterDisabled(role, orderObj.reportDate) ?'disabled':'' }} -->
<view class="textArea_box">
<view class="textArea_box">
<textarea
disabled="{{ filter.filterDisabled(role, orderObj.reportDate) }}" value="{{ orderObj.tomorrowPlanContent }}" maxlength="200" placeholder="请输入" class="textarea" data-name="tomorrowPlanContent" bindinput="remarkInput
" />
<textarea
auto-height="{{ tomorrowAutoHeight }}" style="height: {{ tomorrowHeight }}px;" disabled="{{ filter.filterDisabled(role, orderObj.reportDate) }}" value="{{ orderObj.tomorrowPlanContent }}" maxlength="200" placeholder="请输入" class="textarea" data-name="tomorrowPlanContent" bindinput="remarkInput" bindlinechange="onTomorrowLineChange
" />
<!-- disabled="{{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) || role != 'staff' }}" -->
<!-- disabled="{{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) || role != 'staff' }}" -->
<view class="currentWordNumber">{{tomorrowPlanContent || 0}} / 200</view>
<view class="currentWordNumber">{{tomorrowPlanContent || 0}} / 200</view>
</view>
</view>
...
@@ -25,18 +25,20 @@
...
@@ -25,18 +25,20 @@
</view>
</view>
<view class="textbox read" wx:elif="{{ detailObj }}">
<view class="textbox read" wx:elif="{{ detailObj }}">
<view class="header">
<view class="header">
<view class="staff">填写人:{{detailObj.createdBy}}</view>
<view class="staff
text-hide
">填写人:{{detailObj.createdBy}}</view>
<view class="time">填写时间:{{detailObj.createdDate}}</view>
<view class="time">填写时间:{{detailObj.createdDate}}</view>
</view>
</view>
<view class="remark_box">
<view class="remark_box">
<view class="label">今日工作:</view>
<view class="label">今日工作:</view>
<view class="content">{{detailObj.todayWorkContent}}</view>
<!-- <view class="content">{{detailObj.todayWorkContent}}</view> -->
<view class="currentWordNumber">{{todayWorkContent || 0}} / 200</view>
<textarea disabled="{{true }}" value="{{ orderObj.todayWorkContent }}" class=" content" />
<!-- <view class="currentWordNumber">{{todayWorkContent || 0}} / 200</view> -->
</view>
</view>
<view class="remark_box">
<view class="remark_box">
<view class="label">明日计划:</view>
<view class="label">明日计划:</view>
<view class="content">{{detailObj.tomorrowPlanContent}}</view>
<!-- <view class="content">{{detailObj.tomorrowPlanContent}}</view> -->
<view class="currentWordNumber">{{tomorrowPlanContent || 0}} / 200</view>
<textarea disabled="{{true }}" value="{{ orderObj.tomorrowPlanContent }}" class=" content" />
<!-- <view class="currentWordNumber">{{tomorrowPlanContent || 0}} / 200</view> -->
</view>
</view>
</view>
</view>
<view class="nothing" wx:else>
<view class="nothing" wx:else>
...
...
packageTool/pages/salesReport/salesReport.scss
View file @
31b9f20
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
Page
{
Page
{
background
:
#f7f8fa
;
background
:
#f7f8fa
;
padding-bottom
:
125rpx
;
padding-bottom
:
125rpx
;
}
}
.main
{
.main
{
...
...
pages/components/storeStatistics/storeStatistics.scss
View file @
31b9f20
...
@@ -15,8 +15,12 @@
...
@@ -15,8 +15,12 @@
// opacity: 1;
// opacity: 1;
background
:
#ffffff
;
background
:
#ffffff
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
30rpx
32
rpx
;
padding
:
30rpx
20
rpx
;
.headerbar
{
box-sizing
:
border-box
;
padding
:
0
12rpx
;
}
}
}
.header
{
.header
{
...
@@ -65,13 +69,13 @@
...
@@ -65,13 +69,13 @@
.visitRecord
{
.visitRecord
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
16rpx
1
2
rpx
;
padding
:
16rpx
1
0
rpx
;
// width: 670rpx;
// width: 670rpx;
// height: 244rpx;
// height: 244rpx;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
opacity
:
1
;
opacity
:
1
;
background
:
#f7f8fa
;
background
:
#f7f8fa
;
margin
:
0
auto
;
margin
:
0
auto
rpx
;
.time
{
.time
{
display
:
flex
;
display
:
flex
;
...
...
pages/components/storeStatistics/storeStatistics.wxml
View file @
31b9f20
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
<view class="merchant headerBar">
<view class="merchant headerBar">
<view class="title" wx:if="{{userInfo.loginRole !=3}}">我的门店</view>
<view class="title" wx:if="{{userInfo.loginRole !=3}}">我的门店</view>
<view class="tableBox">
<view class="tableBox">
<view class="headerbar">
<view class="header">
<view class="header">
<view class="left">门店待跟进</view>
<view class="left">门店待跟进</view>
<view class="right">
<view class="right">
...
@@ -28,6 +29,7 @@
...
@@ -28,6 +29,7 @@
<view class="num">{{followUpData.signedHasOrderTotal}}</view>
<view class="num">{{followUpData.signedHasOrderTotal}}</view>
</view>
</view>
</view>
</view>
</view>
<view class="visitRecord" wx:if="{{ followUpData.waitFollowShopList[0] }}">
<view class="visitRecord" wx:if="{{ followUpData.waitFollowShopList[0] }}">
<view class="time">
<view class="time">
<glsx-image class="icon" src="/index/clock.png"></glsx-image>
<glsx-image class="icon" src="/index/clock.png"></glsx-image>
...
...
pages/components/table/table.scss
View file @
31b9f20
...
@@ -163,7 +163,7 @@
...
@@ -163,7 +163,7 @@
box-sizing
:
border-box
;
box-sizing
:
border-box
;
height
:
var
(
--
fontSize94
);
height
:
var
(
--
fontSize94
);
width
:
var
(
--
fontSize232
);
width
:
var
(
--
fontSize232
);
padding
:
var
(
--
fontSize
2
0
)
var
(
--
fontSize20
);
padding
:
var
(
--
fontSize0
)
var
(
--
fontSize20
);
font-size
:
var
(
--
fontSize20
);
font-size
:
var
(
--
fontSize20
);
color
:
#666666
;
color
:
#666666
;
// box-shadow: 4px 0 4px -3px #0000000f;
// box-shadow: 4px 0 4px -3px #0000000f;
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
}
}
.table
.table-body
.th
.name
.labelName
{
.table
.table-body
.th
.name
.labelName
{
height
:
var
(
--
fontSize
58
);
height
:
var
(
--
fontSize
62
);
box-sizing
:
border-box
;
box-sizing
:
border-box
;
word-break
:
break-all
;
word-break
:
break-all
;
display
:
-
webkit-box
;
display
:
-
webkit-box
;
...
@@ -181,10 +181,12 @@
...
@@ -181,10 +181,12 @@
-webkit-line-clamp
:
2
;
-webkit-line-clamp
:
2
;
color
:
#292d33
;
color
:
#292d33
;
font-size
:
24rpx
;
font-size
:
24rpx
;
margin
:
15rpx
15rpx
;
}
}
.table
.table-body
.th
.labelName.oneLine
{
.table
.table-body
.th
.labelName.oneLine
{
line-height
:
var
(
--
fontSize58
);
line-height
:
var
(
--
fontSize58
);
margin
:
17rpx
15rpx
;
}
}
.table
.table-body
.th
.values
.td
{
.table
.table-body
.th
.values
.td
{
...
...
pages/components/table/table.wxml
View file @
31b9f20
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
<block wx:for="{{ formattedTable }}" wx:key="index">
<block wx:for="{{ formattedTable }}" wx:key="index">
<view class="th" style="width: var(--fontSize{{ tableWidth }})">
<view class="th" style="width: var(--fontSize{{ tableWidth }})">
<view class="name" bind:tap="onTableClick" data-item="{{ item }}">
<view class="name" bind:tap="onTableClick" data-item="{{ item }}">
<view class="labelName {{ item[headerConfig.key].length<=
10
?'oneLine':'' }}">{{item[headerConfig.key]}}</view>
<view class="labelName {{ item[headerConfig.key].length<=
8
?'oneLine':'' }}">{{item[headerConfig.key]}}</view>
</view>
</view>
<view class="values">
<view class="values">
<block wx:for="{{ tableObj }}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<block wx:for="{{ tableObj }}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
...
...
pages/components/tableScrollX/table.scss
View file @
31b9f20
...
@@ -163,7 +163,7 @@
...
@@ -163,7 +163,7 @@
box-sizing
:
border-box
;
box-sizing
:
border-box
;
height
:
var
(
--
fontSize94
);
height
:
var
(
--
fontSize94
);
width
:
var
(
--
fontSize160
);
width
:
var
(
--
fontSize160
);
padding
:
var
(
--
fontSize
2
0
)
var
(
--
fontSize20
);
padding
:
var
(
--
fontSize0
)
var
(
--
fontSize20
);
font-size
:
var
(
--
fontSize20
);
font-size
:
var
(
--
fontSize20
);
color
:
#666666
;
color
:
#666666
;
box-shadow
:
4px
0
4px
-3px
#000000
0f
;
box-shadow
:
4px
0
4px
-3px
#000000
0f
;
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
}
}
.table
.table-body
.th
.name
.labelName
{
.table
.table-body
.th
.name
.labelName
{
height
:
var
(
--
fontSize6
0
);
height
:
var
(
--
fontSize6
2
);
box-sizing
:
border-box
;
box-sizing
:
border-box
;
word-break
:
break-all
;
word-break
:
break-all
;
display
:
-
webkit-box
;
display
:
-
webkit-box
;
...
@@ -181,10 +181,12 @@
...
@@ -181,10 +181,12 @@
-webkit-line-clamp
:
2
;
-webkit-line-clamp
:
2
;
color
:
#292d33
;
color
:
#292d33
;
font-size
:
24rpx
;
font-size
:
24rpx
;
margin
:
15rpx
15rpx
;
}
}
.table
.table-body
.th
.labelName.oneLine
{
.table
.table-body
.th
.labelName.oneLine
{
line-height
:
var
(
--
fontSize58
);
line-height
:
var
(
--
fontSize58
);
margin
:
20rpx
15rpx
;
}
}
.table
.table-body
.th
.values
.td
{
.table
.table-body
.th
.values
.td
{
...
...
pages/tab/mine/mine.wxml
View file @
31b9f20
<!-- pages/tab/output/output.wxml -->
<!-- pages/tab/output/output.wxml -->
<navigation-bar navStyle="{{ navStyle }}" bindnavbarReady="navbarReady">
我的账号
</navigation-bar>
<navigation-bar navStyle="{{ navStyle }}" bindnavbarReady="navbarReady">
个人中心
</navigation-bar>
<view class="layout" style="padding-top:{{ tabBarStyle }}px;">
<view class="layout" style="padding-top:{{ tabBarStyle }}px;">
<view class="userInfoCon">
<view class="userInfoCon">
<glsx-image class="headPortrait" src="{{ userInfo.userAvatarUrl||IMAGES.userAvatarUrl }}" webp>头像</glsx-image>
<glsx-image class="headPortrait" src="{{ userInfo.userAvatarUrl||IMAGES.userAvatarUrl }}" webp>头像</glsx-image>
...
...
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