|
@@ -169,7 +169,7 @@
|
|
|
<script setup name="PlanChange">
|
|
|
import { ref, computed, reactive } from 'vue';
|
|
|
import { MessagePlugin } from 'tdesign-vue-next';
|
|
|
-import dynamicTable from '@/components/common/dynamic-table';
|
|
|
+import dynamicTable from '@/components/common/dynamic-table/index.vue';
|
|
|
import { dictToOptionList } from '@/utils/tool';
|
|
|
import { PLAN_CHANGE_TYPE } from '@/config/constants';
|
|
|
import {
|
|
@@ -248,7 +248,7 @@ const columns = computed(() => [
|
|
|
]);
|
|
|
|
|
|
const formRef = ref(null);
|
|
|
-const formData = reactive({
|
|
|
+let formData = reactive({
|
|
|
serviceId: '',
|
|
|
sopNo: '',
|
|
|
crmNo: '',
|
|
@@ -278,7 +278,11 @@ const initData = async () => {
|
|
|
sopInfo.value.examEndTime = '';
|
|
|
sopInfo.value.productName = res.crmInfo.productName;
|
|
|
|
|
|
- formData = objAssign(formData, res.tbProjectExchange);
|
|
|
+ for (const key in res.tbProjectExchange) {
|
|
|
+ if (Object.hasOwnProperty.call(formData, key)) {
|
|
|
+ formData[key] = res.tbProjectExchange[key];
|
|
|
+ }
|
|
|
+ }
|
|
|
formData.contentJson = JSON.parse(formData.contentJson);
|
|
|
};
|
|
|
initData();
|