diff --git a/js/car_basic/child/framework_contract_edit_form.js b/js/car_basic/child/framework_contract_edit_form.js index 34698d1..fc542e9 100644 --- a/js/car_basic/child/framework_contract_edit_form.js +++ b/js/car_basic/child/framework_contract_edit_form.js @@ -545,9 +545,9 @@ function submitApply(data) { if (parseInt(carList[0].glsKs) !== 0) { return layer.msg('运输车辆-供应商-' + dataList[i].supName + ':公里数初始值未从0开始', { icon: 7 }); } - if ((parseInt(ll.glsJs) + 1) !== parseInt(ll2.glsKs)) { - return layer.msg('运输车辆-供应商-' + dataList[i].supName + ':公里数范围设置有误,请仔细检查数据', { icon: 7 }); - } + // if ((parseInt(ll.glsJs) + 1) !== parseInt(ll2.glsKs)) { + // return layer.msg('运输车辆-供应商-' + dataList[i].supName + ':公里数范围设置有误,请仔细检查数据', { icon: 7 }); + // } } else { if (parseInt(ll.glsKs) !== 0) { return layer.msg('运输车辆-供应商-' + dataList[i].supName + ':公里数初始值未从0开始', { icon: 7 }); @@ -574,9 +574,9 @@ function submitApply(data) { if (parseInt(outList[0].glsStart) !== 0) { return layer.msg('吊车-供应商-' + dataList[i].supName + ':公里数初始值未从0开始', { icon: 7 }); } - if ((parseInt(ll.glsEnd) + 1) !== parseInt(ll2.glsStart)) { - return layer.msg('吊车-供应商-' + dataList[i].supName + ':公里数范围设置有误,请仔细检查数据', { icon: 7 }); - } + // if ((parseInt(ll.glsEnd) + 1) !== parseInt(ll2.glsStart)) { + // return layer.msg('吊车-供应商-' + dataList[i].supName + ':公里数范围设置有误,请仔细检查数据', { icon: 7 }); + // } } else { if (parseInt(ll.glsStart) !== 0) { return layer.msg('吊车-供应商-' + dataList[i].supName + ':公里数初始值未从0开始', { icon: 7 }); diff --git a/js/car_basic/child/framework_contract_edit_oper.js b/js/car_basic/child/framework_contract_edit_oper.js index e7d7d8f..5b9a280 100644 --- a/js/car_basic/child/framework_contract_edit_oper.js +++ b/js/car_basic/child/framework_contract_edit_oper.js @@ -101,10 +101,10 @@ function checkValue2(that, type) { $(that).val(''); return layer.msg('请先将上一行的公里数填写完整', { icon: 5 }) } - if ((parseInt(value) <= parseInt(num2)) || parseInt(value) !== (parseInt(num2) + 1)) { - $(that).val(parseInt(num2) + 1); - return layer.msg('当前行前置公里数只能从' + (parseInt(num2) + 1) + '开始!', { icon: 5 }) - } + // if ((parseInt(value) <= parseInt(num2)) || parseInt(value) !== (parseInt(num2) + 1)) { + // $(that).val(parseInt(num2) + 1); + // return layer.msg('当前行前置公里数只能从' + (parseInt(num2) + 1) + '开始!', { icon: 5 }) + // } } } else if (type === 2) { // 公里数2 const regex = /^\s*\d+\s*$/; @@ -118,23 +118,23 @@ function checkValue2(that, type) { $(that).val(''); return layer.msg('请先填写当前行的前置公里数!', { icon: 5 }) } - if (parseInt(index) === 1) { - if (parseInt(value) <= parseInt(num)) { - $(that).val(''); - return layer.msg('第一行后置公里数要大于前置公里数!', { icon: 5 }) - } - } else { - if (parseInt(value) < parseInt(num)) { - $(that).val(''); - return layer.msg('后置公里数要大于等于前置公里数!', { icon: 5 }) - } - } + // if (parseInt(index) === 1) { + // if (parseInt(value) <= parseInt(num)) { + // $(that).val(''); + // return layer.msg('第一行后置公里数要大于前置公里数!', { icon: 5 }) + // } + // } else { + // if (parseInt(value) < parseInt(num)) { + // $(that).val(''); + // return layer.msg('后置公里数要大于等于前置公里数!', { icon: 5 }) + // } + // } } else if (type === 3) { // 单项基准费用(元/吨*公里 - const regex = /^(?:(?:[1-9]\d{0,3}(?:\.\d{1,3})?)|(?:0\.(?:00[1-9]|0[1-9]\d|[1-9]\d{2}))|10000(?:\.0{1,3})?)$/; - if (!regex.test(value) && value) { - $(that).val(''); - return layer.msg('单项基准费用(元/吨*公里)范围在(必须大于0,小于等于10000),请重新输入!', { icon: 5 }) - } + // const regex = /^(?:(?:[1-9]\d{0,3}(?:\.\d{1,3})?)|(?:0\.(?:00[1-9]|0[1-9]\d|[1-9]\d{2}))|10000(?:\.0{1,3})?)$/; + // if (!regex.test(value) && value) { + // $(that).val(''); + // return layer.msg('单项基准费用(元/吨*公里)范围在(必须大于0,小于等于10000),请重新输入!', { icon: 5 }) + // } if (!value) { $(that).parents('td').next().next().html('0'); } else { @@ -458,10 +458,10 @@ function addCraneTable(cjId, isUse) { function checkValue3(that, type) { let value = $(that).val(); if (type === 1) { // 单项基准费用零星租赁(元/天/台) - if (!isValidNumber(value) && value) { - $(that).val(''); - return layer.msg('单项基准费用零星租赁必须大于0小于等于10000000!', { icon: 5 }) - } + // if (!isValidNumber(value) && value) { + // $(that).val(''); + // return layer.msg('单项基准费用零星租赁必须大于0小于等于10000000!', { icon: 5 }) + // } if (!value) { $(that).parents('td').next().next().next().html('0'); } else { @@ -472,10 +472,10 @@ function checkValue3(that, type) { } } } else if (type === 2) { // // 单项基准费用包月租赁(元/月/台) - if (!isValidNumber(value) && value) { - $(that).val(''); - return layer.msg('单项基准费用包月租赁必须大于0小于等于10000000!', { icon: 5 }) - } + // if (!isValidNumber(value) && value) { + // $(that).val(''); + // return layer.msg('单项基准费用包月租赁必须大于0小于等于10000000!', { icon: 5 }) + // } if (!value) { $(that).parents('td').next().next().next().html('0'); } else { diff --git a/js/car_basic/child/framework_contract_form.js b/js/car_basic/child/framework_contract_form.js index cc37c0a..2f7faee 100644 --- a/js/car_basic/child/framework_contract_form.js +++ b/js/car_basic/child/framework_contract_form.js @@ -365,9 +365,9 @@ function submitApply(data) { if (parseInt(carList[0].glsKs) !== 0) { return layer.msg('运输车辆-供应商-' + dataList[i].supName + ':公里数初始值未从0开始', { icon: 7 }); } - if ((parseInt(ll.glsJs) + 1) !== parseInt(ll2.glsKs)) { - return layer.msg('运输车辆-供应商-' + dataList[i].supName + ':公里数范围设置有误,请仔细检查数据', { icon: 7 }); - } + // if ((parseInt(ll.glsJs) + 1) !== parseInt(ll2.glsKs)) { + // return layer.msg('运输车辆-供应商-' + dataList[i].supName + ':公里数范围设置有误,请仔细检查数据', { icon: 7 }); + // } } else { if (parseInt(ll.glsKs) !== 0) { return layer.msg('运输车辆-供应商-' + dataList[i].supName + ':公里数初始值未从0开始', { icon: 7 }); @@ -395,9 +395,9 @@ function submitApply(data) { if (parseInt(outList[0].glsStart) !== 0) { return layer.msg('吊车-供应商-' + dataList[i].supName + ':公里数初始值未从0开始', { icon: 7 }); } - if ((parseInt(ll.glsEnd) + 1) !== parseInt(ll2.glsStart)) { - return layer.msg('吊车-供应商-' + dataList[i].supName + ':公里数范围设置有误,请仔细检查数据', { icon: 7 }); - } + // if ((parseInt(ll.glsEnd) + 1) !== parseInt(ll2.glsStart)) { + // return layer.msg('吊车-供应商-' + dataList[i].supName + ':公里数范围设置有误,请仔细检查数据', { icon: 7 }); + // } } else { if (parseInt(ll.glsStart) !== 0) { return layer.msg('吊车-供应商-' + dataList[i].supName + ':公里数初始值未从0开始', { icon: 7 }); diff --git a/js/car_basic/child/framework_contract_oper.js b/js/car_basic/child/framework_contract_oper.js index e3dccac..c08cecf 100644 --- a/js/car_basic/child/framework_contract_oper.js +++ b/js/car_basic/child/framework_contract_oper.js @@ -96,10 +96,10 @@ function checkValue2(that, type) { $(that).val(''); return layer.msg('请先将上一行的公里数填写完整', { icon: 5 }) } - if ((parseInt(value) <= parseInt(num2)) || parseInt(value) !== (parseInt(num2) + 1)) { - $(that).val(parseInt(num2) + 1); - return layer.msg('当前行前置公里数只能从' + (parseInt(num2) + 1) + '开始!', { icon: 5 }) - } + // if ((parseInt(value) <= parseInt(num2)) || parseInt(value) !== (parseInt(num2) + 1)) { + // $(that).val(parseInt(num2) + 1); + // return layer.msg('当前行前置公里数只能从' + (parseInt(num2) + 1) + '开始!', { icon: 5 }) + // } } } else if (type === 2) { // 公里数2 const regex = /^\s*\d+\s*$/; @@ -113,23 +113,23 @@ function checkValue2(that, type) { $(that).val(''); return layer.msg('请先填写当前行的前置公里数!', { icon: 5 }) } - if (parseInt(index) === 1) { - if (parseInt(value) <= parseInt(num)) { - $(that).val(''); - return layer.msg('第一行后置公里数要大于前置公里数!', { icon: 5 }) - } - } else { - if (parseInt(value) < parseInt(num)) { - $(that).val(''); - return layer.msg('后置公里数要大于等于前置公里数!', { icon: 5 }) - } - } + // if (parseInt(index) === 1) { + // if (parseInt(value) <= parseInt(num)) { + // $(that).val(''); + // return layer.msg('第一行后置公里数要大于前置公里数!', { icon: 5 }) + // } + // } else { + // if (parseInt(value) < parseInt(num)) { + // $(that).val(''); + // return layer.msg('后置公里数要大于等于前置公里数!', { icon: 5 }) + // } + // } } else if (type === 3) { // 单项基准费用(元/吨*公里 const regex = /^(?:(?:[1-9]\d{0,3}(?:\.\d{1,3})?)|(?:0\.(?:00[1-9]|0[1-9]\d|[1-9]\d{2}))|10000(?:\.0{1,3})?)$/; - if (!regex.test(value) && value) { - $(that).val(''); - return layer.msg('单项基准费用(元/吨*公里)范围在(必须大于0,小于等于10000),请重新输入!', { icon: 5 }) - } + // if (!regex.test(value) && value) { + // $(that).val(''); + // return layer.msg('单项基准费用(元/吨*公里)范围在(必须大于0,小于等于10000),请重新输入!', { icon: 5 }) + // } if (!value) { $(that).parents('td').next().next().html('0'); } else { @@ -447,10 +447,10 @@ function addCraneTable(cjId, isUse) { function checkValue3(that, type) { let value = $(that).val(); if (type === 1) { // 单项基准费用零星租赁(元/天/台) - if (!isValidNumber(value) && value) { - $(that).val(''); - return layer.msg('单项基准费用零星租赁必须大于0小于等于10000000!', { icon: 5 }) - } + // if (!isValidNumber(value) && value) { + // $(that).val(''); + // return layer.msg('单项基准费用零星租赁必须大于0小于等于10000000!', { icon: 5 }) + // } if (!value) { $(that).parents('td').next().next().next().html('0'); } else { @@ -461,10 +461,10 @@ function checkValue3(that, type) { } } } else if (type === 2) { // // 单项基准费用包月租赁(元/月/台) - if (!isValidNumber(value) && value) { - $(that).val(''); - return layer.msg('单项基准费用包月租赁必须大于0小于等于10000000!', { icon: 5 }) - } + // if (!isValidNumber(value) && value) { + // $(that).val(''); + // return layer.msg('单项基准费用包月租赁必须大于0小于等于10000000!', { icon: 5 }) + // } if (!value) { $(that).parents('td').next().next().next().html('0'); } else { diff --git a/js/car_basic/child/set_cost_form.js b/js/car_basic/child/set_cost_form.js index a5fcb7d..30638c3 100644 --- a/js/car_basic/child/set_cost_form.js +++ b/js/car_basic/child/set_cost_form.js @@ -99,10 +99,10 @@ function checkValue(that, type, isFirst) { $(that).val(''); return layer.msg('请先将上一行的公里数填写完整', { icon: 5 }) } - if ((parseInt(value) <= parseInt(num2)) || parseInt(value) !== (parseInt(num2) + 1)) { - $(that).val(parseInt(num2) + 1); - return layer.msg('当前行前置公里数只能从' + (parseInt(num2) + 1) + '开始!', { icon: 5 }) - } + // if ((parseInt(value) <= parseInt(num2)) || parseInt(value) !== (parseInt(num2) + 1)) { + // $(that).val(parseInt(num2) + 1); + // return layer.msg('当前行前置公里数只能从' + (parseInt(num2) + 1) + '开始!', { icon: 5 }) + // } } } else if (type === 2) { // 公里数2 const regex = /^\s*\d+\s*$/; @@ -115,17 +115,17 @@ function checkValue(that, type, isFirst) { $(that).val(''); return layer.msg('请先填写当前行的前置公里数!', { icon: 5 }) } - if (isFirst === 1) { - if (parseInt(value) <= parseInt(num)) { - $(that).val(''); - return layer.msg('第一行后置公里数要大于前置公里数!', { icon: 5 }) - } - } else { - if (parseInt(value) < parseInt(num)) { - $(that).val(''); - return layer.msg('后置公里数要大于等于前置公里数!', { icon: 5 }) - } - } + // if (isFirst === 1) { + // if (parseInt(value) <= parseInt(num)) { + // $(that).val(''); + // return layer.msg('第一行后置公里数要大于前置公里数!', { icon: 5 }) + // } + // } else { + // if (parseInt(value) < parseInt(num)) { + // $(that).val(''); + // return layer.msg('后置公里数要大于等于前置公里数!', { icon: 5 }) + // } + // } } else if (type === 3) { // 价格 if (!isValidNumber(value) && value) { @@ -182,9 +182,9 @@ function submitApply() { if (parseInt(list[0].num) !== 0) { return layer.msg('公里数初始值未从0开始', { icon: 7 }); } - if ((parseInt(l.num2) + 1) !== parseInt(l2.num)) { - return layer.msg('公里数范围设置有误,请仔细检查数据', { icon: 7 }); - } + // if ((parseInt(l.num2) + 1) !== parseInt(l2.num)) { + // return layer.msg('公里数范围设置有误,请仔细检查数据', { icon: 7 }); + // } } else { if (parseInt(l.num) !== 0) { return layer.msg('公里数初始值未从0开始', { icon: 7 });