Commit 4997068c by 修福龙

收银台界面袋子可分为两行

parent 4ce9a942
...@@ -367,7 +367,7 @@ class VerticalPage extends Component { ...@@ -367,7 +367,7 @@ class VerticalPage extends Component {
let {contact} = this.state; let {contact} = this.state;
pageSize = pageSize =
goods && goods.bags.length > 0 goods && goods.bags.length > 0
? goods && goods.bags.length > 6 ? goods && goods.bags.length > 3
? 6 ? 6
: 7 : 7
: pageSize; : pageSize;
...@@ -375,7 +375,9 @@ class VerticalPage extends Component { ...@@ -375,7 +375,9 @@ class VerticalPage extends Component {
if (goods && goods.bags) { if (goods && goods.bags) {
let num = Math.ceil(goods.bags.length / 3); let num = Math.ceil(goods.bags.length / 3);
for (let i = 0; i < num; i++) { for (let i = 0; i < num; i++) {
bagsData.push(goods.bags.slice(i * 3, i * 3 + 3)); if (i < 2) {
bagsData.push(goods.bags.slice(i * 3, i * 3 + 3));
}
} }
} }
window.pageSize = pageSize; window.pageSize = pageSize;
...@@ -1025,8 +1027,8 @@ const styles = { ...@@ -1025,8 +1027,8 @@ const styles = {
firstTdStyle: { firstTdStyle: {
width: '40%', width: '40%',
alignItems: 'flex-start', alignItems: 'flex-start',
paddingTop: width > 801 ? 18 : 16, paddingTop: 18,
paddingBottom: width > 801 ? 18 : 16, paddingBottom: 18,
paddingLeft: 10, paddingLeft: 10,
paddingRight: 10, paddingRight: 10,
}, },
...@@ -1035,8 +1037,8 @@ const styles = { ...@@ -1035,8 +1037,8 @@ const styles = {
width: '20%', width: '20%',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
paddingTop: width > 801 ? 18 : 16, paddingTop: width > 801 ? 18 : 18,
paddingBottom: width > 801 ? 18 : 16, paddingBottom: width > 801 ? 18 : 18,
paddingLeft: 10, paddingLeft: 10,
paddingRight: 10, paddingRight: 10,
}, },
......
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