|
|
|
@ -295,9 +295,8 @@
|
|
|
|
|
userId: "${currentUser.account}"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var fileArr = [];
|
|
|
|
|
$("#tbody--productList").find("input[type='file'][name='dsusePrdImgFiles']").each(function (i) {
|
|
|
|
|
let fileArr = [];
|
|
|
|
|
$("#tbody--productList").find("input[type='file'][name='dsusePrdImgFiles']").each(() => {
|
|
|
|
|
fileArr.push(this.files[0]);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -306,19 +305,7 @@
|
|
|
|
|
dsuseMgtDtlsJsonStr: JSON.stringify(datasetListPrd),
|
|
|
|
|
// 폐기상품이미지목록
|
|
|
|
|
dsusePrdImgFiles: fileArr
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let formData = new FormData();
|
|
|
|
|
formData.append("dsuseMgtJsonStr", JSON.stringify(saveBsshData));
|
|
|
|
|
formData.append("dsuseMgtDtlsJsonStr", JSON.stringify(datasetListPrd));
|
|
|
|
|
debugger;
|
|
|
|
|
$("input[type='file'][name='dsusePrdImgFiles']").each(function (i) {
|
|
|
|
|
//formData.append("dsusePrdImgFiles", $('input[type=file]')[i].files[0]);
|
|
|
|
|
formData.append("dsusePrdImgFiles", this.files[0]);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
let create = (jsonBssh.dscdmngId == "");
|
|
|
|
|
|
|
|
|
@ -332,7 +319,6 @@ debugger;
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
debugger
|
|
|
|
|
|
|
|
|
|
//$P.control.onSave(resp)
|
|
|
|
|
dialog.alert("저장됐습니다.");
|
|
|
|
|