spring
2025-05-21 ee2882cff02d3545b66c7591f88ed4800f730a9a
src/components/view/b1-inspect-order-plan.vue
@@ -152,7 +152,7 @@
        <div class="search_thing">
          <div class="search_label">样品编号:</div>
          <div class="search_input">
            <el-input size="small" placeholder="请输入" clearable v-model="componentData.entity.sampleCOde"
            <el-input size="small" placeholder="请输入" clearable v-model="componentData.entity.sampleCode"
              @keyup.enter.native="refreshTable()"></el-input>
          </div>
        </div>
@@ -251,9 +251,9 @@
        </el-table>
        <div style="display: flex;justify-content: flex-end;width: 100%;margin-top: 10px;">
          <span></span>
          <el-pagination @size-change="refreshTable" @current-change="refreshTable" :current-page="page.current"
            :page-sizes="[10, 20, 30, 50, 100]" :page-size="page.size" layout="total, sizes, prev, pager, next, jumper"
            :total="total">
          <el-pagination @size-change="m => refreshTable('size', m)" @current-change="m => refreshTable('current', m)"
            :current-page="page.current" :page-sizes="[10, 20, 30, 50, 100]" :page-size="page.size"
            layout="total, sizes, prev, pager, next, jumper" :total="total">
          </el-pagination>
        </div>
      </div>
@@ -425,6 +425,8 @@
    Inspection,
    Add
  },
  props: ['entrustCodeNew', 'laboratoryNew'],
  data() {
    return {
      currentHistory: {},
@@ -1023,7 +1025,7 @@
          this.loading = false;
          this.$message.success("认领成功")
          this.claimVisible = false
          this.refreshTable('page')
          this.refreshTable()
        } else {
          this.loading = false;
        }
@@ -1032,7 +1034,10 @@
        this.loading = false;
      })
    },
    refreshTable() {
    refreshTable(type, val) {
      if (type && val) {
        this.page[type] = val;
      }
      this.tableLoading = true
      this.$axios.post(this.$api.insOrderPlan.selectInsOrderPlanList, {
        entity: this.componentData.entity,
@@ -1130,7 +1135,16 @@
        if (this.tabList.length > 0) {
          this.componentData.entity.sonLaboratory = this.tabList[0].value
        }
        this.refreshTable()
        if (this.entrustCodeNew) {
          this.componentData.entity.entrustCode = this.entrustCodeNew
        }
        if (this.laboratoryNew) {
          let index = this.tabList.findIndex(item => item.label == this.laboratoryNew)
          this.componentData.entity.sonLaboratory = this.tabList[index].label
          this.tabIndex = index;
          this.refreshTable()
        }
      })
    },
    selectAllByOne(row) {