增加工单导入导出

This commit is contained in:
龙运模 2024-07-22 20:00:23 +08:00
parent b831704dbd
commit bd380b7b40
6 changed files with 13 additions and 10 deletions

View File

@ -41,7 +41,7 @@ export default {
}, },
data(){ data(){
return{ return{
list:[{},{},{}], list:[{},{},{},{}],
} }
}, },
setup(){ setup(){
@ -56,7 +56,7 @@ export default {
}, },
methods:{ methods:{
getWsResult(res){ 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 = { let item = {
type:res.data.type, type:res.data.type,
type_desc:res.data.type_desc, type_desc:res.data.type_desc,
@ -73,6 +73,9 @@ export default {
if(res.data.type == 8){ if(res.data.type == 8){
this.list[2] = item; this.list[2] = item;
} }
if(res.data.type == 11){
this.list[3] = item;
}
this.$emit('updateShow', item); this.$emit('updateShow', item);
if(res.data.status==1){ if(res.data.status==1){

View File

@ -108,7 +108,7 @@ export default {
}, },
methods:{ methods:{
getWsResult(res){ 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.importInfo = res.data;
this.progressShow = true; this.progressShow = true;
if(res.data.status == 0){ if(res.data.status == 0){

View File

@ -43,7 +43,7 @@ const DEFAULT_CONFIG = {
LAYOUT: "menu", LAYOUT: "menu",
//菜单是否折叠 //菜单是否折叠
MENU_IS_COLLAPSE: true, MENU_IS_COLLAPSE: false,
//菜单是否启用手风琴效果 //菜单是否启用手风琴效果
MENU_UNIQUE_OPENED: true, MENU_UNIQUE_OPENED: true,

View File

@ -53,12 +53,12 @@
--el-pagination-button-height-small:28px; --el-pagination-button-height-small:28px;
} }
.el-tabs.role_tabs{ .el-tabs.role_tabs{
--el-tabs-header-height:60px; --el-tabs-header-height:42px;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.el-tabs__active-bar{ .el-tabs__active-bar{
bottom: 10px; bottom: 0;
} }
.el-tabs__header{ .el-tabs__header{
.el-tabs__nav{ .el-tabs__nav{

View File

@ -8,7 +8,7 @@
</scImport> </scImport>
</div> </div>
<div class="right-panel"> <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> </div>
</el-header> </el-header>
<el-main class="nopadding"> <el-main class="nopadding">
@ -168,7 +168,7 @@ export default {
document.body.removeChild(eLink); document.body.removeChild(eLink);
}, },
async importUpload(params) { 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){ if(res.code == 200){
this.$message.success('上传成功,开始导入数据'); this.$message.success('上传成功,开始导入数据');
} }
@ -248,7 +248,7 @@ export default {
}, },
// //
exportChangeShow(params){ exportChangeShow(params){
if(params.type == 6){ if(params.type == 11){
this.exportShow = params.status==0?true:false this.exportShow = params.status==0?true:false
} }
}, },

View File

@ -450,7 +450,7 @@
} }
.btnPot{ .btnPot{
position: absolute; position: absolute;
top: 16px; top: 6px;
right: 0; right: 0;
z-index: 10; z-index: 10;
} }