plm前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
3.4 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <template>
  2. <div class="mod-config">
  3. <el-tabs class="tabs" tab-position="left" style="height: 200px;" type="border-card" v-model="activeName" @tab-click="refreshCurrentTabTable">
  4. <el-tab-pane label="基本信息" name="baseInfo" v-if="true">
  5. <basicInformation ref="basicInformation" ></basicInformation>
  6. </el-tab-pane>
  7. <el-tab-pane label="客户信息" name="customerInfo" v-if="true">
  8. <customerInfo ref="customerInfo" ></customerInfo>
  9. </el-tab-pane>
  10. <el-tab-pane label="包装信息" name="packageInfo" v-if="true">
  11. <packageInfo ref="packageInfo"></packageInfo>
  12. </el-tab-pane>
  13. <el-tab-pane label="材料信息" name="bom" v-if="true">
  14. <bom ref="bom"></bom>
  15. </el-tab-pane>
  16. <el-tab-pane label="工艺信息" name="routing">
  17. <routing ref="routing"></routing>
  18. </el-tab-pane>
  19. <el-tab-pane label="印前" name="prepress">
  20. <prepress ref="prepress"></prepress>
  21. </el-tab-pane>
  22. </el-tabs>
  23. </div>
  24. </template>
  25. <script>
  26. import basicInformation from "./com_tsd_basicInformation";/*組件*/
  27. import customerInfo from "./com_bm_customerInformation";/*客户信息*/
  28. import packageInfo from "./com_bm_packageInfo";/*包装信息*/
  29. import bom from "./com_bm_bom";/*BOM*/
  30. import routing from "./com_bm_routing";/*工艺*/
  31. import prepress from "./com_bm_prepress";/*印前*/
  32. export default {
  33. name: "technicalSpecificationDetail",
  34. components: {
  35. basicInformation,
  36. customerInfo,
  37. packageInfo,
  38. bom,
  39. routing,
  40. prepress,
  41. },
  42. data() {
  43. return {
  44. dataForm:{
  45. site:'',
  46. codeNo:'',
  47. buNo:'',
  48. username:this.$store.state.user.name,
  49. },
  50. activeName:'baseInfo',
  51. }
  52. },
  53. mounted() {
  54. if(localStorage.getItem('tsfData')!=undefined){
  55. let data=JSON.parse(localStorage.getItem('tsfData'))
  56. this.dataForm.site=data.site
  57. this.dataForm.codeNo=data.codeNo
  58. this.dataForm.buNo=data.buNo
  59. localStorage.removeItem('tsfData');
  60. }
  61. this.$nextTick(() => {
  62. //页签大小铺满网页
  63. var tabsElement = document.querySelector('.tabs');
  64. tabsElement.style.minHeight = window.innerHeight+'px';
  65. this.refreshCurrentTabTable()
  66. })
  67. },
  68. methods: {
  69. refreshCurrentTabTable(){
  70. if (this.activeName == 'baseInfo') {
  71. this.getBaseInfoData();
  72. }else if(this.activeName == 'customerInfo'){
  73. this.getCustomerInfo();
  74. }else if(this.activeName == 'packageInfo'){
  75. this.getPackageInfo();
  76. }else if(this.activeName == 'bom'){
  77. this.getBom();
  78. }else if(this.activeName == 'routing'){
  79. this.getRouting();
  80. }
  81. },
  82. getBaseInfoData(){
  83. this.$refs.basicInformation.init(JSON.parse(JSON.stringify(this.dataForm)))
  84. },
  85. getCustomerInfo(){
  86. this.$refs.customerInfo.init(JSON.parse(JSON.stringify(this.dataForm)))
  87. },
  88. getPackageInfo(){
  89. this.$refs.packageInfo.init(JSON.parse(JSON.stringify(this.dataForm)))
  90. },
  91. getBom(){
  92. this.$refs.bom.init(JSON.parse(JSON.stringify(this.dataForm)))
  93. },
  94. getRouting(){
  95. this.$refs.routing.init(JSON.parse(JSON.stringify(this.dataForm)))
  96. },
  97. },
  98. }
  99. </script>
  100. <style >
  101. </style>