|
|
@ -59,6 +59,7 @@ |
|
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@submitForm="submitForm" |
|
|
|
@onChange="onChange" |
|
|
|
> |
|
|
|
<template v-slot="{row}"> |
|
|
|
<el-date-picker v-bind:modelValue="row['expireTime']?addDay(row['produceDate'],row['expireTime']):dayjs('2099-12-31').valueOf()" |
|
|
@ -136,7 +137,7 @@ import download from '@/utils/download' |
|
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
|
import { ProductreceiptRequestMain,ProductreceiptRequestMainRules,ProductreceiptRequestDetail, |
|
|
|
ProductreceiptRequestDetailRules, BackflushDetailRequest, |
|
|
|
ProductreceiptRequestLabel,ProductreceiptRequestLabelRules } from './productreceiptAssembleRequestMain.data' |
|
|
|
ProductreceiptRequestLabel,ProductreceiptRequestLabelRules,shiftList } from './productreceiptAssembleRequestMain.data' |
|
|
|
import { |
|
|
|
SupplierdeliverRequestPackage |
|
|
|
} from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts' |
|
|
@ -200,7 +201,19 @@ const { getList:getDetailListBom } = detatableMethodsBom |
|
|
|
const updataTableColumns = (val) => { |
|
|
|
tableColumns.value = val |
|
|
|
} |
|
|
|
const onChange = (field, cur) => { |
|
|
|
if(field=='shift'){ |
|
|
|
//班次 |
|
|
|
let findItem = shiftList.list.find(item=>item['code'] == cur) |
|
|
|
if(findItem){ |
|
|
|
formRef.value.formRef.setValues({ |
|
|
|
shiftName:findItem['name'] |
|
|
|
}) |
|
|
|
} |
|
|
|
console.log('onChange',field, cur,findItem) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
|
console.log('searchTableSuccess',formField, searchField, val, formRef, type, row) |
|
|
@ -234,6 +247,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
}else if('productionLineCode'==formField){ |
|
|
|
//生产线代码 |
|
|
|
tableData.value = [] |
|
|
|
} else if ('team' == formField) { |
|
|
|
//班组 |
|
|
|
setV['teamName'] = val[0]['name'] |
|
|
|
} |
|
|
|
formRef.setValues(setV) |
|
|
|
} |
|
|
|