...
|
...
|
@@ -11,16 +11,67 @@ var util = require('../../common/util'); |
|
|
var e=new common.edit("#storeForm",{bucket:"yhb-img01"});
|
|
|
window.UMshopintro = UM.getEditor('edit-shop-intro');
|
|
|
window.UMBusinessLicense = UM.getEditor('edit-business-license');
|
|
|
$(function () {
|
|
|
var shopNature = $("#shopNature").val();
|
|
|
// 一件代发
|
|
|
if(shopNature == 6) {
|
|
|
$("#customerTel").show();
|
|
|
|
|
|
// 一件代发 选项展示
|
|
|
function underTakeElm(isShow) {
|
|
|
if(isShow) {
|
|
|
$("#customerTelFormGroup").show();
|
|
|
$("#shopsAddressInfo").show();
|
|
|
$("#checkTelFormGroup").show();
|
|
|
$("#zfbAccountNameFormGroup").show();
|
|
|
$("#zfbAccountFormGroup").show();
|
|
|
$('#province').attr('required', true)
|
|
|
$('#city').attr('required', true)
|
|
|
$('#detailAdd').attr('required', true)
|
|
|
$('#customerTel').attr('required', true)
|
|
|
|
|
|
$('#zfbAccount').attr('required', true)
|
|
|
$('#zfbAccountName').attr('required', true)
|
|
|
$('#checkTel').attr('required', true)
|
|
|
// 一件代发 默认选择单品 且不可修改
|
|
|
$('#shopsType').val('1').attr('disabled', 'disabled')
|
|
|
|
|
|
if(!!~$("#shopsType").val()){
|
|
|
$("#modalId").prop("disabled",false);
|
|
|
}else{
|
|
|
$("#customerTel").hide();
|
|
|
$("#modalId").prop("disabled",true);
|
|
|
}
|
|
|
if(g2.grid){
|
|
|
g2.__rows.length=0;
|
|
|
g2.reload();
|
|
|
}
|
|
|
|
|
|
}else{
|
|
|
$("#customerTelFormGroup").hide();
|
|
|
$("#shopsAddressInfo").hide();
|
|
|
$("#checkTelFormGroup").hide();
|
|
|
$("#zfbAccountNameFormGroup").hide();
|
|
|
$("#zfbAccountFormGroup").hide();
|
|
|
|
|
|
$('#province').attr('required', false)
|
|
|
$('#city').attr('required', false)
|
|
|
$('#detailAdd').attr('required', false)
|
|
|
$('#customerTel').attr('required', false)
|
|
|
$('#zfbAccount').attr('required', false)
|
|
|
$('#zfbAccountName').attr('required', false)
|
|
|
$('#checkTel').attr('required', false)
|
|
|
$('#shopsType').attr('disabled', false).val('-1')
|
|
|
|
|
|
if(!!~$("#shopsType").val()){
|
|
|
$("#modalId").prop("disabled",false);
|
|
|
}else{
|
|
|
$("#modalId").prop("disabled",true);
|
|
|
}
|
|
|
if(g2.grid){
|
|
|
g2.__rows.length=0;
|
|
|
g2.reload();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
$(function () {
|
|
|
var shopNature = $("#shopNature").val();
|
|
|
// 一件代发
|
|
|
underTakeElm(shopNature == 6);
|
|
|
if(shopNature == 3){
|
|
|
$("#unionTypeDiv").show();
|
|
|
$("#blkShop").hide();
|
...
|
...
|
@@ -432,7 +483,7 @@ const Region = { |
|
|
}
|
|
|
|
|
|
$(function(){
|
|
|
var shopsAddressInfo = $('#shopsAddressInfo').val();
|
|
|
var shopsAddressInfo = $('#shopsAddressInfoData').val();
|
|
|
if(shopsAddressInfo) {
|
|
|
shopsAddressInfo = JSON.parse(shopsAddressInfo);
|
|
|
}
|
...
|
...
|
@@ -504,13 +555,9 @@ $('#street').on('change',function() { |
|
|
$("#shopNature").on('change', () => {
|
|
|
var shopNature = $("#shopNature").val();
|
|
|
// 一件代发
|
|
|
underTakeElm(shopNature == 6);
|
|
|
if(shopNature == 6) {
|
|
|
$("#customerTel").show();
|
|
|
$("#shopsAddressInfo").show();
|
|
|
Region.initProvice();
|
|
|
}else{
|
|
|
$("#customerTel").hide();
|
|
|
$("#shopsAddressInfo").hide();
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
|