licp
2024-12-12 b591dda5d9391d238f9e83c234a9f2d56fb8793c
src/components/do/b1-report-preparation/order.vue
@@ -21,6 +21,14 @@
        <div class="search_input"><el-input size="small" placeholder="请输入" clearable
            v-model="componentData.entity.sampleCode" @keyup.enter.native="refreshTable()"></el-input></div>
      </div>
      <div class="search_thing">
        <div class="search_label">订单类型:</div>
        <div class="search_input">
          <el-select v-model="componentData.entity.formType" size="small"style="width: 100%;" @change="refreshTable()">
            <el-option v-for="(a,ai) in formType" :key="ai" :label="a.label" :value="a.value"></el-option>
          </el-select>
        </div>
      </div>
      <div class="search_thing" style="margin-left: 20px;">
        <el-button size="small" @click="refresh()">重 置</el-button>
        <el-button size="small" type="primary" @click="refreshTable()">查 询</el-button>
@@ -140,6 +148,7 @@
          name:null,
          engineering:null,
          production:null,
          formType:null,
        },
        isIndex: true,
        showSelect: false,
@@ -221,11 +230,13 @@
      sampleList:[],
      sampleId:null,
      orderId0:null,
      formType:[]
    }
  },
  mounted() {
    this.entityCopy = this.HaveJson(this.componentData.entity)
    this.getPower()
    this.selectEnumByCategoryForSampleForm()
  },
  methods:{
    // 权限分配
@@ -285,6 +296,13 @@
        this.dialogVisible = true
      })
    },
    selectEnumByCategoryForSampleForm() {
        this.$axios.post(this.$api.enums.selectEnumByCategory, {
          category: "订单类型"
        }).then(res => {
          this.formType = res.data
        })
      },
    // 生成报告
    handleCreate(){
      let insReportDto1s = []