| | |
| | | <el-input v-model="searchForm.expressNumber" placeholder="请输入" clearable prefix-icon="Search" style="width: 200px" |
| | | @change="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="发货日期:"> |
| | | <el-date-picker v-model="shippingDateRange" type="daterange" range-separator="至" start-placeholder="开始日期" |
| | | end-placeholder="结束日期" value-format="YYYY-MM-DD" format="YYYY-MM-DD" clearable style="width: 240px" |
| | | @change="handleShippingDateChange" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="handleQuery"> 搜索 </el-button> |
| | | </el-form-item> |
| | |
| | | // 用户信息表单弹框数据 |
| | | const operationType = ref(""); |
| | | const dialogFormVisible = ref(false); |
| | | const shippingDateRange = ref([]); |
| | | const data = reactive({ |
| | | searchForm: { |
| | | salesContractNo: "", // 销售订单号 |
| | | shippingCarNumber: "", // 车牌号 |
| | | expressNumber: "", // 快递单号 |
| | | shippingDateStart: "", // 发货日期开始 |
| | | shippingDateEnd: "", // 发货日期结束 |
| | | }, |
| | | form: { |
| | | id: null, |
| | |
| | | const handleQuery = () => { |
| | | page.current = 1; |
| | | getList(); |
| | | }; |
| | | |
| | | // 发货日期变更 |
| | | const handleShippingDateChange = (value) => { |
| | | if (value && value.length === 2) { |
| | | searchForm.value.shippingDateStart = value[0]; |
| | | searchForm.value.shippingDateEnd = value[1]; |
| | | } else { |
| | | searchForm.value.shippingDateStart = ""; |
| | | searchForm.value.shippingDateEnd = ""; |
| | | } |
| | | handleQuery(); |
| | | }; |
| | | |
| | | const paginationChange = (obj) => { |
| | |
| | | |
| | | // 导出 |
| | | const handleOut = () => { |
| | | ElMessageBox.confirm("选中的内容将被导出,是否确认导出?", "导出", { |
| | | ElMessageBox.confirm("是否确认导出发货台账数据?", "导出", { |
| | | confirmButtonText: "确认", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | proxy.download("/shippingInfo/export", {}, "发货台账.xlsx"); |
| | | const params = { |
| | | salesContractNo: searchForm.value.salesContractNo, |
| | | shippingCarNumber: searchForm.value.shippingCarNumber, |
| | | expressNumber: searchForm.value.expressNumber, |
| | | shippingDateStart: searchForm.value.shippingDateStart, |
| | | shippingDateEnd: searchForm.value.shippingDateEnd, |
| | | }; |
| | | proxy.download("/shippingInfo/export", params, "发货台账.xlsx"); |
| | | }) |
| | | .catch(() => { |
| | | proxy.$modal.msg("已取消"); |