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