master
luoyang 6 years ago
parent 086873f98a
commit 1a4d406f03

@ -3209,12 +3209,11 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
});
return;
}
var option = [];
angular.forEach(form, function (item, key) {
if(item !=null) {
if(item.$name !=null) {
var name = item.$name;
merchantInfo.name = item.$modelValue;
merchantInfo[key] = item.$modelValue;
console.log("++++" + item.$name + "++++" + item.$modelValue);
}
}

@ -12,7 +12,7 @@
<label class="control-label col-sm-3" for="merchant_name_input">* Company Name</label>
<div class="col-sm-8">
<input class="form-control" ng-model="subMerchantInfo.company_name"
type="text" name="merchant_name" id="merchant_name_input" required maxlength="50">
type="text" name="company_name" id="merchant_name_input" required maxlength="50">
<div ng-messages="subForm.merchant_name.$error" ng-if="subForm.merchant_name.$dirty">
<p class="small text-danger" ng-message="required">Required Field</p>
<p class="small text-danger" ng-message="maxlength">Length is more than 50</p>
@ -47,10 +47,10 @@
</div>
<div class="form-group">
<label class="control-label col-sm-3" for="website_input">Website</label>
<label class="control-label col-sm-3" for="company_website_input">Website</label>
<div class="col-sm-8">
<input class="form-control" ng-model="subMerchantInfo.company_website"
type="text" name="website" id="website_input">
type="text" name="company_website" id="company_website_input">
</div>
</div>
<div class="form-group"
@ -150,12 +150,12 @@
</div>
</div>
<div class="form-group" ng-class="{'has-error':subForm.company_country.$invalid && subForm.company_country.$dirty}">
<label class="control-label col-sm-3" for="company_country_input">Company country</label>
<div class="form-group" ng-class="{'has-error':subForm.country.$invalid && subForm.country.$dirty}">
<label class="control-label col-sm-3" for="country_input">Company country</label>
<div class="col-sm-8">
<input class="form-control" ng-model="subMerchantInfo.country"
type="text" name="company_country" id="company_country_input">
<div ng-messages="subForm.company_country.$error" ng-if="subForm.company_country.$dirty">
type="text" name="country" id="country_input">
<div ng-messages="subForm.country.$error" ng-if="subForm.country.$dirty">
<p class="small text-danger" ng-message="required">Required Field</p>
</div>
</div>
@ -165,7 +165,7 @@
<label class="control-label col-sm-3" for="company_address_input">Company address</label>
<div class="col-sm-8">
<input class="form-control" ng-model="subMerchantInfo.address"
type="text" name="company_address" id="company_address_input">
type="text" name="address" id="company_address_input">
<div ng-messages="subForm.company_address.$error" ng-if="subForm.company_address.$dirty">
<p class="small text-danger" ng-message="required">Required Field</p>
<p class="small text-danger" ng-message="maxlength">Length is more than 50</p>

Loading…
Cancel
Save