Skip to content

The open source simple and complete warehouse management system is derived from our many years of experience in implementing erp projects. We stripped the original commercial system wms function and opened it up for free, hoping to help the majority of small and medium-sized enterprises. At present, the system supports cross-platform。

feat(delivered): Add see detail function

liufu1fcb9a123574
diff --git a/frontend/src/api/wms/deliveryManagement.ts b/frontend/src/api/wms/deliveryManagement.ts
index b5ebfa4..cb6bc59 100644
--- a/frontend/src/api/wms/deliveryManagement.ts
+++ b/frontend/src/api/wms/deliveryManagement.ts
@@ -219,3 +219,12 @@ export const viewInventoryDetails = (dispatch_id: number) => http({
dispatch_id
}
})
+
+// Set carrier
+export const viewDeliveryMainDetail = (dispatch_no: string) => http({
+ url: '/dispatchlist/by-dispatch_no',
+ method: 'get',
+ params: {
+ dispatch_no
+ }
+ })
diff --git a/frontend/src/languages/langs/cnZh.ts b/frontend/src/languages/langs/cnZh.ts
index 5fb890e..32d2a8b 100644
--- a/frontend/src/languages/langs/cnZh.ts
+++ b/frontend/src/languages/langs/cnZh.ts
@@ -486,6 +486,8 @@ export default {
spu_code: '商品编码',
spu_name: '商品名称',
sku_code: '规格编码',
+ sku_name: '规格名称',
+ unit: '商品单位',
creator: '创建人',
create_time: '创建时间',
confirmOrder: '确认发货单',
diff --git a/frontend/src/languages/langs/enUs.ts b/frontend/src/languages/langs/enUs.ts
index 76d7cc5..0e182c4 100644
--- a/frontend/src/languages/langs/enUs.ts
+++ b/frontend/src/languages/langs/enUs.ts
@@ -486,6 +486,8 @@ export default {
spu_code: 'Commodity Code',
spu_name: 'Commodity Name',
sku_code: 'Specification Code',
+ sku_name: 'Specification Name',
+ unit: 'Commodity Unit',
creator: 'Created By',
create_time: 'Creation Time',
confirmOrder: 'Confirm Shipment Doc',
diff --git a/frontend/src/view/deliveryManagement/deliveryManagement/search-delivered-main-detail.vue b/frontend/src/view/deliveryManagement/deliveryManagement/search-delivered-main-detail.vue
new file mode 100644
index 0000000..d11e2a9
--- /dev/null
+++ b/frontend/src/view/deliveryManagement/deliveryManagement/search-delivered-main-detail.vue
@@ -0,0 +1,84 @@
+<template>
+ <v-dialog v-model="isShow" :width="'70%'" transition="dialog-top-transition" :persistent="true">
+ <template #default>
+ <v-card class="formCard">
+ <v-toolbar color="white" :title="`${$t('wms.deliveryManagement.ViewInventoryDetails')}`"></v-toolbar>
+ <v-card-text>
+ <vxe-table
+ ref="detailXTable"
+ keep-source
+ :column-config="{ minWidth: '100px' }"
+ :data="data.tableData"
+ :height="'500px'"
+ align="center"
+ :edit-config="{ trigger: 'click', mode: 'cell' }"
+ >
+ <template #empty>
+ {{ i18n.global.t('system.page.noData') }}
+ </template>
+ <vxe-column type="seq" width="60"></vxe-column>
+ <vxe-column field="spu_code" :title="$t('wms.deliveryManagement.spu_code')"></vxe-column>
+ <vxe-column field="spu_name" :title="$t('wms.deliveryManagement.spu_name')"></vxe-column>
+ <vxe-column field="spu_description" :title="$t('wms.deliveryManagement.spu_description')"></vxe-column>
+ <vxe-column field="bar_code" :title="$t('wms.deliveryManagement.bar_code')"></vxe-column>
+ <vxe-column field="sku_code" :title="$t('wms.deliveryManagement.sku_code')"></vxe-column>
+ <vxe-column field="sku_name" :title="$t('wms.deliveryManagement.sku_name')"></vxe-column>
+ <vxe-column field="unit" :title="$t('wms.deliveryManagement.unit')"></vxe-column>
+ <vxe-column field="qty" :title="$t('wms.deliveryManagement.qty')"></vxe-column>
+ </vxe-table>
+ </v-card-text>
+ <v-card-actions class="justify-end">
+ <v-btn variant="text" @click="method.closeDialog">{{ $t('system.page.close') }}</v-btn>
+ </v-card-actions>
+ </v-card>
+ </template>
+ </v-dialog>
+</template>
+
+<script lang="ts" setup>
+import { reactive, computed, defineEmits, watch } from 'vue'
+import { hookComponent } from '@/components/system/index'
+import { viewDeliveryMainDetail } from '@/api/wms/deliveryManagement'
+import i18n from '@/languages/i18n'
+
+const emit = defineEmits(['close', 'submit'])
+
+const props = defineProps<{
+ showDialog: boolean
+ dispatchNo: string
+}>()
+
+const isShow = computed(() => props.showDialog)
+
+const data = reactive({
+ tableData: []
+})
+
+const method = reactive({
+ getTableData: async () => {
+ const { data: res } = await viewDeliveryMainDetail(props.dispatchNo)
+ if (!res.isSuccess) {
+ hookComponent.$message({
+ type: 'error',
+ content: res.errorMessage
+ })
+ return
+ }
+ data.tableData = res.data
+ },
+ closeDialog: () => {
+ emit('close')
+ }
+})
+
+watch(
+ () => isShow.value,
+ (val) => {
+ if (val) {
+ method.getTableData()
+ }
+ }
+)
+</script>
+
+<style scoped lang="less"></style>
diff --git a/frontend/src/view/deliveryManagement/deliveryManagement/tabNewShipment.vue b/frontend/src/view/deliveryManagement/deliveryManagement/tabNewShipment.vue
index daf3eb5..f5fa160 100644
--- a/frontend/src/view/deliveryManagement/deliveryManagement/tabNewShipment.vue
+++ b/frontend/src/view/deliveryManagement/deliveryManagement/tabNewShipment.vue
@@ -72,8 +72,14 @@
field="create_time"
width="170px"
:title="$t('wms.deliveryManagement.create_time')"
-
></vxe-column> -->
+ <vxe-column field="operate" :title="$t('system.page.operate')" width="60" :resizable="false" show-overflow>
+ <template #default="{ row }">
+ <div style="width: 100%; display: flex; justify-content: center">
+ <tooltip-btn :flat="true" icon="mdi-eye-outline" :tooltip-text="$t('system.page.view')" @click="method.viewRow(row)"></tooltip-btn>
+ </div>
+ </template>
+ </vxe-column>
</vxe-table>
<custom-pager
:current-page="data.tablePage.pageIndex"
@@ -85,6 +91,12 @@
@page-change="method.handlePageChange"
>
</custom-pager>
+ <!-- View order details -->
+ <SearchDeliveredMainDetail
+ :dispatch-no="data.showDeliveredMainDetailNo"
+ :show-dialog="data.showDeliveredMainDetail"
+ @close="method.closeDeliveredDetail"
+ />
</div>
</template>
@@ -104,10 +116,13 @@ import { setSearchObject } from '@/utils/common'
import { TablePage } from '@/types/System/Form'
import { exportData } from '@/utils/exportTable'
import { DEBOUNCE_TIME } from '@/constant/system'
+import SearchDeliveredMainDetail from './search-delivered-main-detail.vue'
const xTable = ref()
const data = reactive({
+ showDeliveredMainDetailNo: '',
+ showDeliveredMainDetail: false,
showDialog: false,
searchForm: {
dispatch_no: '',
@@ -125,6 +140,15 @@ const data = reactive({
})
const method = reactive({
+ viewRow: (row: DeliveryManagementVO) => {
+ if (row.dispatch_no) {
+ data.showDeliveredMainDetailNo = row.dispatch_no
+ data.showDeliveredMainDetail = true
+ }
+ },
+ closeDeliveredDetail: () => {
+ data.showDeliveredMainDetail = false
+ },
// Refresh data
refresh: () => {
method.getNewShipment()
diff --git a/frontend/src/view/deliveryManagement/deliveryManagement/tabPreShipment.vue b/frontend/src/view/deliveryManagement/deliveryManagement/tabPreShipment.vue
index 0a34c1e..bd8a2bd 100644
--- a/frontend/src/view/deliveryManagement/deliveryManagement/tabPreShipment.vue
+++ b/frontend/src/view/deliveryManagement/deliveryManagement/tabPreShipment.vue
@@ -72,8 +72,14 @@
field="create_time"
width="170px"
:title="$t('wms.deliveryManagement.create_time')"
-
></vxe-column> -->
+ <vxe-column field="operate" :title="$t('system.page.operate')" width="70" :resizable="false" show-overflow>
+ <template #default="{ row }">
+ <div style="width: 100%; display: flex; justify-content: center">
+ <tooltip-btn :flat="true" icon="mdi-eye-outline" :tooltip-text="$t('system.page.view')" @click="method.viewRow(row)"></tooltip-btn>
+ </div>
+ </template>
+ </vxe-column>
</vxe-table>
<custom-pager
:current-page="data.tablePage.pageIndex"
@@ -85,6 +91,12 @@
@page-change="method.handlePageChange"
>
</custom-pager>
+ <!-- View order details -->
+ <SearchDeliveredMainDetail
+ :dispatch-no="data.showDeliveredMainDetailNo"
+ :show-dialog="data.showDeliveredMainDetail"
+ @close="method.closeDeliveredDetail"
+ />
</div>
</template>
@@ -104,10 +116,13 @@ import { setSearchObject } from '@/utils/common'
import { TablePage } from '@/types/System/Form'
import { exportData } from '@/utils/exportTable'
import { DEBOUNCE_TIME } from '@/constant/system'
+import SearchDeliveredMainDetail from './search-delivered-main-detail.vue'
const xTable = ref()
const data = reactive({
+ showDeliveredMainDetailNo: '',
+ showDeliveredMainDetail: false,
showDialog: false,
dialogForm: {
id: 0
@@ -128,6 +143,15 @@ const data = reactive({
})
const method = reactive({
+ viewRow: (row: DeliveryManagementVO) => {
+ if (row.dispatch_no) {
+ data.showDeliveredMainDetailNo = row.dispatch_no
+ data.showDeliveredMainDetail = true
+ }
+ },
+ closeDeliveredDetail: () => {
+ data.showDeliveredMainDetail = false
+ },
// Refresh data
refresh: () => {
method.getPreShipment()
@@ -152,13 +176,13 @@ const method = reactive({
}),
exportTable: () => {
const $table = xTable.value
- exportData({
- table: $table,
- filename: i18n.global.t('wms.deliveryManagement.preShipment'),
- columnFilterMethod({ column }: any) {
- return !['checkbox'].includes(column?.type) && !['operate'].includes(column?.field)
- }
- })
+ exportData({
+ table: $table,
+ filename: i18n.global.t('wms.deliveryManagement.preShipment'),
+ columnFilterMethod({ column }: any) {
+ return !['checkbox'].includes(column?.type) && !['operate'].includes(column?.field)
+ }
+ })
},
sureSearch: () => {
data.tablePage.searchObjects = setSearchObject(data.searchForm)
diff --git a/frontend/src/view/deliveryManagement/deliveryManagement/tabShipment.vue b/frontend/src/view/deliveryManagement/deliveryManagement/tabShipment.vue
index 17996b9..86ff145 100644
--- a/frontend/src/view/deliveryManagement/deliveryManagement/tabShipment.vue
+++ b/frontend/src/view/deliveryManagement/deliveryManagement/tabShipment.vue
@@ -87,9 +87,10 @@
<vxe-column field="customer_name" :title="$t('wms.deliveryManagement.customer_name')"></vxe-column>
<vxe-column field="creator" :title="$t('wms.deliveryManagement.creator')"></vxe-column>
<!-- <vxe-column field="create_time" width="170px" :title="$t('wms.deliveryManagement.create_time')"></vxe-column> -->
- <vxe-column field="operate" :title="$t('system.page.operate')" width="240" :resizable="false" show-overflow>
+ <vxe-column field="operate" :title="$t('system.page.operate')" width="290" :resizable="false" show-overflow>
<template #default="{ row }">
<div style="width: 100%; display: flex; justify-content: center">
+ <tooltip-btn :flat="true" icon="mdi-eye-outline" :tooltip-text="$t('system.page.view')" @click="method.viewRow(row)"></tooltip-btn>
<tooltip-btn
:disabled="row.dispatch_status !== 0 && row.dispatch_status !== 1"
:flat="true"
@@ -142,6 +143,12 @@
@close="method.closeConfirmOrder"
@save-success="method.confirmSuccess"
/>
+ <!-- View order details -->
+ <SearchDeliveredMainDetail
+ :dispatch-no="data.showDeliveredMainDetailNo"
+ :show-dialog="data.showDeliveredMainDetail"
+ @close="method.closeDeliveredDetail"
+ />
</div>
</template>
@@ -164,10 +171,13 @@ import { setSearchObject } from '@/utils/common'
import { TablePage } from '@/types/System/Form'
import { exportData } from '@/utils/exportTable'
import { DEBOUNCE_TIME } from '@/constant/system'
+import SearchDeliveredMainDetail from './search-delivered-main-detail.vue'
const xTable = ref()
const data = reactive({
+ showDeliveredMainDetailNo: '',
+ showDeliveredMainDetail: false,
showDialog: false,
dialogForm: {
id: 0,
@@ -231,6 +241,15 @@ const data = reactive({
})
const method = reactive({
+ viewRow: (row: DeliveryManagementVO) => {
+ if (row.dispatch_no) {
+ data.showDeliveredMainDetailNo = row.dispatch_no
+ data.showDeliveredMainDetail = true
+ }
+ },
+ closeDeliveredDetail: () => {
+ data.showDeliveredMainDetail = false
+ },
// Confirm picking
confirmPicking: async (row: DeliveryManagementVO) => {
hookComponent.$dialog({