|
|
|
@ -149,16 +149,16 @@
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司类型:</td>
|
|
|
|
|
<td class="l" style="width: 50px;">
|
|
|
|
|
<select name="part_a_type" id="part_a_type" class="select_gallery" disabled>
|
|
|
|
|
<option value="1" selected>上游CP公司</option>
|
|
|
|
|
<option value="2">己方公司</option>
|
|
|
|
|
<option value="2" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>上游CP公司</option>
|
|
|
|
|
<option value="1" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>己方公司</option>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="l" style="width: 100px;"><i class="mustmark" >*</i>乙方公司类型:</td>
|
|
|
|
|
<td class="r">
|
|
|
|
|
<select name="part_b_type" id="part_b_type" class="select_gallery" disabled>
|
|
|
|
|
<option value="1" >上游CP公司</option>
|
|
|
|
|
<option value="2" selected>己方公司</option>
|
|
|
|
|
<option value="1" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>上游CP公司</option>
|
|
|
|
|
<option value="2" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>己方公司</option>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
</td>
|
|
|
|
@ -176,11 +176,32 @@
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>-->
|
|
|
|
|
<?php if($relation['collaborate_way'] == 1):?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司:</td>
|
|
|
|
|
<td class="l" style="width: 50px;">
|
|
|
|
|
<select name="part_b" id="part_b" class="select_gallery" disabled>
|
|
|
|
|
<?php foreach($selfCompanies as $selfCompany):?>
|
|
|
|
|
<option value="<?=$selfCompany['id']?>" <?php if($selfCompany['company_name']=='海南万盟天下科技有限公司'):?>selected<?php endif;?>><?=$selfCompany['company_name']?></option>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="l" style="width: 90px;"><i class="mustmark" >*</i>乙方公司:</td>
|
|
|
|
|
<td class="r">
|
|
|
|
|
<select name="part_a" id="part_a" class="select_gallery" disabled>
|
|
|
|
|
|
|
|
|
|
<option id="cp_company" value='1'></option>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
<?php if($relation['collaborate_way'] == 2):?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司:</td>
|
|
|
|
|
<td class="l" style="width: 50px;">
|
|
|
|
|
<select name="part_a" id="part_a" class="select_gallery" disabled>
|
|
|
|
|
<option id="cp_company" value='1'></option>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
</td>
|
|
|
|
@ -194,6 +215,7 @@
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>结算周期:</td>
|
|
|
|
@ -467,21 +489,13 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$(function() {
|
|
|
|
|
if (!$("#partner").val()) {
|
|
|
|
|
$("#tab_tab1").click();
|
|
|
|
|
} else {
|
|
|
|
|
$("#part_a").children().remove();
|
|
|
|
|
$("#part_a").append("<option value='1'>" + $("#partner").val() + "</option>");
|
|
|
|
|
}
|
|
|
|
|
$("#cp_company").text($("#partner").val());
|
|
|
|
|
|
|
|
|
|
$("#tab_tab2").click(function() {
|
|
|
|
|
if (!$("#partner").val()) {
|
|
|
|
|
alert('请填写合作方名称');
|
|
|
|
|
$("#tab_tab1").click();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#part_a").children().remove();
|
|
|
|
|
$("#part_a").append("<option value='1'>" + $("#partner").val() + "</option>");
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|