Browse Source

修改计划外出库任务

wms3.0_pda
lijuncheng 12 months ago
parent
commit
0b546e8ddc
  1. 4
      api/request2.js
  2. 7
      common/basic.js
  3. 29
      pages/unPlanned/job/issueJobDetail.vue

4
api/request2.js

@ -1367,8 +1367,8 @@ export function unPlannedIssueJobSubmit(params) {
*/
export function unPlannedIssueRequestSubmit(params) {
return request({
url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit",
method: "put",
url: baseApi + "/wms/unplannedissue-request-main/create",
method: "post",
data: params,
});
}

7
common/basic.js

@ -732,8 +732,13 @@ export function getISODateTime() {
//格式化处理
export function dateFormat(time) {
var result = ""
if(time!=null){
let date = new Date(time);
return getDate(date) + " " + getTime(date);
result = getDate(date) + " " + getTime(date);
}
return result;
}
//获取日期部分

29
pages/unPlanned/job/issueJobDetail.vue

@ -296,17 +296,17 @@
//
var params = this.setParams()
console.log("提交参数", JSON.stringify(params));
// unPlannedIssueJobSubmit(params).then(res => {
// uni.hideLoading()
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data )
// } else {
// this.showErrorMessage("[" + res.msg + "]")
// }
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
unPlannedIssueJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成计划外出库记录<br>" + res.data )
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
}).catch(error => {
uni.hideLoading()
this.showErrorMessage(error)
})
},
@ -317,6 +317,9 @@
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
detail.toPackingNumber = detail.packingNumber;
detail.toContainerNumber = '';
detail.toBatch = detail.batch;
subList.push(detail)
}
})
@ -327,10 +330,6 @@
},
showMessage(message) {
setTimeout(r => {
this.scanPopupLoseFocus();

Loading…
Cancel
Save