|
@@ -102,29 +102,34 @@
|
|
|
<template slot="sparePartsPurchaseNo" slot-scope="text, record">
|
|
|
<span style="color: #ed1c24;cursor: pointer;" @click="handleDetail(record)">{{ record.sparePartsPurchaseNo }}</span>
|
|
|
</template>
|
|
|
+ <!-- 财务状态 -->
|
|
|
+ <template slot="settleState" slot-scope="text, record">
|
|
|
+ <a-badge :color="text=='FINISH'?'#87d068':'gold'" :text="record.settleStateDictValue" />
|
|
|
+ </template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
<a-button
|
|
|
size="small"
|
|
|
- type="primary"
|
|
|
+ type="link"
|
|
|
v-if="record.state != 'FINISH'"
|
|
|
@click="handleEdit(record)"
|
|
|
class="button-info"
|
|
|
id="bulkWarehousingOrderList-edit-btn">编辑</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
|
- type="primary"
|
|
|
- v-if="record.state == 'WAIT_PUT_WAREHOUSE'"
|
|
|
+ type="link"
|
|
|
+ v-else-if="record.state == 'WAIT_PUT_WAREHOUSE'"
|
|
|
@click="handleWarehouse(record)"
|
|
|
class="button-warning"
|
|
|
id="bulkWarehousingOrderList-warehouse-btn">入库</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
|
- type="primary"
|
|
|
- v-if="record.state != 'FINISH'"
|
|
|
+ type="link"
|
|
|
+ v-else-if="record.state != 'FINISH'"
|
|
|
@click="handleDel(record)"
|
|
|
class="button-error"
|
|
|
id="bulkWarehousingOrderList-del-btn">删除</a-button>
|
|
|
+ <span v-else>--</span>
|
|
|
</template>
|
|
|
</s-table>
|
|
|
<!-- 选择基本信息弹框 -->
|
|
@@ -167,7 +172,7 @@ export default {
|
|
|
{ title: '总数量', dataIndex: 'productTotalQty', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '总金额', dataIndex: 'productTotalCost', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '业务状态', dataIndex: 'stateDictValue', width: 110, align: 'center' },
|
|
|
- { title: '财务状态', dataIndex: 'settleStateDictValue', width: 110, align: 'center' },
|
|
|
+ { title: '财务状态', dataIndex: 'settleState', scopedSlots: { customRender: 'settleState' }, width: 110, align: 'center' },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 200, align: 'center', fixed: 'right' }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|