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 {*} * @param {*}
*/ */
export function getJimuPutawayJobDetail(ids) { export function getJimuPutawayJobDetail(data) {
return request({ return request({
url: baseApi + "/wms/jimu-report/getPutawayJobDetailForPDA?masterIds="+ids, url: baseApi + "/wms/jimu-report/getPutawayJobDetailForPDA",
method: "get", method: "post",
data:data
}); });
} }

16
src/pages/pointPutawayJob/index.vue

@ -14,7 +14,7 @@
创建人<text>{{data.creator||''}}</text> 创建人<text>{{data.creator||''}}</text>
</view> </view>
<view class="mb-text"> <view class="mb-text">
创建时间<text>{{data.createTime}}</text> 创建时间<text>{{formatDate(data.createTime)}}</text>
</view> </view>
</view> </view>
<u-table style="margin-top: 20rpx;"> <u-table style="margin-top: 20rpx;">
@ -50,6 +50,9 @@
import { import {
getJimuPutawayJobDetail getJimuPutawayJobDetail
} from '@/api/request2.js'; } from '@/api/request2.js';
import {
dateFormat
} from '@/common/basic.js';
// //
const htmlFileUrl = '/hybrid/html/pointPutawayJob.html'; const htmlFileUrl = '/hybrid/html/pointPutawayJob.html';
import { import {
@ -93,8 +96,11 @@
}, function(e) { }, function(e) {
console.log("获取图片资源失败:" + e.message); console.log("获取图片资源失败:" + e.message);
}); });
} },
// #endif // #endif
formatDate(val) {
return dateFormat(val)
}
}, },
watch: { watch: {
isLoadFinish: { isLoadFinish: {
@ -115,7 +121,9 @@
} }
}, },
async onShow() { async onShow() {
await getJimuPutawayJobDetail(this.data.ids).then(res=>{ await getJimuPutawayJobDetail({
masterIds:this.data.ids
}).then(res=>{
this.data.sublist = res.data this.data.sublist = res.data
}) })
// //
@ -187,7 +195,7 @@
创建人<span>${this.data.creator}</span> 创建人<span>${this.data.creator}</span>
</div> </div>
<div class="mb-text"> <div class="mb-text">
创建时间<span>${this.data.createTime}</span> 创建时间<span>${this.formatDate(this.data.createTime)}</span>
</div> </div>
</div> </div>
<table style="margin-top: 20rpx;" style='border-collapse: collapse;'> <table style="margin-top: 20rpx;" style='border-collapse: collapse;'>

Loading…
Cancel
Save