ZaiZai vor 1 Jahr
Ursprung
Commit
aa488de6d7

+ 1 - 1
src/api/modules/tentative/detect/commission.js

@@ -20,7 +20,7 @@ export default {
     //详情
     async detail(id, msg = true) {
         return HcApi({
-            url: '/api/blade-business/uentrustinfo/detail',
+            url: '/api/blade-business/entrustinfo/detail',
             method: 'get',
             params: { id },
         }, msg)

+ 4 - 3
src/views/tentative/detect/commission.vue

@@ -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)
 }
 
 //提交保存