Browse Source

打印时间显示和接口问题

hella_online_20240829
zhang_li 3 months ago
parent
commit
831f84fd40
  1. 7
      src/api/request2.js
  2. 16
      src/pages/pointPutawayJob/index.vue

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

16
src/pages/pointPutawayJob/index.vue

@ -14,7 +14,7 @@
创建人<text>{{data.creator||''}}</text>
</view>
<view class="mb-text">
创建时间<text>{{data.createTime}}</text>
创建时间<text>{{formatDate(data.createTime)}}</text>
</view>
</view>
<u-table style="margin-top: 20rpx;">
@ -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 @@
创建人<span>${this.data.creator}</span>
</div>
<div class="mb-text">
创建时间<span>${this.data.createTime}</span>
创建时间<span>${this.formatDate(this.data.createTime)}</span>
</div>
</div>
<table style="margin-top: 20rpx;" style='border-collapse: collapse;'>

Loading…
Cancel
Save