|
|
@ -198,7 +198,7 @@
|
|
|
|
<td class="l">开票内容:</td>
|
|
|
|
<td class="l">开票内容:</td>
|
|
|
|
<td class="r table_radio">
|
|
|
|
<td class="r table_radio">
|
|
|
|
<input type="text" id="invoice_content" class="input" value="信息服务费" disabled >
|
|
|
|
<input type="text" id="invoice_content" class="input" value="信息服务费" disabled >
|
|
|
|
<input type="text" name="invoice_content" class="input invoice_content" value="信息服务费" style="display: none" >
|
|
|
|
<input type="hidden" name="invoice_content" id="invoice_content_other" class="input invoice_content" value="信息服务费" >
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
@ -277,7 +277,11 @@ $(function(){
|
|
|
|
layer.msg("合作甲乙双方必须有个是己方公司", {icon: 2});
|
|
|
|
layer.msg("合作甲乙双方必须有个是己方公司", {icon: 2});
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$("select[disabled]").each(function() {
|
|
|
|
|
|
|
|
if (parseInt($(this).val()) != -1) {
|
|
|
|
|
|
|
|
$(this).attr("disabled", false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
var target = $('form').get(0).action;
|
|
|
|
var target = $('form').get(0).action;
|
|
|
|
var query = $('form').serialize();
|
|
|
|
var query = $('form').serialize();
|
|
|
@ -386,26 +390,29 @@ $(function(){
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function setAggregateInfo(invoice_content,settlement_type,invoice_type) {
|
|
|
|
function setAggregateInfo(invoice_content,settlement_type,invoice_type) {
|
|
|
|
|
|
|
|
if (invoice_content) {
|
|
|
|
$('.invoice_content').val(invoice_content);
|
|
|
|
$('.invoice_content').val(invoice_content);
|
|
|
|
|
|
|
|
$('#invoice_content').val(invoice_content);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#settlement_type').find("option").each(function() {
|
|
|
|
$('#settlement_type').find("option").each(function() {
|
|
|
|
$(this).removeAttr("selected");
|
|
|
|
$(this).removeAttr("selected");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
if (!settlement_type) {
|
|
|
|
// if (!settlement_type) {
|
|
|
|
$('#settlement_type').removeAttr("disabled");
|
|
|
|
// $('#settlement_type').removeAttr("disabled");
|
|
|
|
} else {
|
|
|
|
// } else {
|
|
|
|
$('#settlement_type').prop("disabled",true);
|
|
|
|
$('#settlement_type').prop("disabled",true);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
$('#invoice_type').find("option").each(function() {
|
|
|
|
$('#invoice_type').find("option").each(function() {
|
|
|
|
$(this).removeAttr("selected");
|
|
|
|
$(this).removeAttr("selected");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
if (!invoice_type) {
|
|
|
|
// if (!invoice_type) {
|
|
|
|
$('#invoice_type').removeAttr("disabled");
|
|
|
|
// $('#invoice_type').removeAttr("disabled");
|
|
|
|
} else {
|
|
|
|
// } else {
|
|
|
|
$('#invoice_type').prop("disabled",true);
|
|
|
|
$('#invoice_type').prop("disabled",true);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
$("#settlement_type").find("option[value="+settlement_type+"]").prop("selected",true);
|
|
|
|
$("#settlement_type").find("option[value="+settlement_type+"]").prop("selected",true);
|
|
|
|
$("#invoice_type").find("option[value="+invoice_type+"]").prop("selected",true);
|
|
|
|
$("#invoice_type").find("option[value="+invoice_type+"]").prop("selected",true);
|
|
|
|
$("#settlement_type").change();
|
|
|
|
$("#settlement_type").change();
|
|
|
|