Commit be2d6b6b authored by xioln's avatar xioln

理化检验流程修改

parent f82dd7a7
......@@ -7,19 +7,18 @@
<template>
<div class="Chemical-test-process">
<dee-as-com
v-if="JobResponseInExpermentData"
v-if="basicData"
refs="outerCasing"
model-name="InStorageRequestItem"
:lay-config="{
typeName: 'InStorageRequestItem',
layKey: 'test'
layKey: '1c4983a2-6f51-49e4-95ee-2f5506b8e217'
}"
:basic-data="JobResponseInExpermentData"
:basic-data="basicData"
/>
</div>
</template>
<script>
import { post } from '@/utils/http'
export default {
componentName: '理化检验流程',
......@@ -34,69 +33,14 @@ export default {
data() {
return {
// data: { 'reportNo': bindForm.reportNo, 'experimentAmount':bindForm.experimentAmount}, 'dxType': 'JobResponseInStorage', 'operator': 'ADD' }
JobResponseInExpermentData: null
}
},
computed: {},
created() {
// 初始化数据
console.log('理化检验流程', this.basicData)
this.getFrom(this.basicData.id)
},
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>
......
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