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