Commit 5b8ff9bc by 王志慧

commit

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