|
@@ -38,7 +38,7 @@ const props = defineProps({
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
-const { loading, formData, formSubmit } = usePerformanceContractedApply(props.selectedRow.buyaccountid)
|
|
|
|
|
|
|
+const { loading, formData, formSubmit } = usePerformanceContractedApply(props.selectedRow.buyorsell)
|
|
|
const show = ref(true)
|
|
const show = ref(true)
|
|
|
const refresh = ref(false)
|
|
const refresh = ref(false)
|
|
|
const formRef = ref<FormInstance>()
|
|
const formRef = ref<FormInstance>()
|
|
@@ -57,7 +57,7 @@ const formRules: FormRules = {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const onUploadChange = (file: { filePath: string }) => {
|
|
const onUploadChange = (file: { filePath: string }) => {
|
|
|
- formData.Attachment = file.filePath
|
|
|
|
|
|
|
+ formData.value.Attachment = file.filePath
|
|
|
formRef.value?.validateField('Attachment')
|
|
formRef.value?.validateField('Attachment')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -67,6 +67,7 @@ const onCancel = (isRefresh = false) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const onSubmit = () => {
|
|
const onSubmit = () => {
|
|
|
|
|
+ formData.value.PerformancePlanID = props.selectedRow.performanceplanid
|
|
|
formRef.value?.validate((valid) => {
|
|
formRef.value?.validate((valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
formSubmit().then(() => {
|
|
formSubmit().then(() => {
|