|
@@ -68,6 +68,10 @@
|
|
|
:scroll="{ y: tableHeight }"
|
|
|
:defaultLoadData="false"
|
|
|
bordered>
|
|
|
+ <!-- 状态 -->
|
|
|
+ <template slot="state" slot-scope="text, record">
|
|
|
+ <stateIcon :title="record.stateDictValue" :state="record.state == 'FINISH'?'1':'2'"></stateIcon>
|
|
|
+ </template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
<a-button
|
|
@@ -95,7 +99,7 @@
|
|
|
:footer="null"
|
|
|
:maskClosable="false"
|
|
|
:bodyStyle="{padding:'12px'}"
|
|
|
- title="详情"
|
|
|
+ :title="detailTitle"
|
|
|
v-model="openModal"
|
|
|
v-if="openModal"
|
|
|
@cancle="cancleModal"
|
|
@@ -126,11 +130,12 @@ import storeTransferOutDetailModal from '@/views/allocationManagement/storeTrans
|
|
|
import chainTransferOutDetailModal from '@/views/allocationManagement/chainTransferOut/detail.vue'
|
|
|
import warehouseAllocationDetailModal from '@/views/allocationManagement/warehouseAllocation/detail.vue'
|
|
|
import replenishmentDetailModal from '@/views/numsGoodsShelves/replenishmentManagement/replenishmentDetail.vue'
|
|
|
+import stateIcon from '@/views/common/stateIcon'
|
|
|
import { stockOutList, stockOutOut, stockOutBatchOut } from '@/api/stockOut'
|
|
|
import getDate from '@/libs/getDate.js'
|
|
|
export default {
|
|
|
name: 'OutboundOrderList',
|
|
|
- components: { STable, VSelect, rangeDate, pushOrderDetailModal, salesDetailModal, urgentDetailModal, storeTransferOutDetailModal, chainTransferOutDetailModal, warehouseAllocationDetailModal, replenishmentDetailModal },
|
|
|
+ components: { STable, VSelect, rangeDate, pushOrderDetailModal, salesDetailModal, urgentDetailModal, storeTransferOutDetailModal, chainTransferOutDetailModal, warehouseAllocationDetailModal, replenishmentDetailModal, stateIcon },
|
|
|
mixins: [commonMixin],
|
|
|
data () {
|
|
|
return {
|
|
@@ -159,8 +164,9 @@ export default {
|
|
|
{ title: '总售价', dataIndex: 'productTotalPrice', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '审核时间', dataIndex: 'auditTime', width: '11%', align: 'center', customRender: function (text) { return text || '--' }, sorter: true },
|
|
|
{ title: '出库时间', dataIndex: 'outTime', width: '11%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '出库状态', dataIndex: 'stateDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' }, sorter: true },
|
|
|
- { title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
|
+ { title: '出库', scopedSlots: { customRender: 'state' }, width: '3%', align: 'center' },
|
|
|
+ // { title: '出库状态', dataIndex: 'stateDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' }, sorter: true },
|
|
|
+ { title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
|
|
|
],
|
|
|
loading: false,
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
@@ -241,6 +247,7 @@ export default {
|
|
|
// 详情
|
|
|
handleDetail (row) {
|
|
|
this.outBizType = row.outBizType
|
|
|
+ this.detailTitle = row.outBizTypeDictValue + '详情'
|
|
|
// 根据出库类型跳转对应页面
|
|
|
if (row.outBizType == 'PURCHASE_RETURN') { // 采购退货
|
|
|
this.orderSn = row.outBizSn
|