@ -246,6 +246,26 @@
$("#settlement_type_value").val(data.data.settlement_type);
$("#settlement_type_value").val(data.data.settlement_type);
$("#bank_account_name").val(data.data.bank_account);
$("#bank_account_name").val(data.data.bank_account);
var add = '';
$("#company_name").empty();
$.ajax({
url: "{:U('Ajax/getPromoteCompanyList')}",
type: "get",
data: {withdraw_number: ext_field},
dataType: 'json',
success: function (response) {
add +='< option value = "" > 请选择推广公司< / option > ';
data = response.data;
console.log(data)
for (var i in data){
add += "< option company_id = '"+data[i].company_id+"' value = '"+data[i].company_id+"' " + ( ' selected ' ) + " > "+data[i].company_name+"< / option > "
}
$("#company_name").empty();
$("#company_name").append(add);
$("#company_name").select2();
}
});
$("#jfCompany").val(data.data.yfpartner);
$("#jfCompany").val(data.data.yfpartner);
$("#jfCompany").next().text(data.data.yfpartner);
$("#jfCompany").next().text(data.data.yfpartner);
$("#jfPerson").val(data.data.yflink_man);
$("#jfPerson").val(data.data.yflink_man);
@ -348,6 +368,26 @@
$("#settlement_type_value").val(data.data.settlement_type);
$("#settlement_type_value").val(data.data.settlement_type);
$("#bank_account_name").val(data.data.bank_account);
$("#bank_account_name").val(data.data.bank_account);
var add = '';
$("#ext_field").empty();
$.ajax({
url: "{:U('Ajax/getPromoteCompanyList')}",
type: "get",
data: {company_id: ext_field},
dataType: 'json',
success: function (response) {
add +='< option value = "" > 体现单号< / option > ';
data = response.data;
console.log(data)
for (var i in data){
add += "< option value = '"+data[i].widthdraw_number+"' " + ( ' selected ' ) + " > "+data[i].widthdraw_number+"< / option > "
}
$("#ext_field").empty();
$("#ext_field").append(add);
$("#ext_field").select2();
}
});
$("#jfCompany").val(data.data.yfpartner);
$("#jfCompany").val(data.data.yfpartner);
$("#jfCompany").next().text(data.data.yfpartner);
$("#jfCompany").next().text(data.data.yfpartner);
$("#jfPerson").val(data.data.yflink_man);
$("#jfPerson").val(data.data.yflink_man);