优化批次号

master
chenzhi 4 years ago
parent 9cbcbc7013
commit 2104a3e4b6

@ -117,6 +117,8 @@ class ExcelPaymentController extends BaseController
}
public function add()
{
$batch = date('Ymd').date('His').sp_random_num(3);
$this->assign("batch",$batch);
$this->display();
}
//

@ -211,7 +211,7 @@
var isfile = false;
var rABS = false; //是否将文件读取为二进制字符串
var check_size = 10;//每次验证的数量
var batch = getNowDate();
var batch = '{$batch}';
var sendDefaultData = {
"filedata_count": 0,
"check_page":0,
@ -261,7 +261,9 @@
sendDefaultData.end_time = end;
COMPARE.loopCheck(1,function(){
setTimeout(function(){
window.location.href="{:U('lists',['row'=>100,'page'=>1,'batch_num'=>$batch])}";
},1500);
})
})

@ -132,7 +132,7 @@
</div>
<div class="input-list">
<input type="text" name="batch_num" placeholder="批次号" value="{:I('batch_num')}">
<input type="text" name="batch_num" placeholder="批次号" value="{:I('batch_num')}" style="width: 180px;">
</div>
<div class="input-list">

Loading…
Cancel
Save