|
@@ -77,6 +77,10 @@
|
|
|
<span style="color: #ed1c24;cursor: pointer;" v-if="$hasPermissions('M_urgentDetail')" @click="handleDetail(record)">{{ record.urgentBillNo }}</span>
|
|
|
<span v-else>{{ record.urgentBillNo }}</span>
|
|
|
</template>
|
|
|
+ <!-- 状态 -->
|
|
|
+ <template slot="status" slot-scope="text, record">
|
|
|
+ <stateIcon :title="record.statusDictValue" :state="record.status=='WAIT'?'2':'1'"></stateIcon>
|
|
|
+ </template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
<a-button
|
|
@@ -98,11 +102,12 @@ import { commonMixin } from '@/utils/mixin'
|
|
|
import { urgentList, urgentWriteDown } from '@/api/urgent'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
+import stateIcon from '@/views/common/stateIcon'
|
|
|
import custList from '@/views/common/custList.vue'
|
|
|
import getDate from '@/libs/getDate.js'
|
|
|
export default {
|
|
|
name: 'UrgentOffsetList',
|
|
|
- components: { STable, VSelect, rangeDate, custList },
|
|
|
+ components: { STable, VSelect, rangeDate, custList, stateIcon },
|
|
|
mixins: [commonMixin],
|
|
|
data () {
|
|
|
return {
|
|
@@ -128,12 +133,12 @@ export default {
|
|
|
{ title: '急件单号', scopedSlots: { customRender: 'urgentBillNo' }, width: '15%', align: 'center' },
|
|
|
{ title: '急件类型', dataIndex: 'bizTypeDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '关联单号', dataIndex: 'bizBillNo', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '单位名称', dataIndex: 'buyerName', width: '21%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '单位名称', dataIndex: 'buyerName', width: '24%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '总款数', dataIndex: 'totalCategory', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '总数量', dataIndex: 'totalQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '冲减时间', dataIndex: 'offSetTime', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '状态', dataIndex: 'statusDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '状态', scopedSlots: { customRender: 'status' }, width: '3%', align: 'center' },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|