Commit 3569815a authored by xioln's avatar xioln

入库程修改

parent eefb8389
......@@ -7,17 +7,19 @@
<template>
<div class="Chemical-test-process">
<dee-as-com
v-if="basicData"
v-if="data"
refs="outerCasing"
:lay-config="{
typeName: 'InStorageRequestItem',
layKey: '1c4983a2-6f51-49e4-95ee-2f5506b8e217'
}"
:basic-data="basicData"
:basic-data="data"
/>
</div>
</template>
<script>
import { post } from '@/utils/http'
export default {
componentName: '理化检验流程',
name: 'ChemicalTestProcess',
......@@ -30,16 +32,71 @@ export default {
},
data() {
return {
// data: { 'reportNo': bindForm.reportNo, 'isPass': bindForm.isPass, 'isDestroy': bindForm.isDestroy, 'experimentAmount':bindForm.experimentAmount, 'jobOrder': { 'purchaseUnit': { 'unitName': bindForm.jobOrder.purchaseUnit.purchaseUnit } }, 'dxType': 'JobResponseInStorage', 'operator': 'ADD' }
data: null
}
},
computed: {},
created() {
// 初始化数据
console.log('理化检验流程', this.basicData)
console.log('理化检验流程1', this.form)
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]
}).catch((err) => {
console.log(err)
})
}
}
}
</script>
<style lang='scss'>
</style>
<style lang='scss'></style>
......@@ -443,11 +443,13 @@ export default {
},
methods: {
back() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.replace({
path: '/page/86a5fa19-e245-4732-aff6-c48b18e2b5c7',
query: { title: '采购入库', menuRootAppId: '1626781924331' }
})
setTimeout(() => {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.replace({
path: '/page/86a5fa19-e245-4732-aff6-c48b18e2b5c7',
query: { title: '采购入库', menuRootAppId: '1626781924331' }
})
}, 2000)
},
initData() {
this.getInventoryRequest()
......
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