|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
<!-- 搜索模块 --> |
|
|
|
|
<div v-h5uShow="search"> |
|
|
|
|
<!-- 查询模块 --> |
|
|
|
|
<el-form :inline="true" :model="query" class="header_search" label-width="100px"> |
|
|
|
|
<el-form :inline="true" :model="query" class="header_search" label-width="120px"> |
|
|
|
|
<el-form-item label="品牌" prop="brandId"> |
|
|
|
|
<el-select |
|
|
|
|
class="w100" |
|
|
|
@ -24,7 +24,7 @@
|
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="运单创建时间"> |
|
|
|
|
<el-form-item label="工厂推送时间"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="query.timeArr" |
|
|
|
|
type="daterange" |
|
|
|
@ -35,6 +35,17 @@
|
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="开单时间"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="query.openTime" |
|
|
|
|
type="daterange" |
|
|
|
|
range-separator="-" |
|
|
|
|
start-placeholder="开始时间" |
|
|
|
|
end-placeholder="结束时间" |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="事业线"> |
|
|
|
|
<el-select |
|
|
|
|
class="w100" |
|
|
|
@ -295,17 +306,36 @@ const onLoad = async (params = {}) => {
|
|
|
|
|
const end = new Date(submitData.endTimeStr).getTime(); |
|
|
|
|
|
|
|
|
|
if (end - start + 1000 * 60 * 60 * 24 > 1000 * 60 * 60 * 24 * 31) |
|
|
|
|
return ElMessage.warning('时间不能大于31天'); |
|
|
|
|
return ElMessage.warning('工厂推送时间不能大于31天'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 开单时间 |
|
|
|
|
// if ()openTime |
|
|
|
|
if (getObjType(submitData.openTime) === 'array' && submitData.openTime.length > 0) { |
|
|
|
|
submitData.openTimeStartStr = submitData.openTime[0]; |
|
|
|
|
submitData.openTimeEndStr = submitData.openTime[1]; |
|
|
|
|
|
|
|
|
|
const start = new Date(submitData.openTimeStartStr).getTime(); |
|
|
|
|
const end = new Date(submitData.openTimeEndStr).getTime(); |
|
|
|
|
|
|
|
|
|
if (end - start + 1000 * 60 * 60 * 24 > 1000 * 60 * 60 * 24 * 31) |
|
|
|
|
return ElMessage.warning('开单时间不能大于31天'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (getObjType(submitData.timeArr) !== 'array' || submitData.timeArr.length === 0) { |
|
|
|
|
details.data = []; |
|
|
|
|
return ElMessage.warning('请选择时间'); |
|
|
|
|
return ElMessage.warning('请选择工厂推送时间'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
delete submitData.timeArr; |
|
|
|
|
delete submitData.openTime; |
|
|
|
|
delete submitData.total; |
|
|
|
|
|
|
|
|
|
if (submitData.waybillNo) { |
|
|
|
|
submitData.waybillCode = submitData.waybillNo; |
|
|
|
|
delete submitData.waybillNo; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const res = await postOrderAllTimePage(submitData); |
|
|
|
|
const { code, data } = res.data; |
|
|
|
|
if (code !== 200) return; |
|
|
|
|