Commit 58971a3c authored by lizhe's avatar lizhe

签约地点校验修改

parent 9650c7a1
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -460,10 +460,13 @@ ...@@ -460,10 +460,13 @@
return false; return false;
} }
if (record.get('signing_city')){ if (record.get('signing_city')){
var reg = /^([\u2E80-\u9FFF]){4,}$/; // var reg = /^([\u2E80-\u9FFF]){4,}$/;
if (!reg.test(record.get('signing_city'))) { // if (!reg.test(record.get('signing_city'))) {
$L.showErrorMessage('提示', '合同签订地建议格式:“xx市xx区”(也可填写详细地址)!'); // $L.showErrorMessage('提示', '合同签订地建议格式:“xx市xx区”(也可填写详细地址)!');
return false; // return false;
// }
if (record.get('signing_city').indexOf('州') == -1 && record.get('signing_city').indexOf('县') == -1 && record.get('signing_city').indexOf('区') == -1) {
Leaf.showConfirm('${HLS.PROMPT}', '合同签订地所填写内容,未细化到区/县/州级别,是否确认?', function () {});
} }
} }
} }
......
...@@ -1830,10 +1830,13 @@ ...@@ -1830,10 +1830,13 @@
} }
if (record.get('signing_city')){ if (record.get('signing_city')){
// var reg = /^([\u2E80-\u9FFF]){4,}$/; // var reg = /^([\u2E80-\u9FFF]){4,}$/;
var reg = /^(.){4,}$/; // var reg = /^(.){4,}$/;
if (!reg.test(record.get('signing_city'))) { // if (!reg.test(record.get('signing_city'))) {
$L.showErrorMessage('提示', '合同签订地建议格式:“xx市xx区”(也可填写详细地址)!'); // $L.showErrorMessage('提示', '合同签订地建议格式:“xx市xx区”(也可填写详细地址)!');
return false; // return false;
// }
if (record.get('signing_city').indexOf('州') == -1 && record.get('signing_city').indexOf('县') == -1 && record.get('signing_city').indexOf('区') == -1) {
Leaf.showConfirm('${HLS.PROMPT}', '合同签订地所填写内容,未细化到区/县/州级别,是否确认?', function () {});
} }
} }
} }
......
...@@ -328,10 +328,13 @@ ...@@ -328,10 +328,13 @@
return false; return false;
} }
if (record.get('signing_city')){ if (record.get('signing_city')){
var reg = /^([\u2E80-\u9FFF]){4,}$/; // var reg = /^([\u2E80-\u9FFF]){4,}$/;
if (!reg.test(record.get('signing_city'))) { // if (!reg.test(record.get('signing_city'))) {
$L.showErrorMessage('提示', '合同签订地请输入**市**区!'); // $L.showErrorMessage('提示', '合同签订地请输入**市**区!');
return false; // return false;
// }
if (record.get('signing_city').indexOf('州') == -1 && record.get('signing_city').indexOf('县') == -1 && record.get('signing_city').indexOf('区') == -1) {
Leaf.showConfirm('${HLS.PROMPT}', '合同签订地所填写内容,未细化到区/县/州级别,是否确认?', function () {});
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment