Commit c01db511 authored by xishifeng's avatar xishifeng

业绩周报盈亏计算修改

parent 889a5c38
...@@ -130,7 +130,7 @@ $(function() { ...@@ -130,7 +130,7 @@ $(function() {
if(_mdzjZbData['zjyj']['ssmq'] != '') { if(_mdzjZbData['zjyj']['ssmq'] != '') {
_tableFirstObj.find('.shishou_muqian').val(_mdzjZbData['zjyj']['ssmq']); _tableFirstObj.find('.shishou_muqian').val(_mdzjZbData['zjyj']['ssmq']);
_tableFirstObj.find('.shishou_renjun').html(dealJineNum(Number(_mdzjZbData['zjyj']['ssmq']) / Number(_tableFirstObj.find('.renshu_benzhou').html()) * 30 / _dayNum)); _tableFirstObj.find('.shishou_renjun').html(dealJineNum(Number(_mdzjZbData['zjyj']['ssmq']) / Number(_tableFirstObj.find('.renshu_benzhou').html()) * 30 / _dayNum));
_tableFirstObj.find('.yingkui').html(dealJineNum((Number(_mdzjZbData['zjyj']['ssmq']) - Number(_tableFirstObj.find('.renshu_benzhou').html()) * 8000) / 30 * _dayNum)); _tableFirstObj.find('.yingkui').html(dealJineNum(Number(_mdzjZbData['zjyj']['ssmq']) - Number(_tableFirstObj.find('.renshu_benzhou').html()) * 8000));
}; };
if(_mdzjZbData['zjyj']['dswcby'] != '') { if(_mdzjZbData['zjyj']['dswcby'] != '') {
if(_mdzjZbData['zjyj']['dsmbby'] != '') { if(_mdzjZbData['zjyj']['dsmbby'] != '') {
...@@ -223,7 +223,7 @@ $(function() { ...@@ -223,7 +223,7 @@ $(function() {
if(_mdzjZbData['yjData'][i]['ssmq'] != '') { if(_mdzjZbData['yjData'][i]['ssmq'] != '') {
_tempTable.find('.shishou_muqian').val(_mdzjZbData['yjData'][i]['ssmq']); _tempTable.find('.shishou_muqian').val(_mdzjZbData['yjData'][i]['ssmq']);
_tempTable.find('.shishou_renjun').html(dealJineNum(Number(_mdzjZbData['yjData'][i]['ssmq']) / Number(_tempTable.find('.renshu_benzhou').html()) * 30 / _dayNum)); _tempTable.find('.shishou_renjun').html(dealJineNum(Number(_mdzjZbData['yjData'][i]['ssmq']) / Number(_tempTable.find('.renshu_benzhou').html()) * 30 / _dayNum));
_tempTable.find('.yingkui').html(dealJineNum((Number(_mdzjZbData['yjData'][i]['ssmq']) - Number(_tempTable.find('.renshu_benzhou').html()) * 8000) / 30 * _dayNum)); _tempTable.find('.yingkui').html(dealJineNum(Number(_mdzjZbData['yjData'][i]['ssmq']) - Number(_tempTable.find('.renshu_benzhou').html()) * 8000));
}; };
if(_mdzjZbData['yjData'][i]['dswcby'] != '') { if(_mdzjZbData['yjData'][i]['dswcby'] != '') {
if(_mdzjZbData['yjData'][i]['dsmbby'] != '') { if(_mdzjZbData['yjData'][i]['dsmbby'] != '') {
...@@ -451,7 +451,7 @@ $(function() { ...@@ -451,7 +451,7 @@ $(function() {
var _this = $(this); var _this = $(this);
var _tableObj = _this.closest('table'); var _tableObj = _this.closest('table');
_tableObj.find('.shishou_renjun').html(dealJineNum(Number(_this.val()) / Number(_tableObj.find('.renshu_benzhou').html()))); _tableObj.find('.shishou_renjun').html(dealJineNum(Number(_this.val()) / Number(_tableObj.find('.renshu_benzhou').html())));
_tableObj.find('.yingkui').html(dealJineNum((Number(_this.val()) - Number(_tableObj.find('.renshu_benzhou').html()) * 8000) / 30 * _dayNum)); _tableObj.find('.yingkui').html(dealJineNum(Number(_this.val()) - Number(_tableObj.find('.renshu_benzhou').html()) * 8000));
}); });
_doc.on('input change', '.yeji_benzhou', function(e) { _doc.on('input change', '.yeji_benzhou', function(e) {
e.preventDefault(); e.preventDefault();
......
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