给所有单据都增加审核功能
This commit is contained in:
@@ -68,6 +68,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -95,10 +97,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -165,6 +171,9 @@
|
|||||||
{ title: '单据日期', dataIndex: 'operTimeStr',width:145},
|
{ title: '单据日期', dataIndex: 'operTimeStr',width:145},
|
||||||
{ title: '操作员', dataIndex: 'userName',width:80},
|
{ title: '操作员', dataIndex: 'userName',width:80},
|
||||||
{ title: '金额合计', dataIndex: 'totalPrice',width:80},
|
{ title: '金额合计', dataIndex: 'totalPrice',width:80},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -175,7 +184,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/depotHead/list",
|
list: "/depotHead/list",
|
||||||
delete: "/depotHead/delete",
|
delete: "/depotHead/delete",
|
||||||
deleteBatch: "/depotHead/deleteBatch"
|
deleteBatch: "/depotHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/depotHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -68,6 +68,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -95,10 +97,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -165,6 +171,9 @@
|
|||||||
{ title: '单据日期', dataIndex: 'operTimeStr',width:145},
|
{ title: '单据日期', dataIndex: 'operTimeStr',width:145},
|
||||||
{ title: '操作员', dataIndex: 'userName',width:80},
|
{ title: '操作员', dataIndex: 'userName',width:80},
|
||||||
{ title: '金额合计', dataIndex: 'totalPrice',width:80},
|
{ title: '金额合计', dataIndex: 'totalPrice',width:80},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -175,7 +184,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/depotHead/list",
|
list: "/depotHead/list",
|
||||||
delete: "/depotHead/delete",
|
delete: "/depotHead/delete",
|
||||||
deleteBatch: "/depotHead/deleteBatch"
|
deleteBatch: "/depotHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/depotHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -68,6 +68,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -95,10 +97,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -165,6 +171,9 @@
|
|||||||
{ title: '单据日期', dataIndex: 'operTimeStr',width:145},
|
{ title: '单据日期', dataIndex: 'operTimeStr',width:145},
|
||||||
{ title: '操作员', dataIndex: 'userName',width:80},
|
{ title: '操作员', dataIndex: 'userName',width:80},
|
||||||
{ title: '金额合计', dataIndex: 'totalPrice',width:80},
|
{ title: '金额合计', dataIndex: 'totalPrice',width:80},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -175,7 +184,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/depotHead/list",
|
list: "/depotHead/list",
|
||||||
delete: "/depotHead/delete",
|
delete: "/depotHead/delete",
|
||||||
deleteBatch: "/depotHead/deleteBatch"
|
deleteBatch: "/depotHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/depotHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -77,6 +77,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -104,10 +106,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -176,6 +182,9 @@
|
|||||||
{ title: '单据日期', dataIndex: 'operTimeStr',width:145},
|
{ title: '单据日期', dataIndex: 'operTimeStr',width:145},
|
||||||
{ title: '操作员', dataIndex: 'userName',width:80},
|
{ title: '操作员', dataIndex: 'userName',width:80},
|
||||||
{ title: '金额合计', dataIndex: 'totalPrice',width:80},
|
{ title: '金额合计', dataIndex: 'totalPrice',width:80},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -186,7 +195,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/depotHead/list",
|
list: "/depotHead/list",
|
||||||
delete: "/depotHead/delete",
|
delete: "/depotHead/delete",
|
||||||
deleteBatch: "/depotHead/deleteBatch"
|
deleteBatch: "/depotHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/depotHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -77,6 +77,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -104,10 +106,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -176,6 +182,9 @@
|
|||||||
{ title: '单据日期', dataIndex: 'operTimeStr',width:145},
|
{ title: '单据日期', dataIndex: 'operTimeStr',width:145},
|
||||||
{ title: '操作员', dataIndex: 'userName',width:80},
|
{ title: '操作员', dataIndex: 'userName',width:80},
|
||||||
{ title: '金额合计', dataIndex: 'totalPrice',width:80},
|
{ title: '金额合计', dataIndex: 'totalPrice',width:80},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -186,7 +195,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/depotHead/list",
|
list: "/depotHead/list",
|
||||||
delete: "/depotHead/delete",
|
delete: "/depotHead/delete",
|
||||||
deleteBatch: "/depotHead/deleteBatch"
|
deleteBatch: "/depotHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/depotHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -77,6 +77,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -104,10 +106,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -188,6 +194,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ title: '退款', dataIndex: 'changeAmount',width:50},
|
{ title: '退款', dataIndex: 'changeAmount',width:50},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -198,7 +207,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/depotHead/list",
|
list: "/depotHead/list",
|
||||||
delete: "/depotHead/delete",
|
delete: "/depotHead/delete",
|
||||||
deleteBatch: "/depotHead/deleteBatch"
|
deleteBatch: "/depotHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/depotHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -77,6 +77,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -105,10 +107,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -195,6 +201,9 @@
|
|||||||
return debt? debt.toFixed(2):''
|
return debt? debt.toFixed(2):''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -205,7 +214,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/depotHead/list",
|
list: "/depotHead/list",
|
||||||
delete: "/depotHead/delete",
|
delete: "/depotHead/delete",
|
||||||
deleteBatch: "/depotHead/deleteBatch"
|
deleteBatch: "/depotHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/depotHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
<a-menu-item key="3" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -211,21 +211,6 @@
|
|||||||
computed: {
|
computed: {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
myHandleEdit(record) {
|
|
||||||
if(record.status === '0') {
|
|
||||||
this.$refs.modalForm.action = "edit";
|
|
||||||
this.handleEdit(record);
|
|
||||||
} else {
|
|
||||||
this.$message.warning("抱歉,只有未审核的单据才能编辑!")
|
|
||||||
}
|
|
||||||
},
|
|
||||||
myHandleDelete(record) {
|
|
||||||
if(record.status === '0') {
|
|
||||||
this.handleDelete(record.id)
|
|
||||||
} else {
|
|
||||||
this.$message.warning("抱歉,只有未审核的单据才能删除!")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -77,6 +77,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -104,10 +106,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -177,6 +183,9 @@
|
|||||||
{ title: '操作员', dataIndex: 'userName',width:80},
|
{ title: '操作员', dataIndex: 'userName',width:80},
|
||||||
{ title: '金额合计', dataIndex: 'totalPrice',width:80},
|
{ title: '金额合计', dataIndex: 'totalPrice',width:80},
|
||||||
{ title: '付款', dataIndex: 'changeAmount',width:50},
|
{ title: '付款', dataIndex: 'changeAmount',width:50},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -187,7 +196,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/depotHead/list",
|
list: "/depotHead/list",
|
||||||
delete: "/depotHead/delete",
|
delete: "/depotHead/delete",
|
||||||
deleteBatch: "/depotHead/deleteBatch"
|
deleteBatch: "/depotHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/depotHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -77,6 +77,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -104,10 +106,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -177,6 +183,9 @@
|
|||||||
{ title: '操作员', dataIndex: 'userName',width:80},
|
{ title: '操作员', dataIndex: 'userName',width:80},
|
||||||
{ title: '金额合计', dataIndex: 'totalPrice',width:80},
|
{ title: '金额合计', dataIndex: 'totalPrice',width:80},
|
||||||
{ title: '收款', dataIndex: 'changeAmount',width:50},
|
{ title: '收款', dataIndex: 'changeAmount',width:50},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -187,7 +196,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/depotHead/list",
|
list: "/depotHead/list",
|
||||||
delete: "/depotHead/delete",
|
delete: "/depotHead/delete",
|
||||||
deleteBatch: "/depotHead/deleteBatch"
|
deleteBatch: "/depotHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/depotHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -78,6 +78,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -105,10 +107,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -188,6 +194,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ title: '退款', dataIndex: 'changeAmount',width:50},
|
{ title: '退款', dataIndex: 'changeAmount',width:50},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -198,7 +207,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/depotHead/list",
|
list: "/depotHead/list",
|
||||||
delete: "/depotHead/delete",
|
delete: "/depotHead/delete",
|
||||||
deleteBatch: "/depotHead/deleteBatch"
|
deleteBatch: "/depotHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/depotHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
<a-menu-item key="3" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
|
|||||||
@@ -78,6 +78,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -106,10 +108,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -195,6 +201,9 @@
|
|||||||
return debt? debt.toFixed(2):''
|
return debt? debt.toFixed(2):''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -205,7 +214,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/depotHead/list",
|
list: "/depotHead/list",
|
||||||
delete: "/depotHead/delete",
|
delete: "/depotHead/delete",
|
||||||
deleteBatch: "/depotHead/deleteBatch"
|
deleteBatch: "/depotHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/depotHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -32,8 +32,19 @@ export const BillListMixin = {
|
|||||||
this.handleAdd();
|
this.handleAdd();
|
||||||
},
|
},
|
||||||
myHandleEdit(record) {
|
myHandleEdit(record) {
|
||||||
|
if(record.status === '0') {
|
||||||
this.$refs.modalForm.action = "edit";
|
this.$refs.modalForm.action = "edit";
|
||||||
this.handleEdit(record);
|
this.handleEdit(record);
|
||||||
|
} else {
|
||||||
|
this.$message.warning("抱歉,只有未审核的单据才能编辑!")
|
||||||
|
}
|
||||||
|
},
|
||||||
|
myHandleDelete(record) {
|
||||||
|
if(record.status === '0') {
|
||||||
|
this.handleDelete(record.id)
|
||||||
|
} else {
|
||||||
|
this.$message.warning("抱歉,只有未审核的单据才能删除!")
|
||||||
|
}
|
||||||
},
|
},
|
||||||
myHandleDetail(record, type) {
|
myHandleDetail(record, type) {
|
||||||
this.handleDetail(record, type);
|
this.handleDetail(record, type);
|
||||||
@@ -59,7 +70,7 @@ export const BillListMixin = {
|
|||||||
},
|
},
|
||||||
removeStatusColumn() {
|
removeStatusColumn() {
|
||||||
//没有审核反审核权限的时候直接移除状态列
|
//没有审核反审核权限的时候直接移除状态列
|
||||||
if(this.btnEnableList.indexOf(2)===-1) {
|
if(this.btnEnableList.indexOf(2)===-1 && this.btnEnableList.indexOf(7)===-1) {
|
||||||
this.columns.splice(7,1)
|
this.columns.splice(7,1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -73,6 +73,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -100,10 +102,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -156,6 +162,9 @@
|
|||||||
{ title: '合计金额', dataIndex: 'totalPrice',width:80},
|
{ title: '合计金额', dataIndex: 'totalPrice',width:80},
|
||||||
{ title: '收款金额', dataIndex: 'changeAmount',width:80},
|
{ title: '收款金额', dataIndex: 'changeAmount',width:80},
|
||||||
{ title: '备注', dataIndex: 'remark',width:200},
|
{ title: '备注', dataIndex: 'remark',width:200},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -167,7 +176,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/accountHead/list",
|
list: "/accountHead/list",
|
||||||
delete: "/accountHead/delete",
|
delete: "/accountHead/delete",
|
||||||
deleteBatch: "/accountHead/deleteBatch"
|
deleteBatch: "/accountHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/accountHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -64,6 +64,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -91,10 +93,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -144,6 +150,9 @@
|
|||||||
{ title: '操作员', dataIndex: 'userName',width:80},
|
{ title: '操作员', dataIndex: 'userName',width:80},
|
||||||
{ title: '实付金额', dataIndex: 'changeAmount',width:80},
|
{ title: '实付金额', dataIndex: 'changeAmount',width:80},
|
||||||
{ title: '备注', dataIndex: 'remark',width:200},
|
{ title: '备注', dataIndex: 'remark',width:200},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -155,7 +164,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/accountHead/list",
|
list: "/accountHead/list",
|
||||||
delete: "/accountHead/delete",
|
delete: "/accountHead/delete",
|
||||||
deleteBatch: "/accountHead/deleteBatch"
|
deleteBatch: "/accountHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/accountHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -73,6 +73,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1"@click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1"@click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -100,10 +102,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -155,6 +161,9 @@
|
|||||||
{ title: '操作员', dataIndex: 'userName',width:80},
|
{ title: '操作员', dataIndex: 'userName',width:80},
|
||||||
{ title: '收入金额', dataIndex: 'changeAmount',width:80},
|
{ title: '收入金额', dataIndex: 'changeAmount',width:80},
|
||||||
{ title: '备注', dataIndex: 'remark',width:200},
|
{ title: '备注', dataIndex: 'remark',width:200},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -166,7 +175,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/accountHead/list",
|
list: "/accountHead/list",
|
||||||
delete: "/accountHead/delete",
|
delete: "/accountHead/delete",
|
||||||
deleteBatch: "/accountHead/deleteBatch"
|
deleteBatch: "/accountHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/accountHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -73,6 +73,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -100,10 +102,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -155,6 +161,9 @@
|
|||||||
{ title: '操作员', dataIndex: 'userName',width:80},
|
{ title: '操作员', dataIndex: 'userName',width:80},
|
||||||
{ title: '支出金额', dataIndex: 'changeAmount',width:80},
|
{ title: '支出金额', dataIndex: 'changeAmount',width:80},
|
||||||
{ title: '备注', dataIndex: 'remark',width:200},
|
{ title: '备注', dataIndex: 'remark',width:200},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -166,7 +175,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/accountHead/list",
|
list: "/accountHead/list",
|
||||||
delete: "/accountHead/delete",
|
delete: "/accountHead/delete",
|
||||||
deleteBatch: "/accountHead/deleteBatch"
|
deleteBatch: "/accountHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/accountHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -73,6 +73,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -101,10 +103,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -158,6 +164,9 @@
|
|||||||
{ title: '优惠金额', dataIndex: 'discountMoney',width:80},
|
{ title: '优惠金额', dataIndex: 'discountMoney',width:80},
|
||||||
{ title: '实际收款', dataIndex: 'changeAmount',width:80},
|
{ title: '实际收款', dataIndex: 'changeAmount',width:80},
|
||||||
{ title: '备注', dataIndex: 'remark',width:200},
|
{ title: '备注', dataIndex: 'remark',width:200},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -169,7 +178,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/accountHead/list",
|
list: "/accountHead/list",
|
||||||
delete: "/accountHead/delete",
|
delete: "/accountHead/delete",
|
||||||
deleteBatch: "/accountHead/deleteBatch"
|
deleteBatch: "/accountHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/accountHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -73,6 +73,8 @@
|
|||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||||
|
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||||
|
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
<a-button style="margin-left: 8px">
|
<a-button style="margin-left: 8px">
|
||||||
批量操作 <a-icon type="down" />
|
批量操作 <a-icon type="down" />
|
||||||
@@ -101,10 +103,14 @@
|
|||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
<a-popconfirm v-if="btnEnableList.indexOf(1)>-1" title="确定删除吗?" @confirm="() => myHandleDelete(record)">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</span>
|
</span>
|
||||||
|
<template slot="customRenderStatus" slot-scope="status">
|
||||||
|
<a-tag v-if="status == '0'" color="red">未审核</a-tag>
|
||||||
|
<a-tag v-if="status == '1'" color="green">已审核</a-tag>
|
||||||
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -158,6 +164,9 @@
|
|||||||
{ title: '优惠金额', dataIndex: 'discountMoney',width:80},
|
{ title: '优惠金额', dataIndex: 'discountMoney',width:80},
|
||||||
{ title: '实际付款', dataIndex: 'changeAmount',width:80},
|
{ title: '实际付款', dataIndex: 'changeAmount',width:80},
|
||||||
{ title: '备注', dataIndex: 'remark',width:200},
|
{ title: '备注', dataIndex: 'remark',width:200},
|
||||||
|
{ title: '状态', dataIndex: 'status', width: 80, align: "center",
|
||||||
|
scopedSlots: { customRender: 'customRenderStatus' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@@ -169,7 +178,8 @@
|
|||||||
url: {
|
url: {
|
||||||
list: "/accountHead/list",
|
list: "/accountHead/list",
|
||||||
delete: "/accountHead/delete",
|
delete: "/accountHead/delete",
|
||||||
deleteBatch: "/accountHead/deleteBatch"
|
deleteBatch: "/accountHead/deleteBatch",
|
||||||
|
batchSetStatusUrl: "/accountHead/batchSetStatus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -31,8 +31,19 @@ export const FinancialListMixin = {
|
|||||||
this.handleAdd();
|
this.handleAdd();
|
||||||
},
|
},
|
||||||
myHandleEdit(record) {
|
myHandleEdit(record) {
|
||||||
|
if(record.status === '0') {
|
||||||
this.$refs.modalForm.action = "edit";
|
this.$refs.modalForm.action = "edit";
|
||||||
this.handleEdit(record);
|
this.handleEdit(record);
|
||||||
|
} else {
|
||||||
|
this.$message.warning("抱歉,只有未审核的单据才能编辑!")
|
||||||
|
}
|
||||||
|
},
|
||||||
|
myHandleDelete(record) {
|
||||||
|
if(record.status === '0') {
|
||||||
|
this.handleDelete(record.id)
|
||||||
|
} else {
|
||||||
|
this.$message.warning("抱歉,只有未审核的单据才能删除!")
|
||||||
|
}
|
||||||
},
|
},
|
||||||
myHandleDetail(record, type) {
|
myHandleDetail(record, type) {
|
||||||
this.handleDetail(record, type);
|
this.handleDetail(record, type);
|
||||||
|
|||||||
@@ -66,7 +66,8 @@
|
|||||||
jselectMultiple: {
|
jselectMultiple: {
|
||||||
options: [
|
options: [
|
||||||
{ text: '编辑', value: '1' },
|
{ text: '编辑', value: '1' },
|
||||||
{ text: '审核反审核', value: '2' },
|
{ text: '审核', value: '2' },
|
||||||
|
{ text: '反审核', value: '7' },
|
||||||
{ text: '导入导出', value: '3' },
|
{ text: '导入导出', value: '3' },
|
||||||
{ text: '启用禁用', value: '4' },
|
{ text: '启用禁用', value: '4' },
|
||||||
{ text: '打印', value: '5' },
|
{ text: '打印', value: '5' },
|
||||||
|
|||||||
@@ -37,7 +37,8 @@
|
|||||||
:loading="loading">
|
:loading="loading">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a-checkbox v-if="record.pushBtn.indexOf(1)>-1" value="1" :checked="record.btnStr?record.btnStr.indexOf(1)>-1:false" @change="onChange(record,'1')">编辑</a-checkbox>
|
<a-checkbox v-if="record.pushBtn.indexOf(1)>-1" value="1" :checked="record.btnStr?record.btnStr.indexOf(1)>-1:false" @change="onChange(record,'1')">编辑</a-checkbox>
|
||||||
<a-checkbox v-if="record.pushBtn.indexOf(2)>-1" value="2" :checked="record.btnStr?record.btnStr.indexOf(2)>-1:false" @change="onChange(record,'2')">审核反审核</a-checkbox>
|
<a-checkbox v-if="record.pushBtn.indexOf(2)>-1" value="2" :checked="record.btnStr?record.btnStr.indexOf(2)>-1:false" @change="onChange(record,'2')">审核</a-checkbox>
|
||||||
|
<a-checkbox v-if="record.pushBtn.indexOf(7)>-1" value="7" :checked="record.btnStr?record.btnStr.indexOf(7)>-1:false" @change="onChange(record,'7')">反审核</a-checkbox>
|
||||||
<a-checkbox v-if="record.pushBtn.indexOf(3)>-1" value="3" :checked="record.btnStr?record.btnStr.indexOf(3)>-1:false" @change="onChange(record,'3')">导入导出</a-checkbox>
|
<a-checkbox v-if="record.pushBtn.indexOf(3)>-1" value="3" :checked="record.btnStr?record.btnStr.indexOf(3)>-1:false" @change="onChange(record,'3')">导入导出</a-checkbox>
|
||||||
<a-checkbox v-if="record.pushBtn.indexOf(4)>-1" value="4" :checked="record.btnStr?record.btnStr.indexOf(4)>-1:false" @change="onChange(record,'4')">启用禁用</a-checkbox>
|
<a-checkbox v-if="record.pushBtn.indexOf(4)>-1" value="4" :checked="record.btnStr?record.btnStr.indexOf(4)>-1:false" @change="onChange(record,'4')">启用禁用</a-checkbox>
|
||||||
<a-checkbox v-if="record.pushBtn.indexOf(5)>-1" value="5" :checked="record.btnStr?record.btnStr.indexOf(5)>-1:false" @change="onChange(record,'5')">打印</a-checkbox>
|
<a-checkbox v-if="record.pushBtn.indexOf(5)>-1" value="5" :checked="record.btnStr?record.btnStr.indexOf(5)>-1:false" @change="onChange(record,'5')">打印</a-checkbox>
|
||||||
|
|||||||
Reference in New Issue
Block a user