Browse Source

下单先完成

zhangyang 3 years ago
parent
commit
4d072d8353
1 changed files with 7 additions and 0 deletions
  1. 7 0
      zhipuzi_pos_windows/page/CZhengcanDiandanPageUI.cpp

+ 7 - 0
zhipuzi_pos_windows/page/CZhengcanDiandanPageUI.cpp

@@ -2302,6 +2302,13 @@ void CZhengcanDiandanPageUI::ClickXidanBtn()
 	}
 
 	rapidjson::Value& data = document["data"];
+
+	std::string status = CLewaimaiJson::ToString(data["status"]);
+	if (status == "success")
+	{
+		//下单成功了,返回到桌子列表
+		m_pMainWnd->SwitchPage(CMainWnd::ZHENGCAN);
+	}
 }
 
 void CZhengcanDiandanPageUI::ClickPayBtn()