fuliqi
2024-11-01 4529cc97736ab92b30fb6351b37970bf53a22794
src/views/system/work-order/distribute/index.vue
@@ -61,7 +61,6 @@
          <span style="font-weight: bold;font-size: 16px">快捷下发</span>
          <el-form ref="fastDistributeForm" :model="fastDistributeForm" :rules="fastDistributeRules" label-width="80px">
            <el-form-item label="快捷方式" prop="fastWay">
              <el-radio v-model="fastDistributeForm.fastWay" label="LAST_HALF_HOUR">最近30分钟</el-radio>
              <el-radio v-model="fastDistributeForm.fastWay" label="LAST_HOUR">最近1小时</el-radio>
              <el-radio v-model="fastDistributeForm.fastWay" label="LAST_TWO_HOUR">最近2小时</el-radio>
              <el-radio v-model="fastDistributeForm.fastWay" label="LAST_DAY">最近1天</el-radio>
@@ -105,6 +104,7 @@
        <el-table v-loading="loading" :data="workOrderList" @selection-change="handleSelectionChange">
          <el-table-column type="selection" width="55" align="center" />
          <el-table-column label="工单号" align="center" prop="workOrderNo"/>
          <el-table-column label="国标码" align="center" prop="serialNumber"/>
          <el-table-column label="故障点位" align="center" prop="source">
            <template slot-scope="scope">
              <el-popover
@@ -147,13 +147,13 @@
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="工单来源" prop="source">
        <el-form-item label="故障点位" prop="source">
          <el-select
            v-model="form.source"
            filterable
            remote
            reserve-keyword
            placeholder="请选择来源"
            placeholder="国标码/点位名称搜索"
            :remote-method="remoteGetPoints"
            @change="setPointId"
            :loading="selectLoading">
@@ -312,11 +312,13 @@
    },
    page() {
      this.loading = true;
      this.selectUnit();
      distributeWorkOrder(this.queryParams).then(res => {
        this.workOrderList = res.data.records;
        this.total = res.total;
        this.loading = false;
      distributeWorkOrder(this.queryParams).then(data => {
        workList(this.queryParams).then(res => {
          this.unitList = res.data;
          this.workOrderList = data.data.records;
          this.total = data.total;
          this.loading = false;
        })
      })
    },
    changeUnit(unitId, unitName) {
@@ -378,7 +380,7 @@
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.multipleSelection = selection.map(item => item.id)
      this.multipleSelection = selection.map(item => item.workOrderNo)
    },
    /** 新增按钮操作 */
    handleAdd() {
@@ -404,6 +406,7 @@
          } else {
            addWorkOrder(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.pointList = [];
              this.open = false;
              this.page();
            });
@@ -418,7 +421,7 @@
    },
    // 运维公司下拉数据
    selectUnit() {
      workList().then(res => {
      workList(this.queryParams).then(res => {
        this.unitList = res.data;
      })
    },