Commit 8d062df7 authored by duxinyuan's avatar duxinyuan

1

parent fc8bf69e
...@@ -1352,14 +1352,16 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -1352,14 +1352,16 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
doc.find("#running").text(data.is_open == 1 ? "是":"否"); doc.find("#running").text(data.is_open == 1 ? "是":"否");
doc.find("#fenhong").val(data.is_dividend); doc.find("#fenhong").val(data.is_dividend);
doc.find('#pinpai').text(data.industry_type); doc.find('#pinpai').text(data.industry_type);
var source_id = data.source_id ;
if (data.source == 0) { if (data.source == 0) {
$("#comes").text('APP'); $("#comes").text('APP');
doc.find("#status").text("正常"); // doc.find("#status").text("正常");
$('#intoPrice').removeAttr("readonly"); $('#intoPrice').removeAttr("readonly");
$('#shoutiao').removeAttr("readonly"); $('#shoutiao').removeAttr("readonly");
// $('#payType').removeAttr("readonly"); // $('#payType').removeAttr("readonly");
$("#payType").removeAttr("disabled") $("#payType").removeAttr("disabled")
$('#payNo').removeAttr("readonly"); $('#payNo').removeAttr("readonly");
} else if (data.source == 1){ } else if (data.source == 1){
$("#comes").text('智能pos机'); $("#comes").text('智能pos机');
$('#intoPrice').removeAttr("readonly"); $('#intoPrice').removeAttr("readonly");
...@@ -1367,7 +1369,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -1367,7 +1369,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
// $('#payType').removeAttr("readonly"); // $('#payType').removeAttr("readonly");
$("#payType").removeAttr("disabled") $("#payType").removeAttr("disabled")
$('#payNo').removeAttr("readonly"); $('#payNo').removeAttr("readonly");
doc.find("#status").text("正常"); // doc.find("#status").text("正常");
} else { } else {
$("#comes").text('调整'); $("#comes").text('调整');
$('#intoPrice').attr("readonly" , "readonly"); $('#intoPrice').attr("readonly" , "readonly");
...@@ -1375,7 +1377,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -1375,7 +1377,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
// $('#payType').attr("readonly" , "readonly"); // $('#payType').attr("readonly" , "readonly");
$("#payType").attr("disabled","disabled").css("background-color","#EEEEEE;"); $("#payType").attr("disabled","disabled").css("background-color","#EEEEEE;");
$('#payNo').attr("readonly" , "readonly"); $('#payNo').attr("readonly" , "readonly");
}
if ( source_id ) {
doc.find("#status").text("被调整"); doc.find("#status").text("被调整");
} else {
doc.find("#status").text("正常");
} }
// doc.find("#status").text(data.source_id); // doc.find("#status").text(data.source_id);
doc.find("#lastTime").val(data.last_transfer_time); doc.find("#lastTime").val(data.last_transfer_time);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment