Commit 5b8ff9bc by 王志慧

commit

1 parent 0ba49430
$color-yellow:#fdb757; $color-yellow:#fdb757;
$color-green:#2cca74; $color-green:#2cca74;
$color-gray:#999; $color-gray:#999;
$color-red:#EB4E4E;
//背景图片 100% //背景图片 100%
@mixin bkgMaxSize($url) { @mixin bkgMaxSize($url) {
background-image: url($url); background-image: url($url);
......
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
tableOption: true, tableOption: true,
tableColumns: [ tableColumns: [
{ {
label: '入库数量/米', label: '入库数量',
prop: 'increaseStockNum', prop: 'increaseStockNum',
addHtml: 'increaseStockNum' addHtml: 'increaseStockNum'
}, },
...@@ -315,5 +315,9 @@ export default { ...@@ -315,5 +315,9 @@ export default {
z-index: 9999999; z-index: 9999999;
position: static; position: static;
} }
/deep/ td.el-table__cell {
height: 64px;
}
} }
</style> </style>
...@@ -117,7 +117,7 @@ export default { ...@@ -117,7 +117,7 @@ export default {
} }
}, },
{ {
type: 'GLButton', type: 'el-button',
name: '入库', name: '入库',
attrs: { attrs: {
type: 'text', type: 'text',
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</template> </template>
<template slot="status" slot-scope="scope"> <template slot="status" slot-scope="scope">
<div> <div>
<span v-if="scope.scope.status" :class="[scope.scope.status == 1 ? 'yellowSpot' : scope.scope.status == 2 ? 'greenSpot' : 'ashSpot']"></span> <span v-if="scope.scope.status" :class="[scope.scope.status == 1 ? 'yellowSpot' : scope.scope.status == 2 ? 'greenSpot' : scope.scope.status == 3 ? 'ashSpot' : 'redSpot']"></span>
<span>{{ scope.scope.status | orderStatus }}</span> <span>{{ scope.scope.status | orderStatus }}</span>
</div> </div>
</template> </template>
...@@ -128,7 +128,6 @@ export default { ...@@ -128,7 +128,6 @@ export default {
optionsName: 'putStatusOptions' optionsName: 'putStatusOptions'
}, },
// { // {
// label: '入库时间', // label: '入库时间',
// name: 'warehousingTimeStr', // name: 'warehousingTimeStr',
...@@ -163,15 +162,15 @@ export default { ...@@ -163,15 +162,15 @@ export default {
// optionLabel: 'merchantName', // optionLabel: 'merchantName',
// optionsName: 'storeUsageList' // optionsName: 'storeUsageList'
// }, // },
// { {
// label: '采购类型', label: '采购类型',
// name: 'purchaseType', name: 'purchaseType',
// type: 'select', type: 'select',
// optionList: [], optionList: [],
// optionId: 'id', optionId: 'id',
// optionLabel: 'label', optionLabel: 'label',
// optionsName: 'purchaseTypeList' optionsName: 'purchaseTypeList'
// } }
], ],
tableButtonList: [ tableButtonList: [
{ {
...@@ -247,7 +246,7 @@ export default { ...@@ -247,7 +246,7 @@ export default {
type: 'text' type: 'text'
}, },
condition: row => { condition: row => {
return row.purchaseType == 1 && row.deliveryStatus == 2 ||row.purchaseType == 1 && row.deliveryStatus == 3 return (row.purchaseType == 1 && row.deliveryStatus == 2) || (row.purchaseType == 1 && row.deliveryStatus == 3)
}, },
listeners: { listeners: {
click: this.handleDispatch click: this.handleDispatch
...@@ -266,12 +265,11 @@ export default { ...@@ -266,12 +265,11 @@ export default {
width: '200' width: '200'
}, },
{ {
label: '订单总价', label: '订单总价/元',
prop: 'totalPrice', prop: 'totalPrice',
formatter: cellValue => { formatter: cellValue => {
return '¥' + cellValue.totalPrice return '¥' + cellValue.totalPrice
}, }
width: 100
}, },
{ {
label: '下单时间', label: '下单时间',
...@@ -282,15 +280,20 @@ export default { ...@@ -282,15 +280,20 @@ export default {
width: 180 width: 180
}, },
{ {
label: '下单门店', label: '下单商户',
prop: 'merchantName', prop: 'merchantName'
minWidth: 150 },
{
label: '采购类型',
prop: 'purchaseType',
formatter: cellValue => {
return (cellValue.purchaseType && (cellValue.purchaseType == 1 ? '商城采购' : '自采入库')) || '--'
}
}, },
{ {
label: '发货状态', label: '发货状态',
prop: 'deliveryStatus', prop: 'deliveryStatus',
addHtml: 'deliveryStatus', addHtml: 'deliveryStatus'
width: 120
}, },
// { // {
// label: '承运公司', // label: '承运公司',
...@@ -312,8 +315,7 @@ export default { ...@@ -312,8 +315,7 @@ export default {
{ {
label: '入库状态', label: '入库状态',
prop: 'putStatus', prop: 'putStatus',
addHtml: 'putStatus', addHtml: 'putStatus'
width: 120
}, },
// { // {
// label: '入库时间', // label: '入库时间',
...@@ -332,20 +334,11 @@ export default { ...@@ -332,20 +334,11 @@ export default {
// return cellValue.putMerchantName || '--' // return cellValue.putMerchantName || '--'
// } // }
// }, // },
{
label: '采购类型',
prop: 'purchaseType',
line: 1,
width: 150,
formatter: cellValue => {
return (cellValue.purchaseType && (cellValue.purchaseType == 1 ? '商城采购' : '自采入库')) || '--'
}
},
{ {
label: '订单状态', label: '订单状态',
prop: 'status', prop: 'status',
addHtml: 'status', addHtml: 'status'
width: 120
}, },
{ {
label: '操作', label: '操作',
...@@ -590,7 +583,10 @@ export default { ...@@ -590,7 +583,10 @@ export default {
@include dot; @include dot;
background: $color-gray; background: $color-gray;
} }
.redSpot {
@include dot;
background: $color-red;
}
.table-btns /deep/.el-button--text { .table-btns /deep/.el-button--text {
min-width: 0 !important; min-width: 0 !important;
padding: 0; padding: 0;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!