Commit be2d6b6b authored by xioln's avatar xioln

理化检验流程修改

parent f82dd7a7
...@@ -7,19 +7,18 @@ ...@@ -7,19 +7,18 @@
<template> <template>
<div class="Chemical-test-process"> <div class="Chemical-test-process">
<dee-as-com <dee-as-com
v-if="JobResponseInExpermentData" v-if="basicData"
refs="outerCasing" refs="outerCasing"
model-name="InStorageRequestItem" model-name="InStorageRequestItem"
:lay-config="{ :lay-config="{
typeName: 'InStorageRequestItem', typeName: 'InStorageRequestItem',
layKey: 'test' layKey: '1c4983a2-6f51-49e4-95ee-2f5506b8e217'
}" }"
:basic-data="JobResponseInExpermentData" :basic-data="basicData"
/> />
</div> </div>
</template> </template>
<script> <script>
import { post } from '@/utils/http'
export default { export default {
componentName: '理化检验流程', componentName: '理化检验流程',
...@@ -34,69 +33,14 @@ export default { ...@@ -34,69 +33,14 @@ export default {
data() { data() {
return { return {
// data: { 'reportNo': bindForm.reportNo, 'experimentAmount':bindForm.experimentAmount}, 'dxType': 'JobResponseInStorage', 'operator': 'ADD' } // data: { 'reportNo': bindForm.reportNo, 'experimentAmount':bindForm.experimentAmount}, 'dxType': 'JobResponseInStorage', 'operator': 'ADD' }
JobResponseInExpermentData: null
} }
}, },
computed: {}, computed: {},
created() { created() {
// 初始化数据 // 初始化数据
console.log('理化检验流程', this.basicData)
this.getFrom(this.basicData.id)
}, },
methods: { methods: {
getFrom(id) {
const param = {
'pageFrom': 1,
'pageSize': 10,
'searchItems': {
'children': [
{
'items': [
{
'fieldName': 'jobOrderId',
'operator': 'EQ',
'value': id
},
{
'fieldName': 'subTypeName',
'operator': 'EQ',
'value': 'JobResponseInExperment'
}
],
'operator': 'AND'
}
],
'items': [],
'operator': 'AND'
},
'openProps': [
{
'name': 'objFileLinks',
'openProps': [
{ 'name': 'target' }
]
},
{
'name': 'jobOrder',
'openProps': [
{ 'name': 'purchaseUnit' }
]
}
],
'sortItem': [
{
'fieldName': 'modifyTime',
'sortOrder': 'desc'
}
]
}
post('JobResponseInStorage/search', param).then(res => {
// this.data = res.items.content[0]
this.JobResponseInExpermentData = res.items.content[0]
}).catch((err) => {
console.log(err)
})
}
} }
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment