|
|
@ -57,7 +57,7 @@
|
|
|
|
const emits = defineEmits(['refresh', 'register'])
|
|
|
|
const emits = defineEmits(['refresh', 'register'])
|
|
|
|
const list = [
|
|
|
|
const list = [
|
|
|
|
{ label: '费用名称', field: 'feeName', span: 5 },
|
|
|
|
{ label: '费用名称', field: 'feeName', span: 5 },
|
|
|
|
{ label: '费用对象', field: 'customerName', span: 5 },
|
|
|
|
{ label: '结算对象', field: 'customerName', span: 5 },
|
|
|
|
// { label: '核算单位', field: 'customerNo', span: 4, value: '1' },
|
|
|
|
// { label: '核算单位', field: 'customerNo', span: 4, value: '1' },
|
|
|
|
{ label: '单位标准', field: 'unitText', span: 5 },
|
|
|
|
{ label: '单位标准', field: 'unitText', span: 5 },
|
|
|
|
{ label: '不含税单价', field: 'noTaxPrice', span: 5 },
|
|
|
|
{ label: '不含税单价', field: 'noTaxPrice', span: 5 },
|
|
|
@ -80,6 +80,7 @@
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const [registerModal, { setModalProps, closeModal, updateFormField }] = useModalInner(async (data) => {
|
|
|
|
const [registerModal, { setModalProps, closeModal, updateFormField }] = useModalInner(async (data) => {
|
|
|
|
detailData.value = JSON.parse(JSON.stringify(data.record))
|
|
|
|
detailData.value = JSON.parse(JSON.stringify(data.record))
|
|
|
|
|
|
|
|
console.log(data.record)
|
|
|
|
setFieldsValue({
|
|
|
|
setFieldsValue({
|
|
|
|
...data.record,
|
|
|
|
...data.record,
|
|
|
|
beforeValue: JSON.parse(JSON.stringify(beforeValue.value)),
|
|
|
|
beforeValue: JSON.parse(JSON.stringify(beforeValue.value)),
|
|
|
@ -96,14 +97,14 @@
|
|
|
|
formData.feeRecordId = values.id
|
|
|
|
formData.feeRecordId = values.id
|
|
|
|
formData.id = 0
|
|
|
|
formData.id = 0
|
|
|
|
formData.BusinessType = 1
|
|
|
|
formData.BusinessType = 1
|
|
|
|
const res: API.DataResult = await ApplyModification([formData])
|
|
|
|
ApplyModification([formData]).then(res => {
|
|
|
|
setModalProps({ confirmLoading: false, loading: false })
|
|
|
|
if (res.succeeded) {
|
|
|
|
if (res.succeeded) {
|
|
|
|
createMessage.success(res.message)
|
|
|
|
createMessage.success(res.message)
|
|
|
|
emits('refresh')
|
|
|
|
emits('refresh')
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
}).catch(() => {
|
|
|
|
createMessage.error(res.message)
|
|
|
|
setModalProps({ confirmLoading: false, loading: false })
|
|
|
|
}
|
|
|
|
})
|
|
|
|
closeModal()
|
|
|
|
closeModal()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
onMounted(() => {
|
|
|
|
onMounted(() => {
|
|
|
|