|
|
|
@ -53,6 +53,7 @@
|
|
|
|
|
import { formSchema } from './columns'
|
|
|
|
|
// 相关接口
|
|
|
|
|
import { ApiEdit, ApiInfo } from './api'
|
|
|
|
|
import { feeUnitDict } from '/@/hooks/dict/index'
|
|
|
|
|
// 提升消息混入
|
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
|
import { useUserStore } from '/@/store/modules/user'
|
|
|
|
@ -92,13 +93,20 @@
|
|
|
|
|
setFieldsValue({
|
|
|
|
|
...res.data,
|
|
|
|
|
})
|
|
|
|
|
const UnitList = await feeUnitDict()
|
|
|
|
|
res.data.details.forEach((item) => {
|
|
|
|
|
UnitList.forEach((e: any) => {
|
|
|
|
|
if (e.value == item.unit) {
|
|
|
|
|
item.unitText = e.name
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
feeField.value.SetData(res.data.details)
|
|
|
|
|
feeField.value.condition = res.data.condition
|
|
|
|
|
detailId.value = res.data.id
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (unref(isSave)) {
|
|
|
|
|
console.log(data.record, 1111111111111)
|
|
|
|
|
setModalProps({ confirmLoading: true })
|
|
|
|
|
// const res: API.DataResult = await ApiInfo({ id: unref(data.record.id) })
|
|
|
|
|
// if (res.succeeded) {
|
|
|
|
@ -127,8 +135,14 @@
|
|
|
|
|
...res.data,
|
|
|
|
|
id: '',
|
|
|
|
|
})
|
|
|
|
|
const UnitList = await feeUnitDict()
|
|
|
|
|
res.data.details.forEach((item) => {
|
|
|
|
|
delete item.id
|
|
|
|
|
UnitList.forEach((e: any) => {
|
|
|
|
|
if (e.value == item.unit) {
|
|
|
|
|
item.unitText = e.name
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
feeField.value.SetData(res.data.details)
|
|
|
|
|
feeField.value.condition = res.data.condition
|
|
|
|
|