Yang 3 years ago
commit 14142f6448

@ -44,3 +44,21 @@ export async function modifyMaterial(params, controller) {
});
return result;
}
// 下载SAP视图
export async function downMateialViewSAP(params, controller) {
let result = {};
await http.post('/api/' + controller + '/DownMateialViewSAP', params).then((data) => {
result = data
});
return result;
}
// 下载视图
export async function downMateialView(params, controller) {
let result = {};
await http.post('/api/' + controller + '/DownMateialView', params).then((data) => {
result = data
});
return result;
}

@ -13,6 +13,12 @@
@click="_clickFreezingColumnSetting()">固定项
</lay-button>
</template>
<template v-slot:toolbar v-else>
<lay-button size="sm" @click="downSAP" type="primary">导出SAP
</lay-button>
<lay-button size="sm" @click="downView" type="primary">导出视图
</lay-button>
</template>
<template v-for="item in editColumn" v-slot:[item.key]="{ data }">
<lay-select v-if="item.key == 'FTypeID1'" size="sm" v-model="data['FTypeID1']"
@change="_changeType(data, 1)" :showEmpty="false">
@ -85,12 +91,11 @@
import {
ref
} from 'vue';
import {
updateMaterialViewById
} from "/src/api/api/view";
import {
getMaterialViewsByTeamId,
updateMaterial
updateMaterial,
downMateialViewSAP,
downMateialView
} from "/src/api/api/materialEdit"
import {
getBasicRoleList,
@ -100,7 +105,6 @@ import {
getDataCode,
commonSave
} from "/src/api/api/common";
import {
getInfoData,
GetMaterialInfoList
@ -584,7 +588,27 @@ export default {
},
deepCopy(arr) {
return JSON.parse(JSON.stringify(arr))
}
},
async downSAP() {
let result = await downMateialViewSAP({
teamId: this.dataInfoObj.FTeamID,
teamWorkType: this.dataInfoObj.FTeamworkType,
materialName: this.dataInfoObj.FMaterialName
}, "MaterialTeamwork");
if (result.Code == "200") {
window.location.href = result.Data
}
},
async downView() {
let result = await downMateialView({
teamId: this.dataInfoObj.FTeamID,
teamWorkType: this.dataInfoObj.FTeamworkType,
materialName: this.dataInfoObj.FMaterialName
}, "MaterialTeamwork");
if (result.Code == "200") {
window.location.href = result.Data
}
},
}
}
</script>

Loading…
Cancel
Save