From 831f84fd40639376d5aba0feaa36d87c357aec97 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 18 Jun 2024 13:05:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=97=B6=E9=97=B4=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=92=8C=E6=8E=A5=E5=8F=A3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/request2.js | 7 ++++--- src/pages/pointPutawayJob/index.vue | 16 ++++++++++++---- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/api/request2.js b/src/api/request2.js index 9cecc192..2e0612ad 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -4154,9 +4154,10 @@ export function isCheckMesCode(code) { * 获取上架任务打印明细 * @param {*} */ -export function getJimuPutawayJobDetail(ids) { +export function getJimuPutawayJobDetail(data) { return request({ - url: baseApi + "/wms/jimu-report/getPutawayJobDetailForPDA?masterIds="+ids, - method: "get", + url: baseApi + "/wms/jimu-report/getPutawayJobDetailForPDA", + method: "post", + data:data }); } diff --git a/src/pages/pointPutawayJob/index.vue b/src/pages/pointPutawayJob/index.vue index 7147a978..8e121fee 100644 --- a/src/pages/pointPutawayJob/index.vue +++ b/src/pages/pointPutawayJob/index.vue @@ -14,7 +14,7 @@ 创建人:{{data.creator||''}} - 创建时间:{{data.createTime}} + 创建时间:{{formatDate(data.createTime)}} @@ -50,6 +50,9 @@ import { getJimuPutawayJobDetail } from '@/api/request2.js'; + import { + dateFormat + } from '@/common/basic.js'; // 打印页面的模板 const htmlFileUrl = '/hybrid/html/pointPutawayJob.html'; import { @@ -93,8 +96,11 @@ }, function(e) { console.log("获取图片资源失败:" + e.message); }); - } + }, // #endif + formatDate(val) { + return dateFormat(val) + } }, watch: { isLoadFinish: { @@ -115,7 +121,9 @@ } }, async onShow() { - await getJimuPutawayJobDetail(this.data.ids).then(res=>{ + await getJimuPutawayJobDetail({ + masterIds:this.data.ids + }).then(res=>{ this.data.sublist = res.data }) // 获取数据 @@ -187,7 +195,7 @@ 创建人:${this.data.creator}
- 创建时间:${this.data.createTime} + 创建时间:${this.formatDate(this.data.createTime)}