|
|
|
@ -107,7 +107,7 @@
|
|
|
|
|
<select name="first_company_type" id="first_company_type" class="select_gallery">
|
|
|
|
|
<option value="">请选择甲方公司类型</option>
|
|
|
|
|
<volist name="companyType" id="vo">
|
|
|
|
|
<option value="{$key}">{$vo}</option>
|
|
|
|
|
<option value="{$key}" <?php if($defaultCompanyTypeA == $key):?>selected<?php endif;?>>{$vo}</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
@ -142,7 +142,7 @@
|
|
|
|
|
<select name="second_company_type" id="second_company_type" class="select_gallery">
|
|
|
|
|
<option value="">请选择乙方公司类型</option>
|
|
|
|
|
<volist name="companyType" id="vo">
|
|
|
|
|
<option value="{$key}">{$vo}</option>
|
|
|
|
|
<option value="{$key}" <?php if($defaultCompanyTypeB == $key):?>selected<?php endif;?>>{$vo}</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
@ -175,8 +175,8 @@
|
|
|
|
|
<td class="l"><i class="mustmark">*</i>结算周期:</td>
|
|
|
|
|
<td class="r">
|
|
|
|
|
<select name="settlement_type" id="settlement_type" class="select_gallery">
|
|
|
|
|
<option value="0" selected>无</option>
|
|
|
|
|
<option value="1">周结</option>
|
|
|
|
|
<option value="0">无</option>
|
|
|
|
|
<option value="1" selected>周结</option>
|
|
|
|
|
<option value="2">月结</option>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
@ -186,7 +186,8 @@
|
|
|
|
|
<td class="l"><i class="mustmark">*</i>开票类型:</td>
|
|
|
|
|
<td class="r">
|
|
|
|
|
<select name="invoice_type" id="invoice_type" class="select_gallery">
|
|
|
|
|
<option value="1" selected>专票</option>
|
|
|
|
|
<option value="" selected>无</option>
|
|
|
|
|
<option value="1">专票</option>
|
|
|
|
|
<option value="2">普票</option>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
@ -333,10 +334,15 @@ $(function(){
|
|
|
|
|
first_company = data.info;
|
|
|
|
|
var companystr = '<option value="">'+typename+'</option>';
|
|
|
|
|
for (var i in first_company) {
|
|
|
|
|
companystr += "<option value='" + first_company[i].id + "'>" + first_company[i].company_name + "</option>"
|
|
|
|
|
var selected = ''
|
|
|
|
|
if (first_company[i].company_name == '福建金菠菜网络科技有限公司') {
|
|
|
|
|
selected = 'selected'
|
|
|
|
|
}
|
|
|
|
|
companystr += "<option value='" + first_company[i].id + "' " + selected + ">" + first_company[i].company_name + "</option>"
|
|
|
|
|
}
|
|
|
|
|
$("#first_company_id").html(companystr);
|
|
|
|
|
$("#first_company_id").select2();
|
|
|
|
|
$("#first_company_id").change();
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
$("#first_company_id").on("change",function(){
|
|
|
|
@ -349,6 +355,7 @@ $(function(){
|
|
|
|
|
$("#first_company_name").val(companyinfo.company_name);
|
|
|
|
|
$("#first_company_info").html(setCompanyInfo(companyinfo));
|
|
|
|
|
});
|
|
|
|
|
$("#first_company_type").change();
|
|
|
|
|
|
|
|
|
|
$("#second_company_type").on("change",function(){
|
|
|
|
|
//置空
|
|
|
|
@ -369,6 +376,7 @@ $(function(){
|
|
|
|
|
$("#second_company_id").select2();
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
$("#second_company_type").change();
|
|
|
|
|
$("#second_company_id").on("change",function(){
|
|
|
|
|
var id = $(this).find("option:selected").val();
|
|
|
|
|
//获取基础信息
|
|
|
|
|