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.

87 lines
2.1 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="mod-config">
  3. <PackageInfo ref="PackageInfo"></PackageInfo>
  4. <el-form label-position="top" style="margin-top: 10px; margin-left: 0px;text-align:center">
  5. <!-- <div class="rq-bmPic" v-if="searchData.buNo==='Flexo'||searchData.buNo==='SS'">-->
  6. </el-form>
  7. <Chooselist append-to-body ref="baseList" @getBaseData="getBaseData"></Chooselist>
  8. </div>
  9. </template>
  10. <script>
  11. import {
  12. searchBMPackageInfo,
  13. updateBMPackageInfo,
  14. } from "@/api/sampleManagement/technicalSpecificationList.js"
  15. import Chooselist from '@/views/modules/common/Chooselist'
  16. import PackageInfo from "./com_bm_demoSlot";/*组件*/
  17. export default {
  18. components: {
  19. Chooselist,PackageInfo
  20. },
  21. data() {
  22. return {
  23. pageRole:'',
  24. searchData: {
  25. site: '',
  26. username: this.$store.state.user.name,
  27. codeNo: '',
  28. buNo:'',
  29. type:'',
  30. fieldId:'',
  31. },
  32. ifDisableFlag:false,
  33. picUrl:this.$store.state.user.bmPicUrl+'defaultPaperOrientation.png',
  34. }
  35. },
  36. methods: {
  37. // 获取基础数据列表S
  38. getBaseList (val, type) {
  39. this.tagNo = val
  40. this.tagNo1 = type
  41. this.$nextTick(() => {
  42. let strVal = ''
  43. if (val === 1013) {
  44. if(type==1) {
  45. strVal = this.dataForm.partType
  46. }
  47. }
  48. this.$refs.baseList.init(val, strVal)
  49. })
  50. },
  51. /* 列表方法的回调 */
  52. getBaseData (val) {
  53. if (this.tagNo === 1013) {
  54. if(this.tagNo1==1) {
  55. this.dataForm.partType = val.Base_id
  56. this.dataForm.partTypeDesc = val.Base_desc
  57. }
  58. }
  59. },
  60. //初始化组件的参数
  61. init(inData) {
  62. //初始化参数
  63. this.searchData = JSON.parse(JSON.stringify(inData));
  64. if(this.searchData.ifDisableFlag){
  65. this.ifDisableFlag=true
  66. }
  67. //刷新表格
  68. this.searchData.type='PackageInfo'
  69. this.$refs.PackageInfo.init(JSON.parse(JSON.stringify(this.searchData)))
  70. },
  71. },
  72. }
  73. </script>
  74. <style scoped>
  75. </style>