buhuazhen
2 天以前 5c30f301d6d4a5b8fc1183e06aaea8dc366d3540
src/views/collaborativeApproval/approvalProcess/index.vue
@@ -22,6 +22,15 @@
            clearable
            :prefix-icon="Search"
        />
        <span class="search_title ml10" v-if="currentApproveType === 7">销售单号:</span>
        <el-input
            v-if="currentApproveType === 7"
            v-model="searchForm.salesContractNo"
            style="width: 240px"
            placeholder="请输入销售单号搜索"
            @change="handleQuery"
            clearable
        />
        <span class="search_title ml10">审批状态:</span>
            <el-select v-model="searchForm.approveStatus" clearable @change="handleQuery" style="width: 240px">
               <el-option label="待审核" :value="0" />
@@ -95,6 +104,7 @@
  // 切换标签页时重置搜索条件和分页,并重新加载数据
  searchForm.value.approveId = '';
  searchForm.value.approveStatus = '';
  searchForm.value.salesContractNo = '';
  page.current = 1;
  getList();
};
@@ -104,6 +114,7 @@
  searchForm: {
      approveId: "",
      approveStatus: "",
      salesContractNo: "",
  },
});
const { searchForm } = toRefs(data);
@@ -170,6 +181,19 @@
    }
  ];
  // 发货审批显示销售单号列
  if (currentApproveType.value === 7) {
    // 在申请部门后面插入销售单号列
    const deptIndex = baseColumns.findIndex(col => col.prop === 'approveDeptName');
    if (deptIndex !== -1) {
      baseColumns.splice(deptIndex + 1, 0, {
        label: "销售单号",
        prop: "salesContractNo",
        width: 170
      });
    }
  }
  // 金额列(仅报销管理显示)
  if (isReimburseType) {
    baseColumns.push({