| | |
| | | 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({ |
| | |
| | | |
| | | const data = reactive({ |
| | | searchForm: { |
| | | approveId: "", |
| | | salesContractNo: "", |
| | | approveStatus: "", |
| | | }, |
| | | }); |
| | |
| | | return 'danger'; |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | label: "申请部门", |
| | | prop: "approveDeptName", |
| | | width: 150 |
| | | }, |
| | | { |
| | | label: "销售单号", |
| | |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "申请人", |
| | | prop: "approveUserId", |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "申请日期", |
| | | prop: "executionDate", |
| | | width: 200 |
| | |
| | | }, |
| | | disabled: (row) => row.approveStatus !== 2 |
| | | }, |
| | | // { |
| | | // name: "编辑", |
| | | // type: "text", |
| | | // clickFun: (row) => { |
| | | // openForm("edit", row); |
| | | // }, |
| | | // disabled: (row) => row.approveStatus == 2 || row.approveStatus == 1 || row.approveStatus == 4 |
| | | // }, |
| | | // { |
| | | // name: "审核", |
| | | // type: "text", |
| | | // clickFun: (row) => { |
| | | // openApprovalDia("approval", row); |
| | | // }, |
| | | // disabled: (row) => row.approveUserCurrentId == null || row.approveStatus == 2 || row.approveStatus == 3 || row.approveStatus == 4 || row.approveUserCurrentId !== userStore.id |
| | | // }, |
| | | // { |
| | | // name: "详情", |
| | | // type: "text", |
| | | // clickFun: (row) => { |
| | | // openApprovalDia('view', row); |
| | | // }, |
| | | // }, |
| | | // { |
| | | // name: "附件", |
| | | // type: "text", |
| | | // clickFun: (row) => { |
| | | // downLoadFile(row); |
| | | // }, |
| | | // }, |
| | | ], |
| | | }, |
| | | ]); |
| | |
| | | <el-input v-model="searchForm.salesContractNo" placeholder="请输入" clearable prefix-icon="Search" style="width: 200px" |
| | | @change="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="发货订单号:"> |
| | | <el-input v-model="searchForm.shippingNo" placeholder="请输入" clearable prefix-icon="Search" style="width: 200px" |
| | | @change="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="车牌号:"> |
| | | <el-input v-model="searchForm.shippingCarNumber" placeholder="请输入" clearable prefix-icon="Search" style="width: 200px" |
| | | @change="handleQuery" /> |
| | |
| | | const data = reactive({ |
| | | searchForm: { |
| | | salesContractNo: "", // 销售订单号 |
| | | shippingNo: "", // 发货订单号 |
| | | shippingCarNumber: "", // 车牌号 |
| | | expressNumber: "", // 快递单号 |
| | | }, |