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 2dd9001d
authored
Jan 14, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bugfix
1 parent
ee4ccb6d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
7 deletions
tabWorkOrder/pages/staffDaily/staffDaily.js
tabWorkOrder/pages/upgradeStaffDaily/upgradeStaffDaily.js
tabWorkOrder/pages/staffDaily/staffDaily.js
View file @
2dd9001
...
@@ -367,6 +367,7 @@ Page({
...
@@ -367,6 +367,7 @@ Page({
// this.setData({
// this.setData({
// [`orderObj.${name}`]: value
// [`orderObj.${name}`]: value
// })
// })
value
=
value
.
replace
(
/
\D
/g
,
''
);
// \D 匹配非数字字符
let
valueName
=
`carBandList[
${
index
}
].
${
name
}
`
let
valueName
=
`carBandList[
${
index
}
].
${
name
}
`
console
.
log
(
valueName
)
console
.
log
(
valueName
)
this
.
setData
({
this
.
setData
({
...
@@ -537,9 +538,9 @@ Page({
...
@@ -537,9 +538,9 @@ Page({
if
(
code
==
0
)
{
if
(
code
==
0
)
{
let
{
let
{
brandDataList
,
brandDataList
,
deliveryCount
,
//
deliveryCount,
equityToShopCount
,
//
equityToShopCount,
afterSaleEquityToShopCount
,
//
afterSaleEquityToShopCount,
remark
remark
}
=
data
}
=
data
if
(
brandDataList
&&
brandDataList
.
length
)
{
if
(
brandDataList
&&
brandDataList
.
length
)
{
...
@@ -552,6 +553,15 @@ Page({
...
@@ -552,6 +553,15 @@ Page({
}
}
return
item
return
item
})
})
}
else
{
carBandList
=
carBandList
.
map
(
item
=>
{
return
{
...
item
,
deliveryCount
:
''
,
equityToShopCount
:
''
,
afterSaleEquityToShopCount
:
''
};
})
}
}
console
.
log
(
carBandList
,
'carBandList'
)
console
.
log
(
carBandList
,
'carBandList'
)
// trafficProblemList = trafficProblemList || []
// trafficProblemList = trafficProblemList || []
...
@@ -642,11 +652,11 @@ Page({
...
@@ -642,11 +652,11 @@ Page({
util
.
isDateWithin7Days
(
reportDate
),
util
.
isDateWithin7Days
(
reportDate
),
[
'orderObj.isDateWithin60Days'
]:
[
'orderObj.isDateWithin60Days'
]:
util
.
isDateWithin60Days
(
reportDate
),
util
.
isDateWithin60Days
(
reportDate
),
[
'orderObj.deliveryCount'
]:
deliveryCount
,
// ['orderObj.filmToShopCount']: filmToShopCount,
// ['orderObj.filmToShopCount']: filmToShopCount,
[
'orderObj.afterSaleEquityToShopCount'
]:
// ['orderObj.deliveryCount']: deliveryCount,
afterSaleEquityToShopCount
,
// ['orderObj.afterSaleEquityToShopCount']:
[
'orderObj.equityToShopCount'
]:
equityToShopCount
,
// afterSaleEquityToShopCount,
// ['orderObj.equityToShopCount']: equityToShopCount,
[
'orderObj.remark'
]:
remark
,
[
'orderObj.remark'
]:
remark
,
approvalList
:
data
.
approvalList
||
[],
approvalList
:
data
.
approvalList
||
[],
currentWordNumber
:
data
?.
remark
?.
length
currentWordNumber
:
data
?.
remark
?.
length
...
...
tabWorkOrder/pages/upgradeStaffDaily/upgradeStaffDaily.js
View file @
2dd9001
...
@@ -325,6 +325,7 @@ Page({
...
@@ -325,6 +325,7 @@ Page({
// value = wx.$util.numberFixedDigit(value)
// value = wx.$util.numberFixedDigit(value)
// value = parseFloat(value) > 999999.99 ? 999999.99 : value
// value = parseFloat(value) > 999999.99 ? 999999.99 : value
// }
// }
value
=
value
.
replace
(
/
\D
/g
,
''
);
// \D 匹配非数字字符
let
valueName
=
`carBandList[
${
index
}
].
${
name
}
`
let
valueName
=
`carBandList[
${
index
}
].
${
name
}
`
console
.
log
(
valueName
);
console
.
log
(
valueName
);
this
.
setData
({
this
.
setData
({
...
@@ -483,6 +484,14 @@ Page({
...
@@ -483,6 +484,14 @@ Page({
}
}
return
item
;
return
item
;
})
})
}
else
{
carBandList
=
carBandList
.
map
(
item
=>
{
return
{
...
item
,
toShopFilmCount
:
''
,
deliveryCount
:
''
,
};
})
}
}
// skillProblemList = skillProblemList || []
// skillProblemList = skillProblemList || []
// formData.forEach(element => {
// formData.forEach(element => {
...
...
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