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