|
|
@ -68,6 +68,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: 'SubjectAccount' }) |
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
@ -91,7 +92,20 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
setV['projectId'] = val[0]['projectId'] |
|
|
|
setV['projectCode'] = val[0]['projectCode'] |
|
|
|
} |
|
|
|
if( formField === 'costDefault'){ |
|
|
|
|
|
|
|
//成本中心限制使用范围 |
|
|
|
let costDefaults = [] |
|
|
|
val.forEach(item=>{ |
|
|
|
costDefaults.push(item[searchField]) |
|
|
|
}) |
|
|
|
|
|
|
|
setV[formField] = costDefaults.join(',') |
|
|
|
}else{ |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
formRef.setValues(setV) |
|
|
|
}) |
|
|
|
} |
|
|
|