|
@@ -51,6 +51,7 @@
|
|
|
class="button-warning"
|
|
|
@click="handleExport"
|
|
|
:disabled="disabled"
|
|
|
+ v-if="$hasPermissions('B_ProductPriceExoprt')"
|
|
|
id="productInfoList-export">导出</a-button>
|
|
|
<a @click="advanced=!advanced" style="margin-left: 5px">
|
|
|
{{ advanced ? '收起' : '展开' }}
|
|
@@ -62,15 +63,22 @@
|
|
|
</div>
|
|
|
<!-- 操作按钮 -->
|
|
|
<div class="table-operator">
|
|
|
+ <a-button
|
|
|
+ style="margin: 0 15px 0 0;"
|
|
|
+ v-if="$hasPermissions('B_productPriceImport')"
|
|
|
+ id="productPricingList-add"
|
|
|
+ @click="openGuideModal=true"
|
|
|
+ type="primary"
|
|
|
+ class="button-error">定价导入</a-button>
|
|
|
<a-button
|
|
|
id="productPricingList-batchAudit"
|
|
|
type="primary"
|
|
|
class="button-warning"
|
|
|
:loading="spinning"
|
|
|
@click="handleBatchAudit"
|
|
|
+ v-if="$hasPermissions('B_productPricing_audit')"
|
|
|
style="margin: 0 15px 0 0;">批量审核</a-button>
|
|
|
- <span>已选{{ rowSelectionInfo&&rowSelectionInfo.selectedRowKeys?rowSelectionInfo.selectedRowKeys.length:0 }}项</span>
|
|
|
- <a-button style="margin: 0 0 0 15px;" id="productPricingList-add" @click="openGuideModal=true" type="primary" class="button-error">定价导入</a-button>
|
|
|
+ <span v-if="$hasPermissions('B_productPricing_audit')">已选{{ rowSelectionInfo&&rowSelectionInfo.selectedRowKeys?rowSelectionInfo.selectedRowKeys.length:0 }}项</span>
|
|
|
</div>
|
|
|
<!-- 列表 -->
|
|
|
<s-table
|
|
@@ -78,7 +86,7 @@
|
|
|
ref="table"
|
|
|
:style="{ height: tableHeight+84.5+'px' }"
|
|
|
size="small"
|
|
|
- :row-selection="{ columnWidth: 40, getCheckboxProps: record => ({ props: { disabled: record.pricingState!='WAIT_PRICING_AUDIT' } })}"
|
|
|
+ :row-selection="$hasPermissions('B_productPricing_audit') ? { columnWidth: 40, getCheckboxProps: record => ({ props: { disabled: record.pricingState!='WAIT_PRICING_AUDIT' } })}: null"
|
|
|
@rowSelection="rowSelectionFun"
|
|
|
:rowKey="(record) => record.id"
|
|
|
:columns="columns"
|