|
|
|
@ -67,6 +67,8 @@
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"charset="UTF-8"></script>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/laydate/laydate.js"></script>
|
|
|
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
|
|
|
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
|
|
|
|
<div class="tab-wrap" id='pop-form' hidden>
|
|
|
|
|
<div class="tab-content tabcon1711">
|
|
|
|
|
<!-- 表单 -->
|
|
|
|
@ -341,6 +343,8 @@
|
|
|
|
|
$(".user-account:last").after(a);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
|
|
|
|
|
|
$(document).on('click', '.bnt_remove', function(){
|
|
|
|
|
$(this).parents('li').remove();
|
|
|
|
|
countAmount();
|
|
|
|
@ -373,6 +377,7 @@
|
|
|
|
|
title:"新增",
|
|
|
|
|
area:['30%','60%'],
|
|
|
|
|
content: $('#pop-form'),
|
|
|
|
|
zIndex: 1,
|
|
|
|
|
end : function(){
|
|
|
|
|
$('#item-form')[0].reset() // 重置数据
|
|
|
|
|
$('#form-company-name').attr('readonly', false);
|
|
|
|
@ -533,7 +538,9 @@
|
|
|
|
|
$("#form-company-name").val('');
|
|
|
|
|
} else if (companyType == 1) { // 上游公司没有下级会长
|
|
|
|
|
var promoteData = "<option value='0' selected>其他</option>";
|
|
|
|
|
$("#form-promote-account").empty();
|
|
|
|
|
$('#form-promote-account').html(promoteData);
|
|
|
|
|
$("#form-promote-account").select2();
|
|
|
|
|
$("#form-promote-account-input").attr("readonly",false)
|
|
|
|
|
$("#form-company-name").attr("readonly",true)
|
|
|
|
|
$("#form-company-name").val($('#form-company-id option:selected').text());
|
|
|
|
@ -547,7 +554,9 @@
|
|
|
|
|
$.each(response.data, function(index, item){
|
|
|
|
|
promoteData += "<option value='"+item.account+"' >"+item.account+"</option>";
|
|
|
|
|
});
|
|
|
|
|
$("#form-promote-account").empty();
|
|
|
|
|
$('#form-promote-account').html(promoteData);
|
|
|
|
|
$("#form-promote-account").select2();
|
|
|
|
|
$("#form-promote-account-input").attr("readonly",false)
|
|
|
|
|
$("#form-company-name").attr("readonly",true)
|
|
|
|
|
$("#form-company-name").val($('#form-company-id option:selected').text());
|
|
|
|
@ -562,7 +571,9 @@
|
|
|
|
|
// 如果公司类型为内部的时候,公司部门仅其他
|
|
|
|
|
if (companyType == 3) {
|
|
|
|
|
var companyData = "<option value='0' selected>其他</option>";
|
|
|
|
|
$("#form-company-id").empty();
|
|
|
|
|
$('#form-company-id').html(companyData);
|
|
|
|
|
$("#form-company-id").select2();
|
|
|
|
|
$("#form-company-name").attr("readonly",false)
|
|
|
|
|
} else {
|
|
|
|
|
$.ajax({
|
|
|
|
@ -574,7 +585,9 @@
|
|
|
|
|
$.each(response.info, function(index, item){
|
|
|
|
|
companyData += "<option value='"+item.id+"' >"+item.name+"</option>";
|
|
|
|
|
});
|
|
|
|
|
$("#form-company-id").empty();
|
|
|
|
|
$('#form-company-id').html(companyData);
|
|
|
|
|
$("#form-company-id").select2();
|
|
|
|
|
$("#form-company-name").attr("readonly",true)
|
|
|
|
|
//$('#company_id').html(companyData);
|
|
|
|
|
promoteChange();
|
|
|
|
|