|
|
@ -255,6 +255,11 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { |
|
|
|
if(formField == 'itemCode'){ |
|
|
|
setV['itemCode'] = val[0]['code'] |
|
|
|
setV['uom'] = val[0]['uom'] |
|
|
|
setV['expireDate'] = val[0]['validityDays']?addDay(val[0]['produceDate'],val[0]['validityDays']):'' |
|
|
|
setV.batch = formatTime(new Date(), 'yyyyMMdd') |
|
|
|
//生产日期 到货日期 默认当天 |
|
|
|
setV['produceDate'] = dayjs().valueOf() |
|
|
|
setV['arriveDate'] = dayjs().valueOf() |
|
|
|
} |
|
|
|
if(formField === 'costcentreCode'){ |
|
|
|
setV['costcentreCode'] = val[0]['costcentreCode'] |
|
|
|