|
@ -11,13 +11,6 @@ |
|
|
> |
|
|
> |
|
|
<div class="drawer-heder"> |
|
|
<div class="drawer-heder"> |
|
|
<div class="heder-left"> |
|
|
<div class="heder-left"> |
|
|
<!-- <div class="heder-img"> |
|
|
|
|
|
<img |
|
|
|
|
|
src="@/assets/img/drawerHeader.png" |
|
|
|
|
|
alt="" |
|
|
|
|
|
style="width: 100%; height: 100%" |
|
|
|
|
|
/> |
|
|
|
|
|
</div> --> |
|
|
|
|
|
<div class="header-text"> |
|
|
<div class="header-text"> |
|
|
<span>{{ propsData[title[0].prop] }}</span> |
|
|
<span>{{ propsData[title[0].prop] }}</span> |
|
|
<span>{{ title[0].label }}</span> |
|
|
<span>{{ title[0].label }}</span> |
|
@ -66,73 +59,28 @@ |
|
|
:propsData="propsData" |
|
|
:propsData="propsData" |
|
|
> |
|
|
> |
|
|
</curren-descriptions> |
|
|
</curren-descriptions> |
|
|
<!-- 明细头部按钮 --> |
|
|
<!-- 明细 包含分页 头部按钮等 --> |
|
|
<div |
|
|
<tablePagination |
|
|
class="currenTabel-drawer-mx-header" |
|
|
|
|
|
v-if="scope.value == 'mx' && (showDetailColumnsSet || showDetailFilters)" |
|
|
|
|
|
> |
|
|
|
|
|
<curren-Button |
|
|
|
|
|
:Butttondata="detailHeaderButton" |
|
|
|
|
|
@tableButtonClick="detailHeaderClick" |
|
|
|
|
|
></curren-Button> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!-- 字段设置弹窗 --> |
|
|
|
|
|
<rowDrop |
|
|
|
|
|
@radio="rowDrop" |
|
|
|
|
|
:tableColumns="tableColumns" |
|
|
|
|
|
:visible="rowDropVisible" |
|
|
|
|
|
@closeRowDrop="closeRowDrop" |
|
|
|
|
|
: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'" |
|
|
v-if="scope.value == 'mx'" |
|
|
:isUpdate="isUpdate" |
|
|
:currenButtonData="detailHeaderButton" |
|
|
:tableBorder="true" |
|
|
|
|
|
:tableData="propsData.details" |
|
|
:tableData="propsData.details" |
|
|
:propsData="propsData" |
|
|
|
|
|
:tableColumns="tableColumns" |
|
|
:tableColumns="tableColumns" |
|
|
:selectionTable="selectionTable" |
|
|
:setUTableHeight="showDetailColumnsSet && showDetailFilters ? 300 : 260" |
|
|
:requiredRules="false" |
|
|
@rowDrop="rowDrop" |
|
|
:setUTableHeight="showDetailColumnsSet ? 300 : 260" |
|
|
:rowSource="'detail_api'" |
|
|
@sortChange="sortChange" |
|
|
:totalCount="totalCount" |
|
|
|
|
|
:MaxResultCount="MaxResultCount" |
|
|
|
|
|
@sortChange="sortChangeForDetail" |
|
|
|
|
|
@alertoldSkipCount="alertoldSkipCountForDetail" |
|
|
|
|
|
@alterResultCount="alterResultCountForDetail" |
|
|
@handleSelectionChange="handleSelectionChange" |
|
|
@handleSelectionChange="handleSelectionChange" |
|
|
@inlineDialog="inlineDialog" |
|
|
:currentPageProps="oldSkipCount" |
|
|
@buttonClick="buttonClick" |
|
|
@overallSearchFormClick="overallSearchClickForDetail" |
|
|
:buttonOperationList="buttonOperationList" |
|
|
:httpOverallSearchData="httpOverallSearchData" |
|
|
@buttonOperationClick="buttonOperationClick" |
|
|
@buttonOperationClick="buttonOperationClick" |
|
|
> |
|
|
:buttonOperationList="buttonOperationList" |
|
|
<template> |
|
|
:tableLoading="Loading.tableLoading" |
|
|
<slot></slot> |
|
|
></tablePagination> |
|
|
</template> |
|
|
|
|
|
</umyTable> |
|
|
|
|
|
<!-- 明细页码 --> |
|
|
|
|
|
<pagination |
|
|
|
|
|
v-if="scope.value == 'mx'" |
|
|
|
|
|
:totalCount="totalCount" |
|
|
|
|
|
:pagesizeProps="MaxResultCount" |
|
|
|
|
|
@SizeChange="alterResultCountDetails" |
|
|
|
|
|
@CurrentChange="alertoldSkipCountDetails" |
|
|
|
|
|
:currentPageProps="currentPage" |
|
|
|
|
|
></pagination> |
|
|
|
|
|
<!-- 新增汇总 表头 区分明细表头使用 summaryTableColumns --> |
|
|
<!-- 新增汇总 表头 区分明细表头使用 summaryTableColumns --> |
|
|
<umyTable |
|
|
<umyTable |
|
|
v-if="scope.value == 'hz'" |
|
|
v-if="scope.value == 'hz'" |
|
@ -228,17 +176,16 @@ |
|
|
</el-drawer> |
|
|
</el-drawer> |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
import searchOverall from "@/components/searchOverall" |
|
|
|
|
|
import { getListByItemcode,byItem,byProduct,byComponent,bySupplierCode,byLocation,byLocationCode, |
|
|
import { getListByItemcode,byItem,byProduct,byComponent,bySupplierCode,byLocation,byLocationCode, |
|
|
relationByLocationCode,byComponentCJ,purRecNoteCustomInfo,EnumPurchaseReceiptInspect |
|
|
relationByLocationCode,byComponentCJ,purRecNoteCustomInfo,getPageListForDetail |
|
|
} 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" |
|
|
import currenTable from "@/components/currenTable" |
|
|
import currenTable from "@/components/currenTable" |
|
|
import pagination from "@/components/Pagination" |
|
|
import pagination from "@/components/Pagination" |
|
|
import rowDrop from "@/components/rowDrop/index.vue" |
|
|
import rowDrop from "@/components/rowDrop/index.vue" |
|
|
import { getParentNode } from '@/utils' |
|
|
|
|
|
import * as allUrlOption from '@/utils/baseData/urlOption' |
|
|
import * as allUrlOption from '@/utils/baseData/urlOption' |
|
|
import { LoadingMixins } from "@/mixins/LoadingMixins"; |
|
|
import { LoadingMixins } from "@/mixins/LoadingMixins"; |
|
|
export default { |
|
|
export default { |
|
@ -271,11 +218,6 @@ export default { |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
|
default: true |
|
|
default: true |
|
|
}, |
|
|
}, |
|
|
// 明细-筛选-当前接口中的筛选数据(用于同步全面筛选的数据) |
|
|
|
|
|
detailSearchDataFE:{ |
|
|
|
|
|
type: Object, |
|
|
|
|
|
default: null |
|
|
|
|
|
}, |
|
|
|
|
|
title: { |
|
|
title: { |
|
|
type: Array, |
|
|
type: Array, |
|
|
default: () => { |
|
|
default: () => { |
|
@ -408,27 +350,12 @@ export default { |
|
|
}, |
|
|
}, |
|
|
mounted () { |
|
|
mounted () { |
|
|
this.initDetailHeaderButton() |
|
|
this.initDetailHeaderButton() |
|
|
// 点击外部,字段设置弹窗隐藏 |
|
|
|
|
|
document.addEventListener('click',(e)=>{ |
|
|
|
|
|
if(!this.rowDropVisible)return |
|
|
|
|
|
let _class = "rowDropNotHideItem" |
|
|
|
|
|
let _hasParent = getParentNode(e.target,_class) |
|
|
|
|
|
let _current_class = e.target._prevClass || e.target.className |
|
|
|
|
|
let _hasCurrent = _current_class ? String(_current_class).includes(_class) : false |
|
|
|
|
|
if(!_hasParent && !_hasCurrent){ |
|
|
|
|
|
this.closeRowDrop() |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
}, |
|
|
data () { |
|
|
data () { |
|
|
return { |
|
|
return { |
|
|
detailHeaderButton:null,//明细-上方按钮 |
|
|
detailHeaderButton:null,//明细-上方按钮 |
|
|
detailInfoTableData:null,//明细-查看详情弹窗数据 |
|
|
detailInfoTableData:null,//明细-查看详情弹窗数据 |
|
|
detailInfoTitle:null,//明细-查看详情弹窗title |
|
|
detailInfoTitle:null,//明细-查看详情弹窗title |
|
|
// table 重新渲染所需key |
|
|
|
|
|
isUpdate: false, |
|
|
|
|
|
// 明细-字段设置是否显示 |
|
|
|
|
|
rowDropVisible: false, |
|
|
|
|
|
otherData:[], // 切换tabs页赋值 |
|
|
otherData:[], // 切换tabs页赋值 |
|
|
zdyTableColumns:[], // 自定义表头 |
|
|
zdyTableColumns:[], // 自定义表头 |
|
|
zdyValue:'', // 自定义展现值 |
|
|
zdyValue:'', // 自定义展现值 |
|
@ -447,33 +374,154 @@ export default { |
|
|
name: 'hz' |
|
|
name: 'hz' |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
detailFiltersVisible:false,//筛选显示 |
|
|
//明细列表- 改变当前页 |
|
|
filterActionOptions:[{ |
|
|
oldSkipCount: 1, |
|
|
value: '==', |
|
|
// 明细列表- 全面搜索:当前列表数据请求接口的筛选条件 |
|
|
label: '等于' |
|
|
httpOverallSearchData:null, |
|
|
}, { |
|
|
//明细列表- 分页参数 |
|
|
value: '!=', |
|
|
PageListParams: { |
|
|
label: '不等于' |
|
|
condition: { |
|
|
}], |
|
|
filters: [] |
|
|
|
|
|
}, |
|
|
|
|
|
Sorting: "", |
|
|
|
|
|
SkipCount: 0, |
|
|
|
|
|
MaxResultCount: 20, |
|
|
|
|
|
}, |
|
|
|
|
|
//明细-查看主表的连接id |
|
|
|
|
|
URLOption_masterId:allUrlOption[this.$route.name].masterId || 'masterId', |
|
|
|
|
|
//明细-列表 |
|
|
|
|
|
URLOption_detailList:allUrlOption[this.$route.name].detailListURL, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
// 明细列表 - 获取明细列表(后端分页) |
|
|
|
|
|
getDetailList(data,successFn,errorFn){ |
|
|
|
|
|
// 获取明细分页信息 |
|
|
|
|
|
let _hasId = false |
|
|
|
|
|
this.PageListParams.condition.filters.forEach(item=>{ |
|
|
|
|
|
if(item.column == this.URLOption_masterId){ |
|
|
|
|
|
_hasId = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
if(!_hasId){ |
|
|
|
|
|
this.PageListParams.condition.filters.push({ |
|
|
|
|
|
logic: "And", |
|
|
|
|
|
column: this.URLOption_masterId, |
|
|
|
|
|
action: "==", |
|
|
|
|
|
value: data ? data.id : this.propsData.id |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
this.Loading.tableLoading = true |
|
|
|
|
|
getPageListForDetail(this.PageListParams,this.URLOption_detailList) |
|
|
|
|
|
.then(result => { |
|
|
|
|
|
this.propsData.details = result.items |
|
|
|
|
|
this.totalCount = result.totalCount |
|
|
|
|
|
this.Loading.tableLoading = false |
|
|
|
|
|
if(successFn)successFn() |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(err => { |
|
|
|
|
|
this.Loading.tableLoading = false |
|
|
|
|
|
if(errorFn)errorFn() |
|
|
|
|
|
this.$message.error("数据获取失败") |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 明细列表 - 全面筛选组件查询 |
|
|
|
|
|
overallSearchForDetailHandle(options){ |
|
|
|
|
|
let _data_primary = options.data_primary, |
|
|
|
|
|
_data_moreList = options.data_moreList, |
|
|
|
|
|
_option_primary = options.option_primary, |
|
|
|
|
|
_vm_quickly = options.vm_quickly, |
|
|
|
|
|
_vm_moreList = options.vm_moreList |
|
|
|
|
|
|
|
|
|
|
|
//普通筛选数据集合 |
|
|
|
|
|
let _primary_filters = [] |
|
|
|
|
|
_option_primary.forEach(item=>{ |
|
|
|
|
|
if(_data_primary[item.prop] && String(_data_primary[item.prop]).length > 0){ |
|
|
|
|
|
let _item = { |
|
|
|
|
|
action:item.action || '==', |
|
|
|
|
|
column:item.prop, |
|
|
|
|
|
logic:'And', |
|
|
|
|
|
value:String(_data_primary[item.prop]) |
|
|
|
|
|
} |
|
|
|
|
|
_primary_filters.push(_item) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
//高级筛选数据集合 |
|
|
|
|
|
let _moreList_filters = [] |
|
|
|
|
|
_data_moreList.filters.forEach(item=>{ |
|
|
|
|
|
if(String(item.column).length > 0 && String(item.value).length > 0){ |
|
|
|
|
|
_moreList_filters.push(item) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
// 全部筛选数据集合 |
|
|
|
|
|
let _all_filters = [] |
|
|
|
|
|
_all_filters = _primary_filters.concat(_moreList_filters) |
|
|
|
|
|
// 调用接口数据配置 |
|
|
|
|
|
this.oldSkipCount = 1 |
|
|
|
|
|
this.Loading.tableLoading = true; |
|
|
|
|
|
this.PageListParams.SkipCount = (this.oldSkipCount - 1) * this.PageListParams.MaxResultCount; |
|
|
|
|
|
this.PageListParams.condition = {filters:_all_filters} |
|
|
|
|
|
this.getDetailList(null,()=>{ |
|
|
|
|
|
//快速搜索清空 |
|
|
|
|
|
if(_vm_quickly){_vm_quickly.searchNormalClear(true)} |
|
|
|
|
|
//关闭高级筛选 |
|
|
|
|
|
if(_vm_moreList){_vm_moreList.changeMoreListShow(false)} |
|
|
|
|
|
// 同步当前列表数据请求接口的筛选条件 |
|
|
|
|
|
this.httpOverallSearchData = {} |
|
|
|
|
|
this.httpOverallSearchData.params = JSON.parse(JSON.stringify(_data_primary)) |
|
|
|
|
|
this.httpOverallSearchData.moreList = JSON.parse(JSON.stringify(_data_moreList)) |
|
|
|
|
|
},()=>{ |
|
|
|
|
|
//快速搜索清空 |
|
|
|
|
|
if(_vm_quickly){_vm_quickly.searchNormalClear(true)} |
|
|
|
|
|
//关闭高级筛选 |
|
|
|
|
|
if(_vm_moreList){_vm_moreList.changeMoreListShow(false)} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 明细列表 - 全面筛选所有按钮操作集 |
|
|
|
|
|
overallSearchClickForDetail(options){ |
|
|
|
|
|
let _item = options.item; |
|
|
|
|
|
// 普通搜索 + 高级搜索 + 普通重置 + 高级重置 |
|
|
|
|
|
if( |
|
|
|
|
|
_item.name == 'search' || _item.name == 'moreList-search' || |
|
|
|
|
|
_item.name == 'reset' || _item.name == 'moreList-reset' |
|
|
|
|
|
){ |
|
|
|
|
|
this.overallSearchForDetailHandle(options) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// 明细列表 -接收分页组件emit改变当前页 |
|
|
|
|
|
alertoldSkipCountForDetail(val) { |
|
|
|
|
|
this.oldSkipCount = val; |
|
|
|
|
|
this.getDetailList(); |
|
|
|
|
|
}, |
|
|
|
|
|
// 明细列表 -接收分页组件emit改变每页最大页数 |
|
|
|
|
|
alterResultCountForDetail(val) { |
|
|
|
|
|
this.PageListParams.MaxResultCount = val; |
|
|
|
|
|
this.getDetailList(); |
|
|
|
|
|
}, |
|
|
|
|
|
// 明细列表 - 排序查询 |
|
|
|
|
|
sortChangeForDetail(val) { |
|
|
|
|
|
const { |
|
|
|
|
|
prop, |
|
|
|
|
|
order |
|
|
|
|
|
} = val; |
|
|
|
|
|
if (!prop || !order) { |
|
|
|
|
|
this.PageListParams.Sorting = ""; |
|
|
|
|
|
this.oldSkipCount = 1; |
|
|
|
|
|
this.getDetailList(); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
let orderdata = order.substr(0, order.indexOf("c") + 1); |
|
|
|
|
|
const props = prop.charAt(0).toUpperCase() + prop.slice(1) |
|
|
|
|
|
this.PageListParams.Sorting = props + " " + orderdata.toUpperCase(); |
|
|
|
|
|
this.oldSkipCount = 1; |
|
|
|
|
|
this.getDetailList(); |
|
|
|
|
|
}, |
|
|
// 初始化明细-上方按钮 |
|
|
// 初始化明细-上方按钮 |
|
|
initDetailHeaderButton(){ |
|
|
initDetailHeaderButton(){ |
|
|
this.detailHeaderButton = [] |
|
|
this.detailHeaderButton = [] |
|
|
if(this.showDetailColumnsSet){this.detailHeaderButton.push(this.defaultFieldSettingBtn())} |
|
|
if(this.showDetailColumnsSet){this.detailHeaderButton.push(this.defaultFieldSettingBtn())} |
|
|
if(this.showDetailFilters){this.detailHeaderButton.push(this.defaultFilterBtn())} |
|
|
if(this.showDetailFilters){this.detailHeaderButton.push(this.defaultFilterBtn())} |
|
|
}, |
|
|
}, |
|
|
detailHeaderClick(val,item){ |
|
|
|
|
|
// 字段设置 |
|
|
|
|
|
if(val == 'field'){ |
|
|
|
|
|
this.columnsSettingHandle() |
|
|
|
|
|
} |
|
|
|
|
|
// 筛选 |
|
|
|
|
|
if(val == 'filter'){ |
|
|
|
|
|
this.detailFiltersHandle() |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// 关闭明细-详情弹窗 |
|
|
// 关闭明细-详情弹窗 |
|
|
closeDetailInfo(val){ |
|
|
closeDetailInfo(val){ |
|
|
this.displayDialog.detailInfoDialog = val || false |
|
|
this.displayDialog.detailInfoDialog = val || false |
|
@ -491,27 +539,6 @@ export default { |
|
|
}, |
|
|
}, |
|
|
rowDrop(data,type) { |
|
|
rowDrop(data,type) { |
|
|
this.$emit('rowDrop',data,type) |
|
|
this.$emit('rowDrop',data,type) |
|
|
this.isUpdate = !this.isUpdate |
|
|
|
|
|
}, |
|
|
|
|
|
// 明细-字段设置 |
|
|
|
|
|
columnsSettingHandle(){ |
|
|
|
|
|
this.rowDropVisible = !this.rowDropVisible |
|
|
|
|
|
}, |
|
|
|
|
|
// 明细-筛选 |
|
|
|
|
|
detailFiltersHandle(){ |
|
|
|
|
|
this.detailFiltersVisible = !this.detailFiltersVisible |
|
|
|
|
|
}, |
|
|
|
|
|
// 明细-全面筛选组件内部显示/隐藏更改触发,同步当前的showSearchOverall值 |
|
|
|
|
|
getShowSearchOverall(val){ |
|
|
|
|
|
this.detailFiltersVisible = val || false |
|
|
|
|
|
}, |
|
|
|
|
|
// 明细-全面筛选所有按钮操作集 |
|
|
|
|
|
detailFiltersSearch(options){ |
|
|
|
|
|
this.$emit('detailFiltersSearch', options) |
|
|
|
|
|
}, |
|
|
|
|
|
// 明细-关闭字段设置 |
|
|
|
|
|
closeRowDrop() { |
|
|
|
|
|
this.rowDropVisible = false |
|
|
|
|
|
}, |
|
|
}, |
|
|
handleCommand (command) { |
|
|
handleCommand (command) { |
|
|
this.$emit('handleCommand', command) |
|
|
this.$emit('handleCommand', command) |
|
@ -579,117 +606,6 @@ export default { |
|
|
console.log(err) |
|
|
console.log(err) |
|
|
parent.tableLoading = false |
|
|
parent.tableLoading = false |
|
|
}) |
|
|
}) |
|
|
} else if (item.functionName == 'byItem') { |
|
|
|
|
|
byItem(this.propsData.code, item.url).then(res => { |
|
|
|
|
|
let zdyTableColumnsJSON = JSON.parse(JSON.stringify(this.$isTableColumns[item.tableColumns])); |
|
|
|
|
|
delete zdyTableColumnsJSON[0].type |
|
|
|
|
|
this.zdyTableColumns = zdyTableColumnsJSON |
|
|
|
|
|
this.otherData = res |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (item.functionName == 'byProduct') { |
|
|
|
|
|
byProduct({product:this.propsData.product}, item.url).then(res => { |
|
|
|
|
|
let zdyTableColumnsJSON = JSON.parse(JSON.stringify(this.$isTableColumns[item.tableColumns])); |
|
|
|
|
|
delete zdyTableColumnsJSON[0].type |
|
|
|
|
|
this.zdyTableColumns = zdyTableColumnsJSON |
|
|
|
|
|
this.otherData = res |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (item.functionName == 'byComponent') { |
|
|
|
|
|
byComponent({component:this.propsData.component}, item.url).then(res => { |
|
|
|
|
|
let zdyTableColumnsJSON = JSON.parse(JSON.stringify(this.$isTableColumns[item.tableColumns])); |
|
|
|
|
|
delete zdyTableColumnsJSON[0].type |
|
|
|
|
|
this.zdyTableColumns = zdyTableColumnsJSON |
|
|
|
|
|
this.otherData = res |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
// 基础数据管理-物品清单维护-物品清单信息-详情-子物品层级 |
|
|
|
|
|
else if (item.functionName == 'byComponentCJ') { |
|
|
|
|
|
this.otherData = [] |
|
|
|
|
|
byComponentCJ({component:this.propsData.component}, item.url).then(res => { |
|
|
|
|
|
let zdyTableColumnsJSON = JSON.parse(JSON.stringify(this.$isTableColumns[item.tableColumns])); |
|
|
|
|
|
delete zdyTableColumnsJSON[0].type |
|
|
|
|
|
this.zdyTableColumns = zdyTableColumnsJSON |
|
|
|
|
|
this.otherData = res |
|
|
|
|
|
this.recursion(this.otherData) |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (item.functionName == 'bySupplierCode') { |
|
|
|
|
|
bySupplierCode({supplierCode:this.propsData.code}, item.url).then(res => { |
|
|
|
|
|
let zdyTableColumnsJSON = JSON.parse(JSON.stringify(this.$isTableColumns[item.tableColumns])); |
|
|
|
|
|
delete zdyTableColumnsJSON[0].type |
|
|
|
|
|
this.zdyTableColumns = zdyTableColumnsJSON |
|
|
|
|
|
this.otherData = res |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (item.functionName == 'byLocation') { |
|
|
|
|
|
byLocation(this.propsData.code==null?this.propsData.locationCode:this.propsData.code, item.url).then(res => { |
|
|
|
|
|
let zdyTableColumnsJSON = JSON.parse(JSON.stringify(this.$isTableColumns[item.tableColumns])); |
|
|
|
|
|
delete zdyTableColumnsJSON[0].type |
|
|
|
|
|
this.zdyTableColumns = zdyTableColumnsJSON |
|
|
|
|
|
this.otherData = res |
|
|
|
|
|
this.o |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (item.functionName == 'byLocationCode') { |
|
|
|
|
|
byLocationCode({locationCode: this.propsData.code}, item.url).then(res => { |
|
|
|
|
|
let itemData = [] |
|
|
|
|
|
itemData.push(res) |
|
|
|
|
|
let zdyTableColumnsJSON = JSON.parse(JSON.stringify(this.$isTableColumns[item.tableColumns])); |
|
|
|
|
|
delete zdyTableColumnsJSON[0].type |
|
|
|
|
|
this.zdyTableColumns = zdyTableColumnsJSON |
|
|
|
|
|
this.otherData = itemData |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
// 基础数据管理-库位信息-详情-库位零件关系 |
|
|
|
|
|
else if (item.functionName == 'relationByLocationCode') { |
|
|
|
|
|
relationByLocationCode({locationCode: this.propsData.code}, item.url).then(res => { |
|
|
|
|
|
let zdyTableColumnsJSON = JSON.parse(JSON.stringify(this.$isTableColumns[item.tableColumns])); |
|
|
|
|
|
delete zdyTableColumnsJSON[0].type |
|
|
|
|
|
this.zdyTableColumns = zdyTableColumnsJSON |
|
|
|
|
|
this.otherData = res |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
parent.tableLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
// 采购收货记录-合格品收货明细, 不合格品收货明细, 收货缺料明细 |
|
|
|
|
|
else if(item.functionName == "purRecNoteCustomInfo"){ |
|
|
|
|
|
parent.Loading.DrawerLoading = true |
|
|
|
|
|
purRecNoteCustomInfo( item.url,this.propsData.id).then(res => { |
|
|
|
|
|
let zdyTableColumnsJSON = JSON.parse(JSON.stringify(this.$isTableColumns[item.tableColumns])); |
|
|
|
|
|
delete zdyTableColumnsJSON[0].type |
|
|
|
|
|
this.zdyTableColumns = zdyTableColumnsJSON |
|
|
|
|
|
this.otherData = res |
|
|
|
|
|
parent.Loading.DrawerLoading = false |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
parent.Loading.DrawerLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
} |
|
|
// 客户退拆记录-详情页TAB-回冲记录 |
|
|
// 客户退拆记录-详情页TAB-回冲记录 |
|
|
else if(item.functionName == "customerDismantleBackFlushNote"){ |
|
|
else if(item.functionName == "customerDismantleBackFlushNote"){ |
|
|