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) { export function unPlannedIssueRequestSubmit(params) {
return request({ return request({
url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit", url: baseApi + "/wms/unplannedissue-request-main/create",
method: "put", method: "post",
data: params, data: params,
}); });
} }

7
common/basic.js

@ -732,8 +732,13 @@ export function getISODateTime() {
//格式化处理 //格式化处理
export function dateFormat(time) { export function dateFormat(time) {
var result = ""
if(time!=null){
let date = new Date(time); 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() var params = this.setParams()
console.log("提交参数", JSON.stringify(params)); console.log("提交参数", JSON.stringify(params));
// unPlannedIssueJobSubmit(params).then(res => { unPlannedIssueJobSubmit(params).then(res => {
// uni.hideLoading() uni.hideLoading()
// if (res.data) { if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data ) this.showCommitSuccessMessage("提交成功<br>生成计划外出库记录<br>" + res.data )
// } else { } else {
// this.showErrorMessage("[" + res.msg + "]") this.showErrorMessage("提交失败[" + res.msg + "]")
// } }
// }).catch(error => { }).catch(error => {
// uni.hideLoading() uni.hideLoading()
// this.showErrorMessage(error) this.showErrorMessage(error)
// }) })
}, },
@ -317,6 +317,9 @@
this.detailSource.forEach(item => { this.detailSource.forEach(item => {
item.subList.forEach(detail => { item.subList.forEach(detail => {
if (detail.scaned) { if (detail.scaned) {
detail.toPackingNumber = detail.packingNumber;
detail.toContainerNumber = '';
detail.toBatch = detail.batch;
subList.push(detail) subList.push(detail)
} }
}) })
@ -327,10 +330,6 @@
}, },
showMessage(message) { showMessage(message) {
setTimeout(r => { setTimeout(r => {
this.scanPopupLoseFocus(); this.scanPopupLoseFocus();

Loading…
Cancel
Save