| | |
| | | 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" /> |
| | |
| | | // 切换标签页时重置搜索条件和分页,并重新加载数据 |
| | | searchForm.value.approveId = ''; |
| | | searchForm.value.approveStatus = ''; |
| | | searchForm.value.salesContractNo = ''; |
| | | page.current = 1; |
| | | getList(); |
| | | }; |
| | |
| | | searchForm: { |
| | | approveId: "", |
| | | approveStatus: "", |
| | | salesContractNo: "", |
| | | }, |
| | | }); |
| | | const { searchForm } = toRefs(data); |
| | |
| | | } |
| | | ]; |
| | | |
| | | // 发货审批显示销售单号列 |
| | | 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({ |