Commit f307800f by 王志慧

bug修复

1 parent 3cfb2a5e
......@@ -5,6 +5,10 @@ export const defaultStatusOptions = [
label: "运营审核"
},
{
id: 2,
label: "商务审核"
},
{
id: 3,
label: "已取消"
},
......@@ -13,13 +17,17 @@ export const defaultStatusOptions = [
label: "已驳回"
},
{
id:5,
label:'商务审核'
},
{
id:6,
label:'已审核'
id: 5,
label: "已审核"
}
// {
// id: 6,
// label: "已审核"
// },
// {
// id: 7,
// label: "已驳回"
// }
]
// 发货状态
export const defaultDeliveryStatusOptions = [
......
......@@ -29,15 +29,11 @@
<template slot="status" slot-scope="scope">
<div>
<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 v-if="scope.scope.status==4||scope.scope.status==6||scope.scope.status==7">已驳回</span>
<span v-else>{{ scope.scope.status | orderStatus }}</span>
</div>
</template>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<!-- <el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
<GLButton type="text" size="small" v-show="scope.scope.putStatus == 1 && scope.scope.purchaseType == 2" @click="handleDelete(scope.scope)" fn="删除">删除</GLButton>
<GLButton type="text" size="small" v-show="scope.scope.putStatus == 1" @click="handleEdit(scope.scope)" fn="编辑">编辑</GLButton>
<GLButton type="text" size="small" v-show="scope.scope.status == 1" @click="handleCancel(scope.scope)" fn="取消">取消</GLButton>
<GLButton type="text" size="small" v-show="(scope.scope.putStatus == 1 && scope.scope.deliveryStatus == 2 && scope.scope.purchaseType == 1) || (scope.scope.putStatus == 1 && scope.scope.purchaseType == 2)" @click="handleWarehousing(scope.scope)" fn="入库">入库</GLButton> -->
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
</div>
</GLTable>
......@@ -100,9 +96,9 @@ export default {
isClear: true,
maxlength: 50
},
{
{
label: '订单状态',
name: 'status',
name: 'statuses',
type: 'select',
optionList: [],
optionId: 'id',
......@@ -127,41 +123,6 @@ export default {
optionLabel: 'label',
optionsName: 'putStatusOptions'
},
// {
// label: '入库时间',
// name: 'warehousingTimeStr',
// type: 'datePicker',
// isClear: true,
// pickerOptions: 'beforeRangePickerOptions'
// },
// {
// label: '下单门店',
// name: 'merchantId',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'merchantName'
// },
// {
// label: '入库门店',
// name: 'putMerchantId',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'merchantName'
// },
// {
// label: '使用门店',
// name: 'storeUsage',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'storeUsageList'
// },
{
label: '采购类型',
name: 'purchaseType',
......@@ -225,20 +186,6 @@ export default {
click: this.handleCancel
}
},
// {
// type: 'GLButton',
// name: '入库',
// attrs: {
// type: 'text',
// fn: '入库'
// },
// condition: row => {
// return (row.putStatus == 1 && row.deliveryStatus == 2 && row.purchaseType == 1) || (row.putStatus == 1 && row.purchaseType == 2)
// },
// listeners: {
// click: this.handleWarehousing
// }
// },
{
type: 'el-button',
name: '发货单',
......@@ -386,6 +333,13 @@ export default {
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
if (this.tableSearchForm.statuses) {
if (this.tableSearchForm.statuses == 4) {
this.tableSearchForm.statuses = [4, 6, 7]
} else {
this.tableSearchForm.statuses = [this.tableSearchForm.statuses]
}
}
delete this.tableSearchForm.warehousingTimeStr
delete this.tableSearchForm.placeOrderTimeStr
resolve()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!