财务对比4

master
chenzhi 5 years ago
parent effe6c572e
commit 202f9a45d1

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

@ -146,11 +146,20 @@
callback();
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++;
COMPARE.loopCheck(page,callback)
});
}
}
@ -165,7 +174,8 @@
"filedata_count": 0,
"compare_id": 0,
"check_page":0,
"filedata":[]
"filedata":[],
"pay_way":-1
}
$(function () {
@ -208,6 +218,7 @@
}
//获取需要循环的次数
sendDefaultData.check_page = Math.ceil(sendDefaultData.filedata_count/check_size);
sendDefaultData.pay_way = paychannel;
//创建面单
var senddata = {
begin_time:start,

Loading…
Cancel
Save