|
@@ -78,6 +78,19 @@
|
|
|
<span style="color: #ed1c24;cursor: pointer;" v-if="$hasPermissions('B_bulkReturnGoodsDetail')" @click="handleDetail(record)">{{ record.sparePartsReturnNo }}</span>
|
|
|
<span v-else>{{ record.sparePartsReturnNo }}</span>
|
|
|
</template>
|
|
|
+ <!-- 审核 -->
|
|
|
+ <template slot="audit" slot-scope="text, record">
|
|
|
+ <stateIcon v-if="record.state!='AUDIT_REJECT'" :state="record.state !== 'WAIT_SUBMIT'&&record.state !== 'WAIT_AUDIT'?'1':'2'"></stateIcon>
|
|
|
+ <stateIcon :title="record.stateDictValue" v-else :state="0"></stateIcon>
|
|
|
+ </template>
|
|
|
+ <!-- 出库 -->
|
|
|
+ <template slot="waitOut" slot-scope="text, record">
|
|
|
+ <stateIcon :state="record.state == 'FINISH'?'1':'2'"></stateIcon>
|
|
|
+ </template>
|
|
|
+ <!-- 收款 -->
|
|
|
+ <template slot="financial" slot-scope="text, record">
|
|
|
+ <stateIcon :title="record.settleStateDictValue" :state="record.settleState == 'FINISH'?'1':'2'"></stateIcon>
|
|
|
+ </template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
<a-button
|
|
@@ -129,11 +142,12 @@ import bulkReturnGoodsDetailModal from './detailModal.vue'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
import getDate from '@/libs/getDate.js'
|
|
|
import auditModal from '@/views/common/auditModal.vue'
|
|
|
+import stateIcon from '@/views/common/stateIcon'
|
|
|
import { supplierAllList } from '@/api/supplier'
|
|
|
import { sparePartsRetList, sparePartsRetDel, sparePartsRetOutStock, sparePartsRetAudit } from '@/api/sparePartsRet'
|
|
|
export default {
|
|
|
name: 'BulkReturnGoodsList',
|
|
|
- components: { STable, VSelect, basicInfoModal, rangeDate, bulkReturnGoodsDetailModal, auditModal },
|
|
|
+ components: { STable, VSelect, basicInfoModal, rangeDate, bulkReturnGoodsDetailModal, auditModal, stateIcon },
|
|
|
mixins: [commonMixin],
|
|
|
data () {
|
|
|
return {
|
|
@@ -156,14 +170,17 @@ export default {
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
|
- { title: '散件退货单号', scopedSlots: { customRender: 'sparePartsReturnNo' }, width: '16%', align: 'center' },
|
|
|
+ { title: '散件退货单号', scopedSlots: { customRender: 'sparePartsReturnNo' }, width: '13%', align: 'center' },
|
|
|
{ title: '供应商', dataIndex: 'supplierName', width: '13%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '产品款数', dataIndex: 'productTotalCategory', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '总数量', dataIndex: 'productTotalQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '总金额', dataIndex: 'productTotalCost', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '是否抓单', dataIndex: 'isGrabDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '业务状态', dataIndex: 'stateDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '财务状态', dataIndex: 'settleStateDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ // { title: '财务状态', dataIndex: 'settleStateDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '审核', scopedSlots: { customRender: 'audit' }, width: '3%', align: 'center' },
|
|
|
+ { title: '出库', scopedSlots: { customRender: 'waitOut' }, width: '3%', align: 'center' },
|
|
|
+ { title: '收款', scopedSlots: { customRender: 'financial' }, width: '3%', align: 'center' },
|
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '11%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '出库时间', dataIndex: 'outStockTime', width: '11%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '9%', align: 'center' }
|