Browse Source

报废出库记录

wms3.0_pda
lijuncheng 11 months ago
parent
commit
4045a0db9c
  1. 13
      pages/scrap/record/scrapRecord.vue

13
pages/scrap/record/scrapRecord.vue

@ -119,7 +119,7 @@
this.tolocationTypeList = res.tolocationTypeList; this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup(); this.showFromLocationPopup();
} else { } else {
this.$refs.comMessage.showBreakMessage(res.message ); this.showErrorMessage(res.message)
} }
}); });
@ -250,11 +250,12 @@
title: "提交中....", title: "提交中....",
mask: true mask: true
}); });
var params = this.setParams()
console.log("提交参数", JSON.stringify(params));
scrapRecordSubmit(params).then(res => { scrapRecordSubmit(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 + "]")
} }
@ -267,6 +268,7 @@
setParams() { setParams() {
var subList = [] var subList = []
var creator = this.$store.state.user.id
this.detailSource.forEach(item => { this.detailSource.forEach(item => {
item.subList.forEach(detail => { item.subList.forEach(detail => {
if (detail.scaned) { if (detail.scaned) {
@ -294,7 +296,10 @@
} }
}) })
}) })
return subList; this.dataContent.subList =subList
this.dataContent.creator = creator;
return this.dataContent;
}, },

Loading…
Cancel
Save