|
|
@ -116,6 +116,11 @@ |
|
|
|
@click="handleDownload()" |
|
|
|
>导出Excel |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button class="filter-item" size="mini" type="primary" icon="el-icon-plus" @click="handleImportSAP" >导入零件 |
|
|
|
</el-button> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
<!--表格头组件,filter查询--> |
|
|
|
<!-- <c-r-m-table-head |
|
|
@ -188,12 +193,7 @@ |
|
|
|
@pagination="getList" |
|
|
|
/> |
|
|
|
<!-- 导入Excel组件 --> |
|
|
|
<importExcel |
|
|
|
ref="importexcel" |
|
|
|
:show="showExcelImport" |
|
|
|
:crmType="crmType" |
|
|
|
@close="importExcelData" |
|
|
|
/> |
|
|
|
<importExcelCtrl ref="importexcel" :show="showExcelImport" :crmType="crmType" @close="onImportExcelDlgClosed" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
@ -201,7 +201,8 @@ |
|
|
|
<script> |
|
|
|
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination |
|
|
|
import permission from "@/directive/permission/index.js"; |
|
|
|
import importExcel from "@/components/ImportExcel-invoice"; |
|
|
|
//import importExcelCtrl from "@/components/ImportExcel-invoice"; |
|
|
|
import importExcelCtrl from "@/components/ImportTxt"; |
|
|
|
import CRMTableHead from "../../components/CRMTableHead"; |
|
|
|
import moment from "moment"; |
|
|
|
import Lockr from "lockr"; |
|
|
@ -210,7 +211,7 @@ import XhJSSelect from "@/components/CreateCom/Xh-JS-Select-Label.vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "CustomerPartCfg", |
|
|
|
components: { Pagination, CRMTableHead, importExcel, XhJSSelect }, |
|
|
|
components: { Pagination, CRMTableHead, importExcelCtrl, XhJSSelect }, |
|
|
|
directives: { permission }, |
|
|
|
filters: { |
|
|
|
IsCustomerSignFilter(status) { |
|
|
@ -310,6 +311,7 @@ export default { |
|
|
|
formTitle: "", |
|
|
|
drawer: false, |
|
|
|
showExcelImport: false, |
|
|
|
crmType: "PartCfg", |
|
|
|
tableHeight: document.documentElement.clientHeight - 260, |
|
|
|
isEdit: false, |
|
|
|
sortState:false, //标记刷新是否是排序调用 |
|
|
@ -481,11 +483,11 @@ export default { |
|
|
|
} |
|
|
|
return row[column.property] || "--"; |
|
|
|
}, |
|
|
|
importExcelData() { |
|
|
|
//this.getVersionInfo(); |
|
|
|
this.listLoading = false; |
|
|
|
onImportExcelDlgClosed() { |
|
|
|
//关闭导入窗体时调用 |
|
|
|
this.listLoading = false; |
|
|
|
this.showExcelImport = false; |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
//导出功能 |
|
|
|
async handleDownload() { |
|
|
@ -753,7 +755,12 @@ export default { |
|
|
|
.catch(() => { |
|
|
|
}); |
|
|
|
}, |
|
|
|
handleImportSAP() { |
|
|
|
//导入 |
|
|
|
this.showExcelImport = true; |
|
|
|
this.$refs.importexcel.handleImportExcelClick(); |
|
|
|
}, |
|
|
|
}, //method |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
|
|