基础信息导入导出bug修复

master
anthonywj 4 years ago
parent 54d3d782a9
commit 605b52ad27

@ -10,7 +10,6 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="exportExcel">Excel</el-button>
<el-button type="primary" icon="search" @click="uploadSmp"></el-button>
</el-button-group>
</el-form-item>
</el-row>
@ -261,7 +260,7 @@
},
components: {corpSelect},
created() {
this.getBasicThirdSys();
// this.getBasicThirdSys();
this.getList();
},
};

@ -29,9 +29,6 @@
>选入第三方器械
</el-button
>
<el-button type="primary" icon="search" @click="uploadSMP" v-if="isUploadSmp"
>上传供应商平台
</el-button>
<!-- <el-button type="primary" icon="search" @click="uploadErpProduct"
>更新下载ERP存货产品</el-button
> -->

@ -10,7 +10,6 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="exportExcel">Excel</el-button>
<el-button type="primary" icon="search" @click="uploadSmp"></el-button>
</el-button-group>
</el-form-item>
</el-row>
@ -243,8 +242,10 @@
if (response.code != 20000) {
this.$message.error(response.message);
} else {
console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.getList();
this.$message.success("文件上传成功,请稍后刷新查看!");
}
},
statusFilterType(status) {
@ -261,8 +262,8 @@
},
components: {udiInfoSelect},
created() {
this.getBasicThirdSys();
// this.getList();
// this.getBasicThirdSys();
this.getList();
},
};
</script>

@ -244,7 +244,7 @@
mounted() {
},
created() {
this.getList();
// this.getList();
this.getBasicThirdSys();
},
};

@ -10,7 +10,6 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="exportExcel">Excel</el-button>
<el-button type="primary" icon="search" @click="uploadSmp"></el-button>
</el-button-group>
</el-form-item>
</el-row>

@ -32,19 +32,20 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-upload
v-if="!this.thirdSysDetail.enabled"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==1"
:action="uploadFileUrl"
multiple
:limit="3"
:data="uploadData"
:show-file-list="false"
:on-success="handleChange"
:file-list="fileList"
>
<el-button size="mini" type="primary">导入往来单位</el-button>
</el-upload>
<el-button type="primary" icon="search" @click="downloadDatas"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.itrCache">下载往来单位
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.itrCache && this.thirdSysDetail.fromType==0">下载往来单位
</el-button>
</el-button-group>
</el-form-item>

@ -32,21 +32,21 @@
<el-button type="primary" icon="search" @click="clearAll"
v-if="!this.thirdSysDetail.enabled">清空全部
</el-button>
<el-upload
v-if="!this.thirdSysDetail.enabled"
:action="uploadFileUrl"
multiple
:limit="3"
:data="uploadData"
:show-file-list="false"
:on-success="handleChange"
:file-list="fileList"
>
<el-button size="mini" type="primary">导入库存产品信息</el-button>
</el-upload>
<el-button type="primary" icon="search" @click="downloadDatas"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.itrCache">导入库存产品信息
</el-button>
<!--<el-upload-->
<!--v-if="!this.thirdSysDetail.enabled"-->
<!--:action="uploadFileUrl"-->
<!--multiple-->
<!--:limit="3"-->
<!--:data="uploadData"-->
<!--:show-file-list="false"-->
<!--:on-success="handleChange"-->
<!--:file-list="fileList"-->
<!--&gt;-->
<!--<el-button size="mini" type="primary">导入库存产品信息</el-button>-->
<!--</el-upload>-->
<!--<el-button type="primary" icon="search" @click="downloadDatas"-->
<!--v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.itrCache">导入库存产品信息-->
<!--</el-button>-->
</el-button-group>
</el-form-item>
</el-form>

@ -10,7 +10,6 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="exportExcel">Excel</el-button>
<el-button type="primary" icon="search" @click="uploadSmp"></el-button>
</el-button-group>
</el-form-item>
</el-row>
@ -181,7 +180,7 @@
downloadExcel(row) {
let href =
"http://127.0.0.1:9991" +
"/udiwms/thrCorp/exportLog/download" +
"/udiwms/invProducts/exportLog/download" +
"?genKey=" +row.genKey;
let a = document.createElement("a");
fetch(href)
@ -266,8 +265,8 @@
},
components: {thrInvProductsSelect},
created() {
this.getBasicThirdSys();
// this.getList();
// this.getBasicThirdSys();
this.getList();
},
};
</script>

@ -32,7 +32,7 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-upload
v-if="!this.thirdSysDetail.enabled"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==1"
:action="uploadFileUrl"
multiple
:limit="3"
@ -44,7 +44,7 @@
<el-button size="mini" type="primary">导入库存产品信息</el-button>
</el-upload>
<el-button type="primary" icon="search" @click="downloadDatas"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.itrCache">下载库存产品信息
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.itrCache && this.thirdSysDetail.fromType==0">下载库存产品信息
</el-button>
</el-button-group>
</el-form-item>
@ -348,7 +348,7 @@
components: {thrInvProductsImportDetail},
created() {
this.getBasicThirdSys();
this.getList();
// this.getList();
},
};
</script>

@ -10,7 +10,6 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="exportExcel">Excel</el-button>
<el-button type="primary" icon="search" @click="uploadSmp"></el-button>
</el-button-group>
</el-form-item>
</el-row>

@ -51,12 +51,13 @@
:data="uploadData"
:show-file-list="false"
:on-success="handleChange"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==1"
:file-list="fileList"
>
<el-button size="mini" type="primary">导入业务单据</el-button>
</el-upload>
<el-button type="primary" icon="search" @click="downloadDatas"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.itrCache">下载业务单据
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.itrCache && this.thirdSysDetail.fromType==0">下载业务单据
</el-button>
</el-button-group>
</el-form-item>

@ -10,7 +10,6 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="exportExcel">Excel</el-button>
<el-button type="primary" icon="search" @click="uploadSmp"></el-button>
</el-button-group>
</el-form-item>
</el-row>

@ -32,7 +32,7 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-upload
v-if="!this.thirdSysDetail.enabled"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.fromType==1"
:action="uploadFileUrl"
multiple
:limit="3"
@ -44,7 +44,7 @@
<el-button size="mini" type="primary">导入产品信息</el-button>
</el-upload>
<el-button type="primary" icon="search" @click="downloadDatas"
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.itrCache">下载产品信息
v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.itrCache && this.thirdSysDetail.fromType==0">下载产品信息
</el-button>
</el-button-group>
</el-form-item>
@ -348,7 +348,7 @@
components: {thrProductsImportDetail},
created() {
this.getBasicThirdSys();
this.getList();
// this.getList();
},
};
</script>

Loading…
Cancel
Save