|
@@ -298,6 +298,7 @@ const importView = (() => {
|
|
|
importXML = new ImportXML();
|
|
|
try {
|
|
|
xmlObj = await importXML.extractData(file, false);
|
|
|
+ debugger;
|
|
|
$('.selFile input:eq(0)').val(xmlObj && xmlObj.name ? xmlObj.name : '');
|
|
|
$('.selFile input[name="fileKind-import"]:eq(0)').prop('checked', true); //文件类型恢复成投标
|
|
|
$('#import-taxType').val('1'); //计税方法显示回默认的一般计税法
|
|
@@ -310,8 +311,25 @@ const importView = (() => {
|
|
|
$.bootstrapLoading.end();
|
|
|
}
|
|
|
});
|
|
|
+ // --- test --- 解压cos文件
|
|
|
+ /* $('#customFile').change(async function () {
|
|
|
+ let file = $(this)[0].files[0];
|
|
|
+ //test 解压
|
|
|
+ const zipObj = new JSZip();
|
|
|
+ zipObj.loadAsync(file)
|
|
|
+ .then(function (zip) {
|
|
|
+ debugger;
|
|
|
+ console.log(zip);
|
|
|
+ return zipObj.file("Project.xml").async("string");
|
|
|
+ })
|
|
|
+ .then(text => {
|
|
|
+ console.log(text);
|
|
|
+ });
|
|
|
+
|
|
|
+ }); */
|
|
|
//下一步
|
|
|
$('#import-next').click(function () {
|
|
|
+ debugger;
|
|
|
let file = $('#customFile')[0].files[0];
|
|
|
if (!file) {
|
|
|
showUploadAlert(false, '请选择导入文件。');
|