|
|
|
@ -22,7 +22,7 @@
|
|
|
|
|
<div class="box box-warning">
|
|
|
|
|
<div class="box-body">
|
|
|
|
|
<uib-tabset>
|
|
|
|
|
<uib-tab heading="Basic Info">
|
|
|
|
|
<!-- <uib-tab heading="Basic Info">
|
|
|
|
|
<form class="form-horizontal margin-top" name="org_form" novalidate>
|
|
|
|
|
<div class="panel">
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':org_form.name.$invalid && org_form.name.$dirty}">
|
|
|
|
@ -54,14 +54,14 @@
|
|
|
|
|
ng-if="!currentUser.org_id">
|
|
|
|
|
<label class="control-label col-sm-2" for="org_type_input">Type *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<!--<select class="form-control" ng-model="org.type" ng-init="org.type=0" id="org_type_input">-->
|
|
|
|
|
<!--<option value="0">代理人</option>-->
|
|
|
|
|
<!--<option value="1">推荐人</option>-->
|
|
|
|
|
<!--</select>-->
|
|
|
|
|
<!–<select class="form-control" ng-model="org.type" ng-init="org.type=0" id="org_type_input">–>
|
|
|
|
|
<!–<option value="0">代理人</option>–>
|
|
|
|
|
<!–<option value="1">推荐人</option>–>
|
|
|
|
|
<!–</select>–>
|
|
|
|
|
<select class="form-control" name="type" required ng-model="org.type"
|
|
|
|
|
id="org_type_input"
|
|
|
|
|
ng-options="type.value as type.label for type in types">
|
|
|
|
|
<!--<option value="">Please Choose</option>-->
|
|
|
|
|
<!–<option value="">Please Choose</option>–>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -155,19 +155,251 @@
|
|
|
|
|
</button>
|
|
|
|
|
<a class="btn btn-danger" role="button" ui-sref="^" ui-sref-opts="{reload:true}">Back</a>
|
|
|
|
|
</div>
|
|
|
|
|
<!--<button class="btn btn-success col-sm-offset-2" ng-click="update()"><i class="fa fa-save"></i> Update</button>-->
|
|
|
|
|
<!–<button class="btn btn-success col-sm-offset-2" ng-click="update()"><i class="fa fa-save"></i> Update</button>–>
|
|
|
|
|
</form>
|
|
|
|
|
</uib-tab>
|
|
|
|
|
<!-- <uib-tab heading="Permission" ng-if="org.type == 0">
|
|
|
|
|
<form class="form-horizontal margin-top" name="org_permission_form">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-xs-4 col-sm-2 control-label">Client Rate Editable</label>
|
|
|
|
|
<div class="col-xs-8 col-sm-8">
|
|
|
|
|
<input type="checkbox" ng-model="org.rate_editable" bs-switch switch-change="toggleRateEditable()">
|
|
|
|
|
</uib-tab>-->
|
|
|
|
|
|
|
|
|
|
<uib-tab heading="Basic Info">
|
|
|
|
|
<form class="form-horizontal margin-top" name="org_form" novalidate>
|
|
|
|
|
<div class="panel">
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':org_form.name.$invalid && org_form.name.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="org_name_input">Name *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="org.name" id="org_name_input" name="name" required>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2">Logo</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<p class="form-control-static">
|
|
|
|
|
<button class="btn btn-primary" type="button" ngf-select="uploadLogo($file)"
|
|
|
|
|
accept="image/*" ngf-max-size="1MB">
|
|
|
|
|
<i class="fa fa-upload"></i> Upload
|
|
|
|
|
</button>
|
|
|
|
|
<uib-progressbar value="logoProgress.value" ng-if="logoProgress"></uib-progressbar>
|
|
|
|
|
<img ng-src="{{org.logo}}" class="col-sm-3" ng-if="org.logo">
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':org_form.location.$invalid && org_form.location.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="org_location_input">Location *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="org.location" id="org_location_input" name="location" required>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':org_form.type.$invalid && org_form.type.$dirty}"
|
|
|
|
|
ng-if="!('1000000000000'|withRole)">
|
|
|
|
|
<label class="control-label col-sm-2" for="org_type_input">Type *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<!--<select class="form-control" ng-model="org.type" ng-init="org.type=0" id="org_type_input">-->
|
|
|
|
|
<!--<option value="0">代理人</option>-->
|
|
|
|
|
<!--<option value="1">推荐人</option>-->
|
|
|
|
|
<!--</select>-->
|
|
|
|
|
<select class="form-control" name="type" required ng-model="org.type"
|
|
|
|
|
id="org_type_input"
|
|
|
|
|
ng-options="type.value as type.label for type in types">
|
|
|
|
|
<!--<option value="">Please Choose</option>-->
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':org_form.commission_type_0.$invalid && org_form.commission_type_0.$dirty}"
|
|
|
|
|
ng-show="(org.type == 0) || ('1000000000000'|withRole)">
|
|
|
|
|
<label class="control-label col-sm-2" for="commission_type_0">Commission Type *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select class="form-control" name="commission_type_0" required ng-model="org.commission_type" id="commission_type_0"
|
|
|
|
|
ng-options="commission_type.value as commission_type.label for commission_type in commission_types">
|
|
|
|
|
<option value="">Please Choose</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-if="org.type == 1">
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':org_form.rate_value.$invalid && org_form.rate_value.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="rate_value_input">Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control form-control-float" type="number" ng-model="org.rate_value" id="rate_value_input" name="rate_value" max="100">
|
|
|
|
|
<span class="input-group-addon form-control-span">%</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-if="org.type == 0">
|
|
|
|
|
<div ng-if="org.commission_type == 3">
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':org_form.rate_value.$invalid && org_form.rate_value.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="rate_value_input_3">Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control form-control-float" type="number" ng-model="org.rate_value" id="rate_value_input_3" name="rate_value" max="100" readonly>
|
|
|
|
|
<span class="input-group-addon form-control-span">%</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-if="org.commission_type == 1">
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':org_form.alipay_rate_value.$invalid && org_form.alipay_rate_value.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="alipay_rate_value_input">Alipay Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control form-control-float" type="number" ng-model="org.alipay_rate_value" id="alipay_rate_value_input" name="alipay_rate_value" max="100" readonly>
|
|
|
|
|
<span class="input-group-addon form-control-span">%</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':org_form.wechat_rate_value.$invalid && org_form.wechat_rate_value.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="wechat_rate_value_input">Wechat Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control form-control-float" type="number" ng-model="org.wechat_rate_value" id="wechat_rate_value_input" name="wechat_rate_value" max="100" readonly>
|
|
|
|
|
<span class="input-group-addon form-control-span">%</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':org_form.bestpay_rate_value.$invalid && org_form.bestpay_rate_value.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="bestpay_rate_value_input">Bestpay Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control form-control-float" type="number" ng-model="org.bestpay_rate_value" id="bestpay_rate_value_input" name="bestpay_rate_value" max="100" readonly>
|
|
|
|
|
<span class="input-group-addon form-control-span">%</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':org_form.jd_rate_value.$invalid && org_form.jd_rate_value.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="jd_rate_value_input">JD Pay Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control form-control-float" type="number" ng-model="org.jd_rate_value" id="jd_rate_value_input" name="jd_rate_value" max="100" readonly>
|
|
|
|
|
<span class="input-group-addon form-control-span">%</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':org_form.alipayonline_rate_value.$invalid && org_form.alipayonline_rate_value.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="alipayonline_rate_value_input">AlipayOnline Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control form-control-float" type="number" ng-model="org.alipayonline_rate_value" id="alipayonline_rate_value_input" name="alipayonline_rate_value" max="100" readonly>
|
|
|
|
|
<span class="input-group-addon form-control-span">%</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':org_form.min_wechat_rate.$invalid && org_form.min_wechat_rate.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="min_wechat_rate_input">Min Wechat Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" type="number" ng-model="org.min_wechat_rate"
|
|
|
|
|
id="min_wechat_rate_input" name="min_wechat_rate" max="10" readonly>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':org_form.min_alipay_rate.$invalid && org_form.min_alipay_rate.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="min_alipay_rate_input">Min Alipay Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" type="number" ng-model="org.min_alipay_rate"
|
|
|
|
|
id="min_alipay_rate_input" name="min_alipay_rate" max="10" readonly>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':org_form.min_bestpay_rate.$invalid && org_form.min_bestpay_rate.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="min_bestpay_rate_input">Min Bestpay Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" type="number" ng-model="org.min_bestpay_rate"
|
|
|
|
|
id="min_bestpay_rate_input" name="min_bestpay_rate" max="10" readonly>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':org_form.min_jd_rate.$invalid && org_form.min_jd_rate.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="min_jd_rate_input">Min Jd Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" type="number" ng-model="org.min_jd_rate"
|
|
|
|
|
id="min_jd_rate_input" name="min_jd_rate" max="10" readonly>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':org_form.min_alipayonline_rate.$invalid && org_form.min_alipayonline_rate.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="min_alipayonline_rate_input">Min Alipayonline Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" type="number" ng-model="org.min_alipayonline_rate"
|
|
|
|
|
id="min_alipayonline_rate_input" name="min_alipayonline_rate" max="10" readonly>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <div ng-if="(org.type == 0 || currentUser.org_id !=null)">
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':org_form.min_alipay_rate.$invalid && org_form.min_alipay_rate.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="min_alipay_rate_input">Min Alipay Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" type="number" ng-model="org.min_alipay_rate"
|
|
|
|
|
id="min_alipay_rate_input" name="min_alipay_rate" max="100">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':org_form.min_bestpay_rate.$invalid && org_form.min_bestpay_rate.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="min_bestpay_rate_input">Min Bestpay Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" type="number" ng-model="org.min_bestpay_rate"
|
|
|
|
|
id="min_bestpay_rate_input" name="min_bestpay_rate" max="100">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':org_form.min_jd_rate.$invalid && org_form.min_jd_rate.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="min_jd_rate_input">Min Jd Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" type="number" ng-model="org.min_jd_rate"
|
|
|
|
|
id="min_jd_rate_input" name="min_jd_rate" max="100">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':org_form.min_alipayonline_rate.$invalid && org_form.min_alipayonline_rate.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="min_alipayonline_rate_input">Min Alipayonline Rate *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" type="number" ng-model="org.min_alipayonline_rate"
|
|
|
|
|
id="min_alipayonline_rate_input" name="min_alipayonline_rate" max="100">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>-->
|
|
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':org_form.contact_person.$invalid && org_form.contact_person.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="org_contact_person_input">Contact Person *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="org.contact_person" id="org_contact_person_input" name="contact_person" required>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':org_form.contact_phone.$invalid && org_form.contact_phone.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="org_contact_phone_input">Phone *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="org.contact_phone" id="org_contact_phone_input" name="contact_phone" required>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group" ng-class="{'has-error':org_form.contact_mail.$invalid && org_form.contact_mail.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="org_contact_mail_input">Mail *</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="org.contact_mail" id="org_contact_mail_input" name="contact_mail" required>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2" for="commission_checkbox">Enable Commission</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input id="commission_checkbox" type="checkbox" class="checkbox-inline checkbox" ng-model="org.commission">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':org_form.remark.$invalid && org_form.remark.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="remark-input">Remark</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<textarea class="form-control" ng-model="org.remark" name="remark"
|
|
|
|
|
id="remark-input" maxlength="500"></textarea>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-group margin-bottom margin-top">
|
|
|
|
|
<button class="btn btn-success" type="button" ng-click="update(org_form)">Save
|
|
|
|
|
</button>
|
|
|
|
|
<a class="btn btn-danger" role="button" ui-sref="^" ui-sref-opts="{reload:true}">Back</a>
|
|
|
|
|
</div>
|
|
|
|
|
<!--<button class="btn btn-success col-sm-offset-2" ng-click="update()"><i class="fa fa-save"></i> Update</button>-->
|
|
|
|
|
</form>
|
|
|
|
|
</uib-tab>-->
|
|
|
|
|
</uib-tab>
|
|
|
|
|
</uib-tabset>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|