|
@@ -98,15 +98,41 @@
|
|
|
</template>
|
|
|
</s-table>
|
|
|
</a-spin>
|
|
|
+ <!-- 详情 -->
|
|
|
+ <a-modal
|
|
|
+ centered
|
|
|
+ class="outboundOrderDetail-modal"
|
|
|
+ :footer="null"
|
|
|
+ :maskClosable="false"
|
|
|
+ title="详情"
|
|
|
+ v-model="openModal"
|
|
|
+ v-if="openModal"
|
|
|
+ @cancle="cancleModal"
|
|
|
+ width="80%">
|
|
|
+ <div style="max-height: 700px;overflow-y: scroll;">
|
|
|
+ <pushOrderDetailModal v-if="outBizType=='PURCHASE_RETURN'" :outBizSn="orderSn" />
|
|
|
+ <salesDetailModal v-if="outBizType=='SALES'" :outBizSn="orderSn" />
|
|
|
+ <urgentDetailModal v-if="outBizType=='DISPATCH_DEDUCT'" :outBizSn="orderSn" />
|
|
|
+ <storeTransferOutDetailModal v-if="outBizType=='SHOP_CALL_OUT'" :outBizSn="orderSn" />
|
|
|
+ <chainTransferOutDetailModal v-if="outBizType=='LINKAGE_CALL_OUT'" :outBizSn="orderSn" />
|
|
|
+ <warehouseAllocationDetailModal v-if="outBizType=='WAREHOUSE_CALL_OUT'" :outBizSn="orderSn" />
|
|
|
+ </div>
|
|
|
+ </a-modal>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
+import pushOrderDetailModal from '@/views/purchasingManagement/purchaseReturn/detail.vue'
|
|
|
+import salesDetailModal from '@/views/salesManagement/salesQuery/detail.vue'
|
|
|
+import urgentDetailModal from '@/views/salesManagement/urgentItemsOffset/detail.vue'
|
|
|
+import storeTransferOutDetailModal from '@/views/allocationManagement/storeTransferOut/detail.vue'
|
|
|
+import chainTransferOutDetailModal from '@/views/allocationManagement/chainTransferOut/detail.vue'
|
|
|
+import warehouseAllocationDetailModal from '@/views/allocationManagement/warehouseAllocation/detail.vue'
|
|
|
import { stockOutList, stockOutOut } from '@/api/stockOut'
|
|
|
export default {
|
|
|
- components: { STable, VSelect, rangeDate },
|
|
|
+ components: { STable, VSelect, rangeDate, pushOrderDetailModal, salesDetailModal, urgentDetailModal, storeTransferOutDetailModal, chainTransferOutDetailModal, warehouseAllocationDetailModal },
|
|
|
data () {
|
|
|
return {
|
|
|
spinning: false,
|
|
@@ -151,7 +177,10 @@ export default {
|
|
|
this.disabled = false
|
|
|
return data
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+ openModal: false,
|
|
|
+ orderSn: undefined,
|
|
|
+ outBizType: null // 当前单子类型 SALES销售出库 ALLOCATE调拨出库
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -213,29 +242,46 @@ export default {
|
|
|
},
|
|
|
// 详情
|
|
|
handleDetail (row) {
|
|
|
+ this.outBizType = row.outBizType
|
|
|
// 根据出库类型跳转对应页面
|
|
|
if (row.outBizType == 'PURCHASE_RETURN') { // 采购退货
|
|
|
- this.$router.push({ path: `/purchasingManagement/purchaseReturn/detail/${row.outBizSn}` })
|
|
|
+ // this.$router.push({ path: `/purchasingManagement/purchaseReturn/detail/${row.outBizSn}` })
|
|
|
+ this.orderSn = row.outBizSn
|
|
|
+ this.openModal = true
|
|
|
} else if (row.outBizType == 'SPARE_PARTS_RETURN') { // 散件退货
|
|
|
this.$message.warning('该出库类型对应页面未开发')
|
|
|
- // this.$router.push({ path: `/purchasingManagement/purchaseReturn/detail/${row.outBizSn}` })
|
|
|
} else if (row.outBizType == 'SALES') { // 销售
|
|
|
- this.$router.push({ path: `/salesManagement/salesQuery/detail/${row.outBizSn}` })
|
|
|
+ // this.$router.push({ path: `/salesManagement/salesQuery/detail/${row.outBizSn}` })
|
|
|
+ this.orderSn = row.outBizSn
|
|
|
+ this.openModal = true
|
|
|
} else if (row.outBizType == 'DISPATCH_DEDUCT') { // 急件冲减
|
|
|
- this.$router.push({ path: `/salesManagement/urgentItemsOffset/detail/${row.outBizSn}` })
|
|
|
+ // this.$router.push({ path: `/salesManagement/urgentItemsOffset/detail/${row.outBizSn}` })
|
|
|
+ this.orderSn = row.outBizSn
|
|
|
+ this.openModal = true
|
|
|
} else if (row.outBizType == 'SHOP_CALL_OUT') { // 店内调出
|
|
|
- this.$router.push({ path: `/allocationManagement/storeTransferOut/detail/${row.outBizSn}` })
|
|
|
+ // this.$router.push({ path: `/allocationManagement/storeTransferOut/detail/${row.outBizSn}` })
|
|
|
+ this.orderSn = row.outBizSn
|
|
|
+ this.openModal = true
|
|
|
} else if (row.outBizType == 'CHECK_ORDER_OUT') { // 库存盘点盘亏
|
|
|
this.$message.warning('该出库类型对应页面未开发')
|
|
|
- // this.$router.push({ path: `/purchasingManagement/purchaseReturn/detail/${row.outBizSn}` })
|
|
|
} else if (row.outBizType == 'LINKAGE_CALL_OUT') { // 连锁调出
|
|
|
- this.$router.push({ path: `/allocationManagement/chainTransferOut/detail/${row.outBizSn}` })
|
|
|
+ // this.$router.push({ path: `/allocationManagement/chainTransferOut/detail/${row.outBizSn}` })
|
|
|
+ this.orderSn = row.outBizSn
|
|
|
+ this.openModal = true
|
|
|
} else if (row.outBizType == 'WAREHOUSE_CALL_OUT') { // 仓库调出
|
|
|
- this.$router.push({ path: `/allocationManagement/warehouseAllocation/detail/${row.outBizSn}` })
|
|
|
+ // this.$router.push({ path: `/allocationManagement/warehouseAllocation/detail/${row.outBizSn}` })
|
|
|
+ this.orderSn = row.outBizSn
|
|
|
+ this.openModal = true
|
|
|
} else {
|
|
|
this.$message.warning('出库类型未知')
|
|
|
}
|
|
|
},
|
|
|
+ // 关闭弹框
|
|
|
+ cancleModal () {
|
|
|
+ this.outBizType = null
|
|
|
+ this.orderSn = undefined
|
|
|
+ this.openModal = false
|
|
|
+ },
|
|
|
// 单个出库
|
|
|
handleOutbound (row) {
|
|
|
const _this = this
|