Merge branch 'hotfix/bug_change_now_other' of wmtx/platform into release

特殊补点删除功能提交
master
郑永星 4 years ago committed by Gogs
commit 44cadaf725

@ -372,7 +372,16 @@ class CompanyStatementController extends ThinkController
public function delStatement(){
if(!isset($_REQUEST['ids'])) $this->error("参数错误");
$ids = $_REQUEST['ids'];
$dbres = $this->DBModel->where("id in ({$ids}) and verify_status = 0")->delete();
// $dbres = $this->DBModel->where("id in ({$ids}) and verify_status = 0")->delete();
$dbres = $this->DBModel->where("id in ({$ids})")->select();
foreach ($dbres as $key=>$value) {
if($value['withdraw_type'] !=3) {
$this->DBModel->where("id = {$value['id']} and verify_status = 0")->delete();
} else {
$this->DBModel->where("id = {$value['id']}")->delete();
}
}
addOperationLog(['op_type'=>2,'key'=>$ids,"op_name"=>"删除结算单",'url'=>U('lists')]);
$this->ajaxReturn(array(
'status' => 1,

@ -494,6 +494,10 @@
var flag = false;
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
if (id=="delStatement"&&$(elem).data("type")==3) {
return $(elem).val();
}
if($.inArray( $(elem).data("status"),status) == -1||(id=="updateStatement" && $(elem).data("type")==3)){
flag = true;
}else{

Loading…
Cancel
Save