|
@@ -71,6 +71,12 @@
|
|
|
:dataSource="setMealData"
|
|
|
:pagination="false"
|
|
|
bordered>
|
|
|
+ <!-- 到期时间 -->
|
|
|
+ <span slot="expiryDate" slot-scope="text, record">
|
|
|
+ <span v-if="record.cycleFlag==0">{{record.expiryDate}}</span>
|
|
|
+ <span v-else>--</span>
|
|
|
+ </span>
|
|
|
+ <!-- 操作 -->
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
<a-button v-if="record.isDelay" type="link" @click="openSetDelay(record)">延期</a-button>
|
|
|
<span v-else>--</span>
|
|
@@ -129,7 +135,7 @@ export default {
|
|
|
setMealColumns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: 60, align: 'center' },
|
|
|
{ title: '服务名称', dataIndex: 'itemName', width: 200, align: 'center' },
|
|
|
- { title: '到期时间', dataIndex: 'expiryDate', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '到期时间', scopedSlots: { customRender: 'expiryDate' }, width: 100, align: 'center' },
|
|
|
{ title: '总次数', dataIndex: 'times', width: 100, align: 'center' },
|
|
|
{ title: '剩余次数', dataIndex: 'remainTimes', width: 100, align: 'center' },
|
|
|
{ title: '已用次数', dataIndex: 'usedTimes', width: 100, align: 'center' },
|