Commit a32432a0 by 王志慧

commit

1 parent ac5f2c04
...@@ -28,16 +28,17 @@ ...@@ -28,16 +28,17 @@
</template> </template>
<template slot="status" slot-scope="scope"> <template slot="status" slot-scope="scope">
<div> <div>
<span :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' : 'ashSpot']"></span>
<span>{{ scope.scope.status | orderStatus }}</span> <span>{{ scope.scope.status | orderStatus }}</span>
</div> </div>
</template> </template>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">查看</el-button> <!-- <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 && 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.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.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> <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> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
...@@ -163,6 +164,74 @@ export default { ...@@ -163,6 +164,74 @@ export default {
optionsName: 'purchaseTypeList' optionsName: 'purchaseTypeList'
} }
], ],
tableButtonList: [
{
type: 'el-button',
name: '查看',
attrs: {
type: 'text'
},
listeners: {
click: this.handleDetail
}
},
{
type: 'GLButton',
name: '删除',
attrs: {
type: 'text',
fn: '删除'
},
condition: row => {
return (row.putStatus == 1 && row.purchaseType == 2)
},
listeners: {
click: this.handleDelete
}
},
{
type: 'GLButton',
name: '编辑',
attrs: {
type: 'text',
fn: '编辑'
},
condition: row => {
return (row.putStatus == 1 && row.purchaseType == 2)
},
listeners: {
click: this.handleEdit
}
},
{
type: 'GLButton',
name: '取消',
attrs: {
type: 'text',
fn: '取消'
},
condition: row => {
return row.status == 1
},
listeners: {
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
}
}
],
// 表格 // 表格
getListApi: this.$apis.purchaseShopping.getPurchaseOrderList, getListApi: this.$apis.purchaseShopping.getPurchaseOrderList,
tableParams: { tableParams: {
...@@ -270,7 +339,7 @@ export default { ...@@ -270,7 +339,7 @@ export default {
defaultDeliveryStatusOptions: defaultDeliveryStatusOptions, defaultDeliveryStatusOptions: defaultDeliveryStatusOptions,
defaultPutStatusOptions: defaultPutStatusOptions, defaultPutStatusOptions: defaultPutStatusOptions,
merchantName: [], merchantName: [],
storeUsageList:[], storeUsageList: [],
purchaseTypeList: purchaseTypeList purchaseTypeList: purchaseTypeList
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!