Commit 2f8aa8eb by zhangxw

评审确认内容修改

1 parent f06b9ec8
...@@ -212,10 +212,10 @@ Page({ ...@@ -212,10 +212,10 @@ Page({
} }
} }
const numericValue = parseFloat(cleanValue) const numericValue = parseFloat(cleanValue)
if (numericValue > 10000) { if (numericValue > 100000) {
cleanValue = '10000' cleanValue = '100000'
} else if (numericValue === 10000 && cleanValue.includes('.')) { } else if (numericValue === 100000 && cleanValue.includes('.')) {
cleanValue = '10000' cleanValue = '100000'
} }
const dotIndexAfterCheck = cleanValue.indexOf('.'); const dotIndexAfterCheck = cleanValue.indexOf('.');
if (dotIndexAfterCheck !== -1 && cleanValue.length > dotIndexAfterCheck + 3) { if (dotIndexAfterCheck !== -1 && cleanValue.length > dotIndexAfterCheck + 3) {
......
...@@ -253,10 +253,10 @@ Page({ ...@@ -253,10 +253,10 @@ Page({
} }
} }
const numericValue = parseFloat(cleanValue) const numericValue = parseFloat(cleanValue)
if (numericValue > 10000) { if (numericValue > 100000) {
cleanValue = '10000' cleanValue = '100000'
} else if (numericValue === 10000 && cleanValue.includes('.')) { } else if (numericValue === 100000 && cleanValue.includes('.')) {
cleanValue = '10000' cleanValue = '100000'
} }
const dotIndexAfterCheck = cleanValue.indexOf('.'); const dotIndexAfterCheck = cleanValue.indexOf('.');
if (dotIndexAfterCheck !== -1 && cleanValue.length > dotIndexAfterCheck + 3) { if (dotIndexAfterCheck !== -1 && cleanValue.length > dotIndexAfterCheck + 3) {
...@@ -300,7 +300,7 @@ Page({ ...@@ -300,7 +300,7 @@ Page({
// 提交 // 提交
handleConfirm() { handleConfirm() {
let { info, T1EndDateStr, isT1DateRange } = this.data let { info, T1EndDateStr, isT1DateRange } = this.data
if (isT1DateRange || info.submitCount >= 2) return if (isT1DateRange || info.submitCount >= 2 || !((info.totalGrossSalary ?? '') === '')) return
if (!((info.totalGrossSalary ?? '') === '')) { // 已出工资条 不能提交 if (!((info.totalGrossSalary ?? '') === '')) { // 已出工资条 不能提交
return wx.showModal({ return wx.showModal({
title: '提示', title: '提示',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!