|
|
|
@ -278,54 +278,57 @@
|
|
|
|
|
|
|
|
|
|
<!-- 搜索区域 --> |
|
|
|
|
<div v-h5uShow="!search"> |
|
|
|
|
<el-form |
|
|
|
|
:inline="true" |
|
|
|
|
label-width="80px" |
|
|
|
|
:model="details.oldQuery" |
|
|
|
|
class="el-fr-d" |
|
|
|
|
> |
|
|
|
|
<div class="fo-fl"> |
|
|
|
|
<!-- <el-form-item label="订单号" class="el-times"> |
|
|
|
|
<el-input v-model.trim="query.orderCode" clearable></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="目的网点" class="el-times"> |
|
|
|
|
<el-input></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="到站" class="el-times"> |
|
|
|
|
<el-input></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="目标品类" class="el-times"> |
|
|
|
|
<el-input></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="备注" class="el-times"> |
|
|
|
|
<el-input></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="托盘码" class="el-times"> |
|
|
|
|
<el-input></el-input> |
|
|
|
|
</el-form-item> --> |
|
|
|
|
<el-form-item label="开单时间" class="el-times"> |
|
|
|
|
<!-- <el-input v-model="query.stockupArea" placeholder="请输入备货区"></el-input>--> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="stockupDate" |
|
|
|
|
type="daterange" |
|
|
|
|
unlink-panels |
|
|
|
|
range-separator="-" |
|
|
|
|
start-placeholder="开始时间" |
|
|
|
|
end-placeholder="结束时间" |
|
|
|
|
:shortcuts="shortcuts" |
|
|
|
|
clearable |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<!-- <el-form-item> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
icon="el-icon-search" |
|
|
|
|
@click="initOriginWarehouseOrder()" |
|
|
|
|
>搜 索</el-button |
|
|
|
|
> |
|
|
|
|
<el-button icon="el-icon-delete" @click="searchReset()">重置</el-button> |
|
|
|
|
</el-form-item> --> |
|
|
|
|
</div> |
|
|
|
|
<el-form inline label-width="80px" :model="details.oldQuery" class="el-fr-d"> |
|
|
|
|
<!-- <el-form-item label="订单号" class="el-times"> |
|
|
|
|
<el-input v-model.trim="query.orderCode" clearable></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="目的网点" class="el-times"> |
|
|
|
|
<el-input></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="到站" class="el-times"> |
|
|
|
|
<el-input></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="目标品类" class="el-times"> |
|
|
|
|
<el-input></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="备注" class="el-times"> |
|
|
|
|
<el-input></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="托盘码" class="el-times"> |
|
|
|
|
<el-input></el-input> |
|
|
|
|
</el-form-item> --> |
|
|
|
|
<el-form-item label="开单时间" class="el-times"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="query.enterTime" |
|
|
|
|
type="daterange" |
|
|
|
|
unlink-panels |
|
|
|
|
range-separator="-" |
|
|
|
|
start-placeholder="开始时间" |
|
|
|
|
end-placeholder="结束时间" |
|
|
|
|
:shortcuts="shortcuts" |
|
|
|
|
clearable |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="入库时间" class="el-times"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="query.openTime" |
|
|
|
|
type="daterange" |
|
|
|
|
unlink-panels |
|
|
|
|
range-separator="-" |
|
|
|
|
start-placeholder="开始时间" |
|
|
|
|
end-placeholder="结束时间" |
|
|
|
|
:shortcuts="shortcuts" |
|
|
|
|
clearable |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="searchChange" |
|
|
|
|
>搜 索</el-button |
|
|
|
|
> |
|
|
|
|
<el-button icon="el-icon-delete" @click="searchReset()">重置</el-button> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -885,6 +888,15 @@ const initOriginWarehouseOrder = debounce(async (params = {}) => {
|
|
|
|
|
...details.query, |
|
|
|
|
...params, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
for (const key in submitData) { |
|
|
|
|
const value = submitData[key]; |
|
|
|
|
if (!value && value !== false && value !== 0) delete submitData[key]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
delete submit.enterTime; |
|
|
|
|
delete submit.openTime; |
|
|
|
|
|
|
|
|
|
if (Number(details.pageType) === 2) submitData.loadId = details.loadId; |
|
|
|
|
if (submitData.orderCodes.length === 0) delete submitData.orderCodes; |
|
|
|
|
const res = await postFindAllOrderList(submitData); |
|
|
|
@ -1102,14 +1114,38 @@ const destinationWarehouseNameChange = (val, index) => {
|
|
|
|
|
|
|
|
|
|
/** 搜索 */ |
|
|
|
|
const searchChange = () => { |
|
|
|
|
console.log('details.query.enterTime :>> ', details.query.enterTime); |
|
|
|
|
console.log('details.query.openTime :>> ', details.query.openTime); |
|
|
|
|
|
|
|
|
|
if (details.query.enterTime && details.query.enterTime.length > 0) { |
|
|
|
|
details.query.enterTimeStartStr = details.query.enterTime[0]; |
|
|
|
|
details.query.enterTimeEndStr = details.query.enterTime[1]; |
|
|
|
|
} else { |
|
|
|
|
delete details.query.enterTimeStartStr; |
|
|
|
|
delete details.query.enterTimeEndStr; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (details.query.openTime && details.query.openTime.length > 0) { |
|
|
|
|
details.query.openTimeStartStr = details.query.openTime[0]; |
|
|
|
|
details.query.openTimeEndStr = details.query.openTime[1]; |
|
|
|
|
} else { |
|
|
|
|
delete details.query.openTimeStartStr; |
|
|
|
|
delete details.query.openTimeEndStr; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
console.log('details.query :>> ', details.query); |
|
|
|
|
|
|
|
|
|
initOriginWarehouseOrder(); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** 清空表单 */ |
|
|
|
|
const searchReset = () => { |
|
|
|
|
details.query = {}; |
|
|
|
|
details.stockupDate = []; |
|
|
|
|
details.page.pageNum = 1; |
|
|
|
|
for (let i = 0; i < details.columnList.length; i++) { |
|
|
|
|
const value = details.columnList[i]; |
|
|
|
|
value.values = ''; |
|
|
|
|
} |
|
|
|
|
initOriginWarehouseOrder(); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|