|
|
@ -120,6 +120,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
// 报废收货申请 |
|
|
|
import download from '@/utils/download' |
|
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
|
import { ProductreceiptRequestMain,ProductreceiptRequestMainRules,ProductreceiptRequestDetail, |
|
|
@ -184,12 +185,19 @@ const updataTableColumns = (val) => { |
|
|
|
} |
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
|
nextTick(() => { |
|
|
|
const searchTableSuccess = async (formField, searchField, val, formRef, type, row ) => { |
|
|
|
nextTick(async () => { |
|
|
|
if (type == 'tableForm') { |
|
|
|
if (formField == 'secondPackUnit') { |
|
|
|
row['secondPackUnit'] = val[0]['packUnit'] |
|
|
|
row['secondPackQty'] = val[0]['packQty'] |
|
|
|
}else if(formField == 'itemCode'){ |
|
|
|
|
|
|
|
let res = await ProductreceiptRequestDetailApi.getQueryItemCodeInfo({itemCodes:val.map(item=>item.itemCode).join(',')}) |
|
|
|
if(res.length>0){ |
|
|
|
row['uom'] = res[0]['uom'] |
|
|
|
} |
|
|
|
console.log('获取计量单位',res) |
|
|
|
} |
|
|
|
// 明细查询页赋值 |
|
|
|
row[formField] = val[0][searchField] |
|
|
|