Browse Source

工序报工申请

hella_online_20240829
wangyufei 5 months ago
parent
commit
2d714ad379
  1. 25
      src/views/wms/productionManage/processproduction/processproductionRequest/index.vue

25
src/views/wms/productionManage/processproduction/processproductionRequest/index.vue

@ -40,6 +40,8 @@
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
:isOpenSearchTable="true"
fieldTableColumn="productionLine"
@submitForm="submitForm"
:isBusiness="true"
:rules="ProcessproductionRequestMainRules"
@ -54,6 +56,7 @@
@handleDeleteTable="handleDeleteTable"
:isShowReduceButtonSelection="true"
@tableSelectionDelete="tableSelectionDelete"
@onEnter="onEnter"
/>
<!-- 详情 -->
@ -87,6 +90,8 @@
import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
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 ProcessproductionRequestDetailApi from '@/api/wms/processproductionRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
@ -440,6 +445,26 @@ const handleDeleteTable = (item, index) => {
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) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))
}

Loading…
Cancel
Save