增加工单导入导出
This commit is contained in:
parent
b831704dbd
commit
bd380b7b40
@ -41,7 +41,7 @@ export default {
|
||||
},
|
||||
data(){
|
||||
return{
|
||||
list:[{},{},{}],
|
||||
list:[{},{},{},{}],
|
||||
}
|
||||
},
|
||||
setup(){
|
||||
@ -56,7 +56,7 @@ export default {
|
||||
},
|
||||
methods:{
|
||||
getWsResult(res){
|
||||
if(res.data && (res.data.type == 6 || res.data.type == 7 || res.data.type == 8)){
|
||||
if(res.data && (res.data.type == 6 || res.data.type == 7 || res.data.type == 8 || res.data.type == 11)){
|
||||
let item = {
|
||||
type:res.data.type,
|
||||
type_desc:res.data.type_desc,
|
||||
@ -73,6 +73,9 @@ export default {
|
||||
if(res.data.type == 8){
|
||||
this.list[2] = item;
|
||||
}
|
||||
if(res.data.type == 11){
|
||||
this.list[3] = item;
|
||||
}
|
||||
this.$emit('updateShow', item);
|
||||
|
||||
if(res.data.status==1){
|
||||
|
||||
@ -108,7 +108,7 @@ export default {
|
||||
},
|
||||
methods:{
|
||||
getWsResult(res){
|
||||
if(res.data && (res.data.type == 4 || res.data.type == 5)){
|
||||
if(res.data && (res.data.type == 4 || res.data.type == 5 || res.data.type == 10)){
|
||||
this.importInfo = res.data;
|
||||
this.progressShow = true;
|
||||
if(res.data.status == 0){
|
||||
|
||||
@ -43,7 +43,7 @@ const DEFAULT_CONFIG = {
|
||||
LAYOUT: "menu",
|
||||
|
||||
//菜单是否折叠
|
||||
MENU_IS_COLLAPSE: true,
|
||||
MENU_IS_COLLAPSE: false,
|
||||
|
||||
//菜单是否启用手风琴效果
|
||||
MENU_UNIQUE_OPENED: true,
|
||||
|
||||
@ -53,12 +53,12 @@
|
||||
--el-pagination-button-height-small:28px;
|
||||
}
|
||||
.el-tabs.role_tabs{
|
||||
--el-tabs-header-height:60px;
|
||||
--el-tabs-header-height:42px;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.el-tabs__active-bar{
|
||||
bottom: 10px;
|
||||
bottom: 0;
|
||||
}
|
||||
.el-tabs__header{
|
||||
.el-tabs__nav{
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
</scImport>
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
<scExport :size="size" @exportData="exportData" @updateShow="exportChangeShow" :show="exportShow" type="6"></scExport>
|
||||
<scExport :size="size" @exportData="exportData" @updateShow="exportChangeShow" :show="exportShow" type="11"></scExport>
|
||||
</div>
|
||||
</el-header>
|
||||
<el-main class="nopadding">
|
||||
@ -168,7 +168,7 @@ export default {
|
||||
document.body.removeChild(eLink);
|
||||
},
|
||||
async importUpload(params) {
|
||||
const res = await this.$API.system.company.import.post(params);
|
||||
const res = await this.$API.orders.order.maintenance.import.post(params);
|
||||
if(res.code == 200){
|
||||
this.$message.success('上传成功,开始导入数据');
|
||||
}
|
||||
@ -248,7 +248,7 @@ export default {
|
||||
},
|
||||
// 下载导出
|
||||
exportChangeShow(params){
|
||||
if(params.type == 6){
|
||||
if(params.type == 11){
|
||||
this.exportShow = params.status==0?true:false
|
||||
}
|
||||
},
|
||||
|
||||
@ -450,7 +450,7 @@
|
||||
}
|
||||
.btnPot{
|
||||
position: absolute;
|
||||
top: 16px;
|
||||
top: 6px;
|
||||
right: 0;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user