Commit 2350a2dd by 刘帅

打印小票添加口袋信息

parent 93c73f04
...@@ -269,7 +269,17 @@ void PrintLib::_PrintProcudt(const QList<LineNode*> &list,const QList<int>& prot ...@@ -269,7 +269,17 @@ void PrintLib::_PrintProcudt(const QList<LineNode*> &list,const QList<int>& prot
QList<int> productNodeList = protlist; QList<int> productNodeList = protlist;
int firstIndex = productNodeList.first(); int firstIndex = productNodeList.first();
int lastIndex = productNodeList.last(); int lastIndex = productNodeList.last();
QList<QString> bskList; //保存已经打印过的口袋号
foreach (DishObject* value, _order->products) { foreach (DishObject* value, _order->products) {
if(!bskList.contains(value->bsk_num))
{
bskList.push_back(value->bsk_num);
LineNode tempNode = *list.at(firstIndex);
tempNode.text = QString(">>>口袋 %1").arg(value->bsk_num);
_PrintLine(tempNode);
}
for(int index = firstIndex;index<=lastIndex;index++) { for(int index = firstIndex;index<=lastIndex;index++) {
_PrintLine(*list.at(index),value); _PrintLine(*list.at(index),value);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment