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.

97 lines
2.3 KiB

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