Commit 49ba9c51 authored by tanjunxin's avatar tanjunxin

fix: 余料退料单个退料功能优化

parent 09695334
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"name" : "mes-pda", "name" : "mes-pda",
"appid" : "__UNI__FB0FD5F", "appid" : "__UNI__FB0FD5F",
"description" : "MES-PDA", "description" : "MES-PDA",
"versionName" : "1.2.4", "versionName" : "1.2.5",
"versionCode" : 124, "versionCode" : 125,
"transformPx" : false, "transformPx" : false,
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus" : { "app-plus" : {
......
...@@ -107,23 +107,35 @@ ...@@ -107,23 +107,35 @@
if (this.list.length === 0) { if (this.list.length === 0) {
return; return;
} }
let arr = this.list // let arr = this.list
arr.forEach((ele, index) => { // arr.forEach((ele, index) => {
if (!ele.ERFMG) { let arr = [];
flag = false const temp = JSON.parse(JSON.stringify(this.list));
} else { temp.forEach((ele, index) => {
ele.MATNR = ele.sapItemCode if (!!ele.ERFMG) {
ele.WERKS = this.vuex_user_factory // flag = false
ele.CHARG = ele.batchNo // } else {
ele.AUFNR = ele.workorderCode // ele.MATNR = ele.sapItemCode
ele.MTSNR = ele.applyNo // ele.WERKS = this.vuex_user_factory
ele.ZEILE = index + 1 // ele.CHARG = ele.batchNo
ele.ZYL = 'X' // ele.AUFNR = ele.workorderCode
// ele.MTSNR = ele.applyNo
// ele.ZEILE = index + 1
// ele.ZYL = 'X'
arr.push(Object.assign(ele, {
MATNR: ele.sapItemCode,
WERKS: this.vuex_user_factory,
CHARG: ele.batchNo,
AUFNR: ele.workorderCode,
MTSNR: ele.applyNo,
ZEILE: index + 1,
ZYL: 'X'
}))
} }
}) })
if (!flag) { // if (!flag) {
return this.$u.toast(`存在未填写退料数量的物料单`) // return this.$u.toast(`存在未填写退料数量的物料单`)
} // }
const params = { const params = {
'zencode': 'A009', 'zencode': 'A009',
'item': arr 'item': arr
......
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