|
@@ -10,7 +10,7 @@
|
|
|
<div class="desc-wrap-BasicTable">
|
|
|
<BasicTable @register="registerTable">
|
|
|
<template #toolbar>
|
|
|
- <a-button type="primary" @click="handleOrder" v-if="getCheckPerm('invoice-export')"> 录单</a-button>
|
|
|
+ <a-button type="primary" @click="handleOrder" v-if="getCheckPerm('work_Add')"> 录单</a-button>
|
|
|
</template>
|
|
|
<template #action="{ record }">
|
|
|
<TableAction
|
|
@@ -18,35 +18,37 @@
|
|
|
:actions="[
|
|
|
{
|
|
|
label: '详情',
|
|
|
+ ifShow:getCheckPerm('work_detail'),
|
|
|
onClick: handleDetail.bind(null, record),
|
|
|
},
|
|
|
{
|
|
|
label: '接单',
|
|
|
- ifShow:record.status == 0,
|
|
|
+ ifShow:getCheckPerm('work_orderTakers') && record.status == 0,
|
|
|
onClick: handleRecover.bind(null, record),
|
|
|
},
|
|
|
{
|
|
|
label: '报价',
|
|
|
- ifShow:record.status == 2,
|
|
|
+ ifShow:getCheckPerm('work_quotedPrice') && record.status == 2,
|
|
|
onClick: handleQuote.bind(null, record),
|
|
|
},
|
|
|
{
|
|
|
label: '修改报价',
|
|
|
- ifShow:record.status == 3,
|
|
|
+ ifShow:getCheckPerm('work_setPrice') && record.status == 3,
|
|
|
onClick: handleQuote.bind(null, record),
|
|
|
},
|
|
|
{
|
|
|
label: '付款登记',
|
|
|
- ifShow:record.status == 9,
|
|
|
+ ifShow:getCheckPerm('work_payments') && record.status == 9,
|
|
|
onClick: handlePayLog.bind(null, record),
|
|
|
},
|
|
|
{
|
|
|
label: '发货登记',
|
|
|
- ifShow:record.status == 10,
|
|
|
+ ifShow:getCheckPerm('work_dispatched') && record.status == 10,
|
|
|
onClick: handleDelivery.bind(null, record),
|
|
|
},
|
|
|
{
|
|
|
label: '备注',
|
|
|
+ ifShow:getCheckPerm('work_mark'),
|
|
|
onClick: handleRemarks.bind(null, record),
|
|
|
},
|
|
|
]"
|