财务对比4

master
chenzhi 5 years ago
parent effe6c572e
commit 202f9a45d1

@ -28,17 +28,11 @@ class FinanceCompareController extends ThinkController
} }
public function compareData() public function compareData()
{ {
// $data = I('POST.'); $checkdata = I('POST.');
$keys = ["支付订单号","实付金额"]; $keys = $checkdata['keys'];
$compare_id = 1; $compare_id = $checkdata['compare_id'];
$pay_way = 1;//1支付宝 2微信 17易宝 $pay_way = $checkdata['pay_way'];//1支付宝 2微信 17易宝
$data = [ $data = $checkdata['checkarr'];
["支付订单号"=> "SP_202003231152197Lhd_test","实付金额"=>0.01],
["支付订单号"=> "SP_20200325103203fBPI_test","实付金额"=>0.01],
["支付订单号"=> "SP_20200325102118dbIy_test","实付金额"=>0.01],
["支付订单号"=> "SP_20200325102110Dpga_test","实付金额"=>0.01],
["支付订单号"=> "PF_20200225170537PpOt","实付金额"=>1]
];
//过滤数据 //过滤数据
$sp=[]; $sp=[];
$pf=[]; $pf=[];
@ -73,7 +67,7 @@ class FinanceCompareController extends ThinkController
} }
} }
dump($sres); dd($sres);
} }
protected function setDiffData($dbres,$ydata) protected function setDiffData($dbres,$ydata)
{ {
@ -116,6 +110,5 @@ class FinanceCompareController extends ThinkController
} }
} }
dd($ydata); dd($ydata);
# code...
} }
} }

@ -146,11 +146,20 @@
callback(); callback();
return; return;
} }
var checkarr = sendDefaultData.filedata.splice(0,check_size); var senddata = {
keys:sendDefaultData.keys,
compare_id:sendDefaultData.compare_id,
pay_way:sendDefaultData.pay_way,
checkarr:sendDefaultData.filedata.splice(0,check_size)
}
COMPARE.publiucAjax("{:U('compareData')}",senddata,function(data){
console.log(checkarr);
page++; page++;
COMPARE.loopCheck(page,callback) COMPARE.loopCheck(page,callback)
});
} }
} }
@ -165,7 +174,8 @@
"filedata_count": 0, "filedata_count": 0,
"compare_id": 0, "compare_id": 0,
"check_page":0, "check_page":0,
"filedata":[] "filedata":[],
"pay_way":-1
} }
$(function () { $(function () {
@ -208,6 +218,7 @@
} }
//获取需要循环的次数 //获取需要循环的次数
sendDefaultData.check_page = Math.ceil(sendDefaultData.filedata_count/check_size); sendDefaultData.check_page = Math.ceil(sendDefaultData.filedata_count/check_size);
sendDefaultData.pay_way = paychannel;
//创建面单 //创建面单
var senddata = { var senddata = {
begin_time:start, begin_time:start,

Loading…
Cancel
Save