|
@ -40,6 +40,8 @@ |
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
<BasicForm |
|
|
<BasicForm |
|
|
ref="basicFormRef" |
|
|
ref="basicFormRef" |
|
|
|
|
|
:isOpenSearchTable="true" |
|
|
|
|
|
fieldTableColumn="productionLine" |
|
|
@submitForm="submitForm" |
|
|
@submitForm="submitForm" |
|
|
:isBusiness="true" |
|
|
:isBusiness="true" |
|
|
:rules="ProcessproductionRequestMainRules" |
|
|
:rules="ProcessproductionRequestMainRules" |
|
@ -54,6 +56,7 @@ |
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
:isShowReduceButtonSelection="true" |
|
|
:isShowReduceButtonSelection="true" |
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
|
|
|
@onEnter="onEnter" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
@ -87,6 +90,8 @@ |
|
|
import download from '@/utils/download' |
|
|
import download from '@/utils/download' |
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { ProcessproductionRequestMain,ProcessproductionRequestMainRules,ProcessproductionRequestDetail,ProcessproductionRequestDetailRules } from './processproductionRequestMain.data' |
|
|
import { ProcessproductionRequestMain,ProcessproductionRequestMainRules,ProcessproductionRequestDetail,ProcessproductionRequestDetailRules } from './processproductionRequestMain.data' |
|
|
|
|
|
import * as ProductionlineitemApi from '@/api/wms/productionlineitem' |
|
|
|
|
|
import { Productionlineitem } from '@/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data' |
|
|
import * as ProcessproductionRequestMainApi from '@/api/wms/processproductionRequestMain' |
|
|
import * as ProcessproductionRequestMainApi from '@/api/wms/processproductionRequestMain' |
|
|
import * as ProcessproductionRequestDetailApi from '@/api/wms/processproductionRequestDetail' |
|
|
import * as ProcessproductionRequestDetailApi from '@/api/wms/processproductionRequestDetail' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
@ -440,6 +445,26 @@ const handleDeleteTable = (item, index) => { |
|
|
tableData.value.splice(itemIndex, 1) |
|
|
tableData.value.splice(itemIndex, 1) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const onEnter = async (field,value) => { |
|
|
|
|
|
if (field == 'itemCode') { |
|
|
|
|
|
//车间代码 |
|
|
|
|
|
basicFormRef.value.opensearchTable('productionLine', 'productionLineCode', '生产线物料关系信息', Productionlineitem.allSchemas, ProductionlineitemApi.getProductionlineitemPage,[ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
},{ |
|
|
|
|
|
key: 'itemCode', |
|
|
|
|
|
value: value, |
|
|
|
|
|
action: '==', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}]) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
const tableSelectionDelete = (selection) => { |
|
|
const tableSelectionDelete = (selection) => { |
|
|
tableData.value = tableData.value.filter(item => !selection.includes(item)) |
|
|
tableData.value = tableData.value.filter(item => !selection.includes(item)) |
|
|
} |
|
|
} |
|
|