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