Browse Source

计划外出入库

wms3.0_pda
lijuncheng 12 months ago
parent
commit
c4a45492ed
  1. 6
      api/request2.js
  2. 28
      pages/unPlanned/record/issueRecord.vue

6
api/request2.js

@ -1376,7 +1376,7 @@ export function unPlannedReceiptRequestHandle(id) {
* 计划外入库记录 提交
* @param {*} params
*/
export function unPlannedReceiptRecordbSubmit(id, params) {
export function unPlannedReceiptRecordbSubmit(params) {
return request({
url: baseApi + "/wms/unplannedreceipt-record-main/create",
method: "post",
@ -1531,8 +1531,8 @@ export function unPlannedIssueRequestHandle(id) {
*/
export function unPlannedIssueRecordSubmit(params) {
return request({
url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit",
method: "put",
url: baseApi + "/wms/unplannedissue-record-main/create",
method: "post",
data: params,
});
}

28
pages/unPlanned/record/issueRecord.vue

@ -218,21 +218,22 @@
}
var params =this.setParams()
console.log("提交" + JSON.stringify(params))
// unPlannedIssueRecordSubmit(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)
// })
unPlannedIssueRecordSubmit(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)
})
},
setParams() {
var subList = []
var creator = this.$store.state.user.id
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
@ -260,7 +261,10 @@
}
})
})
return subList;
this.dataContent.subList = subList;
this.dataContent.creator = creator;
return this.dataContent;
},
reasonChange(e) {

Loading…
Cancel
Save