Authored by shuaiguo

Merge branch 'hotfix/shop-edit'

@@ -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);
@@ -56,9 +57,9 @@ function underTakeElm(isShow) { @@ -56,9 +57,9 @@ function underTakeElm(isShow) {
56 $('#zfbAccount').attr('required', false) 57 $('#zfbAccount').attr('required', false)
57 $('#zfbAccountName').attr('required', false) 58 $('#zfbAccountName').attr('required', false)
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);