春风项目四线(合箱线、总装线)
jiang
2024-01-29 53397cb6c862b19ea0e9c15d222ceb51ae3f2c11
jcdm-ui/src/views/main/kb/repairMark/index.vue
@@ -108,11 +108,15 @@
  insertRepairRecordByIds
} from "@/api/main/da/passingStationCollection/passingStationCollection";
import {noPagelist} from "@/api/main/rm/repairRecord/repairRecord";
import {warning} from "@riophae/vue-treeselect/src/utils";
export default {
  name: "index",
  dicts: ['sys_normal_disable'],
  data(){
    return{
      loading: false,//刷新修改
      activeName: 'first',
      // 返修记录表格数据
@@ -164,17 +168,33 @@
      })
      this.$modal.msgSuccess('选择不合格');
    },
    // handleQuery() {
    //   let sfcCode = this.queryParams.sfcCode
    //   if(sfcCode === null||sfcCode ===''){
    //     this.$message({
    //       message: '请填写发动机号!',
    //       type: 'warning'
    //     });
    //   }
    markComplete(){
      if(this.ids.length === 0){
        this.$modal.msgSuccess('未选择');
        this.$message({
          message: '未标记!',
          type: 'warning'
        })
      }else {
        this.loading = true; // 开始加载数据
        this.$modal.msgSuccess('标记完成');
        let queryParams = {
          ids: this.ids
        }
        this.repairRecordList = []
        insertRepairRecordByIds(queryParams).then(response => {
               this.initRepairRecord(); // 刷新返修记录
               this.loading = false; // 结束加载数据
        }).catch(() => {
          this.loading = false; // 结束加载数据
        });
        // this.initRepairRecord()
        // this.getList();
@@ -216,7 +236,7 @@
          type: 'warning'
        });
      }else {
        this.$modal.msgSuccess('搜索');
        // this.$modal.msgSuccess('搜索');
        this.getList();
        this.initRepairRecord();
      }