|
@@ -72,6 +72,7 @@ import { HcDelMsg } from 'hc-vue3-ui'
|
|
|
import router from '~src/router/index'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
import { getErtractInfo } from '~api/other'
|
|
|
+import { delStoreValue, setStoreValue } from '~uti/storage'
|
|
|
import { arrToId, formValidate, getArrValue, getObjValue, isNullES } from 'js-fast-way'
|
|
|
import mainApi from '~api/tentative/material/testSample'
|
|
|
|
|
@@ -91,6 +92,9 @@ const contractInfo = ref(store.getContractInfo)
|
|
|
|
|
|
//渲染完成
|
|
|
onMounted(() => {
|
|
|
+ delStoreValue('test-form')
|
|
|
+ delStoreValue('testTreeItem')
|
|
|
+ delStoreValue('prenodeDataInfo')
|
|
|
getContractData()
|
|
|
})
|
|
|
|
|
@@ -294,17 +298,23 @@ const sampleRemoveApi = async (ids) => {
|
|
|
}
|
|
|
|
|
|
//填写报告
|
|
|
-const fillReportClick = ({ id, testId }) => {
|
|
|
- const { contractType } = contractInfo.value
|
|
|
- const { primaryKeyId } = treeInfo.value
|
|
|
- router.push({
|
|
|
+const fillReportClick = async ({ id, testId }) => {
|
|
|
+ //const { contractType } = contractInfo.value
|
|
|
+ //const { primaryKeyId } = treeInfo.value
|
|
|
+ await mainApi.detail(testId)
|
|
|
+
|
|
|
+ /*setStoreValue('test-form', row)
|
|
|
+ setStoreValue('testTreeItem', treeInfo.value)
|
|
|
+ setStoreValue('prenodeDataInfo', treeInfo.value)*/
|
|
|
+ /*router.push({
|
|
|
path: '/tentative/detect/test-form',
|
|
|
query: {
|
|
|
id: testId,
|
|
|
- nodeId: primaryKeyId || '',
|
|
|
- dataType: contractType > 0 ? contractType + '' : '1',
|
|
|
+ nodeId: nodeId,
|
|
|
+ dataType: type,
|
|
|
commissionId: id,
|
|
|
+ tabTypeKey: 1
|
|
|
},
|
|
|
- })
|
|
|
+ })*/
|
|
|
}
|
|
|
</script>
|