Merge branch 'hotfix/shop-edit' into gray
Showing
1 changed file
with
3 additions
and
2 deletions
@@ -15,6 +15,7 @@ window.UMBusinessLicense = UM.getEditor('edit-business-license'); | @@ -15,6 +15,7 @@ window.UMBusinessLicense = UM.getEditor('edit-business-license'); | ||
15 | // 一件代发 选项展示 | 15 | // 一件代发 选项展示 |
16 | function underTakeElm(isShow) { | 16 | function underTakeElm(isShow) { |
17 | const shopRelations = $("#shopRelationList").val() | 17 | const shopRelations = $("#shopRelationList").val() |
18 | + const shopsType = $("#shopsType").val(); | ||
18 | if(isShow) { | 19 | if(isShow) { |
19 | $("#customerTelFormGroup").show(); | 20 | $("#customerTelFormGroup").show(); |
20 | $("#shopsAddressInfo").show(); | 21 | $("#shopsAddressInfo").show(); |
@@ -32,7 +33,7 @@ function underTakeElm(isShow) { | @@ -32,7 +33,7 @@ function underTakeElm(isShow) { | ||
32 | // 一件代发 默认选择单品 且不可修改 | 33 | // 一件代发 默认选择单品 且不可修改 |
33 | // $('#shopsType').val('1').attr('disabled', 'disabled') | 34 | // $('#shopsType').val('1').attr('disabled', 'disabled') |
34 | 35 | ||
35 | - if(!!$("#shopsType").val()){ | 36 | + if(shopsType == '1' || shopsType == '2'){ |
36 | $("#modalId").prop("disabled",false); | 37 | $("#modalId").prop("disabled",false); |
37 | }else{ | 38 | }else{ |
38 | $("#modalId").prop("disabled",true); | 39 | $("#modalId").prop("disabled",true); |
@@ -58,7 +59,7 @@ function underTakeElm(isShow) { | @@ -58,7 +59,7 @@ function underTakeElm(isShow) { | ||
58 | $('#checkTel').attr('required', false) | 59 | $('#checkTel').attr('required', false) |
59 | // $('#shopsType').attr('disabled', false).val('-1') | 60 | // $('#shopsType').attr('disabled', false).val('-1') |
60 | 61 | ||
61 | - if(!!$("#shopsType").val()){ | 62 | + if(shopsType == '1' || shopsType == '2'){ |
62 | $("#modalId").prop("disabled",false); | 63 | $("#modalId").prop("disabled",false); |
63 | }else{ | 64 | }else{ |
64 | $("#modalId").prop("disabled",true); | 65 | $("#modalId").prop("disabled",true); |
-
Please register or login to post a comment