Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b66ddb57
authored
Aug 19, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug修复
1 parent
56c9cfa8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
22 additions
and
77 deletions
components/Merchant-Seles/Merchant-Seles.js
config.js
pages/tabDateIndex/pages/tabDateIndex.js
tabIndex/pages/index/index.js
tabIndex/pages/index/index.sass
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.sass
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.wxml
tabWorkOrder/pages/createOrder/createOrder.js
components/Merchant-Seles/Merchant-Seles.js
View file @
b66ddb5
...
...
@@ -205,7 +205,7 @@ Component({
api
.
getConversionEmployeeList
({
merchantId
,
sceneList
:
type
==
1
?
[
1
]
:
""
,
sceneList
:
type
==
1
?
[
0
]
:
""
,
})
.
then
(
async
(
res
)
=>
{
wx
.
$util
.
hideLoading
();
...
...
config.js
View file @
b66ddb5
...
...
@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 5cdptest
*/
let
index
=
0
;
let
index
=
2
;
const
accountInfo
=
wx
.
getAccountInfoSync
();
const
systemInfo
=
wx
.
getSystemInfoSync
();
const
envName
=
accountInfo
.
miniProgram
.
envVersion
;
...
...
pages/tabDateIndex/pages/tabDateIndex.js
View file @
b66ddb5
...
...
@@ -380,8 +380,9 @@ Page({
wx
.
$dateListRefresh
=
false
;
let
{
searchObj
,
userInfo
}
=
this
.
data
;
let
merchantId
;
// && !userInfo?.isSuper
// 判断是不是超管,不是只能筛选当前4s店的
if
(
!
searchObj
.
merchantId
&&
!
userInfo
?.
isSuper
)
{
if
(
!
searchObj
.
merchantId
)
{
merchantId
=
userInfo
?.
shopMerchantId
;
this
.
setData
({
[
"searchObj.merchantId"
]:
merchantId
,
...
...
@@ -530,32 +531,32 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{},
onReady
:
function
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{},
onShow
:
function
()
{
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
:
function
()
{},
onHide
:
function
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{},
onUnload
:
function
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{},
onPullDownRefresh
:
function
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{},
onReachBottom
:
function
()
{
},
scrollonReachBottom
()
{
let
{
total
,
pageNum
}
=
this
.
data
;
wx
.
$util
.
onReachBottom
(
...
...
@@ -578,5 +579,5 @@ Page({
/**
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{},
onShareAppMessage
:
function
()
{
},
});
tabIndex/pages/index/index.js
View file @
b66ddb5
...
...
@@ -458,6 +458,7 @@ Page({
wx
.
scanCode
({
success
(
res
)
{
let
{
result
}
=
res
;
console
.
log
(
result
,
'result'
);
that
.
showSelectType
({
scene
:
result
});
// wx.$router.go("tabWorkOrder.createOrder", {
// scene: result,
...
...
tabIndex/pages/index/index.sass
View file @
b66ddb5
...
...
@@ -885,14 +885,13 @@ page ::-webkit-scrollbar {
color
:
#666666
;
}
/* test css */
.table
{
display
:
block
;
position
:
relative
;
overflow
:
scroll
;
width
:
100%
;
//
height: 100%;
height
:
800rpx
;
height
:
100%
;
//
height: 800rpx;
}
...
...
@@ -1293,6 +1292,7 @@ page ::-webkit-scrollbar {
color
:
#292D33
;
padding-left
:
24rpx
;
margin
:
0
auto
;
&
+
.modalbox
{
margin-top
:
16rpx
;
}
...
...
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.sass
View file @
b66ddb5
...
...
@@ -855,7 +855,7 @@ page {
.meal-bd-head
.price
{
font-family
:
"numberNor"
;
margin-left
:
auto
;
margin-left
:
auto
;
}
.meal-bd-bottom
{
...
...
@@ -926,4 +926,8 @@ page {
.modatcontent
{
box-sizing
:
border-box
;
padding
:
var
(
--
fontSize48
)
0
;
}
.modatcontentOrder
{
padding
:
30rpx
50rpx
;
}
\ No newline at end of file
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.wxml
View file @
b66ddb5
...
...
@@ -305,7 +305,7 @@
</modal>
<order-popup orderType="4" show="{{ showPopup }}" />
<modal id="modal" class="modal" custom="true" btns="{{ ['返回','确定'] }}">
<view class="modatcontent">
<view class="modatcontent
Order
">
<view class="orderCode">
<text class="code">订单编号:</text>
<text>{{orderInfo.orderCode}}</text>
...
...
tabWorkOrder/pages/createOrder/createOrder.js
View file @
b66ddb5
...
...
@@ -444,68 +444,7 @@ Page({
this
.
setGoodsTotal
(
goodsList
);
},
// staffDailyReportMerchantValid(userInfo) {
// // let { userInfo } = this.data
// return new Promise((resolve, reject) => {
// // console.log(userInfo, 'userInfo')
// api
// .staffDailyReportMerchantValid({
// // merchantId: userInfo.shopMerchantId
// merchantId: userInfo.shopMerchantId,
// yqMerchantId: userInfo.merchantId,
// staffUuid: userInfo.uuid,
// sceneType: 1
// })
// .then(res => {
// if (res.data) {
// // 获取当前日期
// let currentDate = new Date()
// // 获取上一天的日期
// let previousDate = new Date(currentDate)
// previousDate.setDate(currentDate.getDate() - 1)
// // toISOString 方法会丢失时区 导致与北京时间差八小时
// let hour = previousDate.getHours() + 8
// previousDate.setHours(hour)
// // 格式化日期为"yyyy-mm-dd"
// let formattedDate = previousDate.toISOString().split('T')[0]
// if (wx.__HAS_NOREPORT_MODAL || wx.__HAS_NOTLOGIN_MODAL) return false
// wx.__HAS_NOREPORT_MODAL = true
// wx.showModal({
// title: '日报提醒',
// content: '您有未填写的日报,请点击前往。',
// showCancel: false,
// // cancelText: '取消', // '取消
// cancelColor: '#292D33',
// confirmText: '前往填写',
// confirmColor: '#347BFF',
// success(res) {
// if (res.confirm) {
// wx.$router.go('tabWorkOrder.upgradeStaffDaily', {
// // reportDate: hasNeedReport.date
// reportDate: formattedDate
// })
// }
// },
// complete: () => {
// // 这个延迟的目的是为了避免短时间内重复弹出
// // 你要是没有这个需要也可以去掉,直接把标志位改成 false 就行
// setTimeout(() => {
// wx.__HAS_NOREPORT_MODAL = false
// }, 2000)
// }
// })
// // return false
// resolve(res.data)
// } else {
// resolve(res.data)
// }
// })
// .catch(err => {
// console.log(err)
// })
// })
// },
async
submit
(
i
)
{
// 校验是否填写昨日日报
...
...
@@ -1306,7 +1245,7 @@ Page({
let
{
code
,
message
,
data
}
=
result
;
// data.customer.customerName = res.customerName
code
==
0
&&
(
res
=
data
);
}
}
let
{
tipsProps
,
isAlreadyExistOrder
}
=
this
.
data
;
if
(
Object
.
keys
(
res
).
length
>
0
)
{
...
...
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