Commit 47fde889 authored by 何远江's avatar 何远江

传sap添加仓库别字段

parent 538fbbd2
......@@ -163,7 +163,7 @@ export default {
TOMNG: ele.totalQuantity,
ZMNGO: ele.quantity,
ZMNGL: ele.lossNum,
NLPLA: ele.NLPLA
NLPLA: ele.NLPLA,
})
});
params.push({
......
......@@ -105,6 +105,8 @@ export default {
const data = JSON.parse(JSON.stringify(this.goodsList))
data.forEach(ele => {
ele.ERFMG = ele.TOMNG
// 添加仓库别
ele.NLBER = this.warehouseCode
});
this.$u.api.sapApi
.sapRrm([
......
......@@ -169,6 +169,8 @@ export default {
ele.ZEILE = index+1
ele.RSNUM = ele.requirementNumber || '10'
ele.RSPOS = ele.requirementProjectNumber || '2'
// 添加仓库别
ele.NLBER = this.warehouseCode
})
const params = {
'zencode': 'A009',
......
......@@ -112,6 +112,8 @@ export default {
data.forEach(ele => {
ele.ERFMG = ele.TOMNG
ele.ERFME = ele.MEINS
// 添加仓库别
ele.NLBER = this.warehouseCode
});
this.$u.api.sapApi
.sapRrm([
......
......@@ -73,7 +73,7 @@
import StickyNavBar from '@/components/StickyNavBar/index.vue';
import ContentLoadingMore from '@/components/ContentLoadingMore/index.vue';
import BottomBtn from '@/components/BottomBtn/index.vue';
import { parseTime } from "@/utils/ruoyi";
export default {
components: {
StickyNavBar,
......@@ -108,7 +108,7 @@ export default {
};
},
created() {
this.getPlnr('10000820240325000001|10000320100');
// this.getPlnr('10000820240325000001|10000320100');
},
methods: {
deleGonds(idx) {
......@@ -129,24 +129,22 @@ export default {
if (this.goodsList.length === 0) {
return;
}
console.log([
{
BLDAT: '20240325',
BUDAT: '20240325',
ZENCODE: 'A014',
ITEM: this.goodsList
}
]);
this.$u.api.sapApi
.sapRrm([
const params = [
{
BLDAT: '20240325',
BUDAT: '20240325',
BLDAT: parseTime(new Date(), "{y}{m}{d}"),
BUDAT: parseTime(new Date(), "{y}{m}{d}"),
ZENCODE: 'A014',
// TYPE: 'CG',
ITEM: this.goodsList
ITEM: this.goodsList.map(item => {
return {
...item,
NLBER: this.warehouseCode // 添加仓库别
}
})
}
])
]
this.$u.api.sapApi
.sapRrm(params)
.then((res) => {
this.loading = false;
if(!Array.isArray(res)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment