|
@ -120,6 +120,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
|
|
|
// 报废收货申请 |
|
|
import download from '@/utils/download' |
|
|
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, |
|
@ -184,12 +185,19 @@ const updataTableColumns = (val) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
const searchTableSuccess = async (formField, searchField, val, formRef, type, row ) => { |
|
|
nextTick(() => { |
|
|
nextTick(async () => { |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
if (formField == 'secondPackUnit') { |
|
|
if (formField == 'secondPackUnit') { |
|
|
row['secondPackUnit'] = val[0]['packUnit'] |
|
|
row['secondPackUnit'] = val[0]['packUnit'] |
|
|
row['secondPackQty'] = val[0]['packQty'] |
|
|
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] |
|
|
row[formField] = val[0][searchField] |
|
|