春风项目四线(合箱线、总装线)
jiang
2024-01-26 d19612bcf688417adee504c5ae5bacb1a4832f88
更新返修标记查询搜索
已修改1个文件
31 ■■■■ 文件已修改
jcdm-ui/src/views/main/kb/repairMark/index.vue 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jcdm-ui/src/views/main/kb/repairMark/index.vue
@@ -24,7 +24,7 @@
    <el-row>
      <el-col :span="20">
        <el-card style="margin-top: 10px; height: 490px;" class="box-card">
          <el-tabs v-model="activeName" @tab-click="handleClick">
          <el-tabs v-model="activeName">
            <el-tab-pane label="过站采集" name="first">
              <el-table max-height="410px" border ref="multipleTable" :data="passingStationCollectionList"  @selection-change="handleSelectionChange">
                <el-table-column type="selection" width="55" align="center" />
@@ -61,7 +61,7 @@
                </el-table-column>
              </el-table>
            </el-tab-pane>
            <el-tab-pane label="返修记录" name="second">
            <el-tab-pane label="返修记录" name="second" @tab-click="handleClick">
              <el-table max-height="410px" border :data="repairRecordList">
                <el-table-column label="发动机号" width="150" align="center" prop="boxCode" />
                <el-table-column label="工位号" align="center" prop="processesCode" />
@@ -129,13 +129,22 @@
      ids: [],
      allSelected: false,
      boxCode: '',
      // rules: {
      //   boxCode: [
      //     { required: true, message: "状态不能为空", trigger: "blur" }
      //   ]
      // },
    }
  },
  mounted() {
    // this.getList()
  },
  methods:{
    handleClick(tab, event) {
      console.log(tab, event);
      this.$modal.msgSuccess(tab,event);
    },
    // 取消按钮
    cancel() {
      this.open = false;
@@ -163,10 +172,14 @@
        let queryParams = {
          ids: this.ids
        }
        this.repairRecordList = []
        insertRepairRecordByIds(queryParams).then(response => {
        });
        // this.initRepairRecord()
        // this.getList();
      }
      this. handleQuery();
    },
    repairRecord(){
      this.$modal.msgSuccess('返修记录');
@@ -188,20 +201,30 @@
      let queryParams = {
        boxCode: this.queryParams.sfcCode
      }
      noPagelist(queryParams).then(response => {
        this.repairRecordList = response.rows;
      });
    },
    /** 搜索按钮操作 */
    handleQuery() {
      let sfcCode = this.queryParams.sfcCode
      if(sfcCode === null||sfcCode ===''){
        this.$message({
          message: '请填写发动机号!',
          type: 'warning'
        });
      }else {
        this.$modal.msgSuccess('搜索');
      this.getList();
      this.initRepairRecord();
      }
    },
    /** 查询产品过站采集列表 */
    getList() {
      noPageList(this.queryParams).then(response => {
        this.passingStationCollectionList = response.rows;
        this.total = response.total;
      });
    },