|
|
@ -75,12 +75,14 @@ |
|
|
|
v-if="showDetailColumnsSet" |
|
|
|
class="rowDropNotHideItem" |
|
|
|
@click="columnsSettingHandle()" |
|
|
|
size="mini" |
|
|
|
>字段设置</el-button> |
|
|
|
<!-- <el-button |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
v-if="showDetailFilters" |
|
|
|
@click="detailFiltersHandle()" |
|
|
|
>筛选</el-button> --> |
|
|
|
size="mini" |
|
|
|
>筛选</el-button> |
|
|
|
</div> |
|
|
|
<!-- 字段设置弹窗 --> |
|
|
|
<rowDrop |
|
|
@ -91,6 +93,23 @@ |
|
|
|
:source="'detail_api'" |
|
|
|
:innerMaxHeight="'calc(90vh - 400px)'" |
|
|
|
></rowDrop> |
|
|
|
<!-- 全面搜索(普通+高级整合) --> |
|
|
|
<searchOverall |
|
|
|
ref="searchOverallRef" |
|
|
|
class="detailFiltersPopPage" |
|
|
|
:showSearchOverall="detailFiltersVisible" |
|
|
|
@getShowSearchOverall="getShowSearchOverall" |
|
|
|
:showMoreSearch="true" |
|
|
|
:tableColumns="tableColumns" |
|
|
|
@overallSearchFormClick="detailFiltersSearch" |
|
|
|
:filterActionOptions="filterActionOptions" |
|
|
|
:httpOverallSearchData="detailSearchDataFE" |
|
|
|
:disabledAction="true" |
|
|
|
:disabledLogic="true" |
|
|
|
> |
|
|
|
<!-- 插槽预留 --> |
|
|
|
<slot name="searchPrimarySlot"></slot> |
|
|
|
</searchOverall> |
|
|
|
<!-- currenTableDetails 组件 明细中带分页功能 --> |
|
|
|
<umyTable |
|
|
|
v-if="scope.value == 'mx'" |
|
|
@ -101,7 +120,7 @@ |
|
|
|
:tableColumns="tableColumns" |
|
|
|
:selectionTable="selectionTable" |
|
|
|
:requiredRules="false" |
|
|
|
:setUTableHeight="showDetailColumnsSet ? 305 : 260" |
|
|
|
:setUTableHeight="showDetailColumnsSet ? 300 : 260" |
|
|
|
@sortChange="sortChange" |
|
|
|
@handleSelectionChange="handleSelectionChange" |
|
|
|
@inlineDialog="inlineDialog" |
|
|
@ -196,6 +215,7 @@ |
|
|
|
import { getListByItemcode,byItem,byProduct,byComponent,bySupplierCode,byLocation,byLocationCode, |
|
|
|
relationByLocationCode,byComponentCJ,purRecNoteCustomInfo,EnumPurchaseReceiptInspect |
|
|
|
} from "@/api/wms-api" |
|
|
|
import searchOverall from "@/components/searchOverall" |
|
|
|
import currenButton from "@/components/currenButton" |
|
|
|
import currenDescriptions from "@/components/currenDescriptions" |
|
|
|
import currenTabs from "@/components/currenTabs" |
|
|
@ -211,6 +231,7 @@ export default { |
|
|
|
currenDescriptions, |
|
|
|
currenTabs, |
|
|
|
currenTable, |
|
|
|
searchOverall, |
|
|
|
rowDrop |
|
|
|
}, |
|
|
|
props: { |
|
|
@ -224,6 +245,11 @@ export default { |
|
|
|
type: Boolean, |
|
|
|
default: true |
|
|
|
}, |
|
|
|
// 明细-筛选-当前接口中的筛选数据(用于同步全面筛选的数据) |
|
|
|
detailSearchDataFE:{ |
|
|
|
type: Object, |
|
|
|
default: null |
|
|
|
}, |
|
|
|
title: { |
|
|
|
type: Array, |
|
|
|
default: () => { |
|
|
@ -330,36 +356,24 @@ export default { |
|
|
|
return this.dropdownTabsData |
|
|
|
} else { |
|
|
|
// 正常普通 详情,明细,汇总 |
|
|
|
if (Object.keys(this.propsData).length != 0) { |
|
|
|
// if (Object.keys(this.propsData).length != 0) { |
|
|
|
if (Object.keys(this.propsData)) { |
|
|
|
this.initDropdownTabsData = [{ |
|
|
|
label: "详情", |
|
|
|
name: 'xq' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "详情", |
|
|
|
name: 'xq' |
|
|
|
}] |
|
|
|
// 明细可以为空数组,前端分页使用 |
|
|
|
if(this.propsData.details){ |
|
|
|
this.initDropdownTabsData.push({ |
|
|
|
label: "明细", |
|
|
|
name: 'mx' |
|
|
|
}, |
|
|
|
{ |
|
|
|
}) |
|
|
|
} |
|
|
|
if(this.propsData.summaryDetails && this.propsData.summaryDetails.length > 0){ |
|
|
|
this.initDropdownTabsData.push({ |
|
|
|
label: "汇总", |
|
|
|
name: 'hz' |
|
|
|
}] |
|
|
|
if (this.propsData.details == undefined || !this.propsData.details.length) { |
|
|
|
this.initDropdownTabsData = [{ |
|
|
|
label: "详情", |
|
|
|
name: 'xq' |
|
|
|
}] |
|
|
|
return this.initDropdownTabsData |
|
|
|
} |
|
|
|
if (this.propsData.summaryDetails == undefined || !this.propsData.summaryDetails.length ) { |
|
|
|
this.initDropdownTabsData = [{ |
|
|
|
label: "详情", |
|
|
|
name: 'xq' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "明细", |
|
|
|
name: 'mx' |
|
|
|
}] |
|
|
|
return this.initDropdownTabsData |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
return this.initDropdownTabsData |
|
|
@ -402,7 +416,15 @@ export default { |
|
|
|
label: "汇总", |
|
|
|
name: 'hz' |
|
|
|
} |
|
|
|
] |
|
|
|
], |
|
|
|
detailFiltersVisible:false,//筛选显示 |
|
|
|
filterActionOptions:[{ |
|
|
|
value: '==', |
|
|
|
label: '等于' |
|
|
|
}, { |
|
|
|
value: '!=', |
|
|
|
label: '不等于' |
|
|
|
}], |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -416,9 +438,17 @@ export default { |
|
|
|
}, |
|
|
|
// 明细-筛选 |
|
|
|
detailFiltersHandle(){ |
|
|
|
|
|
|
|
this.detailFiltersVisible = !this.detailFiltersVisible |
|
|
|
}, |
|
|
|
// 明细-全面筛选组件内部显示/隐藏更改触发,同步当前的showSearchOverall值 |
|
|
|
getShowSearchOverall(val){ |
|
|
|
this.detailFiltersVisible = val || false |
|
|
|
}, |
|
|
|
// 明细-全面筛选所有按钮操作集 |
|
|
|
detailFiltersSearch(options){ |
|
|
|
this.$emit('detailFiltersSearch', options) |
|
|
|
}, |
|
|
|
// 关闭字段设置 |
|
|
|
// 明细-关闭字段设置 |
|
|
|
closeRowDrop() { |
|
|
|
this.rowDropVisible = false |
|
|
|
}, |
|
|
|