Browse Source

导入总成

FoShanPG
liuyunfeng 1 year ago
parent
commit
dd0b693981
  1. 13
      vue/src/components/ImportTxt/index.vue
  2. 3
      vue/src/views/pg-fis/basedate/assemblyCfg/index.vue

13
vue/src/components/ImportTxt/index.vue

@ -474,12 +474,13 @@ export default {
beforeAvatarUpload(file) {
var FileExt = file.name.replace(/.+\./, "");
if (["txt"].indexOf(FileExt.toLowerCase()) === -1) {
this.$message({
type: "warning",
message: "只支持txt文本类型文件!",
});
this.isFileType = "0";
return false;
// this.$message({
// type: "warning",
// message: "txt",
// });
// this.isFileType = "0";
// return false;
this.isFileType = "1";
} else {
this.isFileType = "1";
}

3
vue/src/views/pg-fis/basedate/assemblyCfg/index.vue

@ -46,7 +46,7 @@
</el-button>
<el-button class="filter-item" size="mini" type="primary" icon="el-icon-delete" @click="handleDelete" disabled>删除
</el-button>
<el-button class="filter-item" size="mini" type="primary" icon="el-icon-plus" @click="handleImportSAP" disabled>导入SAP对接
<el-button class="filter-item" size="mini" type="primary" icon="el-icon-plus" @click="handleImportSAP" >导入SAP对接
</el-button>
</el-form-item>
</el-form>
@ -198,6 +198,7 @@
import permission from "@/directive/permission/index.js";
import CRMTableHead from "../../components/CRMTableHead";
import importExcel from "@/components/ImportTxt";
//import importExcel from "@/components/ImportExcel";
import Lockr from "lockr";
import moment from "moment";
import Detail from "./detail.vue";

Loading…
Cancel
Save