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)}