|
|
|
|
@ -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>
|
|
|
|
|
|