spring
2025-04-07 9f571972ce45d45facd8ca667376e2d4c99da3af
src/views/business/materialOrder/index.vue
@@ -17,16 +17,23 @@
            <el-input v-model="entity.partNo" clearable placeholder="请输入" size="small" @keyup.enter.native="goSearch">
            </el-input>
          </el-form-item>
          <el-form-item label="零件描述" prop="partDesc">
            <el-input v-model="entity.partDesc" clearable placeholder="请输入" size="small" @keyup.enter.native="goSearch">
            </el-input>
          <el-form-item label="报检类型" prop="inspectionType">
            <el-select v-model="entity.inspectionType" clearable placeholder="请选择" size="small" @change="refreshTable"
              style="width: 100%">
              <el-option label="原辅材" value="原辅材"></el-option>
              <el-option label="包材" value="包材"></el-option>
            </el-select>
          </el-form-item>
          <el-form-item>
            <el-button v-if="tabIndex === 2 || tabIndex === 3 || tabIndex === 4"
            <el-button v-if="tabIndex === 1 || tabIndex === 2 || tabIndex === 3 || tabIndex === 4"
              :icon="!more ? 'el-icon-arrow-down' : 'el-icon-arrow-up'" style="color: #3A7BFA;" type="text"
              @click="more = !more">{{ !more ? '更多' : '收起' }}</el-button>
            <el-button size="mini" type="primary" @click="goSearch">查询</el-button>
            <el-button size="mini" @click="refresh()">重置</el-button>
          </el-form-item>
          <el-form-item label="零件描述" prop="partDesc" v-if="more">
            <el-input v-model="entity.partDesc" clearable placeholder="请输入" size="small" @keyup.enter.native="goSearch">
            </el-input>
          </el-form-item>
          <el-form-item label="供应商名称" prop="supplierName"
            v-if="(tabIndex === 2 || tabIndex === 3 || tabIndex === 4) && more">
@@ -67,7 +74,7 @@
          <div>
            <el-button v-show="tabIndex === 3 || tabIndex === 2" :loading="outLoading" size="small" type="primary"
              @click="handleOut">导出</el-button>
            <el-button v-if="tabIndex === 0" size="small" type="primary" @click="copper">铜材料下单</el-button>
            <!-- <el-button v-if="tabIndex === 0" size="small" type="primary" @click="copper">铜材料下单</el-button> -->
            <el-button v-if="tabIndex !== 0" size="small" type="primary" @click="openPrint">标签打印</el-button>
          </div>
        </div>
@@ -175,7 +182,7 @@
      </div>
    </el-dialog>
    <!--    <Inspection v-if="state>0" :key="InspectionKey" :inspectorList="inspectorList" :orderId="orderId"-->
    <!--                :sonLaboratory="'原辅料'" :state="state"-->
    <!--                :sonLaboratory="'原辅材'" :state="state"-->
    <!--                :typeSource="typeSource"-->
    <!--                @goback="goback" @refreshView="refreshView"/>-->
  </div>
@@ -218,6 +225,7 @@
        { label: '批号', prop: 'updateBatchNo' },
        { label: '零件号', prop: 'partNo' },
        { label: '零件描述', prop: 'partDesc' },
        { label: '报检类型', prop: 'inspectionType' },
        {
          dataType: 'tag',
          label: '物料类型',
@@ -261,13 +269,13 @@
                this.exemption(row);
              },
            },
            {
              name: '撤销报检',
              type: 'text',
              clickFun: (row) => {
                this.cancelDeclare(row);
              },
            },
            // {
            //   name: '撤销报检',
            //   type: 'text',
            //   clickFun: (row) => {
            //     this.cancelDeclare(row);
            //   },
            // },
          ]
        }
      ],
@@ -299,6 +307,7 @@
        { label: '样品型号', prop: 'sampleModel' },
        { label: '检验人', prop: 'userName' },
        { label: '下发时间', prop: 'sendTime' },
        { label: '报检类型', prop: 'inspectionType' },
        {
          dataType: 'tag',
          label: '物料类型',
@@ -438,6 +447,7 @@
        },
        { label: '样品型号', prop: 'sampleModel' },
        { label: '检验人', prop: 'userName' },
        { label: '报检类型', prop: 'inspectionType' },
        {
          dataType: 'tag',
          label: '物料类型',
@@ -609,6 +619,7 @@
        },
        { label: '样品型号', prop: 'sampleModel' },
        { label: '检验人', prop: 'userName' },
        { label: '报检类型', prop: 'inspectionType' },
        {
          dataType: 'tag',
          label: '物料类型',
@@ -733,6 +744,7 @@
        },
        { label: '样品型号', prop: 'sampleModel' },
        { label: '检验人', prop: 'userName' },
        { label: '报检类型', prop: 'inspectionType' },
        {
          dataType: 'tag',
          label: '物料类型',
@@ -837,7 +849,7 @@
      tabIndex: 0,
      multipleSelection: [],
      active: 0, //1:下单,2:查看
      orderType: 0, //0:原辅料下单,1:季度检验下单
      orderType: 0, //0:原辅材下单,1:季度检验下单
      currentId: null,
      btnLoading: false,
      quashDialogVisible: false, // 撤销下单提醒弹框
@@ -869,7 +881,7 @@
      orderId: 0,
      inspectorList: [],//检验人员列表
      InspectionKey: 1,
      typeSource: null,// 0:成品下单,1:原辅料下单, 2: 铜单丝下单
      typeSource: null,// 0:成品下单,1:原辅材下单, 2: 铜单丝下单
      InspectInfoDialog: false, // 数据查看弹框
      insInfo: {},
      outLoading: false
@@ -1090,7 +1102,7 @@
      this.$router.push({
        path: "/inspectionTask/inspection",
        query: {
          sonLaboratory: '原辅料',
          sonLaboratory: '原辅材',
          state: 3,
          typeSource: this.insInfo.typeSource,
          orderId: this.insInfo.enterOrderId,
@@ -1105,7 +1117,7 @@
      this.$router.push({
        path: "/inspectionTask/inspection",
        query: {
          sonLaboratory: '原辅料',
          sonLaboratory: '原辅材',
          state: 3,
          typeSource: this.insInfo.typeSource,
          orderId: this.insInfo.quarterOrderId,
@@ -1310,7 +1322,7 @@
      rawAllExport({ entity: entity }).then(res => {
        this.outLoading = false
        const blob = new Blob([res], { type: 'application/octet-stream' });
        this.$download.saveAs(blob, '原辅料检测信息导出.xlsx');
        this.$download.saveAs(blob, '原辅材检测信息导出.xlsx');
      })
    },
    // 提交修改委托编号信息