|
@@ -143,7 +143,7 @@
|
|
|
import { onActivated, ref } from 'vue'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
|
-import { deepClone, getArrValue, isNullES, isString } from 'js-fast-way'
|
|
|
+import { deepClone, getArrValue, getObjValue, isNullES, isString } from 'js-fast-way'
|
|
|
import TestTree from '~src/views/tentative/material/components/TestTree.vue'
|
|
|
import { getDictionaryData } from '~uti/tools'
|
|
|
import SamplingPage from './commission/sampling.vue'
|
|
@@ -363,9 +363,10 @@ const formRules = {
|
|
|
|
|
|
//创建报告
|
|
|
const rowActionModal = ref(false)
|
|
|
-const rowReports = (row) => {
|
|
|
- formModel.value = row
|
|
|
+const rowReports = async (row) => {
|
|
|
rowActionModal.value = true
|
|
|
+ const { data } = await mainApi.detail(row.id)
|
|
|
+ formModel.value = getObjValue(data)
|
|
|
}
|
|
|
|
|
|
//提交保存
|