inspection-detail.vue 854 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <detail
  3. :use-type="useType"
  4. :model="model"
  5. :project-quantity-list="projectQuantityList"
  6. :fill-info-list="model.fillInfoList" />
  7. </template>
  8. <script>
  9. import Detail from '@/pages/fill/detail'
  10. export default {
  11. components: {
  12. Detail
  13. },
  14. data() {
  15. return {
  16. useType: this.$DictCache.VALUE.FILL_INFO_USE_TYPE.FILL_INFO_USE_TYPE_XUN_JIAN,
  17. projectQuantityList: [],
  18. model: {}
  19. };
  20. },
  21. onLoad(options) {
  22. this.$Http.fetchSbInspectionFill({ id: options.id }).then(res => {
  23. this.model = res.data
  24. })
  25. },
  26. created () {
  27. // 下拉框map
  28. this.$Http.queryFillProjectQuantityDeptProject().then(res => {
  29. this.projectQuantityList = res.data
  30. })
  31. },
  32. methods: {
  33. }
  34. };
  35. </script>