|
|
@ -69,6 +69,7 @@ import Detail from '@/components/Detail/src/Detail.vue' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
|
// 供应商物料 |
|
|
|
defineOptions({ name: 'Supplieritem' }) |
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
@ -224,6 +225,11 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
nextTick(() => { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
if(formField == 'supplierCode'){ |
|
|
|
setV['supplierName'] = val[0]['name'] |
|
|
|
}else if(formField == 'itemCode'){ |
|
|
|
setV['itemName'] = val[0]['name'] |
|
|
|
} |
|
|
|
formRef.setValues(setV) |
|
|
|
}) |
|
|
|
} |
|
|
|