From 48ad92440e3f919af97add249c0238d3a25293b0 Mon Sep 17 00:00:00 2001 From: mhsnet Date: Tue, 20 Aug 2024 15:38:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=B6=E6=9C=9F=E4=BA=A4=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jnpf-app/api/yys/materialProcurementOrder.js | 14 ++ .../components/PopDelay.vue | 171 ++++++++++++++++++ .../yys/materialProcurementOrder/index.vue | 24 ++- 3 files changed, 204 insertions(+), 5 deletions(-) create mode 100644 jnpf-app/pages/yys/materialProcurementOrder/components/PopDelay.vue diff --git a/jnpf-app/api/yys/materialProcurementOrder.js b/jnpf-app/api/yys/materialProcurementOrder.js index 5bcfbe6..2bb3578 100644 --- a/jnpf-app/api/yys/materialProcurementOrder.js +++ b/jnpf-app/api/yys/materialProcurementOrder.js @@ -24,6 +24,7 @@ export function takeOrder(params) { method: "GET", }); } +// 投产-App export function toProd(params) { let data = { orderNumber: params.orderNumber, @@ -36,3 +37,16 @@ export function toProd(params) { data, }); } +// 点击延期发货-App +export function delay(params) { + let data = { + orderNumber: params.orderNumber, + expectedSendTime: params.expectedSendTime, + extensionReason: params.extensionReason, + }; + return request({ + url: "/api/example/YysMaterialProcurementOrder/delay", + method: "POST", + data, + }); +} diff --git a/jnpf-app/pages/yys/materialProcurementOrder/components/PopDelay.vue b/jnpf-app/pages/yys/materialProcurementOrder/components/PopDelay.vue new file mode 100644 index 0000000..8556a5a --- /dev/null +++ b/jnpf-app/pages/yys/materialProcurementOrder/components/PopDelay.vue @@ -0,0 +1,171 @@ + + + + + diff --git a/jnpf-app/pages/yys/materialProcurementOrder/index.vue b/jnpf-app/pages/yys/materialProcurementOrder/index.vue index 4dbfe89..558c79e 100644 --- a/jnpf-app/pages/yys/materialProcurementOrder/index.vue +++ b/jnpf-app/pages/yys/materialProcurementOrder/index.vue @@ -61,6 +61,7 @@ }" :plain="true" shape="circle" + @click="fnDelay(orderItem)" > 延期发货 @@ -108,6 +109,7 @@ + @@ -118,8 +120,9 @@ import { mapGetters } from "vuex"; import { getOrderList, takeOrder } from "@/api/yys/materialProcurementOrder.js"; import CustomNavbar from "./components/CustomNavbar"; import PopToProd from "./components/PopToProd"; +import PopDelay from "./components/PopDelay"; export default { - components: { CustomNavbar, PopToProd }, + components: { CustomNavbar, PopToProd, PopDelay }, mixins: [], data() { return { @@ -189,12 +192,23 @@ export default { fnToProd(orderItem) { this.$refs.popToProd.init(orderItem); }, + fnDelay(orderItem) { + this.$refs.popDelay.init(orderItem); + }, fnRefreshA() { this.$refs.uTips.show({ - title: '投产提交成功', - type: 'success', - duration: '2300' - }) + title: "投产提交成功", + type: "success", + duration: "2300", + }); + this.fnGetList(); + }, + fnRefreshB() { + this.$refs.uTips.show({ + title: "延期发货提交成功", + type: "success", + duration: "2300", + }); this.fnGetList(); }, },