|
@ -59,6 +59,7 @@ |
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@submitForm="submitForm" |
|
|
@submitForm="submitForm" |
|
|
|
|
|
@onChange="onChange" |
|
|
> |
|
|
> |
|
|
<template v-slot="{row}"> |
|
|
<template v-slot="{row}"> |
|
|
<el-date-picker v-bind:modelValue="row['expireTime']?addDay(row['produceDate'],row['expireTime']):dayjs('2099-12-31').valueOf()" |
|
|
<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 { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { ProductreceiptRequestMain,ProductreceiptRequestMainRules,ProductreceiptRequestDetail, |
|
|
import { ProductreceiptRequestMain,ProductreceiptRequestMainRules,ProductreceiptRequestDetail, |
|
|
ProductreceiptRequestDetailRules, BackflushDetailRequest, |
|
|
ProductreceiptRequestDetailRules, BackflushDetailRequest, |
|
|
ProductreceiptRequestLabel,ProductreceiptRequestLabelRules } from './productreceiptAssembleRequestMain.data' |
|
|
ProductreceiptRequestLabel,ProductreceiptRequestLabelRules,shiftList } from './productreceiptAssembleRequestMain.data' |
|
|
import { |
|
|
import { |
|
|
SupplierdeliverRequestPackage |
|
|
SupplierdeliverRequestPackage |
|
|
} from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts' |
|
|
} from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts' |
|
@ -200,7 +201,19 @@ const { getList:getDetailListBom } = detatableMethodsBom |
|
|
const updataTableColumns = (val) => { |
|
|
const updataTableColumns = (val) => { |
|
|
tableColumns.value = 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 ) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
console.log('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){ |
|
|
}else if('productionLineCode'==formField){ |
|
|
//生产线代码 |
|
|
//生产线代码 |
|
|
tableData.value = [] |
|
|
tableData.value = [] |
|
|
|
|
|
} else if ('team' == formField) { |
|
|
|
|
|
//班组 |
|
|
|
|
|
setV['teamName'] = val[0]['name'] |
|
|
} |
|
|
} |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|
} |
|
|
} |
|
|