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