Browse Source

HL-6115科目账户配置中成本中心默认值字段,名称更改为成本中心限制使用范围,并且允许多选,最终效果参照下图所示

hella_online_20240927
yufei_wang 2 months ago
parent
commit
d2472b6400
  1. 16
      src/views/wms/basicDataManage/subject/subjectAccount/index.vue
  2. 3
      src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts

16
src/views/wms/basicDataManage/subject/subjectAccount/index.vue

@ -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']
}
setV[formField] = val[0][searchField]
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)
})
}

3
src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts

@ -248,7 +248,7 @@ export const SubjectAccount = useCrudSchemas(
}
},
{
label: '成本中心默认值',
label: '成本中心限制使用范围',
field: 'costDefault',
sort: 'custom',
isSearch: false,
@ -260,6 +260,7 @@ export const SubjectAccount = useCrudSchemas(
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
multiple: true,
enterSearch: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本

Loading…
Cancel
Save