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 985cd952
authored
Mar 08, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.35.1-0306' into SAAS-V4.37.0
2 parents
0214b5e3
a456c423
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
154 additions
and
92 deletions
api/api.js
components/CustomerInfo/CustomerInfo.js
config.js
packageEquity/api.js
packageEquity/carEquityApi.js
packageEquity/pages/TabBar/equityPage.js
tabIndex/api.js
tabIndex/pages/index/index.js
tabWorkOrder/pages/createOrder/createOrder.js
tabWorkOrder/pages/staffDaily/components/GlCell/GlCell.wxss
tabWorkOrder/pages/staffDaily/staffDaily.js
tabWorkOrder/pages/staffDaily/staffDaily.wxml
api/api.js
View file @
985cd95
...
@@ -195,7 +195,7 @@ module.exports = {
...
@@ -195,7 +195,7 @@ module.exports = {
logout
()
{
logout
()
{
return
api
.
post
(
'dj.api.smartcarlife.logout'
)
return
api
.
post
(
'dj.api.smartcarlife.logout'
)
},
},
// 分页获取场景值关联园区店数据
// 分页获取场景值关联园区店数据
getYqMerchantListPage
(
data
)
{
getYqMerchantListPage
(
data
)
{
return
api
.
post
(
'dj.api.scenemerchantref.listYqShopByRef.page'
,
data
)
return
api
.
post
(
'dj.api.scenemerchantref.listYqShopByRef.page'
,
data
)
...
@@ -206,8 +206,8 @@ module.exports = {
...
@@ -206,8 +206,8 @@ module.exports = {
return
api
.
post
(
'dj.api.scenemerchantref.listShop4sByRef.page'
,
data
)
return
api
.
post
(
'dj.api.scenemerchantref.listShop4sByRef.page'
,
data
)
},
},
/** 查询员工或园区店商户是否开启了工资绩效 */
/** 查询员工或园区店商户是否开启了工资绩效 */
isBusinessSchoolEnableCurrentUser
(
data
)
{
isBusinessSchoolEnableCurrentUser
(
data
)
{
return
api
.
post
(
'dj.api.businessSchool.isBusinessSchoolEnable.currentUser'
,
data
)
return
api
.
post
(
'dj.api.businessSchool.isBusinessSchoolEnable.currentUser'
,
data
)
},
},
...
@@ -225,5 +225,11 @@ module.exports = {
...
@@ -225,5 +225,11 @@ module.exports = {
/** 将当前门店的员工目标任务弹窗标记为已弹起过 */
/** 将当前门店的员工目标任务弹窗标记为已弹起过 */
setTaskDialog
(
data
)
{
setTaskDialog
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.staffTargetCheck.promptYes'
,
data
)
return
api
.
post
(
'dj.api.smartcarlife.staffTargetCheck.promptYes'
,
data
)
}
},
/**
* 获取客户档案列表
*/
getCustomerFileList
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.page'
,
data
)
},
}
}
components/CustomerInfo/CustomerInfo.js
View file @
985cd95
// components/CarBrands/CarBrands.js
// components/CarBrands/CarBrands.js
import
api
from
'../../api/api.js'
import
api
from
'../../api/api.js'
import
carLifeApi
from
'~/packageEquity/carEquityApi'
//
import carLifeApi from '~/packageEquity/carEquityApi'
let
isNum
,
num
,
y
,
time
let
isNum
,
num
,
y
,
time
Component
({
Component
({
...
@@ -45,8 +45,8 @@ Component({
...
@@ -45,8 +45,8 @@ Component({
isFirst
:
true
isFirst
:
true
},
},
pageLifetimes
:
{
pageLifetimes
:
{
show
:
function
()
{},
show
:
function
()
{
},
hide
:
function
()
{}
hide
:
function
()
{
}
},
},
/**
/**
* 组件的方法列表
* 组件的方法列表
...
@@ -72,17 +72,17 @@ Component({
...
@@ -72,17 +72,17 @@ Component({
let
customerList
=
[]
let
customerList
=
[]
//客户线索1.1 、2.1客户列表
//客户线索1.1 、2.1客户列表
wx
.
$util
.
showLoading
()
wx
.
$util
.
showLoading
()
if
(
apiType
==
2
)
carLifeA
pi
.
getCustomerFileList
({
if
(
apiType
==
2
)
a
pi
.
getCustomerFileList
({
currentPage
:
1
,
currentPage
:
1
,
merchantId
:
merchantId
||
userInfo
?.
shopMerchantId
,
merchantId
:
merchantId
||
userInfo
?.
shopMerchantId
,
pageSize
:
999999
,
pageSize
:
999999
,
search
:
keyword
,
search
:
keyword
,
}).
then
(({
code
,
data
})
=>
{
}).
then
(({
code
,
data
})
=>
{
wx
.
$util
.
hideLoading
()
wx
.
$util
.
hideLoading
()
if
(
code
==
0
&&
data
?.
list
.
length
)
{
if
(
code
==
0
&&
data
?.
list
.
length
)
{
data
.
list
.
map
(
item
=>
{
data
.
list
.
map
(
item
=>
{
customerList
.
push
({
customerList
.
push
({
customer
:
item
,
customer
:
item
,
carType
:
`
${
item
.
carBrand
||
''
}
-
${
item
.
carChildsBrandName
||
''
}
-
${
item
.
carSeriesName
||
''
}
`
carType
:
`
${
item
.
carBrand
||
''
}
-
${
item
.
carChildsBrandName
||
''
}
-
${
item
.
carSeriesName
||
''
}
`
})
})
})
})
...
...
config.js
View file @
985cd95
...
@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
...
@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 4预发布
* 5cdptest
* 5cdptest
*/
*/
let
index
=
3
let
index
=
2
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
...
...
packageEquity/api.js
View file @
985cd95
...
@@ -160,5 +160,10 @@ module.exports = {
...
@@ -160,5 +160,10 @@ module.exports = {
/** 查询当周员工日报是否填写列表 */
/** 查询当周员工日报是否填写列表 */
staffDailyReportDetailWeeklyList
(
data
)
{
staffDailyReportDetailWeeklyList
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.staff.daily.report.weekly.list'
,
data
)
return
api
.
post
(
'dj.api.smartcarlife.staff.daily.report.weekly.list'
,
data
)
},
/** 查询该店员工日报是否开启 */
staffDailyReportMerchantValid
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.staff.daily.report.merchant.valid'
,
data
)
}
}
}
}
packageEquity/carEquityApi.js
View file @
985cd95
...
@@ -89,10 +89,5 @@ export default {
...
@@ -89,10 +89,5 @@ export default {
getCustomerClueStatistics
(
data
)
{
getCustomerClueStatistics
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.customer.clue.statistics.status'
,
data
)
return
api
.
post
(
'dj.api.smartcarlife.customer.clue.statistics.status'
,
data
)
},
},
/**
* 获取客户档案列表
*/
getCustomerFileList
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.page'
,
data
)
},
}
}
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/TabBar/equityPage.js
View file @
985cd95
// pages/equity/index.js
// pages/equity/index.js
import
{
get4SStoreList
}
from
'~/store/index'
import
{
get4SStoreList
}
from
'~/store/index'
import
{
merchantMode
,
waitinputorder
,
staffDailyReportDetailWeeklyList
,
quotationRecording
,
isBusinessSchoolEnableCurrentUser
}
from
'../../api'
import
{
merchantMode
,
waitinputorder
,
staffDailyReportDetailWeeklyList
,
staffDailyReportMerchantValid
,
quotationRecording
,
isBusinessSchoolEnableCurrentUser
}
from
'../../api'
import
{
getBusinessSchoolScene
}
from
'~/store/index'
import
{
getBusinessSchoolScene
}
from
'~/store/index'
const
app
=
getApp
()
const
app
=
getApp
()
let
time
=
null
let
time
=
null
...
@@ -76,9 +76,27 @@ Page({
...
@@ -76,9 +76,27 @@ Page({
tipsProps
:
false
tipsProps
:
false
})
})
},
},
staffDailyReport
(
userInfo
)
{
staffDailyReportMerchantValid
(
userInfo
)
{
// let { isStaff } = this.data
// let { userInfo } = this.data
// if (isStaff) {
return
new
Promise
((
resolve
,
reject
)
=>
{
console
.
log
(
userInfo
,
'userInfo'
)
staffDailyReportMerchantValid
({
merchantId
:
userInfo
.
shopMerchantId
})
.
then
(
res
=>
{
console
.
log
(
res
,
'staffDailyReportMerchantValid'
)
resolve
(
res
.
data
)
})
.
catch
(
err
=>
{
console
.
log
(
err
)
})
})
},
async
staffDailyReport
(
userInfo
)
{
let
merchantStaffDailyReportMerchantValid
=
await
this
.
staffDailyReportMerchantValid
(
userInfo
)
// 没有开启就不走下一步逻辑
if
(
!
merchantStaffDailyReportMerchantValid
)
return
false
// 获取当前日期
// 获取当前日期
const
{
merchantId
,
merchantName
,
name
,
uuid
,
shopMerchantId
,
shopMerchantName
}
=
userInfo
const
{
merchantId
,
merchantName
,
name
,
uuid
,
shopMerchantId
,
shopMerchantName
}
=
userInfo
let
timeBean
=
util
.
getWeekDayList
(
0
)
let
timeBean
=
util
.
getWeekDayList
(
0
)
...
@@ -93,7 +111,7 @@ Page({
...
@@ -93,7 +111,7 @@ Page({
merchantName
:
shopMerchantName
,
merchantName
:
shopMerchantName
,
...
timeBean
...
timeBean
}
}
console
.
log
(
params
,
'params'
)
;
console
.
log
(
params
,
'params'
)
staffDailyReportDetailWeeklyList
(
params
).
then
(
res
=>
{
staffDailyReportDetailWeeklyList
(
params
).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
...
@@ -124,13 +142,13 @@ Page({
...
@@ -124,13 +142,13 @@ Page({
if
(
hasNeedReport
)
{
if
(
hasNeedReport
)
{
// if (num <= 2) {
// if (num <= 2) {
// wx.$util.showToast('驻店日报未填写,请及时填写')
// wx.$util.showToast('驻店日报未填写,请及时填写')
if
(
wx
.
__HAS_NOREPORT_MODAL
)
return
false
if
(
wx
.
__HAS_NOREPORT_MODAL
||
wx
.
__HAS_NOTLOGIN_MODAL
)
return
false
wx
.
__HAS_NOREPORT_MODAL
=
true
wx
.
__HAS_NOREPORT_MODAL
=
true
wx
.
showModal
({
wx
.
showModal
({
title
:
'日报提醒'
,
title
:
'日报提醒'
,
content
:
'您有未填写的日报,请点击前往。'
,
content
:
'您有未填写的日报,请点击前往。'
,
showCancel
:
tru
e
,
showCancel
:
fals
e
,
cancelText
:
'取消'
,
// '取消
//
cancelText: '取消', // '取消
cancelColor
:
'#292D33'
,
cancelColor
:
'#292D33'
,
confirmText
:
'前往填写'
,
confirmText
:
'前往填写'
,
confirmColor
:
'#347BFF'
,
confirmColor
:
'#347BFF'
,
...
@@ -168,10 +186,6 @@ Page({
...
@@ -168,10 +186,6 @@ Page({
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
}
}
})
})
// this.setData({
// timeBean: util.getWeekDayList(this.data.selectWeek)
// })
// }
},
},
getMerchant4SMode
()
{
getMerchant4SMode
()
{
let
storeInfo
=
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{}
let
storeInfo
=
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{}
...
...
tabIndex/api.js
View file @
985cd95
...
@@ -53,5 +53,8 @@ module.exports = {
...
@@ -53,5 +53,8 @@ module.exports = {
staffDailyReportDetailWeeklyList
(
data
)
{
staffDailyReportDetailWeeklyList
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.staff.daily.report.weekly.list'
,
data
)
return
api
.
post
(
'dj.api.smartcarlife.staff.daily.report.weekly.list'
,
data
)
},
},
/** 查询该店员工日报是否开启 */
staffDailyReportMerchantValid
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.staff.daily.report.merchant.valid'
,
data
)
}
}
}
tabIndex/pages/index/index.js
View file @
985cd95
...
@@ -183,7 +183,7 @@ Page({
...
@@ -183,7 +183,7 @@ Page({
merchantRange
merchantRange
})
})
})
})
.
catch
(
err
=>
{})
.
catch
(
err
=>
{
})
},
},
changePicker
(
e
,
value
)
{
changePicker
(
e
,
value
)
{
console
.
log
(
e
)
console
.
log
(
e
)
...
@@ -217,14 +217,8 @@ Page({
...
@@ -217,14 +217,8 @@ Page({
}
}
},
},
jump
(
e
)
{
jump
(
e
)
{
let
{
let
{
item
,
type
}
=
e
.
currentTarget
.
dataset
item
,
let
{
userInfo
,
taskId
}
=
this
.
data
type
}
=
e
.
currentTarget
.
dataset
let
{
userInfo
,
taskId
}
=
this
.
data
// 工资绩效
// 工资绩效
if
(
item
.
name
==
'工资绩效'
)
{
if
(
item
.
name
==
'工资绩效'
)
{
return
wx
.
$router
.
go
(
'packageEquity.collegeScene'
,
{
return
wx
.
$router
.
go
(
'packageEquity.collegeScene'
,
{
...
@@ -233,7 +227,7 @@ Page({
...
@@ -233,7 +227,7 @@ Page({
})
})
}
}
if
(
item
.
name
==
'驻店目标'
)
{
if
(
item
.
name
==
'驻店目标'
)
{
return
wx
.
$router
.
go
(
item
.
url
,
{
id
:
taskId
})
return
wx
.
$router
.
go
(
item
.
url
,
{
id
:
taskId
})
}
}
// 判断是不是门店员工
// 判断是不是门店员工
if
(
userInfo
?.
merchantType
&&
!
userInfo
.
isSuper
&&
type
==
2
)
{
if
(
userInfo
?.
merchantType
&&
!
userInfo
.
isSuper
&&
type
==
2
)
{
...
@@ -392,7 +386,7 @@ Page({
...
@@ -392,7 +386,7 @@ Page({
})
})
}
}
})
})
.
catch
(
err
=>
{})
.
catch
(
err
=>
{
})
},
},
getMerchantCouponList
()
{
getMerchantCouponList
()
{
...
@@ -500,7 +494,7 @@ Page({
...
@@ -500,7 +494,7 @@ Page({
})
})
}
}
})
})
.
catch
(
err
=>
{})
.
catch
(
err
=>
{
})
},
},
getUserStat
(
userInfo
)
{
getUserStat
(
userInfo
)
{
api
api
...
@@ -513,7 +507,7 @@ Page({
...
@@ -513,7 +507,7 @@ Page({
})
})
}
}
})
})
.
catch
(
err
=>
{})
.
catch
(
err
=>
{
})
},
},
totalListSet
()
{
totalListSet
()
{
let
{
userInfo
}
=
this
.
data
let
{
userInfo
}
=
this
.
data
...
@@ -583,6 +577,12 @@ Page({
...
@@ -583,6 +577,12 @@ Page({
}
}
}
}
},
},
checkDailyRecport
()
{
let
{
tabIndex
}
=
this
.
data
const
isStaff
=
app
.
globalData
.
isStaff
// 如果是员工 判读是否要填写日报
isStaff
&&
this
.
staffDailyReport
(
wx
.
$util
.
getUserInfo
())
},
onRoute
(
options
)
{
onRoute
(
options
)
{
options
&&
this
.
checkShowOrderPop
(
options
)
options
&&
this
.
checkShowOrderPop
(
options
)
// options && options.resetStoreList && this.get4SStoreList()
// options && options.resetStoreList && this.get4SStoreList()
...
@@ -595,6 +595,7 @@ Page({
...
@@ -595,6 +595,7 @@ Page({
...options?.pageParams
...options?.pageParams
})
})
}
}
this.checkDailyRecport()
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
...
@@ -621,41 +622,42 @@ Page({
...
@@ -621,41 +622,42 @@ Page({
getStaffTargetTask() {
getStaffTargetTask() {
let userInfo = wx.$util.getUserInfo()
let userInfo = wx.$util.getUserInfo()
let { menu } = this.data
let { menu } = this.data
commonApi.getStaffTargetTaskApi({
commonApi
sceneType: 1,
.getStaffTargetTaskApi({
merchantId: userInfo?.default4SStoreInfo?.merchantId
sceneType: 1,
}).then(res => {
merchantId: userInfo?.default4SStoreInfo?.merchantId
let { code, data, message } = res
})
if (code == 0) {
.then(res => {
// 切换门店 需删除入口 重新请求判断显示入口
let { code, data, message } = res
let index = menu.findIndex(v => v.name == '驻店目标')
if (code == 0) {
if (index > -1) menu.splice(index, 1)
// 切换门店 需删除入口 重新请求判断显示入口
if ((data?.length) && menu.every(item => item.name != '驻店目标')) {
let index = menu.findIndex(v => v.name == '驻店目标')
menu.push({
if (index > -1) menu.splice(index, 1)
name: '驻店目标',
if (data?.length && menu.every(item => item.name != '驻店目标')) {
url: 'packageEquity.residentTarget',
menu.push({
icon: 'resident_target',
name: '驻店目标',
noRead: data[0]?.readFlag == 'N'
url: 'packageEquity.residentTarget',
})
icon: 'resident_target',
}
noRead: data[0]?.readFlag == 'N'
this.setData({
})
taskId: data[0]?.id,
}
menu
})
// 当前周期未弹起过查看任务明细提示弹窗
if (data[0]?.promptFlag == 'N') {
this.setData({
this.setData({
showTaskDialog: true,
taskId: data[0]?.id,
taskInfo: data[0]
menu
})
// 将当前周期的员工目标任务弹窗标记为已弹起
commonApi.setTaskDialog({id: data[0]?.id}).then(() => {
})
})
// 当前周期未弹起过查看任务明细提示弹窗
if (data[0]?.promptFlag == 'N') {
this.setData({
showTaskDialog: true,
taskInfo: data[0]
})
// 将当前周期的员工目标任务弹窗标记为已弹起
commonApi.setTaskDialog({ id: data[0]?.id }).then(() => { })
}
} else {
wx.$util.showToast(message)
}
}
} else {
})
wx.$util.showToast(message)
}
})
},
},
getIsBusinessSchoolEnableCurrentUser() {
getIsBusinessSchoolEnableCurrentUser() {
getBusinessSchoolScene({}).then(res => {
getBusinessSchoolScene({}).then(res => {
...
@@ -673,8 +675,28 @@ Page({
...
@@ -673,8 +675,28 @@ Page({
}
}
})
})
},
},
staffDailyReportMerchantValid(userInfo) {
staffDailyReport(userInfo) {
// let { userInfo } = this.data
return new Promise((resolve, reject) => {
console.log(userInfo, 'userInfo')
api.staffDailyReportMerchantValid({
merchantId: userInfo.shopMerchantId
})
.then(res => {
console.log(res, 'staffDailyReportMerchantValid')
resolve(res.data)
})
.catch(err => {
console.log(err)
})
})
},
async staffDailyReport(userInfo) {
// debugger
let merchantStaffDailyReportMerchantValid = await this.staffDailyReportMerchantValid(userInfo)
console.log(merchantStaffDailyReportMerchantValid, 'merchantStaffDailyReportMerchantValid');
// 没有开启就不走下一步逻辑
if (!merchantStaffDailyReportMerchantValid) return false
let { isStaff } = this.data
let { isStaff } = this.data
// 获取当前日期
// 获取当前日期
if (isStaff) {
if (isStaff) {
...
@@ -720,13 +742,13 @@ Page({
...
@@ -720,13 +742,13 @@ Page({
if (hasNeedReport && isStaff) {
if (hasNeedReport && isStaff) {
// if (num <= 2) {
// if (num <= 2) {
// wx.$util.showToast('驻店日报未填写,请及时填写')
// wx.$util.showToast('驻店日报未填写,请及时填写')
if (wx.__HAS_NOREPORT_MODAL) return false
if (wx.__HAS_NOREPORT_MODAL
|| wx.__HAS_NOTLOGIN_MODAL
) return false
wx.__HAS_NOREPORT_MODAL = true
wx.__HAS_NOREPORT_MODAL = true
wx.showModal({
wx.showModal({
title: '日报提醒',
title: '日报提醒',
content: '您有未填写的日报,请点击前往。',
content: '您有未填写的日报,请点击前往。',
showCancel:
tru
e,
showCancel:
fals
e,
cancelText: '取消', // '取消
//
cancelText: '取消', // '取消
cancelColor: '#292D33',
cancelColor: '#292D33',
confirmText: '前往填写',
confirmText: '前往填写',
confirmColor: '#347BFF',
confirmColor: '#347BFF',
...
@@ -953,14 +975,14 @@ Page({
...
@@ -953,14 +975,14 @@ Page({
/**
/**
* 页面相关事件处理函数--监听用户下拉动作
* 页面相关事件处理函数--监听用户下拉动作
*/
*/
onPullDownRefresh: function () {},
onPullDownRefresh: function () {
},
/**
/**
* 页面上拉触底事件的处理函数
* 页面上拉触底事件的处理函数
*/
*/
onReachBottom: function () {},
onReachBottom: function () {
},
/**
/**
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage: function () {}
onShareAppMessage: function () {
}
})
})
tabWorkOrder/pages/createOrder/createOrder.js
View file @
985cd95
...
@@ -406,7 +406,8 @@ Page({
...
@@ -406,7 +406,8 @@ Page({
orderObj
,
orderObj
,
scene
,
scene
,
isErrorOrder
,
isErrorOrder
,
isAlreadyExistOrder
isAlreadyExistOrder
,
submitStatus
}
=
this
.
data
}
=
this
.
data
orderObj
=
wx
.
$util
.
deepClone
(
orderObj
)
orderObj
=
wx
.
$util
.
deepClone
(
orderObj
)
// 如果是错单补录 禁用掉保存功能 或待跟进订单/预约订单 禁用建档
// 如果是错单补录 禁用掉保存功能 或待跟进订单/预约订单 禁用建档
...
@@ -478,8 +479,12 @@ Page({
...
@@ -478,8 +479,12 @@ Page({
// return this.showToast('商品无配置部位属性,请联系总部运营配置上架')
// return this.showToast('商品无配置部位属性,请联系总部运营配置上架')
// }
// }
// }
// }
// 请求中就不给再重复提交了
if
(
submitStatus
)
return
this
.
showLoading
(
'提交中...'
)
this
.
showLoading
(
'提交中...'
)
this
.
setData
({
submitStatus
:
true
})
let
apiName
=
save
&&
!
isErrorOrder
?
'createPrerecordedOrder'
:
isErrorOrder
?
'correctionOrder'
:
'createWithPay'
let
apiName
=
save
&&
!
isErrorOrder
?
'createPrerecordedOrder'
:
isErrorOrder
?
'correctionOrder'
:
'createWithPay'
// 太阳膜下单入口
// 太阳膜下单入口
submitObj
.
filmOrder
=
0
submitObj
.
filmOrder
=
0
...
@@ -523,6 +528,10 @@ Page({
...
@@ -523,6 +528,10 @@ Page({
}
else
{
}
else
{
this
.
showToast
(
message
)
this
.
showToast
(
message
)
}
}
}).
finally
(()
=>
{
this
.
setData
({
submitStatus
:
false
})
})
})
},
},
checkGoods
(
save
,
subOrderList
,
priceDisabled
,
goodsList
,
orderObj
)
{
checkGoods
(
save
,
subOrderList
,
priceDisabled
,
goodsList
,
orderObj
)
{
...
...
tabWorkOrder/pages/staffDaily/components/GlCell/GlCell.wxss
View file @
985cd95
...
@@ -129,7 +129,15 @@
...
@@ -129,7 +129,15 @@
height: var(--fontSize26);
height: var(--fontSize26);
margin: 0 !important;
margin: 0 !important;
}
}
.headerSlot {
.headerSlot {
font-size: var(--fontSize28);
max-width: 150rpx;
color: #347BFF;
white-space: nowrap;
/* 不换行 */
overflow: hidden;
/* 控制溢出部分的显示与否 */
text-overflow: ellipsis;
/* 添加省略号 */
font-size: 28rpx;
color: #347BFF;
}
}
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/pages/staffDaily/staffDaily.js
View file @
985cd95
...
@@ -7,7 +7,7 @@ import { getYQInfo } from '~/store/index'
...
@@ -7,7 +7,7 @@ import { getYQInfo } from '~/store/index'
import
comApi
from
'~/api/api'
import
comApi
from
'~/api/api'
let
toastList
=
{
let
toastList
=
{
deliveryCount
:
'新车交付数不能为空'
,
deliveryCount
:
'新车交付数不能为空'
,
filmToShopCount
:
'到店流量数(太阳膜)不能为空'
,
//
filmToShopCount: '到店流量数(太阳膜)不能为空',
equityToShopCount
:
'到店流量数(会员权益)不能为空'
equityToShopCount
:
'到店流量数(会员权益)不能为空'
}
}
const
app
=
getApp
()
const
app
=
getApp
()
...
@@ -38,7 +38,7 @@ Page({
...
@@ -38,7 +38,7 @@ Page({
formData
,
formData
,
orderObj
:
{
orderObj
:
{
deliveryCount
:
''
,
deliveryCount
:
''
,
filmToShopCount
:
''
,
//
filmToShopCount: '',
equityToShopCount
:
''
,
equityToShopCount
:
''
,
remark
:
''
remark
:
''
},
},
...
@@ -118,7 +118,7 @@ Page({
...
@@ -118,7 +118,7 @@ Page({
},
},
checkRequired
(
obj
)
{
checkRequired
(
obj
)
{
let
{
role
}
=
this
.
data
let
{
role
}
=
this
.
data
let
target
=
[
'deliveryCount'
,
'
filmToShopCount'
,
'
equityToShopCount'
]
let
target
=
[
'deliveryCount'
,
'equityToShopCount'
]
if
(
role
==
'super'
)
{
if
(
role
==
'super'
)
{
target
=
[
'deliveryCount'
]
target
=
[
'deliveryCount'
]
}
}
...
@@ -362,7 +362,7 @@ Page({
...
@@ -362,7 +362,7 @@ Page({
let
{
code
,
data
,
message
}
=
res
let
{
code
,
data
,
message
}
=
res
// console.log(data, 'data')
// console.log(data, 'data')
if
(
code
==
0
)
{
if
(
code
==
0
)
{
let
{
trafficProblemList
,
skillProblemList
,
packageProblemList
,
deliveryCount
,
filmToShopCount
,
equityToShopCount
,
remark
}
=
data
let
{
trafficProblemList
,
skillProblemList
,
packageProblemList
,
deliveryCount
,
equityToShopCount
,
remark
}
=
data
// trafficProblemList = [1, 2]
// trafficProblemList = [1, 2]
// if (trafficProblemList) {
// if (trafficProblemList) {
trafficProblemList
=
trafficProblemList
||
[]
trafficProblemList
=
trafficProblemList
||
[]
...
@@ -427,7 +427,7 @@ Page({
...
@@ -427,7 +427,7 @@ Page({
[
'orderObj.isDateWithin7Days'
]:
util
.
isDateWithin7Days
(
reportDate
),
[
'orderObj.isDateWithin7Days'
]:
util
.
isDateWithin7Days
(
reportDate
),
[
'orderObj.isDateWithin60Days'
]:
util
.
isDateWithin60Days
(
reportDate
),
[
'orderObj.isDateWithin60Days'
]:
util
.
isDateWithin60Days
(
reportDate
),
[
'orderObj.deliveryCount'
]:
deliveryCount
,
[
'orderObj.deliveryCount'
]:
deliveryCount
,
[
'orderObj.filmToShopCount'
]:
filmToShopCount
,
//
['orderObj.filmToShopCount']: filmToShopCount,
[
'orderObj.equityToShopCount'
]:
equityToShopCount
,
[
'orderObj.equityToShopCount'
]:
equityToShopCount
,
[
'orderObj.remark'
]:
remark
,
[
'orderObj.remark'
]:
remark
,
approvalList
:
data
.
approvalList
||
[]
approvalList
:
data
.
approvalList
||
[]
...
...
tabWorkOrder/pages/staffDaily/staffDaily.wxml
View file @
985cd95
This diff is collapsed.
Click to expand it.
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