diff --git a/pages/scrap/record/scrapRecord.vue b/pages/scrap/record/scrapRecord.vue
index 6b54bdbd..9150d69f 100644
--- a/pages/scrap/record/scrapRecord.vue
+++ b/pages/scrap/record/scrapRecord.vue
@@ -119,7 +119,7 @@
this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup();
} else {
- this.$refs.comMessage.showBreakMessage(res.message );
+ this.showErrorMessage(res.message)
}
});
@@ -250,11 +250,12 @@
title: "提交中....",
mask: true
});
-
+ var params = this.setParams()
+ console.log("提交参数", JSON.stringify(params));
scrapRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成报废出库记录" + res.data)
+ this.showCommitSuccessMessage("提交成功
生成报废出库记录
" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
@@ -267,6 +268,7 @@
setParams() {
var subList = []
+ var creator = this.$store.state.user.id
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
@@ -294,7 +296,10 @@
}
})
})
- return subList;
+ this.dataContent.subList =subList
+ this.dataContent.creator = creator;
+ return this.dataContent;
+
},