|
@@ -152,12 +152,15 @@
|
|
|
bordered>
|
|
|
<!-- 质保时间 -->
|
|
|
<template slot="warrantyTime" slot-scope="text, record">
|
|
|
- {{ record.warrantyStartDate }}{{ record.warrantyEndDate?'至'+record.warrantyEndDate:'' }}
|
|
|
+ <span v-if="record.warrantyStartDate">
|
|
|
+ {{ record.warrantyStartDate }}{{ record.warrantyEndDate?'至'+record.warrantyEndDate:'' }}
|
|
|
+ </span>
|
|
|
+ <span v-else>--</span>
|
|
|
</template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
- <a-button v-if="$hasPermissions('B_productSourceSeeInfo')" size="small" type="link" class="button-warning" @click="handleInfoModal(record)">质保信息</a-button>
|
|
|
- <span v-else>质保信息</span>
|
|
|
+ <a-button v-if="$hasPermissions('B_productSourceSeeInfo')&&record.warrantyState!='RUN'" size="small" type="link" class="button-warning" @click="handleInfoModal(record)">质保信息</a-button>
|
|
|
+ <span v-else>--</span>
|
|
|
</template>
|
|
|
</s-table>
|
|
|
</a-spin>
|