| | |
| | | <!-- <el-main> --> |
| | | <el-container> |
| | | <el-header> |
| | | <import-table style="margin:0 8px" exportUrl="/api/blade-cps/tray-fixture/excel/template" |
| | | uploadUrl="/api/blade-cps/tray-fixture/excel/import"></import-table> |
| | | <import-table style="margin:0 8px" exportUrl="/api/smis/tray-fixture/excel/template" |
| | | uploadUrl="/api/smis/tray-fixture/excel/import"></import-table> |
| | | </el-header> |
| | | <el-main v-if="selectNode.id"> |
| | | <el-row> |
| | |
| | | }, |
| | | methods: { |
| | | init() { |
| | | this.$HTTP.post(`/api/blade-cps/tray/tray-tree`, { |
| | | this.$HTTP.post(`/api/smis/tray/tray-tree`, { |
| | | groupCategory: 1, |
| | | groupType: "group_tray" |
| | | }).then(res => { |
| | |
| | | }) |
| | | }, |
| | | async queryInfo() { |
| | | this.$HTTP.get(`/api/blade-cps/tray/${this.selectNode.id}`).then(res => { |
| | | this.$HTTP.get(`/api/smis/tray/${this.selectNode.id}`).then(res => { |
| | | this.info = res.data |
| | | }) |
| | | |
| | | this.$HTTP.post(`/api/blade-cps/tray/tool-appendix?id=${this.selectNode.id}`).then(res => { |
| | | this.$HTTP.post(`/api/smis/tray/tool-appendix?id=${this.selectNode.id}`).then(res => { |
| | | this.fileList = res.data |
| | | }) |
| | | await this.$HTTP.get(`/api/blade-cps/tray-surface/list/${this.selectNode.id}`).then(res => { |
| | | await this.$HTTP.get(`/api/smis/tray-surface/list/${this.selectNode.id}`).then(res => { |
| | | this.surfaceList = res.data |
| | | this.activeNames = res.data?.[0]?.id |
| | | }) |
| | | Promise.all(this.surfaceList.map(item => { |
| | | return this.$HTTP.get(`/api/blade-cps/tray-fixture/list/fixture?faceId=${item.id}`) |
| | | return this.$HTTP.get(`/api/smis/tray-fixture/list/fixture?faceId=${item.id}`) |
| | | })).then(data => { |
| | | data.forEach((v, i) => { |
| | | this.surfaceList[i].list = v.data |