zouyu
2 天以前 72780bc3f7a4b47ebba49f28f4ffe219c14349ba
src/views/business/unpass/index-manage.vue
@@ -69,11 +69,11 @@
              </el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="OA审核状态" prop="operation">
          <el-form-item label="OA审核状态" prop="oaState">
            <el-select
              clearable
              size="small"
              v-model="entity.operation"
              v-model="entity.oaState"
              style="width: 100%"
              @change="refreshTable()"
            >
@@ -159,7 +159,6 @@
      :close-on-click-modal="false"
      :visible.sync="insOrderVisible"
      @closed="resetInsOrderForm"
      @open="getListData"
      width="50%"
    >
      <el-row :gutter="20" style="margin-bottom: 10px">
@@ -185,9 +184,7 @@
            :tableData="insOrderDataList"
            :column="insOrderTableDataColumn"
            :isSelection="true"
            :selectionSelectable="insOrderSelectable"
            :handleSelectionChange="handlerSelection"
            :rowClassName="insOrderRowClassName"
            @pagination="insOrderPageination"
            :height="500"
            :page="insOrderPage"
@@ -202,9 +199,7 @@
            :tableData="wgInsOrderDataList"
            :column="wgInsOrderTableDataColumn"
            :isSelection="true"
            :selectionSelectable="insOrderSelectable"
            :handleSelectionChange="handlerSelection"
            :rowClassName="insOrderRowClassName"
            @pagination="wgInsOrderPageination"
            :height="500"
            :page="wgInsOrderPage"
@@ -248,8 +243,7 @@
  deleteUnqualifiedHandler,
  page,
  pushOA,
  exportUnqualifiedHandler,
  getList
  exportUnqualifiedHandler
} from "@/api/business/unqualifiedHandler";
import { transformExcel } from "@/utils/file";
export default {
@@ -546,7 +540,7 @@
        supplierName: null,
        feedbackDateTime: [],
        materialProp: null,
        operation: null,
        oaState: null,
      },
      tableData: [],
      tableLoading: false,
@@ -572,16 +566,23 @@
        { label: "编号", prop: "no", width: "160px" },
        {
          label: "OA审核状态",
          prop: "operation",
          prop: "oaState",
          width: "100px",
          dataType: "tag",
          formatData: (params) => {
            if (params) {
              this.dict.type.oa_workflow_state.forEach((item) => {
                if (item.value == params) {
                  params = item.raw.dictLabel;
                }
              });
            }
            return params;
          },
          formatType: (params) => {
            if (params) {
              this.dict.type.oa_workflow_state.forEach((item) => {
                if (item.value === params) {
                if (item.value == params) {
                  params = item.raw.listClass;
                }
              });
@@ -684,7 +685,7 @@
          operation: [
            {
              name: (row) => {
                return row.requestId !== null && row.operation === "退回"
                return row.requestId !== null && row.oaState === 4
                  ? "重新提交"
                  : "提交OA";
              },
@@ -693,7 +694,7 @@
                this.openOA(row);
              },
              disabled: (row, index) => {
                return row.requestId !== null && row.operation !== "退回"; // 有requestId说明已经提交过OA,不可再次提交
                return row.requestId !== null && row.oaState !== 4; // 有requestId说明已经提交过OA,不可再次提交
              },
            },
            {
@@ -710,7 +711,7 @@
                this.deleteOA(row);
              },
              disabled: (row, index) => {
                return row.requestId !== null && row.operation !== "退回"; // 有requestId说明已经提交过OA,不可再次提交
                return row.requestId !== null && row.oaState !== 4; // 有requestId说明已经提交过OA,不可再次提交
              },
            },
          ],
@@ -738,28 +739,6 @@
    this.refreshTable();
  },
  methods: {
    getListData(){
      getList().then(res => {
        this.insOrderIds = [];
        if(res.code === 200){
          this.insOrderIds = res.data;
        }
      }).catch(err => {
        console.error(err)
      })
    },
    insOrderSelectable(row) {
      const existsInMain = this.insOrderIds.some(
        (id) => id === row.enterOrderId
      );
      return !existsInMain;
    },
    insOrderRowClassName({ row }) {
      const existsInMain = this.insOrderIds.some(
        (id) => id === row.enterOrderId
      );
      return existsInMain ? "disabled-selection-row" : "";
    },
    resetInsOrderForm() {
      this.activeName = "raw";
      this.insOrderDataList = [];