From 3b49c37b07fe522ff8fede0b4588599091881641 Mon Sep 17 00:00:00 2001 From: Amjacks <1932302177@qq.com> Date: Thu, 10 Apr 2025 18:46:05 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E5=88=B0=E8=B4=A7=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/StockIn/index.ts | 33 ---- src/api/delivery/index.ts | 49 +++++ src/views/stockIn/StockInByCharge/drawer.vue | 11 +- src/views/stockIn/StockInByCharge/index.vue | 2 +- src/views/stockIn/deliveryNote/index.vue | 196 +++++++++++++++++++ 5 files changed, 250 insertions(+), 41 deletions(-) create mode 100644 src/api/delivery/index.ts create mode 100644 src/views/stockIn/deliveryNote/index.vue diff --git a/src/api/StockIn/index.ts b/src/api/StockIn/index.ts index ac18c3a..396972d 100644 --- a/src/api/StockIn/index.ts +++ b/src/api/StockIn/index.ts @@ -147,36 +147,3 @@ export function TransferIn(params: any) { data: params, }); } - -/********** 批次 **************/ -export function createDelivery(params: any) { - return request({ - url: '/api/api/delivery/create', - method: 'post', - data: params, - }); -} - -export function getReceiveList(params: any) { - return request({ - url: '/api/api/delivery/getReceiveList', - method: 'post', - data: params, - }); -} - -export function getStoreDetail(params: any) { - return request({ - url: '/api/api/delivery/getStoreDetail', - method: 'post', - data: params, - }); -} - -export function getReceiveDetail(params: any) { - return request({ - url: '/api/api/delivery/getReceiveDetail', - method: 'post', - data: params, - }); -} diff --git a/src/api/delivery/index.ts b/src/api/delivery/index.ts new file mode 100644 index 0000000..0c34ef1 --- /dev/null +++ b/src/api/delivery/index.ts @@ -0,0 +1,49 @@ +import request from '@/utils/request'; + +export function createDelivery(params: any) { + return request({ + url: '/api/api/delivery/create', + method: 'post', + data: params, + }); +} + +export function getReceiveList(params: any) { + return request({ + url: '/api/api/delivery/getReceiveList', + method: 'post', + data: params, + }); +} + +export function getStoreDetail(params: any) { + return request({ + url: '/api/api/delivery/getStoreDetail', + method: 'post', + data: params, + }); +} + +export function getReceiveDetail(params: any) { + return request({ + url: '/api/api/delivery/getReceiveDetail', + method: 'post', + data: params, + }); +} + +export function getDeliveryList(params: any) { + return request({ + url: '/api/api/delivery/getDeliveryList', + method: 'post', + data: params, + }); +} + +export function delDelivery(params: any) { + return request({ + url: '/api/api/delivery/delDelivery', + method: 'post', + data: params, + }); +} \ No newline at end of file diff --git a/src/views/stockIn/StockInByCharge/drawer.vue b/src/views/stockIn/StockInByCharge/drawer.vue index 19f6789..bd0dbe9 100644 --- a/src/views/stockIn/StockInByCharge/drawer.vue +++ b/src/views/stockIn/StockInByCharge/drawer.vue @@ -103,7 +103,7 @@ import { getCurrentInstance, onMounted, reactive, ref, toRefs } from 'vue' import { ElForm, ElMessageBox, ElTable } from 'element-plus' import { localStorage } from '@/utils/storage' -import { createDelivery, getReceiveList, getReceiveDetail } from '@/api/StockIn' +import { createDelivery, getReceiveList, getReceiveDetail } from '@/api/delivery' import { getORG } from '@/api/auth' const queryFormRef = ref(ElForm) @@ -222,12 +222,9 @@ function handleCreate() { siteName: 'SDK', receiveList: state.receiveList }).then((res: any) => { - if (res.success) { - ElMessageBox.alert('创建到货单:' + name, '提醒框', { - confirmButtonText: 'OK' - }).then(() => { - emits('refresh', name) - }) + if (res.errorCode == 200) { + proxy.$ElMessage.success(res.message) + emits('refresh', name) } else { proxy.$ElMessage.error(res.message) } diff --git a/src/views/stockIn/StockInByCharge/index.vue b/src/views/stockIn/StockInByCharge/index.vue index 06d1e8e..88848e2 100644 --- a/src/views/stockIn/StockInByCharge/index.vue +++ b/src/views/stockIn/StockInByCharge/index.vue @@ -203,7 +203,7 @@ export default { import { reactive, ref, onMounted, toRefs } from 'vue' import { ElForm, ElMessageBox, ElTable } from 'element-plus' import { getQueryList } from '@/api/common' -import { getStoreDetail } from '@/api/StockIn' +import { getStoreDetail } from '@/api/delivery' import { localStorage } from '@/utils/storage' import { areAllNotEmpty, msToDate } from '@/utils/CommonUtil' import { diff --git a/src/views/stockIn/deliveryNote/index.vue b/src/views/stockIn/deliveryNote/index.vue new file mode 100644 index 0000000..8acfcad --- /dev/null +++ b/src/views/stockIn/deliveryNote/index.vue @@ -0,0 +1,196 @@ + + + + \ No newline at end of file