|
|
|
@ -62,6 +62,20 @@
|
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="开单时间:"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="details.query.openTimeArr" |
|
|
|
|
type="daterange" |
|
|
|
|
unlink-panels |
|
|
|
|
range-separator="至" |
|
|
|
|
start-placeholder="开始时间" |
|
|
|
|
end-placeholder="结束时间" |
|
|
|
|
:shortcuts="shortcuts" |
|
|
|
|
clearable |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<!-- 查询按钮 --> |
|
|
|
|
<el-form-item class="el-btn"> |
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="searchChange">搜 索</el-button> |
|
|
|
@ -84,6 +98,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 列表模块 --> |
|
|
|
|
<tablecmt |
|
|
|
|
ref="tableNodeRef" |
|
|
|
|
:columnList="details.columnList" |
|
|
|
|
:tableData="data" |
|
|
|
|
:loading="loadingObj.list" |
|
|
|
@ -156,6 +171,8 @@ import { ElMessage, ElMessageBox } from 'element-plus';
|
|
|
|
|
const $router = useRouter(); |
|
|
|
|
|
|
|
|
|
const $store = useStore(); |
|
|
|
|
const tableNodeRef = ref(); |
|
|
|
|
|
|
|
|
|
const details = reactive<any>({ |
|
|
|
|
/** 是否开启搜索 */ |
|
|
|
|
search: true, |
|
|
|
@ -235,7 +252,20 @@ const onLoad = debounce(async (isTranslation = true) => {
|
|
|
|
|
...details.page, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
if (getObjType(submitData.openTimeArr) === 'array' && submitData.openTimeArr.length > 0) { |
|
|
|
|
submitData.openTimeStartStr = submitData.openTimeArr[0]; |
|
|
|
|
submitData.openTimeEndStr = submitData.openTimeArr[1]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
|
!submitData.acceptWarehouseIdList || |
|
|
|
|
(getObjType(submitData.acceptWarehouseIdList) === 'array' && |
|
|
|
|
submitData.acceptWarehouseIdList.length === 0) |
|
|
|
|
) |
|
|
|
|
delete submitData.acceptWarehouseIdList; |
|
|
|
|
|
|
|
|
|
delete submitData.total; |
|
|
|
|
delete submitData.openTimeArr; |
|
|
|
|
|
|
|
|
|
const res = await getListTransfer(submitData); |
|
|
|
|
|
|
|
|
@ -333,7 +363,7 @@ const showdrawer = (_flag?: boolean) => {
|
|
|
|
|
const searchHide = () => { |
|
|
|
|
details.search = !details.search; |
|
|
|
|
|
|
|
|
|
setNodeHeight(details.listNode, '', true); |
|
|
|
|
setNodeHeight(tableNodeRef.value.$el, '', true); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** 表格表头输入框搜索 */ |
|
|
|
|